]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/openpam/configure
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / openpam / configure
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 610 2012-05-26 14:03:45Z des .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for OpenPAM 20120526.
5 #
6 # Report bugs to <des@des.no>.
7 #
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # Foundation, Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39 as_nl='
40 '
41 export as_nl
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='print -r --'
51   as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53   as_echo='printf %s\n'
54   as_echo_n='printf %s'
55 else
56   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58     as_echo_n='/usr/ucb/echo -n'
59   else
60     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61     as_echo_n_body='eval
62       arg=$1;
63       case $arg in #(
64       *"$as_nl"*)
65         expr "X$arg" : "X\\(.*\\)$as_nl";
66         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67       esac;
68       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69     '
70     export as_echo_n_body
71     as_echo_n='sh -c $as_echo_n_body as_echo'
72   fi
73   export as_echo_body
74   as_echo='sh -c $as_echo_body as_echo'
75 fi
76
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # IFS
88 # We need space, tab and new line, in precisely that order.  Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
92 IFS=" ""        $as_nl"
93
94 # Find who we are.  Look in the path if we contain no directory separator.
95 as_myself=
96 case $0 in #((
97   *[\\/]* ) as_myself=$0 ;;
98   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 for as_dir in $PATH
100 do
101   IFS=$as_save_IFS
102   test -z "$as_dir" && as_dir=.
103     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104   done
105 IFS=$as_save_IFS
106
107      ;;
108 esac
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
112   as_myself=$0
113 fi
114 if test ! -f "$as_myself"; then
115   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116   exit 1
117 fi
118
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there.  '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # CDPATH.
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142   emulate sh
143   NULLCMD=:
144   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145   # is contrary to our usage.  Disable this feature.
146   alias -g '\${1+\"\$@\"}'='\"\$@\"'
147   setopt NO_GLOB_SUBST
148 else
149   case \`(set -o) 2>/dev/null\` in #(
150   *posix*) :
151     set -o posix ;; #(
152   *) :
153      ;;
154 esac
155 fi
156 "
157   as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
162
163 exitcode=0
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
170 else
171   exitcode=1; echo positional parameters were not saved.
172 fi
173 test x\$exitcode = x0 || exit 1"
174   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1
179
180   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
181     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
184     PATH=/empty FPATH=/empty; export PATH FPATH
185     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
186       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
187   if (eval "$as_required") 2>/dev/null; then :
188   as_have_required=yes
189 else
190   as_have_required=no
191 fi
192   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193
194 else
195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 as_found=false
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 do
199   IFS=$as_save_IFS
200   test -z "$as_dir" && as_dir=.
201   as_found=:
202   case $as_dir in #(
203          /*)
204            for as_base in sh bash ksh sh5; do
205              # Try only shells that exist, to save several forks.
206              as_shell=$as_dir/$as_base
207              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
208                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
209   CONFIG_SHELL=$as_shell as_have_required=yes
210                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211   break 2
212 fi
213 fi
214            done;;
215        esac
216   as_found=false
217 done
218 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
219               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
220   CONFIG_SHELL=$SHELL as_have_required=yes
221 fi; }
222 IFS=$as_save_IFS
223
224
225       if test "x$CONFIG_SHELL" != x; then :
226   # We cannot yet assume a decent shell, so we have to provide a
227         # neutralization value for shells without unset; and this also
228         # works around shells that cannot unset nonexistent variables.
229         # Preserve -v and -x to the replacement shell.
230         BASH_ENV=/dev/null
231         ENV=/dev/null
232         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
233         export CONFIG_SHELL
234         case $- in # ((((
235           *v*x* | *x*v* ) as_opts=-vx ;;
236           *v* ) as_opts=-v ;;
237           *x* ) as_opts=-x ;;
238           * ) as_opts= ;;
239         esac
240         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
241 fi
242
243     if test x$as_have_required = xno; then :
244   $as_echo "$0: This script requires a shell more modern than all"
245   $as_echo "$0: the shells that I found on your system."
246   if test x${ZSH_VERSION+set} = xset ; then
247     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
248     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249   else
250     $as_echo "$0: Please tell bug-autoconf@gnu.org and des@des.no about
251 $0: your system, including any error possibly output before
252 $0: this message. Then install a modern shell, or manually
253 $0: run the script under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='OpenPAM'
572 PACKAGE_TARNAME='openpam'
573 PACKAGE_VERSION='20120526'
574 PACKAGE_STRING='OpenPAM 20120526'
575 PACKAGE_BUGREPORT='des@des.no'
576 PACKAGE_URL=''
577
578 ac_unique_file="lib/pam_start.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 CRYPT_LIBS
620 DL_LIBS
621 WITH_SU_FALSE
622 WITH_SU_TRUE
623 WITH_PAMTEST_FALSE
624 WITH_PAMTEST_TRUE
625 WITH_PAM_UNIX_FALSE
626 WITH_PAM_UNIX_TRUE
627 WITH_DOC_FALSE
628 WITH_DOC_TRUE
629 OPENPAM_MODULES_DIR
630 LIB_MAJ
631 OTOOL64
632 OTOOL
633 LIPO
634 NMEDIT
635 DSYMUTIL
636 MANIFEST_TOOL
637 RANLIB
638 ac_ct_AR
639 AR
640 DLLTOOL
641 OBJDUMP
642 LN_S
643 NM
644 ac_ct_DUMPBIN
645 DUMPBIN
646 LD
647 FGREP
648 SED
649 host_os
650 host_vendor
651 host_cpu
652 host
653 build_os
654 build_vendor
655 build_cpu
656 build
657 LIBTOOL
658 EGREP
659 GREP
660 CPP
661 am__fastdepCC_FALSE
662 am__fastdepCC_TRUE
663 CCDEPMODE
664 AMDEPBACKSLASH
665 AMDEP_FALSE
666 AMDEP_TRUE
667 am__quote
668 am__include
669 DEPDIR
670 OBJEXT
671 EXEEXT
672 ac_ct_CC
673 CPPFLAGS
674 LDFLAGS
675 CFLAGS
676 CC
677 am__untar
678 am__tar
679 AMTAR
680 am__leading_dot
681 SET_MAKE
682 AWK
683 mkdir_p
684 MKDIR_P
685 INSTALL_STRIP_PROGRAM
686 STRIP
687 install_sh
688 MAKEINFO
689 AUTOHEADER
690 AUTOMAKE
691 AUTOCONF
692 ACLOCAL
693 VERSION
694 PACKAGE
695 CYGPATH_W
696 am__isrc
697 INSTALL_DATA
698 INSTALL_SCRIPT
699 INSTALL_PROGRAM
700 target_alias
701 host_alias
702 build_alias
703 LIBS
704 ECHO_T
705 ECHO_N
706 ECHO_C
707 DEFS
708 mandir
709 localedir
710 libdir
711 psdir
712 pdfdir
713 dvidir
714 htmldir
715 infodir
716 docdir
717 oldincludedir
718 includedir
719 localstatedir
720 sharedstatedir
721 sysconfdir
722 datadir
723 datarootdir
724 libexecdir
725 sbindir
726 bindir
727 program_transform_name
728 prefix
729 exec_prefix
730 PACKAGE_URL
731 PACKAGE_BUGREPORT
732 PACKAGE_STRING
733 PACKAGE_VERSION
734 PACKAGE_TARNAME
735 PACKAGE_NAME
736 PATH_SEPARATOR
737 SHELL'
738 ac_subst_files=''
739 ac_user_opts='
740 enable_option_checking
741 enable_dependency_tracking
742 enable_static
743 enable_shared
744 with_pic
745 enable_fast_install
746 with_gnu_ld
747 with_sysroot
748 enable_libtool_lock
749 enable_debug
750 enable_unversioned_modules
751 with_modules_dir
752 with_doc
753 with_pam_unix
754 with_pamtest
755 with_su
756 enable_developer_warnings
757 enable_debugging_symbols
758 enable_werror
759 '
760       ac_precious_vars='build_alias
761 host_alias
762 target_alias
763 CC
764 CFLAGS
765 LDFLAGS
766 LIBS
767 CPPFLAGS
768 CPP'
769
770
771 # Initialize some variables set by options.
772 ac_init_help=
773 ac_init_version=false
774 ac_unrecognized_opts=
775 ac_unrecognized_sep=
776 # The variables have the same names as the options, with
777 # dashes changed to underlines.
778 cache_file=/dev/null
779 exec_prefix=NONE
780 no_create=
781 no_recursion=
782 prefix=NONE
783 program_prefix=NONE
784 program_suffix=NONE
785 program_transform_name=s,x,x,
786 silent=
787 site=
788 srcdir=
789 verbose=
790 x_includes=NONE
791 x_libraries=NONE
792
793 # Installation directory options.
794 # These are left unexpanded so users can "make install exec_prefix=/foo"
795 # and all the variables that are supposed to be based on exec_prefix
796 # by default will actually change.
797 # Use braces instead of parens because sh, perl, etc. also accept them.
798 # (The list follows the same order as the GNU Coding Standards.)
799 bindir='${exec_prefix}/bin'
800 sbindir='${exec_prefix}/sbin'
801 libexecdir='${exec_prefix}/libexec'
802 datarootdir='${prefix}/share'
803 datadir='${datarootdir}'
804 sysconfdir='${prefix}/etc'
805 sharedstatedir='${prefix}/com'
806 localstatedir='${prefix}/var'
807 includedir='${prefix}/include'
808 oldincludedir='/usr/include'
809 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
810 infodir='${datarootdir}/info'
811 htmldir='${docdir}'
812 dvidir='${docdir}'
813 pdfdir='${docdir}'
814 psdir='${docdir}'
815 libdir='${exec_prefix}/lib'
816 localedir='${datarootdir}/locale'
817 mandir='${datarootdir}/man'
818
819 ac_prev=
820 ac_dashdash=
821 for ac_option
822 do
823   # If the previous option needs an argument, assign it.
824   if test -n "$ac_prev"; then
825     eval $ac_prev=\$ac_option
826     ac_prev=
827     continue
828   fi
829
830   case $ac_option in
831   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
832   *=)   ac_optarg= ;;
833   *)    ac_optarg=yes ;;
834   esac
835
836   # Accept the important Cygnus configure options, so we can diagnose typos.
837
838   case $ac_dashdash$ac_option in
839   --)
840     ac_dashdash=yes ;;
841
842   -bindir | --bindir | --bindi | --bind | --bin | --bi)
843     ac_prev=bindir ;;
844   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845     bindir=$ac_optarg ;;
846
847   -build | --build | --buil | --bui | --bu)
848     ac_prev=build_alias ;;
849   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850     build_alias=$ac_optarg ;;
851
852   -cache-file | --cache-file | --cache-fil | --cache-fi \
853   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854     ac_prev=cache_file ;;
855   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857     cache_file=$ac_optarg ;;
858
859   --config-cache | -C)
860     cache_file=config.cache ;;
861
862   -datadir | --datadir | --datadi | --datad)
863     ac_prev=datadir ;;
864   -datadir=* | --datadir=* | --datadi=* | --datad=*)
865     datadir=$ac_optarg ;;
866
867   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868   | --dataroo | --dataro | --datar)
869     ac_prev=datarootdir ;;
870   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872     datarootdir=$ac_optarg ;;
873
874   -disable-* | --disable-*)
875     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876     # Reject names that are not valid shell variable names.
877     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878       as_fn_error $? "invalid feature name: $ac_useropt"
879     ac_useropt_orig=$ac_useropt
880     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881     case $ac_user_opts in
882       *"
883 "enable_$ac_useropt"
884 "*) ;;
885       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886          ac_unrecognized_sep=', ';;
887     esac
888     eval enable_$ac_useropt=no ;;
889
890   -docdir | --docdir | --docdi | --doc | --do)
891     ac_prev=docdir ;;
892   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893     docdir=$ac_optarg ;;
894
895   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896     ac_prev=dvidir ;;
897   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898     dvidir=$ac_optarg ;;
899
900   -enable-* | --enable-*)
901     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902     # Reject names that are not valid shell variable names.
903     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904       as_fn_error $? "invalid feature name: $ac_useropt"
905     ac_useropt_orig=$ac_useropt
906     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907     case $ac_user_opts in
908       *"
909 "enable_$ac_useropt"
910 "*) ;;
911       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912          ac_unrecognized_sep=', ';;
913     esac
914     eval enable_$ac_useropt=\$ac_optarg ;;
915
916   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918   | --exec | --exe | --ex)
919     ac_prev=exec_prefix ;;
920   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922   | --exec=* | --exe=* | --ex=*)
923     exec_prefix=$ac_optarg ;;
924
925   -gas | --gas | --ga | --g)
926     # Obsolete; use --with-gas.
927     with_gas=yes ;;
928
929   -help | --help | --hel | --he | -h)
930     ac_init_help=long ;;
931   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932     ac_init_help=recursive ;;
933   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934     ac_init_help=short ;;
935
936   -host | --host | --hos | --ho)
937     ac_prev=host_alias ;;
938   -host=* | --host=* | --hos=* | --ho=*)
939     host_alias=$ac_optarg ;;
940
941   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942     ac_prev=htmldir ;;
943   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944   | --ht=*)
945     htmldir=$ac_optarg ;;
946
947   -includedir | --includedir | --includedi | --included | --include \
948   | --includ | --inclu | --incl | --inc)
949     ac_prev=includedir ;;
950   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951   | --includ=* | --inclu=* | --incl=* | --inc=*)
952     includedir=$ac_optarg ;;
953
954   -infodir | --infodir | --infodi | --infod | --info | --inf)
955     ac_prev=infodir ;;
956   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957     infodir=$ac_optarg ;;
958
959   -libdir | --libdir | --libdi | --libd)
960     ac_prev=libdir ;;
961   -libdir=* | --libdir=* | --libdi=* | --libd=*)
962     libdir=$ac_optarg ;;
963
964   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965   | --libexe | --libex | --libe)
966     ac_prev=libexecdir ;;
967   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968   | --libexe=* | --libex=* | --libe=*)
969     libexecdir=$ac_optarg ;;
970
971   -localedir | --localedir | --localedi | --localed | --locale)
972     ac_prev=localedir ;;
973   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974     localedir=$ac_optarg ;;
975
976   -localstatedir | --localstatedir | --localstatedi | --localstated \
977   | --localstate | --localstat | --localsta | --localst | --locals)
978     ac_prev=localstatedir ;;
979   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981     localstatedir=$ac_optarg ;;
982
983   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984     ac_prev=mandir ;;
985   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986     mandir=$ac_optarg ;;
987
988   -nfp | --nfp | --nf)
989     # Obsolete; use --without-fp.
990     with_fp=no ;;
991
992   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993   | --no-cr | --no-c | -n)
994     no_create=yes ;;
995
996   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998     no_recursion=yes ;;
999
1000   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002   | --oldin | --oldi | --old | --ol | --o)
1003     ac_prev=oldincludedir ;;
1004   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007     oldincludedir=$ac_optarg ;;
1008
1009   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010     ac_prev=prefix ;;
1011   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012     prefix=$ac_optarg ;;
1013
1014   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015   | --program-pre | --program-pr | --program-p)
1016     ac_prev=program_prefix ;;
1017   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019     program_prefix=$ac_optarg ;;
1020
1021   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022   | --program-suf | --program-su | --program-s)
1023     ac_prev=program_suffix ;;
1024   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026     program_suffix=$ac_optarg ;;
1027
1028   -program-transform-name | --program-transform-name \
1029   | --program-transform-nam | --program-transform-na \
1030   | --program-transform-n | --program-transform- \
1031   | --program-transform | --program-transfor \
1032   | --program-transfo | --program-transf \
1033   | --program-trans | --program-tran \
1034   | --progr-tra | --program-tr | --program-t)
1035     ac_prev=program_transform_name ;;
1036   -program-transform-name=* | --program-transform-name=* \
1037   | --program-transform-nam=* | --program-transform-na=* \
1038   | --program-transform-n=* | --program-transform-=* \
1039   | --program-transform=* | --program-transfor=* \
1040   | --program-transfo=* | --program-transf=* \
1041   | --program-trans=* | --program-tran=* \
1042   | --progr-tra=* | --program-tr=* | --program-t=*)
1043     program_transform_name=$ac_optarg ;;
1044
1045   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046     ac_prev=pdfdir ;;
1047   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048     pdfdir=$ac_optarg ;;
1049
1050   -psdir | --psdir | --psdi | --psd | --ps)
1051     ac_prev=psdir ;;
1052   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053     psdir=$ac_optarg ;;
1054
1055   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056   | -silent | --silent | --silen | --sile | --sil)
1057     silent=yes ;;
1058
1059   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060     ac_prev=sbindir ;;
1061   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062   | --sbi=* | --sb=*)
1063     sbindir=$ac_optarg ;;
1064
1065   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067   | --sharedst | --shareds | --shared | --share | --shar \
1068   | --sha | --sh)
1069     ac_prev=sharedstatedir ;;
1070   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073   | --sha=* | --sh=*)
1074     sharedstatedir=$ac_optarg ;;
1075
1076   -site | --site | --sit)
1077     ac_prev=site ;;
1078   -site=* | --site=* | --sit=*)
1079     site=$ac_optarg ;;
1080
1081   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082     ac_prev=srcdir ;;
1083   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084     srcdir=$ac_optarg ;;
1085
1086   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087   | --syscon | --sysco | --sysc | --sys | --sy)
1088     ac_prev=sysconfdir ;;
1089   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091     sysconfdir=$ac_optarg ;;
1092
1093   -target | --target | --targe | --targ | --tar | --ta | --t)
1094     ac_prev=target_alias ;;
1095   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096     target_alias=$ac_optarg ;;
1097
1098   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099     verbose=yes ;;
1100
1101   -version | --version | --versio | --versi | --vers | -V)
1102     ac_init_version=: ;;
1103
1104   -with-* | --with-*)
1105     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106     # Reject names that are not valid shell variable names.
1107     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108       as_fn_error $? "invalid package name: $ac_useropt"
1109     ac_useropt_orig=$ac_useropt
1110     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111     case $ac_user_opts in
1112       *"
1113 "with_$ac_useropt"
1114 "*) ;;
1115       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116          ac_unrecognized_sep=', ';;
1117     esac
1118     eval with_$ac_useropt=\$ac_optarg ;;
1119
1120   -without-* | --without-*)
1121     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122     # Reject names that are not valid shell variable names.
1123     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124       as_fn_error $? "invalid package name: $ac_useropt"
1125     ac_useropt_orig=$ac_useropt
1126     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127     case $ac_user_opts in
1128       *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132          ac_unrecognized_sep=', ';;
1133     esac
1134     eval with_$ac_useropt=no ;;
1135
1136   --x)
1137     # Obsolete; use --with-x.
1138     with_x=yes ;;
1139
1140   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141   | --x-incl | --x-inc | --x-in | --x-i)
1142     ac_prev=x_includes ;;
1143   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145     x_includes=$ac_optarg ;;
1146
1147   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149     ac_prev=x_libraries ;;
1150   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152     x_libraries=$ac_optarg ;;
1153
1154   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information"
1156     ;;
1157
1158   *=*)
1159     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160     # Reject names that are not valid shell variable names.
1161     case $ac_envvar in #(
1162       '' | [0-9]* | *[!_$as_cr_alnum]* )
1163       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1164     esac
1165     eval $ac_envvar=\$ac_optarg
1166     export $ac_envvar ;;
1167
1168   *)
1169     # FIXME: should be removed in autoconf 3.0.
1170     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1174     ;;
1175
1176   esac
1177 done
1178
1179 if test -n "$ac_prev"; then
1180   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181   as_fn_error $? "missing argument to $ac_option"
1182 fi
1183
1184 if test -n "$ac_unrecognized_opts"; then
1185   case $enable_option_checking in
1186     no) ;;
1187     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1188     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189   esac
1190 fi
1191
1192 # Check all directory arguments for consistency.
1193 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194                 datadir sysconfdir sharedstatedir localstatedir includedir \
1195                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196                 libdir localedir mandir
1197 do
1198   eval ac_val=\$$ac_var
1199   # Remove trailing slashes.
1200   case $ac_val in
1201     */ )
1202       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203       eval $ac_var=\$ac_val;;
1204   esac
1205   # Be sure to have absolute directory names.
1206   case $ac_val in
1207     [\\/$]* | ?:[\\/]* )  continue;;
1208     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209   esac
1210   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1212
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1219
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222   if test "x$build_alias" = x; then
1223     cross_compiling=maybe
1224     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1225     If a cross compiler is detected then cross compile mode will be used" >&2
1226   elif test "x$build_alias" != "x$host_alias"; then
1227     cross_compiling=yes
1228   fi
1229 fi
1230
1231 ac_tool_prefix=
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234 test "$silent" = yes && exec 6>/dev/null
1235
1236
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240   as_fn_error $? "working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242   as_fn_error $? "pwd does not report name of working directory"
1243
1244
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247   ac_srcdir_defaulted=yes
1248   # Try the directory containing this script, then the parent directory.
1249   ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251          X"$as_myself" : 'X\(//\)[^/]' \| \
1252          X"$as_myself" : 'X\(//\)$' \| \
1253          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\/\)[^/].*/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\).*/{
1268             s//\1/
1269             q
1270           }
1271           s/.*/./; q'`
1272   srcdir=$ac_confdir
1273   if test ! -r "$srcdir/$ac_unique_file"; then
1274     srcdir=..
1275   fi
1276 else
1277   ac_srcdir_defaulted=no
1278 fi
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1282 fi
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 ac_abs_confdir=`(
1285         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1286         pwd)`
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289   srcdir=.
1290 fi
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1294 case $srcdir in
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 esac
1297 for ac_var in $ac_precious_vars; do
1298   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299   eval ac_env_${ac_var}_value=\$${ac_var}
1300   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302 done
1303
1304 #
1305 # Report the --help message.
1306 #
1307 if test "$ac_init_help" = "long"; then
1308   # Omit some internal or obsolete options to make the list less imposing.
1309   # This message is too long to be a string in the A/UX 3.1 sh.
1310   cat <<_ACEOF
1311 \`configure' configures OpenPAM 20120526 to adapt to many kinds of systems.
1312
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE.  See below for descriptions of some of the useful variables.
1317
1318 Defaults for the options are specified in brackets.
1319
1320 Configuration:
1321   -h, --help              display this help and exit
1322       --help=short        display options specific to this package
1323       --help=recursive    display the short help of all the included packages
1324   -V, --version           display version information and exit
1325   -q, --quiet, --silent   do not print \`checking ...' messages
1326       --cache-file=FILE   cache test results in FILE [disabled]
1327   -C, --config-cache      alias for \`--cache-file=config.cache'
1328   -n, --no-create         do not create output files
1329       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1330
1331 Installation directories:
1332   --prefix=PREFIX         install architecture-independent files in PREFIX
1333                           [$ac_default_prefix]
1334   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1335                           [PREFIX]
1336
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1341
1342 For better control, use the options below.
1343
1344 Fine tuning of the installation directories:
1345   --bindir=DIR            user executables [EPREFIX/bin]
1346   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1347   --libexecdir=DIR        program executables [EPREFIX/libexec]
1348   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1349   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1350   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1351   --libdir=DIR            object code libraries [EPREFIX/lib]
1352   --includedir=DIR        C header files [PREFIX/include]
1353   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1354   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1355   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1356   --infodir=DIR           info documentation [DATAROOTDIR/info]
1357   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1358   --mandir=DIR            man documentation [DATAROOTDIR/man]
1359   --docdir=DIR            documentation root [DATAROOTDIR/doc/openpam]
1360   --htmldir=DIR           html documentation [DOCDIR]
1361   --dvidir=DIR            dvi documentation [DOCDIR]
1362   --pdfdir=DIR            pdf documentation [DOCDIR]
1363   --psdir=DIR             ps documentation [DOCDIR]
1364 _ACEOF
1365
1366   cat <<\_ACEOF
1367
1368 Program names:
1369   --program-prefix=PREFIX            prepend PREFIX to installed program names
1370   --program-suffix=SUFFIX            append SUFFIX to installed program names
1371   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1372
1373 System types:
1374   --build=BUILD     configure for building on BUILD [guessed]
1375   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1376 _ACEOF
1377 fi
1378
1379 if test -n "$ac_init_help"; then
1380   case $ac_init_help in
1381      short | recursive ) echo "Configuration of OpenPAM 20120526:";;
1382    esac
1383   cat <<\_ACEOF
1384
1385 Optional Features:
1386   --disable-option-checking  ignore unrecognized --enable/--with options
1387   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1388   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1389   --disable-dependency-tracking  speeds up one-time build
1390   --enable-dependency-tracking   do not reject slow dependency extractors
1391   --enable-static[=PKGS]  build static libraries [default=no]
1392   --enable-shared[=PKGS]  build shared libraries [default=yes]
1393   --enable-fast-install[=PKGS]
1394                           optimize for fast installation [default=yes]
1395   --disable-libtool-lock  avoid locking (might break parallel builds)
1396   --enable-debug          turn debugging on by default
1397   --disable-unversioned-modules
1398                           support loading of unversioned modules
1399   --enable-developer-warnings
1400                           enable strict warnings (default is NO)
1401   --enable-debugging-symbols
1402                           enable debugging symbols (default is NO)
1403   --enable-werror         use -Werror (default is NO)
1404
1405 Optional Packages:
1406   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1407   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1408   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1409                           both]
1410   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1411   --with-sysroot=DIR Search for dependent libraries within DIR
1412                         (or the compiler's sysroot if not specified).
1413   --with-modules-dir=DIR  OpenPAM modules directory
1414   --without-doc           do not build documentation
1415   --with-pam-unix         compile sample pam_unix(8) implementation
1416   --with-pamtest          compile test application
1417   --with-su               compile sample su(1) implementation
1418
1419 Some influential environment variables:
1420   CC          C compiler command
1421   CFLAGS      C compiler flags
1422   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1423               nonstandard directory <lib dir>
1424   LIBS        libraries to pass to the linker, e.g. -l<library>
1425   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1426               you have headers in a nonstandard directory <include dir>
1427   CPP         C preprocessor
1428
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1431
1432 Report bugs to <des@des.no>.
1433 _ACEOF
1434 ac_status=$?
1435 fi
1436
1437 if test "$ac_init_help" = "recursive"; then
1438   # If there are subdirs, report their specific --help.
1439   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440     test -d "$ac_dir" ||
1441       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1442       continue
1443     ac_builddir=.
1444
1445 case "$ac_dir" in
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *)
1448   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1449   # A ".." for each directory in $ac_dir_suffix.
1450   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1451   case $ac_top_builddir_sub in
1452   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454   esac ;;
1455 esac
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1460
1461 case $srcdir in
1462   .)  # We are building in place.
1463     ac_srcdir=.
1464     ac_top_srcdir=$ac_top_builddir_sub
1465     ac_abs_top_srcdir=$ac_pwd ;;
1466   [\\/]* | ?:[\\/]* )  # Absolute name.
1467     ac_srcdir=$srcdir$ac_dir_suffix;
1468     ac_top_srcdir=$srcdir
1469     ac_abs_top_srcdir=$srcdir ;;
1470   *) # Relative name.
1471     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472     ac_top_srcdir=$ac_top_build_prefix$srcdir
1473     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 esac
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477     cd "$ac_dir" || { ac_status=$?; continue; }
1478     # Check for guested configure.
1479     if test -f "$ac_srcdir/configure.gnu"; then
1480       echo &&
1481       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482     elif test -f "$ac_srcdir/configure"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure" --help=recursive
1485     else
1486       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487     fi || ac_status=$?
1488     cd "$ac_pwd" || { ac_status=$?; break; }
1489   done
1490 fi
1491
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1494   cat <<\_ACEOF
1495 OpenPAM configure 20120526
1496 generated by GNU Autoconf 2.68
1497
1498 Copyright (C) 2010 Free Software Foundation, Inc.
1499 This configure script is free software; the Free Software Foundation
1500 gives unlimited permission to copy, distribute and modify it.
1501 _ACEOF
1502   exit
1503 fi
1504
1505 ## ------------------------ ##
1506 ## Autoconf initialization. ##
1507 ## ------------------------ ##
1508
1509 # ac_fn_c_try_compile LINENO
1510 # --------------------------
1511 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1512 ac_fn_c_try_compile ()
1513 {
1514   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515   rm -f conftest.$ac_objext
1516   if { { ac_try="$ac_compile"
1517 case "(($ac_try" in
1518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1519   *) ac_try_echo=$ac_try;;
1520 esac
1521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1522 $as_echo "$ac_try_echo"; } >&5
1523   (eval "$ac_compile") 2>conftest.err
1524   ac_status=$?
1525   if test -s conftest.err; then
1526     grep -v '^ *+' conftest.err >conftest.er1
1527     cat conftest.er1 >&5
1528     mv -f conftest.er1 conftest.err
1529   fi
1530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1531   test $ac_status = 0; } && {
1532          test -z "$ac_c_werror_flag" ||
1533          test ! -s conftest.err
1534        } && test -s conftest.$ac_objext; then :
1535   ac_retval=0
1536 else
1537   $as_echo "$as_me: failed program was:" >&5
1538 sed 's/^/| /' conftest.$ac_ext >&5
1539
1540         ac_retval=1
1541 fi
1542   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543   as_fn_set_status $ac_retval
1544
1545 } # ac_fn_c_try_compile
1546
1547 # ac_fn_c_try_cpp LINENO
1548 # ----------------------
1549 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1550 ac_fn_c_try_cpp ()
1551 {
1552   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553   if { { ac_try="$ac_cpp conftest.$ac_ext"
1554 case "(($ac_try" in
1555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556   *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1561   ac_status=$?
1562   if test -s conftest.err; then
1563     grep -v '^ *+' conftest.err >conftest.er1
1564     cat conftest.er1 >&5
1565     mv -f conftest.er1 conftest.err
1566   fi
1567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568   test $ac_status = 0; } > conftest.i && {
1569          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1570          test ! -s conftest.err
1571        }; then :
1572   ac_retval=0
1573 else
1574   $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577     ac_retval=1
1578 fi
1579   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580   as_fn_set_status $ac_retval
1581
1582 } # ac_fn_c_try_cpp
1583
1584 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1585 # -------------------------------------------------------
1586 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1587 # the include files in INCLUDES and setting the cache variable VAR
1588 # accordingly.
1589 ac_fn_c_check_header_mongrel ()
1590 {
1591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592   if eval \${$3+:} false; then :
1593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1594 $as_echo_n "checking for $2... " >&6; }
1595 if eval \${$3+:} false; then :
1596   $as_echo_n "(cached) " >&6
1597 fi
1598 eval ac_res=\$$3
1599                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600 $as_echo "$ac_res" >&6; }
1601 else
1602   # Is the header compilable?
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1604 $as_echo_n "checking $2 usability... " >&6; }
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h.  */
1607 $4
1608 #include <$2>
1609 _ACEOF
1610 if ac_fn_c_try_compile "$LINENO"; then :
1611   ac_header_compiler=yes
1612 else
1613   ac_header_compiler=no
1614 fi
1615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1617 $as_echo "$ac_header_compiler" >&6; }
1618
1619 # Is the header present?
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1621 $as_echo_n "checking $2 presence... " >&6; }
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h.  */
1624 #include <$2>
1625 _ACEOF
1626 if ac_fn_c_try_cpp "$LINENO"; then :
1627   ac_header_preproc=yes
1628 else
1629   ac_header_preproc=no
1630 fi
1631 rm -f conftest.err conftest.i conftest.$ac_ext
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1633 $as_echo "$ac_header_preproc" >&6; }
1634
1635 # So?  What about this header?
1636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1637   yes:no: )
1638     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1639 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1640     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1641 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1642     ;;
1643   no:yes:* )
1644     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1645 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1646     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1647 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1648     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1649 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1650     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1651 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1652     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1653 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1654 ( $as_echo "## ------------------------- ##
1655 ## Report this to des@des.no ##
1656 ## ------------------------- ##"
1657      ) | sed "s/^/$as_me: WARNING:     /" >&2
1658     ;;
1659 esac
1660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if eval \${$3+:} false; then :
1663   $as_echo_n "(cached) " >&6
1664 else
1665   eval "$3=\$ac_header_compiler"
1666 fi
1667 eval ac_res=\$$3
1668                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1670 fi
1671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672
1673 } # ac_fn_c_check_header_mongrel
1674
1675 # ac_fn_c_try_run LINENO
1676 # ----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1678 # that executables *can* be run.
1679 ac_fn_c_try_run ()
1680 {
1681   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682   if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685   *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689   (eval "$ac_link") 2>&5
1690   ac_status=$?
1691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1693   { { case "(($ac_try" in
1694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695   *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699   (eval "$ac_try") 2>&5
1700   ac_status=$?
1701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702   test $ac_status = 0; }; }; then :
1703   ac_retval=0
1704 else
1705   $as_echo "$as_me: program exited with status $ac_status" >&5
1706        $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709        ac_retval=$ac_status
1710 fi
1711   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713   as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_run
1716
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1722 {
1723   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727   $as_echo_n "(cached) " >&6
1728 else
1729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h.  */
1731 $4
1732 #include <$2>
1733 _ACEOF
1734 if ac_fn_c_try_compile "$LINENO"; then :
1735   eval "$3=yes"
1736 else
1737   eval "$3=no"
1738 fi
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 fi
1741 eval ac_res=\$$3
1742                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746 } # ac_fn_c_check_header_compile
1747
1748 # ac_fn_c_try_link LINENO
1749 # -----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_c_try_link ()
1752 {
1753   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754   rm -f conftest.$ac_objext conftest$ac_exeext
1755   if { { ac_try="$ac_link"
1756 case "(($ac_try" in
1757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758   *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762   (eval "$ac_link") 2>conftest.err
1763   ac_status=$?
1764   if test -s conftest.err; then
1765     grep -v '^ *+' conftest.err >conftest.er1
1766     cat conftest.er1 >&5
1767     mv -f conftest.er1 conftest.err
1768   fi
1769   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770   test $ac_status = 0; } && {
1771          test -z "$ac_c_werror_flag" ||
1772          test ! -s conftest.err
1773        } && test -s conftest$ac_exeext && {
1774          test "$cross_compiling" = yes ||
1775          $as_test_x conftest$ac_exeext
1776        }; then :
1777   ac_retval=0
1778 else
1779   $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1781
1782         ac_retval=1
1783 fi
1784   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1785   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1786   # interfere with the next link command; also delete a directory that is
1787   # left behind by Apple's compiler.  We do this before executing the actions.
1788   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790   as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_link
1793
1794 # ac_fn_c_check_func LINENO FUNC VAR
1795 # ----------------------------------
1796 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1797 ac_fn_c_check_func ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803   $as_echo_n "(cached) " >&6
1804 else
1805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h.  */
1807 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1809 #define $2 innocuous_$2
1810
1811 /* System header to define __stub macros and hopefully few prototypes,
1812     which can conflict with char $2 (); below.
1813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1814     <limits.h> exists even on freestanding compilers.  */
1815
1816 #ifdef __STDC__
1817 # include <limits.h>
1818 #else
1819 # include <assert.h>
1820 #endif
1821
1822 #undef $2
1823
1824 /* Override any GCC internal prototype to avoid an error.
1825    Use char because int might match the return type of a GCC
1826    builtin and then its argument prototype would still apply.  */
1827 #ifdef __cplusplus
1828 extern "C"
1829 #endif
1830 char $2 ();
1831 /* The GNU C library defines this for functions which it implements
1832     to always fail with ENOSYS.  Some functions are actually named
1833     something starting with __ and the normal name is an alias.  */
1834 #if defined __stub_$2 || defined __stub___$2
1835 choke me
1836 #endif
1837
1838 int
1839 main ()
1840 {
1841 return $2 ();
1842   ;
1843   return 0;
1844 }
1845 _ACEOF
1846 if ac_fn_c_try_link "$LINENO"; then :
1847   eval "$3=yes"
1848 else
1849   eval "$3=no"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext \
1852     conftest$ac_exeext conftest.$ac_ext
1853 fi
1854 eval ac_res=\$$3
1855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_func
1860 cat >config.log <<_ACEOF
1861 This file contains any messages produced by compilers while
1862 running configure, to aid debugging if configure makes a mistake.
1863
1864 It was created by OpenPAM $as_me 20120526, which was
1865 generated by GNU Autoconf 2.68.  Invocation command line was
1866
1867   $ $0 $@
1868
1869 _ACEOF
1870 exec 5>>config.log
1871 {
1872 cat <<_ASUNAME
1873 ## --------- ##
1874 ## Platform. ##
1875 ## --------- ##
1876
1877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1882
1883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1885
1886 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1887 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1890 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1891 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1892 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1893
1894 _ASUNAME
1895
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
1899   IFS=$as_save_IFS
1900   test -z "$as_dir" && as_dir=.
1901     $as_echo "PATH: $as_dir"
1902   done
1903 IFS=$as_save_IFS
1904
1905 } >&5
1906
1907 cat >&5 <<_ACEOF
1908
1909
1910 ## ----------- ##
1911 ## Core tests. ##
1912 ## ----------- ##
1913
1914 _ACEOF
1915
1916
1917 # Keep a trace of the command line.
1918 # Strip out --no-create and --no-recursion so they do not pile up.
1919 # Strip out --silent because we don't want to record it for future runs.
1920 # Also quote any args containing shell meta-characters.
1921 # Make two passes to allow for proper duplicate-argument suppression.
1922 ac_configure_args=
1923 ac_configure_args0=
1924 ac_configure_args1=
1925 ac_must_keep_next=false
1926 for ac_pass in 1 2
1927 do
1928   for ac_arg
1929   do
1930     case $ac_arg in
1931     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1932     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1933     | -silent | --silent | --silen | --sile | --sil)
1934       continue ;;
1935     *\'*)
1936       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1937     esac
1938     case $ac_pass in
1939     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1940     2)
1941       as_fn_append ac_configure_args1 " '$ac_arg'"
1942       if test $ac_must_keep_next = true; then
1943         ac_must_keep_next=false # Got value, back to normal.
1944       else
1945         case $ac_arg in
1946           *=* | --config-cache | -C | -disable-* | --disable-* \
1947           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1948           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1949           | -with-* | --with-* | -without-* | --without-* | --x)
1950             case "$ac_configure_args0 " in
1951               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1952             esac
1953             ;;
1954           -* ) ac_must_keep_next=true ;;
1955         esac
1956       fi
1957       as_fn_append ac_configure_args " '$ac_arg'"
1958       ;;
1959     esac
1960   done
1961 done
1962 { ac_configure_args0=; unset ac_configure_args0;}
1963 { ac_configure_args1=; unset ac_configure_args1;}
1964
1965 # When interrupted or exit'd, cleanup temporary files, and complete
1966 # config.log.  We remove comments because anyway the quotes in there
1967 # would cause problems or look ugly.
1968 # WARNING: Use '\'' to represent an apostrophe within the trap.
1969 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1970 trap 'exit_status=$?
1971   # Save into config.log some information that might help in debugging.
1972   {
1973     echo
1974
1975     $as_echo "## ---------------- ##
1976 ## Cache variables. ##
1977 ## ---------------- ##"
1978     echo
1979     # The following way of writing the cache mishandles newlines in values,
1980 (
1981   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1982     eval ac_val=\$$ac_var
1983     case $ac_val in #(
1984     *${as_nl}*)
1985       case $ac_var in #(
1986       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1987 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1988       esac
1989       case $ac_var in #(
1990       _ | IFS | as_nl) ;; #(
1991       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1992       *) { eval $ac_var=; unset $ac_var;} ;;
1993       esac ;;
1994     esac
1995   done
1996   (set) 2>&1 |
1997     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1998     *${as_nl}ac_space=\ *)
1999       sed -n \
2000         "s/'\''/'\''\\\\'\'''\''/g;
2001           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2002       ;; #(
2003     *)
2004       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2005       ;;
2006     esac |
2007     sort
2008 )
2009     echo
2010
2011     $as_echo "## ----------------- ##
2012 ## Output variables. ##
2013 ## ----------------- ##"
2014     echo
2015     for ac_var in $ac_subst_vars
2016     do
2017       eval ac_val=\$$ac_var
2018       case $ac_val in
2019       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020       esac
2021       $as_echo "$ac_var='\''$ac_val'\''"
2022     done | sort
2023     echo
2024
2025     if test -n "$ac_subst_files"; then
2026       $as_echo "## ------------------- ##
2027 ## File substitutions. ##
2028 ## ------------------- ##"
2029       echo
2030       for ac_var in $ac_subst_files
2031       do
2032         eval ac_val=\$$ac_var
2033         case $ac_val in
2034         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035         esac
2036         $as_echo "$ac_var='\''$ac_val'\''"
2037       done | sort
2038       echo
2039     fi
2040
2041     if test -s confdefs.h; then
2042       $as_echo "## ----------- ##
2043 ## confdefs.h. ##
2044 ## ----------- ##"
2045       echo
2046       cat confdefs.h
2047       echo
2048     fi
2049     test "$ac_signal" != 0 &&
2050       $as_echo "$as_me: caught signal $ac_signal"
2051     $as_echo "$as_me: exit $exit_status"
2052   } >&5
2053   rm -f core *.core core.conftest.* &&
2054     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2055     exit $exit_status
2056 ' 0
2057 for ac_signal in 1 2 13 15; do
2058   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2059 done
2060 ac_signal=0
2061
2062 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2063 rm -f -r conftest* confdefs.h
2064
2065 $as_echo "/* confdefs.h */" > confdefs.h
2066
2067 # Predefined preprocessor variables.
2068
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_NAME "$PACKAGE_NAME"
2071 _ACEOF
2072
2073 cat >>confdefs.h <<_ACEOF
2074 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2075 _ACEOF
2076
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2079 _ACEOF
2080
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_STRING "$PACKAGE_STRING"
2083 _ACEOF
2084
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2087 _ACEOF
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_URL "$PACKAGE_URL"
2091 _ACEOF
2092
2093
2094 # Let the site file select an alternate cache file if it wants to.
2095 # Prefer an explicitly selected file to automatically selected ones.
2096 ac_site_file1=NONE
2097 ac_site_file2=NONE
2098 if test -n "$CONFIG_SITE"; then
2099   # We do not want a PATH search for config.site.
2100   case $CONFIG_SITE in #((
2101     -*)  ac_site_file1=./$CONFIG_SITE;;
2102     */*) ac_site_file1=$CONFIG_SITE;;
2103     *)   ac_site_file1=./$CONFIG_SITE;;
2104   esac
2105 elif test "x$prefix" != xNONE; then
2106   ac_site_file1=$prefix/share/config.site
2107   ac_site_file2=$prefix/etc/config.site
2108 else
2109   ac_site_file1=$ac_default_prefix/share/config.site
2110   ac_site_file2=$ac_default_prefix/etc/config.site
2111 fi
2112 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2113 do
2114   test "x$ac_site_file" = xNONE && continue
2115   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2116     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2117 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2118     sed 's/^/| /' "$ac_site_file" >&5
2119     . "$ac_site_file" \
2120       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2122 as_fn_error $? "failed to load site script $ac_site_file
2123 See \`config.log' for more details" "$LINENO" 5; }
2124   fi
2125 done
2126
2127 if test -r "$cache_file"; then
2128   # Some versions of bash will fail to source /dev/null (special files
2129   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2130   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2131     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2132 $as_echo "$as_me: loading cache $cache_file" >&6;}
2133     case $cache_file in
2134       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2135       *)                      . "./$cache_file";;
2136     esac
2137   fi
2138 else
2139   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2140 $as_echo "$as_me: creating cache $cache_file" >&6;}
2141   >$cache_file
2142 fi
2143
2144 # Check that the precious variables saved in the cache have kept the same
2145 # value.
2146 ac_cache_corrupted=false
2147 for ac_var in $ac_precious_vars; do
2148   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2149   eval ac_new_set=\$ac_env_${ac_var}_set
2150   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2151   eval ac_new_val=\$ac_env_${ac_var}_value
2152   case $ac_old_set,$ac_new_set in
2153     set,)
2154       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2155 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2156       ac_cache_corrupted=: ;;
2157     ,set)
2158       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2159 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2160       ac_cache_corrupted=: ;;
2161     ,);;
2162     *)
2163       if test "x$ac_old_val" != "x$ac_new_val"; then
2164         # differences in whitespace do not lead to failure.
2165         ac_old_val_w=`echo x $ac_old_val`
2166         ac_new_val_w=`echo x $ac_new_val`
2167         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2168           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2169 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2170           ac_cache_corrupted=:
2171         else
2172           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2173 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2174           eval $ac_var=\$ac_old_val
2175         fi
2176         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2177 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2178         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2179 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2180       fi;;
2181   esac
2182   # Pass precious variables to config.status.
2183   if test "$ac_new_set" = set; then
2184     case $ac_new_val in
2185     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2186     *) ac_arg=$ac_var=$ac_new_val ;;
2187     esac
2188     case " $ac_configure_args " in
2189       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2190       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2191     esac
2192   fi
2193 done
2194 if $ac_cache_corrupted; then
2195   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2198 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2199   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2200 fi
2201 ## -------------------- ##
2202 ## Main body of script. ##
2203 ## -------------------- ##
2204
2205 ac_ext=c
2206 ac_cpp='$CPP $CPPFLAGS'
2207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210
2211
2212
2213
2214 am__api_version='1.11'
2215
2216 ac_aux_dir=
2217 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218   if test -f "$ac_dir/install-sh"; then
2219     ac_aux_dir=$ac_dir
2220     ac_install_sh="$ac_aux_dir/install-sh -c"
2221     break
2222   elif test -f "$ac_dir/install.sh"; then
2223     ac_aux_dir=$ac_dir
2224     ac_install_sh="$ac_aux_dir/install.sh -c"
2225     break
2226   elif test -f "$ac_dir/shtool"; then
2227     ac_aux_dir=$ac_dir
2228     ac_install_sh="$ac_aux_dir/shtool install -c"
2229     break
2230   fi
2231 done
2232 if test -z "$ac_aux_dir"; then
2233   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2234 fi
2235
2236 # These three variables are undocumented and unsupported,
2237 # and are intended to be withdrawn in a future Autoconf release.
2238 # They can cause serious problems if a builder's source tree is in a directory
2239 # whose full name contains unusual characters.
2240 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2241 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2242 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2243
2244
2245 # Find a good install program.  We prefer a C program (faster),
2246 # so one script is as good as another.  But avoid the broken or
2247 # incompatible versions:
2248 # SysV /etc/install, /usr/sbin/install
2249 # SunOS /usr/etc/install
2250 # IRIX /sbin/install
2251 # AIX /bin/install
2252 # AmigaOS /C/install, which installs bootblocks on floppy discs
2253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2256 # OS/2's system install, which has a completely different semantic
2257 # ./install, which can be erroneously created by make from ./install.sh.
2258 # Reject install programs that cannot install multiple files.
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2260 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2261 if test -z "$INSTALL"; then
2262 if ${ac_cv_path_install+:} false; then :
2263   $as_echo_n "(cached) " >&6
2264 else
2265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268   IFS=$as_save_IFS
2269   test -z "$as_dir" && as_dir=.
2270     # Account for people who put trailing slashes in PATH elements.
2271 case $as_dir/ in #((
2272   ./ | .// | /[cC]/* | \
2273   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2274   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2275   /usr/ucb/* ) ;;
2276   *)
2277     # OSF1 and SCO ODT 3.0 have their own names for install.
2278     # Don't use installbsd from OSF since it installs stuff as root
2279     # by default.
2280     for ac_prog in ginstall scoinst install; do
2281       for ac_exec_ext in '' $ac_executable_extensions; do
2282         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2283           if test $ac_prog = install &&
2284             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2285             # AIX install.  It has an incompatible calling convention.
2286             :
2287           elif test $ac_prog = install &&
2288             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289             # program-specific install script used by HP pwplus--don't use.
2290             :
2291           else
2292             rm -rf conftest.one conftest.two conftest.dir
2293             echo one > conftest.one
2294             echo two > conftest.two
2295             mkdir conftest.dir
2296             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2297               test -s conftest.one && test -s conftest.two &&
2298               test -s conftest.dir/conftest.one &&
2299               test -s conftest.dir/conftest.two
2300             then
2301               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2302               break 3
2303             fi
2304           fi
2305         fi
2306       done
2307     done
2308     ;;
2309 esac
2310
2311   done
2312 IFS=$as_save_IFS
2313
2314 rm -rf conftest.one conftest.two conftest.dir
2315
2316 fi
2317   if test "${ac_cv_path_install+set}" = set; then
2318     INSTALL=$ac_cv_path_install
2319   else
2320     # As a last resort, use the slow shell script.  Don't cache a
2321     # value for INSTALL within a source directory, because that will
2322     # break other packages using the cache if that directory is
2323     # removed, or if the value is a relative name.
2324     INSTALL=$ac_install_sh
2325   fi
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2328 $as_echo "$INSTALL" >&6; }
2329
2330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2331 # It thinks the first close brace ends the variable substitution.
2332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2333
2334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2335
2336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2337
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2339 $as_echo_n "checking whether build environment is sane... " >&6; }
2340 # Just in case
2341 sleep 1
2342 echo timestamp > conftest.file
2343 # Reject unsafe characters in $srcdir or the absolute working directory
2344 # name.  Accept space and tab only in the latter.
2345 am_lf='
2346 '
2347 case `pwd` in
2348   *[\\\"\#\$\&\'\`$am_lf]*)
2349     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2350 esac
2351 case $srcdir in
2352   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2353     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2354 esac
2355
2356 # Do `set' in a subshell so we don't clobber the current shell's
2357 # arguments.  Must try -L first in case configure is actually a
2358 # symlink; some systems play weird games with the mod time of symlinks
2359 # (eg FreeBSD returns the mod time of the symlink's containing
2360 # directory).
2361 if (
2362    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2363    if test "$*" = "X"; then
2364       # -L didn't work.
2365       set X `ls -t "$srcdir/configure" conftest.file`
2366    fi
2367    rm -f conftest.file
2368    if test "$*" != "X $srcdir/configure conftest.file" \
2369       && test "$*" != "X conftest.file $srcdir/configure"; then
2370
2371       # If neither matched, then we have a broken ls.  This can happen
2372       # if, for instance, CONFIG_SHELL is bash and it inherits a
2373       # broken ls alias from the environment.  This has actually
2374       # happened.  Such a system could not be considered "sane".
2375       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2376 alias in your environment" "$LINENO" 5
2377    fi
2378
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 test "$program_prefix" != NONE &&
2391   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2392 # Use a double $ so make ignores it.
2393 test "$program_suffix" != NONE &&
2394   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2395 # Double any \ or $.
2396 # By default was `s,x,x', remove it if useless.
2397 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2398 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2399
2400 # expand $ac_aux_dir to an absolute path
2401 am_aux_dir=`cd $ac_aux_dir && pwd`
2402
2403 if test x"${MISSING+set}" != xset; then
2404   case $am_aux_dir in
2405   *\ * | *\     *)
2406     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2407   *)
2408     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2409   esac
2410 fi
2411 # Use eval to expand $SHELL
2412 if eval "$MISSING --run true"; then
2413   am_missing_run="$MISSING --run "
2414 else
2415   am_missing_run=
2416   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2417 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2418 fi
2419
2420 if test x"${install_sh}" != xset; then
2421   case $am_aux_dir in
2422   *\ * | *\     *)
2423     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2424   *)
2425     install_sh="\${SHELL} $am_aux_dir/install-sh"
2426   esac
2427 fi
2428
2429 # Installed binaries are usually stripped using `strip' when the user
2430 # run `make install-strip'.  However `strip' might not be the right
2431 # tool to use in cross-compilation environments, therefore Automake
2432 # will honor the `STRIP' environment variable to overrule this program.
2433 if test "$cross_compiling" != no; then
2434   if test -n "$ac_tool_prefix"; then
2435   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}strip; ac_word=$2
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2438 $as_echo_n "checking for $ac_word... " >&6; }
2439 if ${ac_cv_prog_STRIP+:} false; then :
2440   $as_echo_n "(cached) " >&6
2441 else
2442   if test -n "$STRIP"; then
2443   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450     for ac_exec_ext in '' $ac_executable_extensions; do
2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457   done
2458 IFS=$as_save_IFS
2459
2460 fi
2461 fi
2462 STRIP=$ac_cv_prog_STRIP
2463 if test -n "$STRIP"; then
2464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2465 $as_echo "$STRIP" >&6; }
2466 else
2467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2468 $as_echo "no" >&6; }
2469 fi
2470
2471
2472 fi
2473 if test -z "$ac_cv_prog_STRIP"; then
2474   ac_ct_STRIP=$STRIP
2475   # Extract the first word of "strip", so it can be a program name with args.
2476 set dummy strip; ac_word=$2
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2480   $as_echo_n "(cached) " >&6
2481 else
2482   if test -n "$ac_ct_STRIP"; then
2483   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490     for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_ac_ct_STRIP="strip"
2493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497   done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2503 if test -n "$ac_ct_STRIP"; then
2504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2505 $as_echo "$ac_ct_STRIP" >&6; }
2506 else
2507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508 $as_echo "no" >&6; }
2509 fi
2510
2511   if test "x$ac_ct_STRIP" = x; then
2512     STRIP=":"
2513   else
2514     case $cross_compiling:$ac_tool_warned in
2515 yes:)
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2518 ac_tool_warned=yes ;;
2519 esac
2520     STRIP=$ac_ct_STRIP
2521   fi
2522 else
2523   STRIP="$ac_cv_prog_STRIP"
2524 fi
2525
2526 fi
2527 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2528
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2530 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2531 if test -z "$MKDIR_P"; then
2532   if ${ac_cv_path_mkdir+:} false; then :
2533   $as_echo_n "(cached) " >&6
2534 else
2535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540     for ac_prog in mkdir gmkdir; do
2541          for ac_exec_ext in '' $ac_executable_extensions; do
2542            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2543            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2544              'mkdir (GNU coreutils) '* | \
2545              'mkdir (coreutils) '* | \
2546              'mkdir (fileutils) '4.1*)
2547                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2548                break 3;;
2549            esac
2550          done
2551        done
2552   done
2553 IFS=$as_save_IFS
2554
2555 fi
2556
2557   test -d ./--version && rmdir ./--version
2558   if test "${ac_cv_path_mkdir+set}" = set; then
2559     MKDIR_P="$ac_cv_path_mkdir -p"
2560   else
2561     # As a last resort, use the slow shell script.  Don't cache a
2562     # value for MKDIR_P within a source directory, because that will
2563     # break other packages using the cache if that directory is
2564     # removed, or if the value is a relative name.
2565     MKDIR_P="$ac_install_sh -d"
2566   fi
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2569 $as_echo "$MKDIR_P" >&6; }
2570
2571 mkdir_p="$MKDIR_P"
2572 case $mkdir_p in
2573   [\\/$]* | ?:[\\/]*) ;;
2574   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2575 esac
2576
2577 for ac_prog in gawk mawk nawk awk
2578 do
2579   # Extract the first word of "$ac_prog", so it can be a program name with args.
2580 set dummy $ac_prog; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if ${ac_cv_prog_AWK+:} false; then :
2584   $as_echo_n "(cached) " >&6
2585 else
2586   if test -n "$AWK"; then
2587   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2588 else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 for as_dir in $PATH
2591 do
2592   IFS=$as_save_IFS
2593   test -z "$as_dir" && as_dir=.
2594     for ac_exec_ext in '' $ac_executable_extensions; do
2595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596     ac_cv_prog_AWK="$ac_prog"
2597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598     break 2
2599   fi
2600 done
2601   done
2602 IFS=$as_save_IFS
2603
2604 fi
2605 fi
2606 AWK=$ac_cv_prog_AWK
2607 if test -n "$AWK"; then
2608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2609 $as_echo "$AWK" >&6; }
2610 else
2611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2613 fi
2614
2615
2616   test -n "$AWK" && break
2617 done
2618
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2620 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2621 set x ${MAKE-make}
2622 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2623 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2624   $as_echo_n "(cached) " >&6
2625 else
2626   cat >conftest.make <<\_ACEOF
2627 SHELL = /bin/sh
2628 all:
2629         @echo '@@@%%%=$(MAKE)=@@@%%%'
2630 _ACEOF
2631 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2632 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2633   *@@@%%%=?*=@@@%%%*)
2634     eval ac_cv_prog_make_${ac_make}_set=yes;;
2635   *)
2636     eval ac_cv_prog_make_${ac_make}_set=no;;
2637 esac
2638 rm -f conftest.make
2639 fi
2640 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2642 $as_echo "yes" >&6; }
2643   SET_MAKE=
2644 else
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647   SET_MAKE="MAKE=${MAKE-make}"
2648 fi
2649
2650 rm -rf .tst 2>/dev/null
2651 mkdir .tst 2>/dev/null
2652 if test -d .tst; then
2653   am__leading_dot=.
2654 else
2655   am__leading_dot=_
2656 fi
2657 rmdir .tst 2>/dev/null
2658
2659 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2660   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2661   # is not polluted with repeated "-I."
2662   am__isrc=' -I$(srcdir)'
2663   # test to see if srcdir already configured
2664   if test -f $srcdir/config.status; then
2665     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2666   fi
2667 fi
2668
2669 # test whether we have cygpath
2670 if test -z "$CYGPATH_W"; then
2671   if (cygpath --version) >/dev/null 2>/dev/null; then
2672     CYGPATH_W='cygpath -w'
2673   else
2674     CYGPATH_W=echo
2675   fi
2676 fi
2677
2678
2679 # Define the identity of the package.
2680  PACKAGE='openpam'
2681  VERSION='20120526'
2682
2683
2684 cat >>confdefs.h <<_ACEOF
2685 #define PACKAGE "$PACKAGE"
2686 _ACEOF
2687
2688
2689 cat >>confdefs.h <<_ACEOF
2690 #define VERSION "$VERSION"
2691 _ACEOF
2692
2693 # Some tools Automake needs.
2694
2695 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2696
2697
2698 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2699
2700
2701 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2702
2703
2704 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2705
2706
2707 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2708
2709 # We need awk for the "check" target.  The system "awk" is bad on
2710 # some platforms.
2711 # Always define AMTAR for backward compatibility.
2712
2713 AMTAR=${AMTAR-"${am_missing_run}tar"}
2714
2715 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2716
2717
2718
2719
2720
2721 ac_config_headers="$ac_config_headers config.h"
2722
2723
2724 # C compiler and features
2725 ac_ext=c
2726 ac_cpp='$CPP $CPPFLAGS'
2727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730
2731 ac_ext=c
2732 ac_cpp='$CPP $CPPFLAGS'
2733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2736 if test -n "$ac_tool_prefix"; then
2737   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2738 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if ${ac_cv_prog_CC+:} false; then :
2742   $as_echo_n "(cached) " >&6
2743 else
2744   if test -n "$CC"; then
2745   ac_cv_prog_CC="$CC" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2749 do
2750   IFS=$as_save_IFS
2751   test -z "$as_dir" && as_dir=.
2752     for ac_exec_ext in '' $ac_executable_extensions; do
2753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756     break 2
2757   fi
2758 done
2759   done
2760 IFS=$as_save_IFS
2761
2762 fi
2763 fi
2764 CC=$ac_cv_prog_CC
2765 if test -n "$CC"; then
2766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2768 else
2769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2771 fi
2772
2773
2774 fi
2775 if test -z "$ac_cv_prog_CC"; then
2776   ac_ct_CC=$CC
2777   # Extract the first word of "gcc", so it can be a program name with args.
2778 set dummy gcc; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2782   $as_echo_n "(cached) " >&6
2783 else
2784   if test -n "$ac_ct_CC"; then
2785   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790   IFS=$as_save_IFS
2791   test -z "$as_dir" && as_dir=.
2792     for ac_exec_ext in '' $ac_executable_extensions; do
2793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794     ac_cv_prog_ac_ct_CC="gcc"
2795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796     break 2
2797   fi
2798 done
2799   done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2805 if test -n "$ac_ct_CC"; then
2806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2807 $as_echo "$ac_ct_CC" >&6; }
2808 else
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 fi
2812
2813   if test "x$ac_ct_CC" = x; then
2814     CC=""
2815   else
2816     case $cross_compiling:$ac_tool_warned in
2817 yes:)
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2820 ac_tool_warned=yes ;;
2821 esac
2822     CC=$ac_ct_CC
2823   fi
2824 else
2825   CC="$ac_cv_prog_CC"
2826 fi
2827
2828 if test -z "$CC"; then
2829           if test -n "$ac_tool_prefix"; then
2830     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2831 set dummy ${ac_tool_prefix}cc; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_CC+:} false; then :
2835   $as_echo_n "(cached) " >&6
2836 else
2837   if test -n "$CC"; then
2838   ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843   IFS=$as_save_IFS
2844   test -z "$as_dir" && as_dir=.
2845     for ac_exec_ext in '' $ac_executable_extensions; do
2846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847     ac_cv_prog_CC="${ac_tool_prefix}cc"
2848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849     break 2
2850   fi
2851 done
2852   done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2861 else
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864 fi
2865
2866
2867   fi
2868 fi
2869 if test -z "$CC"; then
2870   # Extract the first word of "cc", so it can be a program name with args.
2871 set dummy cc; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_CC+:} false; then :
2875   $as_echo_n "(cached) " >&6
2876 else
2877   if test -n "$CC"; then
2878   ac_cv_prog_CC="$CC" # Let the user override the test.
2879 else
2880   ac_prog_rejected=no
2881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884   IFS=$as_save_IFS
2885   test -z "$as_dir" && as_dir=.
2886     for ac_exec_ext in '' $ac_executable_extensions; do
2887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2889        ac_prog_rejected=yes
2890        continue
2891      fi
2892     ac_cv_prog_CC="cc"
2893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897   done
2898 IFS=$as_save_IFS
2899
2900 if test $ac_prog_rejected = yes; then
2901   # We found a bogon in the path, so make sure we never use it.
2902   set dummy $ac_cv_prog_CC
2903   shift
2904   if test $# != 0; then
2905     # We chose a different compiler from the bogus one.
2906     # However, it has the same basename, so the bogon will be chosen
2907     # first if we set CC to just the basename; use the full file name.
2908     shift
2909     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2910   fi
2911 fi
2912 fi
2913 fi
2914 CC=$ac_cv_prog_CC
2915 if test -n "$CC"; then
2916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2917 $as_echo "$CC" >&6; }
2918 else
2919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 fi
2922
2923
2924 fi
2925 if test -z "$CC"; then
2926   if test -n "$ac_tool_prefix"; then
2927   for ac_prog in cl.exe
2928   do
2929     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_CC+:} false; then :
2934   $as_echo_n "(cached) " >&6
2935 else
2936   if test -n "$CC"; then
2937   ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942   IFS=$as_save_IFS
2943   test -z "$as_dir" && as_dir=.
2944     for ac_exec_ext in '' $ac_executable_extensions; do
2945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948     break 2
2949   fi
2950 done
2951   done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2960 else
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965
2966     test -n "$CC" && break
2967   done
2968 fi
2969 if test -z "$CC"; then
2970   ac_ct_CC=$CC
2971   for ac_prog in cl.exe
2972 do
2973   # Extract the first word of "$ac_prog", so it can be a program name with args.
2974 set dummy $ac_prog; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   if test -n "$ac_ct_CC"; then
2981   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     for ac_exec_ext in '' $ac_executable_extensions; do
2989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990     ac_cv_prog_ac_ct_CC="$ac_prog"
2991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992     break 2
2993   fi
2994 done
2995   done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001 if test -n "$ac_ct_CC"; then
3002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3003 $as_echo "$ac_ct_CC" >&6; }
3004 else
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009
3010   test -n "$ac_ct_CC" && break
3011 done
3012
3013   if test "x$ac_ct_CC" = x; then
3014     CC=""
3015   else
3016     case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3021 esac
3022     CC=$ac_ct_CC
3023   fi
3024 fi
3025
3026 fi
3027
3028
3029 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031 as_fn_error $? "no acceptable C compiler found in \$PATH
3032 See \`config.log' for more details" "$LINENO" 5; }
3033
3034 # Provide some information about the compiler.
3035 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3036 set X $ac_compile
3037 ac_compiler=$2
3038 for ac_option in --version -v -V -qversion; do
3039   { { ac_try="$ac_compiler $ac_option >&5"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
3046   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3047   ac_status=$?
3048   if test -s conftest.err; then
3049     sed '10a\
3050 ... rest of stderr output deleted ...
3051          10q' conftest.err >conftest.er1
3052     cat conftest.er1 >&5
3053   fi
3054   rm -f conftest.er1 conftest.err
3055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056   test $ac_status = 0; }
3057 done
3058
3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060 /* end confdefs.h.  */
3061
3062 int
3063 main ()
3064 {
3065
3066   ;
3067   return 0;
3068 }
3069 _ACEOF
3070 ac_clean_files_save=$ac_clean_files
3071 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3072 # Try to create an executable without -o first, disregard a.out.
3073 # It will help us diagnose broken compilers, and finding out an intuition
3074 # of exeext.
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3076 $as_echo_n "checking whether the C compiler works... " >&6; }
3077 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3078
3079 # The possible output files:
3080 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3081
3082 ac_rmfiles=
3083 for ac_file in $ac_files
3084 do
3085   case $ac_file in
3086     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3087     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3088   esac
3089 done
3090 rm -f $ac_rmfiles
3091
3092 if { { ac_try="$ac_link_default"
3093 case "(($ac_try" in
3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095   *) ac_try_echo=$ac_try;;
3096 esac
3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3098 $as_echo "$ac_try_echo"; } >&5
3099   (eval "$ac_link_default") 2>&5
3100   ac_status=$?
3101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3102   test $ac_status = 0; }; then :
3103   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3104 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3105 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3106 # so that the user can short-circuit this test for compilers unknown to
3107 # Autoconf.
3108 for ac_file in $ac_files ''
3109 do
3110   test -f "$ac_file" || continue
3111   case $ac_file in
3112     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3113         ;;
3114     [ab].out )
3115         # We found the default executable, but exeext='' is most
3116         # certainly right.
3117         break;;
3118     *.* )
3119         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3120         then :; else
3121            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122         fi
3123         # We set ac_cv_exeext here because the later test for it is not
3124         # safe: cross compilers may not add the suffix if given an `-o'
3125         # argument, so we may need to know it at that point already.
3126         # Even if this section looks crufty: it has the advantage of
3127         # actually working.
3128         break;;
3129     * )
3130         break;;
3131   esac
3132 done
3133 test "$ac_cv_exeext" = no && ac_cv_exeext=
3134
3135 else
3136   ac_file=''
3137 fi
3138 if test -z "$ac_file"; then :
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 $as_echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3146 as_fn_error 77 "C compiler cannot create executables
3147 See \`config.log' for more details" "$LINENO" 5; }
3148 else
3149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150 $as_echo "yes" >&6; }
3151 fi
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3153 $as_echo_n "checking for C compiler default output file name... " >&6; }
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3155 $as_echo "$ac_file" >&6; }
3156 ac_exeext=$ac_cv_exeext
3157
3158 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3159 ac_clean_files=$ac_clean_files_save
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3161 $as_echo_n "checking for suffix of executables... " >&6; }
3162 if { { ac_try="$ac_link"
3163 case "(($ac_try" in
3164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165   *) ac_try_echo=$ac_try;;
3166 esac
3167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168 $as_echo "$ac_try_echo"; } >&5
3169   (eval "$ac_link") 2>&5
3170   ac_status=$?
3171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172   test $ac_status = 0; }; then :
3173   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3174 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3175 # work properly (i.e., refer to `conftest.exe'), while it won't with
3176 # `rm'.
3177 for ac_file in conftest.exe conftest conftest.*; do
3178   test -f "$ac_file" || continue
3179   case $ac_file in
3180     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3182           break;;
3183     * ) break;;
3184   esac
3185 done
3186 else
3187   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3190 See \`config.log' for more details" "$LINENO" 5; }
3191 fi
3192 rm -f conftest conftest$ac_cv_exeext
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3194 $as_echo "$ac_cv_exeext" >&6; }
3195
3196 rm -f conftest.$ac_ext
3197 EXEEXT=$ac_cv_exeext
3198 ac_exeext=$EXEEXT
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h.  */
3201 #include <stdio.h>
3202 int
3203 main ()
3204 {
3205 FILE *f = fopen ("conftest.out", "w");
3206  return ferror (f) || fclose (f) != 0;
3207
3208   ;
3209   return 0;
3210 }
3211 _ACEOF
3212 ac_clean_files="$ac_clean_files conftest.out"
3213 # Check that the compiler produces executables we can run.  If not, either
3214 # the compiler is broken, or we cross compile.
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3216 $as_echo_n "checking whether we are cross compiling... " >&6; }
3217 if test "$cross_compiling" != yes; then
3218   { { ac_try="$ac_link"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225   (eval "$ac_link") 2>&5
3226   ac_status=$?
3227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228   test $ac_status = 0; }
3229   if { ac_try='./conftest$ac_cv_exeext'
3230   { { case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236   (eval "$ac_try") 2>&5
3237   ac_status=$?
3238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239   test $ac_status = 0; }; }; then
3240     cross_compiling=no
3241   else
3242     if test "$cross_compiling" = maybe; then
3243         cross_compiling=yes
3244     else
3245         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3247 as_fn_error $? "cannot run C compiled programs.
3248 If you meant to cross compile, use \`--host'.
3249 See \`config.log' for more details" "$LINENO" 5; }
3250     fi
3251   fi
3252 fi
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3254 $as_echo "$cross_compiling" >&6; }
3255
3256 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3257 ac_clean_files=$ac_clean_files_save
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3259 $as_echo_n "checking for suffix of object files... " >&6; }
3260 if ${ac_cv_objext+:} false; then :
3261   $as_echo_n "(cached) " >&6
3262 else
3263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h.  */
3265
3266 int
3267 main ()
3268 {
3269
3270   ;
3271   return 0;
3272 }
3273 _ACEOF
3274 rm -f conftest.o conftest.obj
3275 if { { ac_try="$ac_compile"
3276 case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281 $as_echo "$ac_try_echo"; } >&5
3282   (eval "$ac_compile") 2>&5
3283   ac_status=$?
3284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285   test $ac_status = 0; }; then :
3286   for ac_file in conftest.o conftest.obj conftest.*; do
3287   test -f "$ac_file" || continue;
3288   case $ac_file in
3289     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3290     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3291        break;;
3292   esac
3293 done
3294 else
3295   $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error $? "cannot compute suffix of object files: cannot compile
3301 See \`config.log' for more details" "$LINENO" 5; }
3302 fi
3303 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3304 fi
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3306 $as_echo "$ac_cv_objext" >&6; }
3307 OBJEXT=$ac_cv_objext
3308 ac_objext=$OBJEXT
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3310 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3311 if ${ac_cv_c_compiler_gnu+:} false; then :
3312   $as_echo_n "(cached) " >&6
3313 else
3314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h.  */
3316
3317 int
3318 main ()
3319 {
3320 #ifndef __GNUC__
3321        choke me
3322 #endif
3323
3324   ;
3325   return 0;
3326 }
3327 _ACEOF
3328 if ac_fn_c_try_compile "$LINENO"; then :
3329   ac_compiler_gnu=yes
3330 else
3331   ac_compiler_gnu=no
3332 fi
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3335
3336 fi
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3338 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3339 if test $ac_compiler_gnu = yes; then
3340   GCC=yes
3341 else
3342   GCC=
3343 fi
3344 ac_test_CFLAGS=${CFLAGS+set}
3345 ac_save_CFLAGS=$CFLAGS
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3347 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3348 if ${ac_cv_prog_cc_g+:} false; then :
3349   $as_echo_n "(cached) " >&6
3350 else
3351   ac_save_c_werror_flag=$ac_c_werror_flag
3352    ac_c_werror_flag=yes
3353    ac_cv_prog_cc_g=no
3354    CFLAGS="-g"
3355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h.  */
3357
3358 int
3359 main ()
3360 {
3361
3362   ;
3363   return 0;
3364 }
3365 _ACEOF
3366 if ac_fn_c_try_compile "$LINENO"; then :
3367   ac_cv_prog_cc_g=yes
3368 else
3369   CFLAGS=""
3370       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h.  */
3372
3373 int
3374 main ()
3375 {
3376
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 if ac_fn_c_try_compile "$LINENO"; then :
3382
3383 else
3384   ac_c_werror_flag=$ac_save_c_werror_flag
3385          CFLAGS="-g"
3386          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h.  */
3388
3389 int
3390 main ()
3391 {
3392
3393   ;
3394   return 0;
3395 }
3396 _ACEOF
3397 if ac_fn_c_try_compile "$LINENO"; then :
3398   ac_cv_prog_cc_g=yes
3399 fi
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 fi
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 fi
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405    ac_c_werror_flag=$ac_save_c_werror_flag
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3408 $as_echo "$ac_cv_prog_cc_g" >&6; }
3409 if test "$ac_test_CFLAGS" = set; then
3410   CFLAGS=$ac_save_CFLAGS
3411 elif test $ac_cv_prog_cc_g = yes; then
3412   if test "$GCC" = yes; then
3413     CFLAGS="-g -O2"
3414   else
3415     CFLAGS="-g"
3416   fi
3417 else
3418   if test "$GCC" = yes; then
3419     CFLAGS="-O2"
3420   else
3421     CFLAGS=
3422   fi
3423 fi
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3425 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3426 if ${ac_cv_prog_cc_c89+:} false; then :
3427   $as_echo_n "(cached) " >&6
3428 else
3429   ac_cv_prog_cc_c89=no
3430 ac_save_CC=$CC
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h.  */
3433 #include <stdarg.h>
3434 #include <stdio.h>
3435 #include <sys/types.h>
3436 #include <sys/stat.h>
3437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3438 struct buf { int x; };
3439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3440 static char *e (p, i)
3441      char **p;
3442      int i;
3443 {
3444   return p[i];
3445 }
3446 static char *f (char * (*g) (char **, int), char **p, ...)
3447 {
3448   char *s;
3449   va_list v;
3450   va_start (v,p);
3451   s = g (p, va_arg (v,int));
3452   va_end (v);
3453   return s;
3454 }
3455
3456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3457    function prototypes and stuff, but not '\xHH' hex character constants.
3458    These don't provoke an error unfortunately, instead are silently treated
3459    as 'x'.  The following induces an error, until -std is added to get
3460    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3461    array size at least.  It's necessary to write '\x00'==0 to get something
3462    that's true only with -std.  */
3463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3464
3465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3466    inside strings and character constants.  */
3467 #define FOO(x) 'x'
3468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3469
3470 int test (int i, double x);
3471 struct s1 {int (*f) (int a);};
3472 struct s2 {int (*f) (double a);};
3473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3474 int argc;
3475 char **argv;
3476 int
3477 main ()
3478 {
3479 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3480   ;
3481   return 0;
3482 }
3483 _ACEOF
3484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3485         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3486 do
3487   CC="$ac_save_CC $ac_arg"
3488   if ac_fn_c_try_compile "$LINENO"; then :
3489   ac_cv_prog_cc_c89=$ac_arg
3490 fi
3491 rm -f core conftest.err conftest.$ac_objext
3492   test "x$ac_cv_prog_cc_c89" != "xno" && break
3493 done
3494 rm -f conftest.$ac_ext
3495 CC=$ac_save_CC
3496
3497 fi
3498 # AC_CACHE_VAL
3499 case "x$ac_cv_prog_cc_c89" in
3500   x)
3501     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3502 $as_echo "none needed" >&6; } ;;
3503   xno)
3504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3505 $as_echo "unsupported" >&6; } ;;
3506   *)
3507     CC="$CC $ac_cv_prog_cc_c89"
3508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3509 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3510 esac
3511 if test "x$ac_cv_prog_cc_c89" != xno; then :
3512
3513 fi
3514
3515 ac_ext=c
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520 DEPDIR="${am__leading_dot}deps"
3521
3522 ac_config_commands="$ac_config_commands depfiles"
3523
3524
3525 am_make=${MAKE-make}
3526 cat > confinc << 'END'
3527 am__doit:
3528         @echo this is the am__doit target
3529 .PHONY: am__doit
3530 END
3531 # If we don't find an include directive, just comment out the code.
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3533 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3534 am__include="#"
3535 am__quote=
3536 _am_result=none
3537 # First try GNU make style include.
3538 echo "include confinc" > confmf
3539 # Ignore all kinds of additional output from `make'.
3540 case `$am_make -s -f confmf 2> /dev/null` in #(
3541 *the\ am__doit\ target*)
3542   am__include=include
3543   am__quote=
3544   _am_result=GNU
3545   ;;
3546 esac
3547 # Now try BSD make style include.
3548 if test "$am__include" = "#"; then
3549    echo '.include "confinc"' > confmf
3550    case `$am_make -s -f confmf 2> /dev/null` in #(
3551    *the\ am__doit\ target*)
3552      am__include=.include
3553      am__quote="\""
3554      _am_result=BSD
3555      ;;
3556    esac
3557 fi
3558
3559
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3561 $as_echo "$_am_result" >&6; }
3562 rm -f confinc confmf
3563
3564 # Check whether --enable-dependency-tracking was given.
3565 if test "${enable_dependency_tracking+set}" = set; then :
3566   enableval=$enable_dependency_tracking;
3567 fi
3568
3569 if test "x$enable_dependency_tracking" != xno; then
3570   am_depcomp="$ac_aux_dir/depcomp"
3571   AMDEPBACKSLASH='\'
3572 fi
3573  if test "x$enable_dependency_tracking" != xno; then
3574   AMDEP_TRUE=
3575   AMDEP_FALSE='#'
3576 else
3577   AMDEP_TRUE='#'
3578   AMDEP_FALSE=
3579 fi
3580
3581
3582
3583 depcc="$CC"   am_compiler_list=
3584
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3586 $as_echo_n "checking dependency style of $depcc... " >&6; }
3587 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3588   $as_echo_n "(cached) " >&6
3589 else
3590   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3591   # We make a subdir and do the tests there.  Otherwise we can end up
3592   # making bogus files that we don't know about and never remove.  For
3593   # instance it was reported that on HP-UX the gcc test will end up
3594   # making a dummy file named `D' -- because `-MD' means `put the output
3595   # in D'.
3596   mkdir conftest.dir
3597   # Copy depcomp to subdir because otherwise we won't find it if we're
3598   # using a relative directory.
3599   cp "$am_depcomp" conftest.dir
3600   cd conftest.dir
3601   # We will build objects and dependencies in a subdirectory because
3602   # it helps to detect inapplicable dependency modes.  For instance
3603   # both Tru64's cc and ICC support -MD to output dependencies as a
3604   # side effect of compilation, but ICC will put the dependencies in
3605   # the current directory while Tru64 will put them in the object
3606   # directory.
3607   mkdir sub
3608
3609   am_cv_CC_dependencies_compiler_type=none
3610   if test "$am_compiler_list" = ""; then
3611      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3612   fi
3613   am__universal=false
3614   case " $depcc " in #(
3615      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3616      esac
3617
3618   for depmode in $am_compiler_list; do
3619     # Setup a source with many dependencies, because some compilers
3620     # like to wrap large dependency lists on column 80 (with \), and
3621     # we should not choose a depcomp mode which is confused by this.
3622     #
3623     # We need to recreate these files for each test, as the compiler may
3624     # overwrite some of them when testing with obscure command lines.
3625     # This happens at least with the AIX C compiler.
3626     : > sub/conftest.c
3627     for i in 1 2 3 4 5 6; do
3628       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3629       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3630       # Solaris 8's {/usr,}/bin/sh.
3631       touch sub/conftst$i.h
3632     done
3633     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3634
3635     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3636     # mode.  It turns out that the SunPro C++ compiler does not properly
3637     # handle `-M -o', and we need to detect this.  Also, some Intel
3638     # versions had trouble with output in subdirs
3639     am__obj=sub/conftest.${OBJEXT-o}
3640     am__minus_obj="-o $am__obj"
3641     case $depmode in
3642     gcc)
3643       # This depmode causes a compiler race in universal mode.
3644       test "$am__universal" = false || continue
3645       ;;
3646     nosideeffect)
3647       # after this tag, mechanisms are not by side-effect, so they'll
3648       # only be used when explicitly requested
3649       if test "x$enable_dependency_tracking" = xyes; then
3650         continue
3651       else
3652         break
3653       fi
3654       ;;
3655     msvisualcpp | msvcmsys)
3656       # This compiler won't grok `-c -o', but also, the minuso test has
3657       # not run yet.  These depmodes are late enough in the game, and
3658       # so weak that their functioning should not be impacted.
3659       am__obj=conftest.${OBJEXT-o}
3660       am__minus_obj=
3661       ;;
3662     none) break ;;
3663     esac
3664     if depmode=$depmode \
3665        source=sub/conftest.c object=$am__obj \
3666        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3667        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3668          >/dev/null 2>conftest.err &&
3669        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3670        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3671        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3672        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3673       # icc doesn't choke on unknown options, it will just issue warnings
3674       # or remarks (even with -Werror).  So we grep stderr for any message
3675       # that says an option was ignored or not supported.
3676       # When given -MP, icc 7.0 and 7.1 complain thusly:
3677       #   icc: Command line warning: ignoring option '-M'; no argument required
3678       # The diagnosis changed in icc 8.0:
3679       #   icc: Command line remark: option '-MP' not supported
3680       if (grep 'ignoring option' conftest.err ||
3681           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3682         am_cv_CC_dependencies_compiler_type=$depmode
3683         break
3684       fi
3685     fi
3686   done
3687
3688   cd ..
3689   rm -rf conftest.dir
3690 else
3691   am_cv_CC_dependencies_compiler_type=none
3692 fi
3693
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3696 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3697 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3698
3699  if
3700   test "x$enable_dependency_tracking" != xno \
3701   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3702   am__fastdepCC_TRUE=
3703   am__fastdepCC_FALSE='#'
3704 else
3705   am__fastdepCC_TRUE='#'
3706   am__fastdepCC_FALSE=
3707 fi
3708
3709
3710    case $ac_cv_prog_cc_stdc in #(
3711   no) :
3712     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3713   *) :
3714     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3715 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3716 if ${ac_cv_prog_cc_c99+:} false; then :
3717   $as_echo_n "(cached) " >&6
3718 else
3719   ac_cv_prog_cc_c99=no
3720 ac_save_CC=$CC
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h.  */
3723 #include <stdarg.h>
3724 #include <stdbool.h>
3725 #include <stdlib.h>
3726 #include <wchar.h>
3727 #include <stdio.h>
3728
3729 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3730 #define debug(...) fprintf (stderr, __VA_ARGS__)
3731 #define showlist(...) puts (#__VA_ARGS__)
3732 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3733 static void
3734 test_varargs_macros (void)
3735 {
3736   int x = 1234;
3737   int y = 5678;
3738   debug ("Flag");
3739   debug ("X = %d\n", x);
3740   showlist (The first, second, and third items.);
3741   report (x>y, "x is %d but y is %d", x, y);
3742 }
3743
3744 // Check long long types.
3745 #define BIG64 18446744073709551615ull
3746 #define BIG32 4294967295ul
3747 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3748 #if !BIG_OK
3749   your preprocessor is broken;
3750 #endif
3751 #if BIG_OK
3752 #else
3753   your preprocessor is broken;
3754 #endif
3755 static long long int bignum = -9223372036854775807LL;
3756 static unsigned long long int ubignum = BIG64;
3757
3758 struct incomplete_array
3759 {
3760   int datasize;
3761   double data[];
3762 };
3763
3764 struct named_init {
3765   int number;
3766   const wchar_t *name;
3767   double average;
3768 };
3769
3770 typedef const char *ccp;
3771
3772 static inline int
3773 test_restrict (ccp restrict text)
3774 {
3775   // See if C++-style comments work.
3776   // Iterate through items via the restricted pointer.
3777   // Also check for declarations in for loops.
3778   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3779     continue;
3780   return 0;
3781 }
3782
3783 // Check varargs and va_copy.
3784 static void
3785 test_varargs (const char *format, ...)
3786 {
3787   va_list args;
3788   va_start (args, format);
3789   va_list args_copy;
3790   va_copy (args_copy, args);
3791
3792   const char *str;
3793   int number;
3794   float fnumber;
3795
3796   while (*format)
3797     {
3798       switch (*format++)
3799         {
3800         case 's': // string
3801           str = va_arg (args_copy, const char *);
3802           break;
3803         case 'd': // int
3804           number = va_arg (args_copy, int);
3805           break;
3806         case 'f': // float
3807           fnumber = va_arg (args_copy, double);
3808           break;
3809         default:
3810           break;
3811         }
3812     }
3813   va_end (args_copy);
3814   va_end (args);
3815 }
3816
3817 int
3818 main ()
3819 {
3820
3821   // Check bool.
3822   _Bool success = false;
3823
3824   // Check restrict.
3825   if (test_restrict ("String literal") == 0)
3826     success = true;
3827   char *restrict newvar = "Another string";
3828
3829   // Check varargs.
3830   test_varargs ("s, d' f .", "string", 65, 34.234);
3831   test_varargs_macros ();
3832
3833   // Check flexible array members.
3834   struct incomplete_array *ia =
3835     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3836   ia->datasize = 10;
3837   for (int i = 0; i < ia->datasize; ++i)
3838     ia->data[i] = i * 1.234;
3839
3840   // Check named initializers.
3841   struct named_init ni = {
3842     .number = 34,
3843     .name = L"Test wide string",
3844     .average = 543.34343,
3845   };
3846
3847   ni.number = 58;
3848
3849   int dynamic_array[ni.number];
3850   dynamic_array[ni.number - 1] = 543;
3851
3852   // work around unused variable warnings
3853   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3854           || dynamic_array[ni.number - 1] != 543);
3855
3856   ;
3857   return 0;
3858 }
3859 _ACEOF
3860 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3861 do
3862   CC="$ac_save_CC $ac_arg"
3863   if ac_fn_c_try_compile "$LINENO"; then :
3864   ac_cv_prog_cc_c99=$ac_arg
3865 fi
3866 rm -f core conftest.err conftest.$ac_objext
3867   test "x$ac_cv_prog_cc_c99" != "xno" && break
3868 done
3869 rm -f conftest.$ac_ext
3870 CC=$ac_save_CC
3871
3872 fi
3873 # AC_CACHE_VAL
3874 case "x$ac_cv_prog_cc_c99" in
3875   x)
3876     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3877 $as_echo "none needed" >&6; } ;;
3878   xno)
3879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3880 $as_echo "unsupported" >&6; } ;;
3881   *)
3882     CC="$CC $ac_cv_prog_cc_c99"
3883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3884 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3885 esac
3886 if test "x$ac_cv_prog_cc_c99" != xno; then :
3887   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3888 else
3889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3891 if ${ac_cv_prog_cc_c89+:} false; then :
3892   $as_echo_n "(cached) " >&6
3893 else
3894   ac_cv_prog_cc_c89=no
3895 ac_save_CC=$CC
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h.  */
3898 #include <stdarg.h>
3899 #include <stdio.h>
3900 #include <sys/types.h>
3901 #include <sys/stat.h>
3902 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3903 struct buf { int x; };
3904 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3905 static char *e (p, i)
3906      char **p;
3907      int i;
3908 {
3909   return p[i];
3910 }
3911 static char *f (char * (*g) (char **, int), char **p, ...)
3912 {
3913   char *s;
3914   va_list v;
3915   va_start (v,p);
3916   s = g (p, va_arg (v,int));
3917   va_end (v);
3918   return s;
3919 }
3920
3921 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3922    function prototypes and stuff, but not '\xHH' hex character constants.
3923    These don't provoke an error unfortunately, instead are silently treated
3924    as 'x'.  The following induces an error, until -std is added to get
3925    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3926    array size at least.  It's necessary to write '\x00'==0 to get something
3927    that's true only with -std.  */
3928 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3929
3930 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3931    inside strings and character constants.  */
3932 #define FOO(x) 'x'
3933 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3934
3935 int test (int i, double x);
3936 struct s1 {int (*f) (int a);};
3937 struct s2 {int (*f) (double a);};
3938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3939 int argc;
3940 char **argv;
3941 int
3942 main ()
3943 {
3944 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3950         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3951 do
3952   CC="$ac_save_CC $ac_arg"
3953   if ac_fn_c_try_compile "$LINENO"; then :
3954   ac_cv_prog_cc_c89=$ac_arg
3955 fi
3956 rm -f core conftest.err conftest.$ac_objext
3957   test "x$ac_cv_prog_cc_c89" != "xno" && break
3958 done
3959 rm -f conftest.$ac_ext
3960 CC=$ac_save_CC
3961
3962 fi
3963 # AC_CACHE_VAL
3964 case "x$ac_cv_prog_cc_c89" in
3965   x)
3966     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3967 $as_echo "none needed" >&6; } ;;
3968   xno)
3969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3970 $as_echo "unsupported" >&6; } ;;
3971   *)
3972     CC="$CC $ac_cv_prog_cc_c89"
3973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3974 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3975 esac
3976 if test "x$ac_cv_prog_cc_c89" != xno; then :
3977   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3978 else
3979   ac_cv_prog_cc_stdc=no
3980 fi
3981
3982 fi
3983  ;;
3984 esac
3985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3986 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3987   if ${ac_cv_prog_cc_stdc+:} false; then :
3988   $as_echo_n "(cached) " >&6
3989 fi
3990
3991   case $ac_cv_prog_cc_stdc in #(
3992   no) :
3993     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3994 $as_echo "unsupported" >&6; } ;; #(
3995   '') :
3996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3997 $as_echo "none needed" >&6; } ;; #(
3998   *) :
3999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4000 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4001 esac
4002
4003 ac_ext=c
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4009 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4010 # On Suns, sometimes $CPP names a directory.
4011 if test -n "$CPP" && test -d "$CPP"; then
4012   CPP=
4013 fi
4014 if test -z "$CPP"; then
4015   if ${ac_cv_prog_CPP+:} false; then :
4016   $as_echo_n "(cached) " >&6
4017 else
4018       # Double quotes because CPP needs to be expanded
4019     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4020     do
4021       ac_preproc_ok=false
4022 for ac_c_preproc_warn_flag in '' yes
4023 do
4024   # Use a header file that comes with gcc, so configuring glibc
4025   # with a fresh cross-compiler works.
4026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027   # <limits.h> exists even on freestanding compilers.
4028   # On the NeXT, cc -E runs the code through the compiler's parser,
4029   # not just through cpp. "Syntax error" is here to catch this case.
4030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h.  */
4032 #ifdef __STDC__
4033 # include <limits.h>
4034 #else
4035 # include <assert.h>
4036 #endif
4037                      Syntax error
4038 _ACEOF
4039 if ac_fn_c_try_cpp "$LINENO"; then :
4040
4041 else
4042   # Broken: fails on valid input.
4043 continue
4044 fi
4045 rm -f conftest.err conftest.i conftest.$ac_ext
4046
4047   # OK, works on sane cases.  Now check whether nonexistent headers
4048   # can be detected and how.
4049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h.  */
4051 #include <ac_nonexistent.h>
4052 _ACEOF
4053 if ac_fn_c_try_cpp "$LINENO"; then :
4054   # Broken: success on invalid input.
4055 continue
4056 else
4057   # Passes both tests.
4058 ac_preproc_ok=:
4059 break
4060 fi
4061 rm -f conftest.err conftest.i conftest.$ac_ext
4062
4063 done
4064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065 rm -f conftest.i conftest.err conftest.$ac_ext
4066 if $ac_preproc_ok; then :
4067   break
4068 fi
4069
4070     done
4071     ac_cv_prog_CPP=$CPP
4072
4073 fi
4074   CPP=$ac_cv_prog_CPP
4075 else
4076   ac_cv_prog_CPP=$CPP
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4079 $as_echo "$CPP" >&6; }
4080 ac_preproc_ok=false
4081 for ac_c_preproc_warn_flag in '' yes
4082 do
4083   # Use a header file that comes with gcc, so configuring glibc
4084   # with a fresh cross-compiler works.
4085   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086   # <limits.h> exists even on freestanding compilers.
4087   # On the NeXT, cc -E runs the code through the compiler's parser,
4088   # not just through cpp. "Syntax error" is here to catch this case.
4089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h.  */
4091 #ifdef __STDC__
4092 # include <limits.h>
4093 #else
4094 # include <assert.h>
4095 #endif
4096                      Syntax error
4097 _ACEOF
4098 if ac_fn_c_try_cpp "$LINENO"; then :
4099
4100 else
4101   # Broken: fails on valid input.
4102 continue
4103 fi
4104 rm -f conftest.err conftest.i conftest.$ac_ext
4105
4106   # OK, works on sane cases.  Now check whether nonexistent headers
4107   # can be detected and how.
4108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h.  */
4110 #include <ac_nonexistent.h>
4111 _ACEOF
4112 if ac_fn_c_try_cpp "$LINENO"; then :
4113   # Broken: success on invalid input.
4114 continue
4115 else
4116   # Passes both tests.
4117 ac_preproc_ok=:
4118 break
4119 fi
4120 rm -f conftest.err conftest.i conftest.$ac_ext
4121
4122 done
4123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4124 rm -f conftest.i conftest.err conftest.$ac_ext
4125 if $ac_preproc_ok; then :
4126
4127 else
4128   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4130 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4131 See \`config.log' for more details" "$LINENO" 5; }
4132 fi
4133
4134 ac_ext=c
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140
4141
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4143 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4144 if ${ac_cv_path_GREP+:} false; then :
4145   $as_echo_n "(cached) " >&6
4146 else
4147   if test -z "$GREP"; then
4148   ac_path_GREP_found=false
4149   # Loop through the user's path and test for each of PROGNAME-LIST
4150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155     for ac_prog in grep ggrep; do
4156     for ac_exec_ext in '' $ac_executable_extensions; do
4157       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4158       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4159 # Check for GNU ac_path_GREP and select it if it is found.
4160   # Check for GNU $ac_path_GREP
4161 case `"$ac_path_GREP" --version 2>&1` in
4162 *GNU*)
4163   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4164 *)
4165   ac_count=0
4166   $as_echo_n 0123456789 >"conftest.in"
4167   while :
4168   do
4169     cat "conftest.in" "conftest.in" >"conftest.tmp"
4170     mv "conftest.tmp" "conftest.in"
4171     cp "conftest.in" "conftest.nl"
4172     $as_echo 'GREP' >> "conftest.nl"
4173     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4174     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4175     as_fn_arith $ac_count + 1 && ac_count=$as_val
4176     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4177       # Best one so far, save it but keep looking for a better one
4178       ac_cv_path_GREP="$ac_path_GREP"
4179       ac_path_GREP_max=$ac_count
4180     fi
4181     # 10*(2^10) chars as input seems more than enough
4182     test $ac_count -gt 10 && break
4183   done
4184   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4185 esac
4186
4187       $ac_path_GREP_found && break 3
4188     done
4189   done
4190   done
4191 IFS=$as_save_IFS
4192   if test -z "$ac_cv_path_GREP"; then
4193     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4194   fi
4195 else
4196   ac_cv_path_GREP=$GREP
4197 fi
4198
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4201 $as_echo "$ac_cv_path_GREP" >&6; }
4202  GREP="$ac_cv_path_GREP"
4203
4204
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4206 $as_echo_n "checking for egrep... " >&6; }
4207 if ${ac_cv_path_EGREP+:} false; then :
4208   $as_echo_n "(cached) " >&6
4209 else
4210   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4211    then ac_cv_path_EGREP="$GREP -E"
4212    else
4213      if test -z "$EGREP"; then
4214   ac_path_EGREP_found=false
4215   # Loop through the user's path and test for each of PROGNAME-LIST
4216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218 do
4219   IFS=$as_save_IFS
4220   test -z "$as_dir" && as_dir=.
4221     for ac_prog in egrep; do
4222     for ac_exec_ext in '' $ac_executable_extensions; do
4223       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4224       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4225 # Check for GNU ac_path_EGREP and select it if it is found.
4226   # Check for GNU $ac_path_EGREP
4227 case `"$ac_path_EGREP" --version 2>&1` in
4228 *GNU*)
4229   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4230 *)
4231   ac_count=0
4232   $as_echo_n 0123456789 >"conftest.in"
4233   while :
4234   do
4235     cat "conftest.in" "conftest.in" >"conftest.tmp"
4236     mv "conftest.tmp" "conftest.in"
4237     cp "conftest.in" "conftest.nl"
4238     $as_echo 'EGREP' >> "conftest.nl"
4239     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4240     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4241     as_fn_arith $ac_count + 1 && ac_count=$as_val
4242     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4243       # Best one so far, save it but keep looking for a better one
4244       ac_cv_path_EGREP="$ac_path_EGREP"
4245       ac_path_EGREP_max=$ac_count
4246     fi
4247     # 10*(2^10) chars as input seems more than enough
4248     test $ac_count -gt 10 && break
4249   done
4250   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251 esac
4252
4253       $ac_path_EGREP_found && break 3
4254     done
4255   done
4256   done
4257 IFS=$as_save_IFS
4258   if test -z "$ac_cv_path_EGREP"; then
4259     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4260   fi
4261 else
4262   ac_cv_path_EGREP=$EGREP
4263 fi
4264
4265    fi
4266 fi
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4268 $as_echo "$ac_cv_path_EGREP" >&6; }
4269  EGREP="$ac_cv_path_EGREP"
4270
4271
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4273 $as_echo_n "checking for ANSI C header files... " >&6; }
4274 if ${ac_cv_header_stdc+:} false; then :
4275   $as_echo_n "(cached) " >&6
4276 else
4277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h.  */
4279 #include <stdlib.h>
4280 #include <stdarg.h>
4281 #include <string.h>
4282 #include <float.h>
4283
4284 int
4285 main ()
4286 {
4287
4288   ;
4289   return 0;
4290 }
4291 _ACEOF
4292 if ac_fn_c_try_compile "$LINENO"; then :
4293   ac_cv_header_stdc=yes
4294 else
4295   ac_cv_header_stdc=no
4296 fi
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298
4299 if test $ac_cv_header_stdc = yes; then
4300   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h.  */
4303 #include <string.h>
4304
4305 _ACEOF
4306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4307   $EGREP "memchr" >/dev/null 2>&1; then :
4308
4309 else
4310   ac_cv_header_stdc=no
4311 fi
4312 rm -f conftest*
4313
4314 fi
4315
4316 if test $ac_cv_header_stdc = yes; then
4317   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319 /* end confdefs.h.  */
4320 #include <stdlib.h>
4321
4322 _ACEOF
4323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4324   $EGREP "free" >/dev/null 2>&1; then :
4325
4326 else
4327   ac_cv_header_stdc=no
4328 fi
4329 rm -f conftest*
4330
4331 fi
4332
4333 if test $ac_cv_header_stdc = yes; then
4334   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4335   if test "$cross_compiling" = yes; then :
4336   :
4337 else
4338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h.  */
4340 #include <ctype.h>
4341 #include <stdlib.h>
4342 #if ((' ' & 0x0FF) == 0x020)
4343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4345 #else
4346 # define ISLOWER(c) \
4347                    (('a' <= (c) && (c) <= 'i') \
4348                      || ('j' <= (c) && (c) <= 'r') \
4349                      || ('s' <= (c) && (c) <= 'z'))
4350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4351 #endif
4352
4353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4354 int
4355 main ()
4356 {
4357   int i;
4358   for (i = 0; i < 256; i++)
4359     if (XOR (islower (i), ISLOWER (i))
4360         || toupper (i) != TOUPPER (i))
4361       return 2;
4362   return 0;
4363 }
4364 _ACEOF
4365 if ac_fn_c_try_run "$LINENO"; then :
4366
4367 else
4368   ac_cv_header_stdc=no
4369 fi
4370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4371   conftest.$ac_objext conftest.beam conftest.$ac_ext
4372 fi
4373
4374 fi
4375 fi
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4377 $as_echo "$ac_cv_header_stdc" >&6; }
4378 if test $ac_cv_header_stdc = yes; then
4379
4380 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4381
4382 fi
4383
4384 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4386                   inttypes.h stdint.h unistd.h
4387 do :
4388   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4389 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4390 "
4391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4392   cat >>confdefs.h <<_ACEOF
4393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4394 _ACEOF
4395
4396 fi
4397
4398 done
4399
4400
4401
4402   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4403 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4404   MINIX=yes
4405 else
4406   MINIX=
4407 fi
4408
4409
4410   if test "$MINIX" = yes; then
4411
4412 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4413
4414
4415 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4416
4417
4418 $as_echo "#define _MINIX 1" >>confdefs.h
4419
4420   fi
4421
4422
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4424 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4425 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4426   $as_echo_n "(cached) " >&6
4427 else
4428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h.  */
4430
4431 #         define __EXTENSIONS__ 1
4432           $ac_includes_default
4433 int
4434 main ()
4435 {
4436
4437   ;
4438   return 0;
4439 }
4440 _ACEOF
4441 if ac_fn_c_try_compile "$LINENO"; then :
4442   ac_cv_safe_to_define___extensions__=yes
4443 else
4444   ac_cv_safe_to_define___extensions__=no
4445 fi
4446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447 fi
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4449 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4450   test $ac_cv_safe_to_define___extensions__ = yes &&
4451     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4452
4453   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4454
4455   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4456
4457   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4458
4459   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4460
4461
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4464 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4465 if ${ac_cv_c_const+:} false; then :
4466   $as_echo_n "(cached) " >&6
4467 else
4468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h.  */
4470
4471 int
4472 main ()
4473 {
4474 /* FIXME: Include the comments suggested by Paul. */
4475 #ifndef __cplusplus
4476   /* Ultrix mips cc rejects this.  */
4477   typedef int charset[2];
4478   const charset cs;
4479   /* SunOS 4.1.1 cc rejects this.  */
4480   char const *const *pcpcc;
4481   char **ppc;
4482   /* NEC SVR4.0.2 mips cc rejects this.  */
4483   struct point {int x, y;};
4484   static struct point const zero = {0,0};
4485   /* AIX XL C 1.02.0.0 rejects this.
4486      It does not let you subtract one const X* pointer from another in
4487      an arm of an if-expression whose if-part is not a constant
4488      expression */
4489   const char *g = "string";
4490   pcpcc = &g + (g ? g-g : 0);
4491   /* HPUX 7.0 cc rejects these. */
4492   ++pcpcc;
4493   ppc = (char**) pcpcc;
4494   pcpcc = (char const *const *) ppc;
4495   { /* SCO 3.2v4 cc rejects this.  */
4496     char *t;
4497     char const *s = 0 ? (char *) 0 : (char const *) 0;
4498
4499     *t++ = 0;
4500     if (s) return 0;
4501   }
4502   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4503     int x[] = {25, 17};
4504     const int *foo = &x[0];
4505     ++foo;
4506   }
4507   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4508     typedef const int *iptr;
4509     iptr p = 0;
4510     ++p;
4511   }
4512   { /* AIX XL C 1.02.0.0 rejects this saying
4513        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4514     struct s { int j; const int *ap[3]; };
4515     struct s *b; b->j = 5;
4516   }
4517   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4518     const int foo = 10;
4519     if (!foo) return 0;
4520   }
4521   return !cs[0] && !zero.x;
4522 #endif
4523
4524   ;
4525   return 0;
4526 }
4527 _ACEOF
4528 if ac_fn_c_try_compile "$LINENO"; then :
4529   ac_cv_c_const=yes
4530 else
4531   ac_cv_c_const=no
4532 fi
4533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4534 fi
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4536 $as_echo "$ac_cv_c_const" >&6; }
4537 if test $ac_cv_c_const = no; then
4538
4539 $as_echo "#define const /**/" >>confdefs.h
4540
4541 fi
4542
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4544 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4545 if ${ac_cv_c_restrict+:} false; then :
4546   $as_echo_n "(cached) " >&6
4547 else
4548   ac_cv_c_restrict=no
4549    # The order here caters to the fact that C++ does not require restrict.
4550    for ac_kw in __restrict __restrict__ _Restrict restrict; do
4551      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h.  */
4553 typedef int * int_ptr;
4554         int foo (int_ptr $ac_kw ip) {
4555         return ip[0];
4556        }
4557 int
4558 main ()
4559 {
4560 int s[1];
4561         int * $ac_kw t = s;
4562         t[0] = 0;
4563         return foo(t)
4564   ;
4565   return 0;
4566 }
4567 _ACEOF
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569   ac_cv_c_restrict=$ac_kw
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572      test "$ac_cv_c_restrict" != no && break
4573    done
4574
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4577 $as_echo "$ac_cv_c_restrict" >&6; }
4578
4579  case $ac_cv_c_restrict in
4580    restrict) ;;
4581    no) $as_echo "#define restrict /**/" >>confdefs.h
4582  ;;
4583    *)  cat >>confdefs.h <<_ACEOF
4584 #define restrict $ac_cv_c_restrict
4585 _ACEOF
4586  ;;
4587  esac
4588
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
4590 $as_echo_n "checking for working volatile... " >&6; }
4591 if ${ac_cv_c_volatile+:} false; then :
4592   $as_echo_n "(cached) " >&6
4593 else
4594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h.  */
4596
4597 int
4598 main ()
4599 {
4600
4601 volatile int x;
4602 int * volatile y = (int *) 0;
4603 return !x && !y;
4604   ;
4605   return 0;
4606 }
4607 _ACEOF
4608 if ac_fn_c_try_compile "$LINENO"; then :
4609   ac_cv_c_volatile=yes
4610 else
4611   ac_cv_c_volatile=no
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
4616 $as_echo "$ac_cv_c_volatile" >&6; }
4617 if test $ac_cv_c_volatile = no; then
4618
4619 $as_echo "#define volatile /**/" >>confdefs.h
4620
4621 fi
4622
4623
4624 # libtool
4625
4626 case `pwd` in
4627   *\ * | *\     *)
4628     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4629 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4630 esac
4631
4632
4633
4634 macro_version='2.4.2'
4635 macro_revision='1.3337'
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649 ltmain="$ac_aux_dir/ltmain.sh"
4650
4651 # Make sure we can run config.sub.
4652 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4653   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4654
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4656 $as_echo_n "checking build system type... " >&6; }
4657 if ${ac_cv_build+:} false; then :
4658   $as_echo_n "(cached) " >&6
4659 else
4660   ac_build_alias=$build_alias
4661 test "x$ac_build_alias" = x &&
4662   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4663 test "x$ac_build_alias" = x &&
4664   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4665 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4666   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4667
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4670 $as_echo "$ac_cv_build" >&6; }
4671 case $ac_cv_build in
4672 *-*-*) ;;
4673 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4674 esac
4675 build=$ac_cv_build
4676 ac_save_IFS=$IFS; IFS='-'
4677 set x $ac_cv_build
4678 shift
4679 build_cpu=$1
4680 build_vendor=$2
4681 shift; shift
4682 # Remember, the first character of IFS is used to create $*,
4683 # except with old shells:
4684 build_os=$*
4685 IFS=$ac_save_IFS
4686 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4687
4688
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4690 $as_echo_n "checking host system type... " >&6; }
4691 if ${ac_cv_host+:} false; then :
4692   $as_echo_n "(cached) " >&6
4693 else
4694   if test "x$host_alias" = x; then
4695   ac_cv_host=$ac_cv_build
4696 else
4697   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4698     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4699 fi
4700
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4703 $as_echo "$ac_cv_host" >&6; }
4704 case $ac_cv_host in
4705 *-*-*) ;;
4706 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4707 esac
4708 host=$ac_cv_host
4709 ac_save_IFS=$IFS; IFS='-'
4710 set x $ac_cv_host
4711 shift
4712 host_cpu=$1
4713 host_vendor=$2
4714 shift; shift
4715 # Remember, the first character of IFS is used to create $*,
4716 # except with old shells:
4717 host_os=$*
4718 IFS=$ac_save_IFS
4719 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4720
4721
4722 # Backslashify metacharacters that are still active within
4723 # double-quoted strings.
4724 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4725
4726 # Same as above, but do not quote variable references.
4727 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4728
4729 # Sed substitution to delay expansion of an escaped shell variable in a
4730 # double_quote_subst'ed string.
4731 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4732
4733 # Sed substitution to delay expansion of an escaped single quote.
4734 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4735
4736 # Sed substitution to avoid accidental globbing in evaled expressions
4737 no_glob_subst='s/\*/\\\*/g'
4738
4739 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4740 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4741 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4744 $as_echo_n "checking how to print strings... " >&6; }
4745 # Test print first, because it will be a builtin if present.
4746 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4747    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4748   ECHO='print -r --'
4749 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4750   ECHO='printf %s\n'
4751 else
4752   # Use this function as a fallback that always works.
4753   func_fallback_echo ()
4754   {
4755     eval 'cat <<_LTECHO_EOF
4756 $1
4757 _LTECHO_EOF'
4758   }
4759   ECHO='func_fallback_echo'
4760 fi
4761
4762 # func_echo_all arg...
4763 # Invoke $ECHO with all args, space-separated.
4764 func_echo_all ()
4765 {
4766     $ECHO ""
4767 }
4768
4769 case "$ECHO" in
4770   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4771 $as_echo "printf" >&6; } ;;
4772   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4773 $as_echo "print -r" >&6; } ;;
4774   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4775 $as_echo "cat" >&6; } ;;
4776 esac
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4792 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4793 if ${ac_cv_path_SED+:} false; then :
4794   $as_echo_n "(cached) " >&6
4795 else
4796             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4797      for ac_i in 1 2 3 4 5 6 7; do
4798        ac_script="$ac_script$as_nl$ac_script"
4799      done
4800      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4801      { ac_script=; unset ac_script;}
4802      if test -z "$SED"; then
4803   ac_path_SED_found=false
4804   # Loop through the user's path and test for each of PROGNAME-LIST
4805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808   IFS=$as_save_IFS
4809   test -z "$as_dir" && as_dir=.
4810     for ac_prog in sed gsed; do
4811     for ac_exec_ext in '' $ac_executable_extensions; do
4812       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4813       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4814 # Check for GNU ac_path_SED and select it if it is found.
4815   # Check for GNU $ac_path_SED
4816 case `"$ac_path_SED" --version 2>&1` in
4817 *GNU*)
4818   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4819 *)
4820   ac_count=0
4821   $as_echo_n 0123456789 >"conftest.in"
4822   while :
4823   do
4824     cat "conftest.in" "conftest.in" >"conftest.tmp"
4825     mv "conftest.tmp" "conftest.in"
4826     cp "conftest.in" "conftest.nl"
4827     $as_echo '' >> "conftest.nl"
4828     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4829     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4830     as_fn_arith $ac_count + 1 && ac_count=$as_val
4831     if test $ac_count -gt ${ac_path_SED_max-0}; then
4832       # Best one so far, save it but keep looking for a better one
4833       ac_cv_path_SED="$ac_path_SED"
4834       ac_path_SED_max=$ac_count
4835     fi
4836     # 10*(2^10) chars as input seems more than enough
4837     test $ac_count -gt 10 && break
4838   done
4839   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4840 esac
4841
4842       $ac_path_SED_found && break 3
4843     done
4844   done
4845   done
4846 IFS=$as_save_IFS
4847   if test -z "$ac_cv_path_SED"; then
4848     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4849   fi
4850 else
4851   ac_cv_path_SED=$SED
4852 fi
4853
4854 fi
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4856 $as_echo "$ac_cv_path_SED" >&6; }
4857  SED="$ac_cv_path_SED"
4858   rm -f conftest.sed
4859
4860 test -z "$SED" && SED=sed
4861 Xsed="$SED -e 1s/^X//"
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4874 $as_echo_n "checking for fgrep... " >&6; }
4875 if ${ac_cv_path_FGREP+:} false; then :
4876   $as_echo_n "(cached) " >&6
4877 else
4878   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4879    then ac_cv_path_FGREP="$GREP -F"
4880    else
4881      if test -z "$FGREP"; then
4882   ac_path_FGREP_found=false
4883   # Loop through the user's path and test for each of PROGNAME-LIST
4884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4886 do
4887   IFS=$as_save_IFS
4888   test -z "$as_dir" && as_dir=.
4889     for ac_prog in fgrep; do
4890     for ac_exec_ext in '' $ac_executable_extensions; do
4891       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4892       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4893 # Check for GNU ac_path_FGREP and select it if it is found.
4894   # Check for GNU $ac_path_FGREP
4895 case `"$ac_path_FGREP" --version 2>&1` in
4896 *GNU*)
4897   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4898 *)
4899   ac_count=0
4900   $as_echo_n 0123456789 >"conftest.in"
4901   while :
4902   do
4903     cat "conftest.in" "conftest.in" >"conftest.tmp"
4904     mv "conftest.tmp" "conftest.in"
4905     cp "conftest.in" "conftest.nl"
4906     $as_echo 'FGREP' >> "conftest.nl"
4907     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4908     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4909     as_fn_arith $ac_count + 1 && ac_count=$as_val
4910     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4911       # Best one so far, save it but keep looking for a better one
4912       ac_cv_path_FGREP="$ac_path_FGREP"
4913       ac_path_FGREP_max=$ac_count
4914     fi
4915     # 10*(2^10) chars as input seems more than enough
4916     test $ac_count -gt 10 && break
4917   done
4918   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4919 esac
4920
4921       $ac_path_FGREP_found && break 3
4922     done
4923   done
4924   done
4925 IFS=$as_save_IFS
4926   if test -z "$ac_cv_path_FGREP"; then
4927     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4928   fi
4929 else
4930   ac_cv_path_FGREP=$FGREP
4931 fi
4932
4933    fi
4934 fi
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4936 $as_echo "$ac_cv_path_FGREP" >&6; }
4937  FGREP="$ac_cv_path_FGREP"
4938
4939
4940 test -z "$GREP" && GREP=grep
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960 # Check whether --with-gnu-ld was given.
4961 if test "${with_gnu_ld+set}" = set; then :
4962   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4963 else
4964   with_gnu_ld=no
4965 fi
4966
4967 ac_prog=ld
4968 if test "$GCC" = yes; then
4969   # Check if gcc -print-prog-name=ld gives a path.
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4971 $as_echo_n "checking for ld used by $CC... " >&6; }
4972   case $host in
4973   *-*-mingw*)
4974     # gcc leaves a trailing carriage return which upsets mingw
4975     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4976   *)
4977     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4978   esac
4979   case $ac_prog in
4980     # Accept absolute paths.
4981     [\\/]* | ?:[\\/]*)
4982       re_direlt='/[^/][^/]*/\.\./'
4983       # Canonicalize the pathname of ld
4984       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4985       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4986         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4987       done
4988       test -z "$LD" && LD="$ac_prog"
4989       ;;
4990   "")
4991     # If it fails, then pretend we aren't using GCC.
4992     ac_prog=ld
4993     ;;
4994   *)
4995     # If it is relative, then search for the first ld in PATH.
4996     with_gnu_ld=unknown
4997     ;;
4998   esac
4999 elif test "$with_gnu_ld" = yes; then
5000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5001 $as_echo_n "checking for GNU ld... " >&6; }
5002 else
5003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5004 $as_echo_n "checking for non-GNU ld... " >&6; }
5005 fi
5006 if ${lt_cv_path_LD+:} false; then :
5007   $as_echo_n "(cached) " >&6
5008 else
5009   if test -z "$LD"; then
5010   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5011   for ac_dir in $PATH; do
5012     IFS="$lt_save_ifs"
5013     test -z "$ac_dir" && ac_dir=.
5014     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5015       lt_cv_path_LD="$ac_dir/$ac_prog"
5016       # Check to see if the program is GNU ld.  I'd rather use --version,
5017       # but apparently some variants of GNU ld only accept -v.
5018       # Break only if it was the GNU/non-GNU ld that we prefer.
5019       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5020       *GNU* | *'with BFD'*)
5021         test "$with_gnu_ld" != no && break
5022         ;;
5023       *)
5024         test "$with_gnu_ld" != yes && break
5025         ;;
5026       esac
5027     fi
5028   done
5029   IFS="$lt_save_ifs"
5030 else
5031   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5032 fi
5033 fi
5034
5035 LD="$lt_cv_path_LD"
5036 if test -n "$LD"; then
5037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5038 $as_echo "$LD" >&6; }
5039 else
5040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041 $as_echo "no" >&6; }
5042 fi
5043 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5045 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5046 if ${lt_cv_prog_gnu_ld+:} false; then :
5047   $as_echo_n "(cached) " >&6
5048 else
5049   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5050 case `$LD -v 2>&1 </dev/null` in
5051 *GNU* | *'with BFD'*)
5052   lt_cv_prog_gnu_ld=yes
5053   ;;
5054 *)
5055   lt_cv_prog_gnu_ld=no
5056   ;;
5057 esac
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5060 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5061 with_gnu_ld=$lt_cv_prog_gnu_ld
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5072 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5073 if ${lt_cv_path_NM+:} false; then :
5074   $as_echo_n "(cached) " >&6
5075 else
5076   if test -n "$NM"; then
5077   # Let the user override the test.
5078   lt_cv_path_NM="$NM"
5079 else
5080   lt_nm_to_check="${ac_tool_prefix}nm"
5081   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5082     lt_nm_to_check="$lt_nm_to_check nm"
5083   fi
5084   for lt_tmp_nm in $lt_nm_to_check; do
5085     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5086     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5087       IFS="$lt_save_ifs"
5088       test -z "$ac_dir" && ac_dir=.
5089       tmp_nm="$ac_dir/$lt_tmp_nm"
5090       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5091         # Check to see if the nm accepts a BSD-compat flag.
5092         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5093         #   nm: unknown option "B" ignored
5094         # Tru64's nm complains that /dev/null is an invalid object file
5095         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5096         */dev/null* | *'Invalid file or object type'*)
5097           lt_cv_path_NM="$tmp_nm -B"
5098           break
5099           ;;
5100         *)
5101           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5102           */dev/null*)
5103             lt_cv_path_NM="$tmp_nm -p"
5104             break
5105             ;;
5106           *)
5107             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5108             continue # so that we can try to find one that supports BSD flags
5109             ;;
5110           esac
5111           ;;
5112         esac
5113       fi
5114     done
5115     IFS="$lt_save_ifs"
5116   done
5117   : ${lt_cv_path_NM=no}
5118 fi
5119 fi
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5121 $as_echo "$lt_cv_path_NM" >&6; }
5122 if test "$lt_cv_path_NM" != "no"; then
5123   NM="$lt_cv_path_NM"
5124 else
5125   # Didn't find any BSD compatible name lister, look for dumpbin.
5126   if test -n "$DUMPBIN"; then :
5127     # Let the user override the test.
5128   else
5129     if test -n "$ac_tool_prefix"; then
5130   for ac_prog in dumpbin "link -dump"
5131   do
5132     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5133 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if ${ac_cv_prog_DUMPBIN+:} false; then :
5137   $as_echo_n "(cached) " >&6
5138 else
5139   if test -n "$DUMPBIN"; then
5140   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145   IFS=$as_save_IFS
5146   test -z "$as_dir" && as_dir=.
5147     for ac_exec_ext in '' $ac_executable_extensions; do
5148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151     break 2
5152   fi
5153 done
5154   done
5155 IFS=$as_save_IFS
5156
5157 fi
5158 fi
5159 DUMPBIN=$ac_cv_prog_DUMPBIN
5160 if test -n "$DUMPBIN"; then
5161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5162 $as_echo "$DUMPBIN" >&6; }
5163 else
5164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5166 fi
5167
5168
5169     test -n "$DUMPBIN" && break
5170   done
5171 fi
5172 if test -z "$DUMPBIN"; then
5173   ac_ct_DUMPBIN=$DUMPBIN
5174   for ac_prog in dumpbin "link -dump"
5175 do
5176   # Extract the first word of "$ac_prog", so it can be a program name with args.
5177 set dummy $ac_prog; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   if test -n "$ac_ct_DUMPBIN"; then
5184   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189   IFS=$as_save_IFS
5190   test -z "$as_dir" && as_dir=.
5191     for ac_exec_ext in '' $ac_executable_extensions; do
5192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195     break 2
5196   fi
5197 done
5198   done
5199 IFS=$as_save_IFS
5200
5201 fi
5202 fi
5203 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5204 if test -n "$ac_ct_DUMPBIN"; then
5205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5206 $as_echo "$ac_ct_DUMPBIN" >&6; }
5207 else
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5210 fi
5211
5212
5213   test -n "$ac_ct_DUMPBIN" && break
5214 done
5215
5216   if test "x$ac_ct_DUMPBIN" = x; then
5217     DUMPBIN=":"
5218   else
5219     case $cross_compiling:$ac_tool_warned in
5220 yes:)
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5223 ac_tool_warned=yes ;;
5224 esac
5225     DUMPBIN=$ac_ct_DUMPBIN
5226   fi
5227 fi
5228
5229     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5230     *COFF*)
5231       DUMPBIN="$DUMPBIN -symbols"
5232       ;;
5233     *)
5234       DUMPBIN=:
5235       ;;
5236     esac
5237   fi
5238
5239   if test "$DUMPBIN" != ":"; then
5240     NM="$DUMPBIN"
5241   fi
5242 fi
5243 test -z "$NM" && NM=nm
5244
5245
5246
5247
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5251 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5252 if ${lt_cv_nm_interface+:} false; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   lt_cv_nm_interface="BSD nm"
5256   echo "int some_variable = 0;" > conftest.$ac_ext
5257   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5258   (eval "$ac_compile" 2>conftest.err)
5259   cat conftest.err >&5
5260   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5261   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5262   cat conftest.err >&5
5263   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5264   cat conftest.out >&5
5265   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5266     lt_cv_nm_interface="MS dumpbin"
5267   fi
5268   rm -f conftest*
5269 fi
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5271 $as_echo "$lt_cv_nm_interface" >&6; }
5272
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5274 $as_echo_n "checking whether ln -s works... " >&6; }
5275 LN_S=$as_ln_s
5276 if test "$LN_S" = "ln -s"; then
5277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5278 $as_echo "yes" >&6; }
5279 else
5280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5281 $as_echo "no, using $LN_S" >&6; }
5282 fi
5283
5284 # find the maximum length of command line arguments
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5286 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5287 if ${lt_cv_sys_max_cmd_len+:} false; then :
5288   $as_echo_n "(cached) " >&6
5289 else
5290     i=0
5291   teststring="ABCD"
5292
5293   case $build_os in
5294   msdosdjgpp*)
5295     # On DJGPP, this test can blow up pretty badly due to problems in libc
5296     # (any single argument exceeding 2000 bytes causes a buffer overrun
5297     # during glob expansion).  Even if it were fixed, the result of this
5298     # check would be larger than it should be.
5299     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5300     ;;
5301
5302   gnu*)
5303     # Under GNU Hurd, this test is not required because there is
5304     # no limit to the length of command line arguments.
5305     # Libtool will interpret -1 as no limit whatsoever
5306     lt_cv_sys_max_cmd_len=-1;
5307     ;;
5308
5309   cygwin* | mingw* | cegcc*)
5310     # On Win9x/ME, this test blows up -- it succeeds, but takes
5311     # about 5 minutes as the teststring grows exponentially.
5312     # Worse, since 9x/ME are not pre-emptively multitasking,
5313     # you end up with a "frozen" computer, even though with patience
5314     # the test eventually succeeds (with a max line length of 256k).
5315     # Instead, let's just punt: use the minimum linelength reported by
5316     # all of the supported platforms: 8192 (on NT/2K/XP).
5317     lt_cv_sys_max_cmd_len=8192;
5318     ;;
5319
5320   mint*)
5321     # On MiNT this can take a long time and run out of memory.
5322     lt_cv_sys_max_cmd_len=8192;
5323     ;;
5324
5325   amigaos*)
5326     # On AmigaOS with pdksh, this test takes hours, literally.
5327     # So we just punt and use a minimum line length of 8192.
5328     lt_cv_sys_max_cmd_len=8192;
5329     ;;
5330
5331   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5332     # This has been around since 386BSD, at least.  Likely further.
5333     if test -x /sbin/sysctl; then
5334       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5335     elif test -x /usr/sbin/sysctl; then
5336       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5337     else
5338       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5339     fi
5340     # And add a safety zone
5341     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5342     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5343     ;;
5344
5345   interix*)
5346     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5347     lt_cv_sys_max_cmd_len=196608
5348     ;;
5349
5350   os2*)
5351     # The test takes a long time on OS/2.
5352     lt_cv_sys_max_cmd_len=8192
5353     ;;
5354
5355   osf*)
5356     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5357     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5358     # nice to cause kernel panics so lets avoid the loop below.
5359     # First set a reasonable default.
5360     lt_cv_sys_max_cmd_len=16384
5361     #
5362     if test -x /sbin/sysconfig; then
5363       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5364         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5365       esac
5366     fi
5367     ;;
5368   sco3.2v5*)
5369     lt_cv_sys_max_cmd_len=102400
5370     ;;
5371   sysv5* | sco5v6* | sysv4.2uw2*)
5372     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5373     if test -n "$kargmax"; then
5374       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5375     else
5376       lt_cv_sys_max_cmd_len=32768
5377     fi
5378     ;;
5379   *)
5380     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5381     if test -n "$lt_cv_sys_max_cmd_len"; then
5382       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5383       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5384     else
5385       # Make teststring a little bigger before we do anything with it.
5386       # a 1K string should be a reasonable start.
5387       for i in 1 2 3 4 5 6 7 8 ; do
5388         teststring=$teststring$teststring
5389       done
5390       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5391       # If test is not a shell built-in, we'll probably end up computing a
5392       # maximum length that is only half of the actual maximum length, but
5393       # we can't tell.
5394       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5395                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5396               test $i != 17 # 1/2 MB should be enough
5397       do
5398         i=`expr $i + 1`
5399         teststring=$teststring$teststring
5400       done
5401       # Only check the string length outside the loop.
5402       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5403       teststring=
5404       # Add a significant safety factor because C++ compilers can tack on
5405       # massive amounts of additional arguments before passing them to the
5406       # linker.  It appears as though 1/2 is a usable value.
5407       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5408     fi
5409     ;;
5410   esac
5411
5412 fi
5413
5414 if test -n $lt_cv_sys_max_cmd_len ; then
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5416 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5417 else
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5419 $as_echo "none" >&6; }
5420 fi
5421 max_cmd_len=$lt_cv_sys_max_cmd_len
5422
5423
5424
5425
5426
5427
5428 : ${CP="cp -f"}
5429 : ${MV="mv -f"}
5430 : ${RM="rm -f"}
5431
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5433 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5434 # Try some XSI features
5435 xsi_shell=no
5436 ( _lt_dummy="a/b/c"
5437   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5438       = c,a/b,b/c, \
5439     && eval 'test $(( 1 + 1 )) -eq 2 \
5440     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5441   && xsi_shell=yes
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5443 $as_echo "$xsi_shell" >&6; }
5444
5445
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5447 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5448 lt_shell_append=no
5449 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5450     >/dev/null 2>&1 \
5451   && lt_shell_append=yes
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5453 $as_echo "$lt_shell_append" >&6; }
5454
5455
5456 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5457   lt_unset=unset
5458 else
5459   lt_unset=false
5460 fi
5461
5462
5463
5464
5465
5466 # test EBCDIC or ASCII
5467 case `echo X|tr X '\101'` in
5468  A) # ASCII based system
5469     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5470   lt_SP2NL='tr \040 \012'
5471   lt_NL2SP='tr \015\012 \040\040'
5472   ;;
5473  *) # EBCDIC based system
5474   lt_SP2NL='tr \100 \n'
5475   lt_NL2SP='tr \r\n \100\100'
5476   ;;
5477 esac
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5488 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5489 if ${lt_cv_to_host_file_cmd+:} false; then :
5490   $as_echo_n "(cached) " >&6
5491 else
5492   case $host in
5493   *-*-mingw* )
5494     case $build in
5495       *-*-mingw* ) # actually msys
5496         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5497         ;;
5498       *-*-cygwin* )
5499         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5500         ;;
5501       * ) # otherwise, assume *nix
5502         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5503         ;;
5504     esac
5505     ;;
5506   *-*-cygwin* )
5507     case $build in
5508       *-*-mingw* ) # actually msys
5509         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5510         ;;
5511       *-*-cygwin* )
5512         lt_cv_to_host_file_cmd=func_convert_file_noop
5513         ;;
5514       * ) # otherwise, assume *nix
5515         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5516         ;;
5517     esac
5518     ;;
5519   * ) # unhandled hosts (and "normal" native builds)
5520     lt_cv_to_host_file_cmd=func_convert_file_noop
5521     ;;
5522 esac
5523
5524 fi
5525
5526 to_host_file_cmd=$lt_cv_to_host_file_cmd
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5528 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5529
5530
5531
5532
5533
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5535 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5536 if ${lt_cv_to_tool_file_cmd+:} false; then :
5537   $as_echo_n "(cached) " >&6
5538 else
5539   #assume ordinary cross tools, or native build.
5540 lt_cv_to_tool_file_cmd=func_convert_file_noop
5541 case $host in
5542   *-*-mingw* )
5543     case $build in
5544       *-*-mingw* ) # actually msys
5545         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5546         ;;
5547     esac
5548     ;;
5549 esac
5550
5551 fi
5552
5553 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5555 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5556
5557
5558
5559
5560
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5562 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5563 if ${lt_cv_ld_reload_flag+:} false; then :
5564   $as_echo_n "(cached) " >&6
5565 else
5566   lt_cv_ld_reload_flag='-r'
5567 fi
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5569 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5570 reload_flag=$lt_cv_ld_reload_flag
5571 case $reload_flag in
5572 "" | " "*) ;;
5573 *) reload_flag=" $reload_flag" ;;
5574 esac
5575 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5576 case $host_os in
5577   cygwin* | mingw* | pw32* | cegcc*)
5578     if test "$GCC" != yes; then
5579       reload_cmds=false
5580     fi
5581     ;;
5582   darwin*)
5583     if test "$GCC" = yes; then
5584       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5585     else
5586       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5587     fi
5588     ;;
5589 esac
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599 if test -n "$ac_tool_prefix"; then
5600   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5601 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if ${ac_cv_prog_OBJDUMP+:} false; then :
5605   $as_echo_n "(cached) " >&6
5606 else
5607   if test -n "$OBJDUMP"; then
5608   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5609 else
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH
5612 do
5613   IFS=$as_save_IFS
5614   test -z "$as_dir" && as_dir=.
5615     for ac_exec_ext in '' $ac_executable_extensions; do
5616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619     break 2
5620   fi
5621 done
5622   done
5623 IFS=$as_save_IFS
5624
5625 fi
5626 fi
5627 OBJDUMP=$ac_cv_prog_OBJDUMP
5628 if test -n "$OBJDUMP"; then
5629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5630 $as_echo "$OBJDUMP" >&6; }
5631 else
5632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5634 fi
5635
5636
5637 fi
5638 if test -z "$ac_cv_prog_OBJDUMP"; then
5639   ac_ct_OBJDUMP=$OBJDUMP
5640   # Extract the first word of "objdump", so it can be a program name with args.
5641 set dummy objdump; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   if test -n "$ac_ct_OBJDUMP"; then
5648   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653   IFS=$as_save_IFS
5654   test -z "$as_dir" && as_dir=.
5655     for ac_exec_ext in '' $ac_executable_extensions; do
5656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5657     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659     break 2
5660   fi
5661 done
5662   done
5663 IFS=$as_save_IFS
5664
5665 fi
5666 fi
5667 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5668 if test -n "$ac_ct_OBJDUMP"; then
5669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5670 $as_echo "$ac_ct_OBJDUMP" >&6; }
5671 else
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674 fi
5675
5676   if test "x$ac_ct_OBJDUMP" = x; then
5677     OBJDUMP="false"
5678   else
5679     case $cross_compiling:$ac_tool_warned in
5680 yes:)
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5683 ac_tool_warned=yes ;;
5684 esac
5685     OBJDUMP=$ac_ct_OBJDUMP
5686   fi
5687 else
5688   OBJDUMP="$ac_cv_prog_OBJDUMP"
5689 fi
5690
5691 test -z "$OBJDUMP" && OBJDUMP=objdump
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5702 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5703 if ${lt_cv_deplibs_check_method+:} false; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   lt_cv_file_magic_cmd='$MAGIC_CMD'
5707 lt_cv_file_magic_test_file=
5708 lt_cv_deplibs_check_method='unknown'
5709 # Need to set the preceding variable on all platforms that support
5710 # interlibrary dependencies.
5711 # 'none' -- dependencies not supported.
5712 # `unknown' -- same as none, but documents that we really don't know.
5713 # 'pass_all' -- all dependencies passed with no checks.
5714 # 'test_compile' -- check by making test program.
5715 # 'file_magic [[regex]]' -- check by looking for files in library path
5716 # which responds to the $file_magic_cmd with a given extended regex.
5717 # If you have `file' or equivalent on your system and you're not sure
5718 # whether `pass_all' will *always* work, you probably want this one.
5719
5720 case $host_os in
5721 aix[4-9]*)
5722   lt_cv_deplibs_check_method=pass_all
5723   ;;
5724
5725 beos*)
5726   lt_cv_deplibs_check_method=pass_all
5727   ;;
5728
5729 bsdi[45]*)
5730   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5731   lt_cv_file_magic_cmd='/usr/bin/file -L'
5732   lt_cv_file_magic_test_file=/shlib/libc.so
5733   ;;
5734
5735 cygwin*)
5736   # func_win32_libid is a shell function defined in ltmain.sh
5737   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5738   lt_cv_file_magic_cmd='func_win32_libid'
5739   ;;
5740
5741 mingw* | pw32*)
5742   # Base MSYS/MinGW do not provide the 'file' command needed by
5743   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5744   # unless we find 'file', for example because we are cross-compiling.
5745   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5746   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5747     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5748     lt_cv_file_magic_cmd='func_win32_libid'
5749   else
5750     # Keep this pattern in sync with the one in func_win32_libid.
5751     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5752     lt_cv_file_magic_cmd='$OBJDUMP -f'
5753   fi
5754   ;;
5755
5756 cegcc*)
5757   # use the weaker test based on 'objdump'. See mingw*.
5758   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5759   lt_cv_file_magic_cmd='$OBJDUMP -f'
5760   ;;
5761
5762 darwin* | rhapsody*)
5763   lt_cv_deplibs_check_method=pass_all
5764   ;;
5765
5766 freebsd* | dragonfly*)
5767   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5768     case $host_cpu in
5769     i*86 )
5770       # Not sure whether the presence of OpenBSD here was a mistake.
5771       # Let's accept both of them until this is cleared up.
5772       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5773       lt_cv_file_magic_cmd=/usr/bin/file
5774       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5775       ;;
5776     esac
5777   else
5778     lt_cv_deplibs_check_method=pass_all
5779   fi
5780   ;;
5781
5782 gnu*)
5783   lt_cv_deplibs_check_method=pass_all
5784   ;;
5785
5786 haiku*)
5787   lt_cv_deplibs_check_method=pass_all
5788   ;;
5789
5790 hpux10.20* | hpux11*)
5791   lt_cv_file_magic_cmd=/usr/bin/file
5792   case $host_cpu in
5793   ia64*)
5794     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5795     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5796     ;;
5797   hppa*64*)
5798     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]'
5799     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5800     ;;
5801   *)
5802     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5803     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5804     ;;
5805   esac
5806   ;;
5807
5808 interix[3-9]*)
5809   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5810   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5811   ;;
5812
5813 irix5* | irix6* | nonstopux*)
5814   case $LD in
5815   *-32|*"-32 ") libmagic=32-bit;;
5816   *-n32|*"-n32 ") libmagic=N32;;
5817   *-64|*"-64 ") libmagic=64-bit;;
5818   *) libmagic=never-match;;
5819   esac
5820   lt_cv_deplibs_check_method=pass_all
5821   ;;
5822
5823 # This must be glibc/ELF.
5824 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5825   lt_cv_deplibs_check_method=pass_all
5826   ;;
5827
5828 netbsd*)
5829   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5830     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5831   else
5832     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5833   fi
5834   ;;
5835
5836 newos6*)
5837   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5838   lt_cv_file_magic_cmd=/usr/bin/file
5839   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5840   ;;
5841
5842 *nto* | *qnx*)
5843   lt_cv_deplibs_check_method=pass_all
5844   ;;
5845
5846 openbsd*)
5847   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5848     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5849   else
5850     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5851   fi
5852   ;;
5853
5854 osf3* | osf4* | osf5*)
5855   lt_cv_deplibs_check_method=pass_all
5856   ;;
5857
5858 rdos*)
5859   lt_cv_deplibs_check_method=pass_all
5860   ;;
5861
5862 solaris*)
5863   lt_cv_deplibs_check_method=pass_all
5864   ;;
5865
5866 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5867   lt_cv_deplibs_check_method=pass_all
5868   ;;
5869
5870 sysv4 | sysv4.3*)
5871   case $host_vendor in
5872   motorola)
5873     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]'
5874     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5875     ;;
5876   ncr)
5877     lt_cv_deplibs_check_method=pass_all
5878     ;;
5879   sequent)
5880     lt_cv_file_magic_cmd='/bin/file'
5881     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5882     ;;
5883   sni)
5884     lt_cv_file_magic_cmd='/bin/file'
5885     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5886     lt_cv_file_magic_test_file=/lib/libc.so
5887     ;;
5888   siemens)
5889     lt_cv_deplibs_check_method=pass_all
5890     ;;
5891   pc)
5892     lt_cv_deplibs_check_method=pass_all
5893     ;;
5894   esac
5895   ;;
5896
5897 tpf*)
5898   lt_cv_deplibs_check_method=pass_all
5899   ;;
5900 esac
5901
5902 fi
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5904 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5905
5906 file_magic_glob=
5907 want_nocaseglob=no
5908 if test "$build" = "$host"; then
5909   case $host_os in
5910   mingw* | pw32*)
5911     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5912       want_nocaseglob=yes
5913     else
5914       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5915     fi
5916     ;;
5917   esac
5918 fi
5919
5920 file_magic_cmd=$lt_cv_file_magic_cmd
5921 deplibs_check_method=$lt_cv_deplibs_check_method
5922 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945 if test -n "$ac_tool_prefix"; then
5946   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5947 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5949 $as_echo_n "checking for $ac_word... " >&6; }
5950 if ${ac_cv_prog_DLLTOOL+:} false; then :
5951   $as_echo_n "(cached) " >&6
5952 else
5953   if test -n "$DLLTOOL"; then
5954   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5955 else
5956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 for as_dir in $PATH
5958 do
5959   IFS=$as_save_IFS
5960   test -z "$as_dir" && as_dir=.
5961     for ac_exec_ext in '' $ac_executable_extensions; do
5962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5963     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5965     break 2
5966   fi
5967 done
5968   done
5969 IFS=$as_save_IFS
5970
5971 fi
5972 fi
5973 DLLTOOL=$ac_cv_prog_DLLTOOL
5974 if test -n "$DLLTOOL"; then
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5976 $as_echo "$DLLTOOL" >&6; }
5977 else
5978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5980 fi
5981
5982
5983 fi
5984 if test -z "$ac_cv_prog_DLLTOOL"; then
5985   ac_ct_DLLTOOL=$DLLTOOL
5986   # Extract the first word of "dlltool", so it can be a program name with args.
5987 set dummy dlltool; ac_word=$2
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989 $as_echo_n "checking for $ac_word... " >&6; }
5990 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5991   $as_echo_n "(cached) " >&6
5992 else
5993   if test -n "$ac_ct_DLLTOOL"; then
5994   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5995 else
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5998 do
5999   IFS=$as_save_IFS
6000   test -z "$as_dir" && as_dir=.
6001     for ac_exec_ext in '' $ac_executable_extensions; do
6002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005     break 2
6006   fi
6007 done
6008   done
6009 IFS=$as_save_IFS
6010
6011 fi
6012 fi
6013 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6014 if test -n "$ac_ct_DLLTOOL"; then
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6016 $as_echo "$ac_ct_DLLTOOL" >&6; }
6017 else
6018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019 $as_echo "no" >&6; }
6020 fi
6021
6022   if test "x$ac_ct_DLLTOOL" = x; then
6023     DLLTOOL="false"
6024   else
6025     case $cross_compiling:$ac_tool_warned in
6026 yes:)
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6029 ac_tool_warned=yes ;;
6030 esac
6031     DLLTOOL=$ac_ct_DLLTOOL
6032   fi
6033 else
6034   DLLTOOL="$ac_cv_prog_DLLTOOL"
6035 fi
6036
6037 test -z "$DLLTOOL" && DLLTOOL=dlltool
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6049 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6050 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6051   $as_echo_n "(cached) " >&6
6052 else
6053   lt_cv_sharedlib_from_linklib_cmd='unknown'
6054
6055 case $host_os in
6056 cygwin* | mingw* | pw32* | cegcc*)
6057   # two different shell functions defined in ltmain.sh
6058   # decide which to use based on capabilities of $DLLTOOL
6059   case `$DLLTOOL --help 2>&1` in
6060   *--identify-strict*)
6061     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6062     ;;
6063   *)
6064     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6065     ;;
6066   esac
6067   ;;
6068 *)
6069   # fallback: assume linklib IS sharedlib
6070   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6071   ;;
6072 esac
6073
6074 fi
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6076 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6077 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6078 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6079
6080
6081
6082
6083
6084
6085
6086 if test -n "$ac_tool_prefix"; then
6087   for ac_prog in ar
6088   do
6089     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if ${ac_cv_prog_AR+:} false; then :
6094   $as_echo_n "(cached) " >&6
6095 else
6096   if test -n "$AR"; then
6097   ac_cv_prog_AR="$AR" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104     for ac_exec_ext in '' $ac_executable_extensions; do
6105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6106     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111   done
6112 IFS=$as_save_IFS
6113
6114 fi
6115 fi
6116 AR=$ac_cv_prog_AR
6117 if test -n "$AR"; then
6118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6119 $as_echo "$AR" >&6; }
6120 else
6121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122 $as_echo "no" >&6; }
6123 fi
6124
6125
6126     test -n "$AR" && break
6127   done
6128 fi
6129 if test -z "$AR"; then
6130   ac_ct_AR=$AR
6131   for ac_prog in ar
6132 do
6133   # Extract the first word of "$ac_prog", so it can be a program name with args.
6134 set dummy $ac_prog; ac_word=$2
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136 $as_echo_n "checking for $ac_word... " >&6; }
6137 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6138   $as_echo_n "(cached) " >&6
6139 else
6140   if test -n "$ac_ct_AR"; then
6141   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6142 else
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144 for as_dir in $PATH
6145 do
6146   IFS=$as_save_IFS
6147   test -z "$as_dir" && as_dir=.
6148     for ac_exec_ext in '' $ac_executable_extensions; do
6149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6150     ac_cv_prog_ac_ct_AR="$ac_prog"
6151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152     break 2
6153   fi
6154 done
6155   done
6156 IFS=$as_save_IFS
6157
6158 fi
6159 fi
6160 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6161 if test -n "$ac_ct_AR"; then
6162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6163 $as_echo "$ac_ct_AR" >&6; }
6164 else
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166 $as_echo "no" >&6; }
6167 fi
6168
6169
6170   test -n "$ac_ct_AR" && break
6171 done
6172
6173   if test "x$ac_ct_AR" = x; then
6174     AR="false"
6175   else
6176     case $cross_compiling:$ac_tool_warned in
6177 yes:)
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6180 ac_tool_warned=yes ;;
6181 esac
6182     AR=$ac_ct_AR
6183   fi
6184 fi
6185
6186 : ${AR=ar}
6187 : ${AR_FLAGS=cru}
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6200 $as_echo_n "checking for archiver @FILE support... " >&6; }
6201 if ${lt_cv_ar_at_file+:} false; then :
6202   $as_echo_n "(cached) " >&6
6203 else
6204   lt_cv_ar_at_file=no
6205    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h.  */
6207
6208 int
6209 main ()
6210 {
6211
6212   ;
6213   return 0;
6214 }
6215 _ACEOF
6216 if ac_fn_c_try_compile "$LINENO"; then :
6217   echo conftest.$ac_objext > conftest.lst
6218       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6219       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6220   (eval $lt_ar_try) 2>&5
6221   ac_status=$?
6222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6223   test $ac_status = 0; }
6224       if test "$ac_status" -eq 0; then
6225         # Ensure the archiver fails upon bogus file names.
6226         rm -f conftest.$ac_objext libconftest.a
6227         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6228   (eval $lt_ar_try) 2>&5
6229   ac_status=$?
6230   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6231   test $ac_status = 0; }
6232         if test "$ac_status" -ne 0; then
6233           lt_cv_ar_at_file=@
6234         fi
6235       fi
6236       rm -f conftest.* libconftest.a
6237
6238 fi
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240
6241 fi
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6243 $as_echo "$lt_cv_ar_at_file" >&6; }
6244
6245 if test "x$lt_cv_ar_at_file" = xno; then
6246   archiver_list_spec=
6247 else
6248   archiver_list_spec=$lt_cv_ar_at_file
6249 fi
6250
6251
6252
6253
6254
6255
6256
6257 if test -n "$ac_tool_prefix"; then
6258   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6259 set dummy ${ac_tool_prefix}strip; ac_word=$2
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261 $as_echo_n "checking for $ac_word... " >&6; }
6262 if ${ac_cv_prog_STRIP+:} false; then :
6263   $as_echo_n "(cached) " >&6
6264 else
6265   if test -n "$STRIP"; then
6266   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6267 else
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6270 do
6271   IFS=$as_save_IFS
6272   test -z "$as_dir" && as_dir=.
6273     for ac_exec_ext in '' $ac_executable_extensions; do
6274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277     break 2
6278   fi
6279 done
6280   done
6281 IFS=$as_save_IFS
6282
6283 fi
6284 fi
6285 STRIP=$ac_cv_prog_STRIP
6286 if test -n "$STRIP"; then
6287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6288 $as_echo "$STRIP" >&6; }
6289 else
6290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291 $as_echo "no" >&6; }
6292 fi
6293
6294
6295 fi
6296 if test -z "$ac_cv_prog_STRIP"; then
6297   ac_ct_STRIP=$STRIP
6298   # Extract the first word of "strip", so it can be a program name with args.
6299 set dummy strip; ac_word=$2
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6303   $as_echo_n "(cached) " >&6
6304 else
6305   if test -n "$ac_ct_STRIP"; then
6306   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6310 do
6311   IFS=$as_save_IFS
6312   test -z "$as_dir" && as_dir=.
6313     for ac_exec_ext in '' $ac_executable_extensions; do
6314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315     ac_cv_prog_ac_ct_STRIP="strip"
6316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317     break 2
6318   fi
6319 done
6320   done
6321 IFS=$as_save_IFS
6322
6323 fi
6324 fi
6325 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6326 if test -n "$ac_ct_STRIP"; then
6327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6328 $as_echo "$ac_ct_STRIP" >&6; }
6329 else
6330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6332 fi
6333
6334   if test "x$ac_ct_STRIP" = x; then
6335     STRIP=":"
6336   else
6337     case $cross_compiling:$ac_tool_warned in
6338 yes:)
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6341 ac_tool_warned=yes ;;
6342 esac
6343     STRIP=$ac_ct_STRIP
6344   fi
6345 else
6346   STRIP="$ac_cv_prog_STRIP"
6347 fi
6348
6349 test -z "$STRIP" && STRIP=:
6350
6351
6352
6353
6354
6355
6356 if test -n "$ac_tool_prefix"; then
6357   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6358 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if ${ac_cv_prog_RANLIB+:} false; then :
6362   $as_echo_n "(cached) " >&6
6363 else
6364   if test -n "$RANLIB"; then
6365   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6366 else
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370   IFS=$as_save_IFS
6371   test -z "$as_dir" && as_dir=.
6372     for ac_exec_ext in '' $ac_executable_extensions; do
6373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376     break 2
6377   fi
6378 done
6379   done
6380 IFS=$as_save_IFS
6381
6382 fi
6383 fi
6384 RANLIB=$ac_cv_prog_RANLIB
6385 if test -n "$RANLIB"; then
6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6387 $as_echo "$RANLIB" >&6; }
6388 else
6389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6391 fi
6392
6393
6394 fi
6395 if test -z "$ac_cv_prog_RANLIB"; then
6396   ac_ct_RANLIB=$RANLIB
6397   # Extract the first word of "ranlib", so it can be a program name with args.
6398 set dummy ranlib; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6402   $as_echo_n "(cached) " >&6
6403 else
6404   if test -n "$ac_ct_RANLIB"; then
6405   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6406 else
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412     for ac_exec_ext in '' $ac_executable_extensions; do
6413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414     ac_cv_prog_ac_ct_RANLIB="ranlib"
6415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419   done
6420 IFS=$as_save_IFS
6421
6422 fi
6423 fi
6424 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6425 if test -n "$ac_ct_RANLIB"; then
6426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6427 $as_echo "$ac_ct_RANLIB" >&6; }
6428 else
6429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6431 fi
6432
6433   if test "x$ac_ct_RANLIB" = x; then
6434     RANLIB=":"
6435   else
6436     case $cross_compiling:$ac_tool_warned in
6437 yes:)
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned=yes ;;
6441 esac
6442     RANLIB=$ac_ct_RANLIB
6443   fi
6444 else
6445   RANLIB="$ac_cv_prog_RANLIB"
6446 fi
6447
6448 test -z "$RANLIB" && RANLIB=:
6449
6450
6451
6452
6453
6454
6455 # Determine commands to create old-style static archives.
6456 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6457 old_postinstall_cmds='chmod 644 $oldlib'
6458 old_postuninstall_cmds=
6459
6460 if test -n "$RANLIB"; then
6461   case $host_os in
6462   openbsd*)
6463     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6464     ;;
6465   *)
6466     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6467     ;;
6468   esac
6469   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6470 fi
6471
6472 case $host_os in
6473   darwin*)
6474     lock_old_archive_extraction=yes ;;
6475   *)
6476     lock_old_archive_extraction=no ;;
6477 esac
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517 # If no C compiler was specified, use CC.
6518 LTCC=${LTCC-"$CC"}
6519
6520 # If no C compiler flags were specified, use CFLAGS.
6521 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6522
6523 # Allow CC to be a program name with arguments.
6524 compiler=$CC
6525
6526
6527 # Check for command to grab the raw symbol name followed by C symbol from nm.
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6529 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6530 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6531   $as_echo_n "(cached) " >&6
6532 else
6533
6534 # These are sane defaults that work on at least a few old systems.
6535 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6536
6537 # Character class describing NM global symbol codes.
6538 symcode='[BCDEGRST]'
6539
6540 # Regexp to match symbols that can be accessed directly from C.
6541 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6542
6543 # Define system-specific variables.
6544 case $host_os in
6545 aix*)
6546   symcode='[BCDT]'
6547   ;;
6548 cygwin* | mingw* | pw32* | cegcc*)
6549   symcode='[ABCDGISTW]'
6550   ;;
6551 hpux*)
6552   if test "$host_cpu" = ia64; then
6553     symcode='[ABCDEGRST]'
6554   fi
6555   ;;
6556 irix* | nonstopux*)
6557   symcode='[BCDEGRST]'
6558   ;;
6559 osf*)
6560   symcode='[BCDEGQRST]'
6561   ;;
6562 solaris*)
6563   symcode='[BDRT]'
6564   ;;
6565 sco3.2v5*)
6566   symcode='[DT]'
6567   ;;
6568 sysv4.2uw2*)
6569   symcode='[DT]'
6570   ;;
6571 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6572   symcode='[ABDT]'
6573   ;;
6574 sysv4)
6575   symcode='[DFNSTU]'
6576   ;;
6577 esac
6578
6579 # If we're using GNU nm, then use its standard symbol codes.
6580 case `$NM -V 2>&1` in
6581 *GNU* | *'with BFD'*)
6582   symcode='[ABCDGIRSTW]' ;;
6583 esac
6584
6585 # Transform an extracted symbol line into a proper C declaration.
6586 # Some systems (esp. on ia64) link data and code symbols differently,
6587 # so use this general approach.
6588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6589
6590 # Transform an extracted symbol line into symbol name and symbol address
6591 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6592 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'"
6593
6594 # Handle CRLF in mingw tool chain
6595 opt_cr=
6596 case $build_os in
6597 mingw*)
6598   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6599   ;;
6600 esac
6601
6602 # Try without a prefix underscore, then with it.
6603 for ac_symprfx in "" "_"; do
6604
6605   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6606   symxfrm="\\1 $ac_symprfx\\2 \\2"
6607
6608   # Write the raw and C identifiers.
6609   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6610     # Fake it for dumpbin and say T for any non-static function
6611     # and D for any global variable.
6612     # Also find C++ and __fastcall symbols from MSVC++,
6613     # which start with @ or ?.
6614     lt_cv_sys_global_symbol_pipe="$AWK '"\
6615 "     {last_section=section; section=\$ 3};"\
6616 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6617 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6618 "     \$ 0!~/External *\|/{next};"\
6619 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6620 "     {if(hide[section]) next};"\
6621 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6622 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6623 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6624 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6625 "     ' prfx=^$ac_symprfx"
6626   else
6627     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6628   fi
6629   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6630
6631   # Check to see that the pipe works correctly.
6632   pipe_works=no
6633
6634   rm -f conftest*
6635   cat > conftest.$ac_ext <<_LT_EOF
6636 #ifdef __cplusplus
6637 extern "C" {
6638 #endif
6639 char nm_test_var;
6640 void nm_test_func(void);
6641 void nm_test_func(void){}
6642 #ifdef __cplusplus
6643 }
6644 #endif
6645 int main(){nm_test_var='a';nm_test_func();return(0);}
6646 _LT_EOF
6647
6648   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6649   (eval $ac_compile) 2>&5
6650   ac_status=$?
6651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6652   test $ac_status = 0; }; then
6653     # Now try to grab the symbols.
6654     nlist=conftest.nm
6655     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6656   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6657   ac_status=$?
6658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659   test $ac_status = 0; } && test -s "$nlist"; then
6660       # Try sorting and uniquifying the output.
6661       if sort "$nlist" | uniq > "$nlist"T; then
6662         mv -f "$nlist"T "$nlist"
6663       else
6664         rm -f "$nlist"T
6665       fi
6666
6667       # Make sure that we snagged all the symbols we need.
6668       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6669         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6670           cat <<_LT_EOF > conftest.$ac_ext
6671 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6672 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6673 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6674    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6675 # define LT_DLSYM_CONST
6676 #elif defined(__osf__)
6677 /* This system does not cope well with relocations in const data.  */
6678 # define LT_DLSYM_CONST
6679 #else
6680 # define LT_DLSYM_CONST const
6681 #endif
6682
6683 #ifdef __cplusplus
6684 extern "C" {
6685 #endif
6686
6687 _LT_EOF
6688           # Now generate the symbol file.
6689           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6690
6691           cat <<_LT_EOF >> conftest.$ac_ext
6692
6693 /* The mapping between symbol names and symbols.  */
6694 LT_DLSYM_CONST struct {
6695   const char *name;
6696   void       *address;
6697 }
6698 lt__PROGRAM__LTX_preloaded_symbols[] =
6699 {
6700   { "@PROGRAM@", (void *) 0 },
6701 _LT_EOF
6702           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6703           cat <<\_LT_EOF >> conftest.$ac_ext
6704   {0, (void *) 0}
6705 };
6706
6707 /* This works around a problem in FreeBSD linker */
6708 #ifdef FREEBSD_WORKAROUND
6709 static const void *lt_preloaded_setup() {
6710   return lt__PROGRAM__LTX_preloaded_symbols;
6711 }
6712 #endif
6713
6714 #ifdef __cplusplus
6715 }
6716 #endif
6717 _LT_EOF
6718           # Now try linking the two files.
6719           mv conftest.$ac_objext conftstm.$ac_objext
6720           lt_globsym_save_LIBS=$LIBS
6721           lt_globsym_save_CFLAGS=$CFLAGS
6722           LIBS="conftstm.$ac_objext"
6723           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6724           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6725   (eval $ac_link) 2>&5
6726   ac_status=$?
6727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6728   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6729             pipe_works=yes
6730           fi
6731           LIBS=$lt_globsym_save_LIBS
6732           CFLAGS=$lt_globsym_save_CFLAGS
6733         else
6734           echo "cannot find nm_test_func in $nlist" >&5
6735         fi
6736       else
6737         echo "cannot find nm_test_var in $nlist" >&5
6738       fi
6739     else
6740       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6741     fi
6742   else
6743     echo "$progname: failed program was:" >&5
6744     cat conftest.$ac_ext >&5
6745   fi
6746   rm -rf conftest* conftst*
6747
6748   # Do not use the global_symbol_pipe unless it works.
6749   if test "$pipe_works" = yes; then
6750     break
6751   else
6752     lt_cv_sys_global_symbol_pipe=
6753   fi
6754 done
6755
6756 fi
6757
6758 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6759   lt_cv_sys_global_symbol_to_cdecl=
6760 fi
6761 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6763 $as_echo "failed" >&6; }
6764 else
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6766 $as_echo "ok" >&6; }
6767 fi
6768
6769 # Response file support.
6770 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6771   nm_file_list_spec='@'
6772 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6773   nm_file_list_spec='@'
6774 fi
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6803 $as_echo_n "checking for sysroot... " >&6; }
6804
6805 # Check whether --with-sysroot was given.
6806 if test "${with_sysroot+set}" = set; then :
6807   withval=$with_sysroot;
6808 else
6809   with_sysroot=no
6810 fi
6811
6812
6813 lt_sysroot=
6814 case ${with_sysroot} in #(
6815  yes)
6816    if test "$GCC" = yes; then
6817      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6818    fi
6819    ;; #(
6820  /*)
6821    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6822    ;; #(
6823  no|'')
6824    ;; #(
6825  *)
6826    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6827 $as_echo "${with_sysroot}" >&6; }
6828    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6829    ;;
6830 esac
6831
6832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6833 $as_echo "${lt_sysroot:-no}" >&6; }
6834
6835
6836
6837
6838
6839 # Check whether --enable-libtool-lock was given.
6840 if test "${enable_libtool_lock+set}" = set; then :
6841   enableval=$enable_libtool_lock;
6842 fi
6843
6844 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6845
6846 # Some flags need to be propagated to the compiler or linker for good
6847 # libtool support.
6848 case $host in
6849 ia64-*-hpux*)
6850   # Find out which ABI we are using.
6851   echo 'int i;' > conftest.$ac_ext
6852   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6853   (eval $ac_compile) 2>&5
6854   ac_status=$?
6855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856   test $ac_status = 0; }; then
6857     case `/usr/bin/file conftest.$ac_objext` in
6858       *ELF-32*)
6859         HPUX_IA64_MODE="32"
6860         ;;
6861       *ELF-64*)
6862         HPUX_IA64_MODE="64"
6863         ;;
6864     esac
6865   fi
6866   rm -rf conftest*
6867   ;;
6868 *-*-irix6*)
6869   # Find out which ABI we are using.
6870   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6871   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872   (eval $ac_compile) 2>&5
6873   ac_status=$?
6874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875   test $ac_status = 0; }; then
6876     if test "$lt_cv_prog_gnu_ld" = yes; then
6877       case `/usr/bin/file conftest.$ac_objext` in
6878         *32-bit*)
6879           LD="${LD-ld} -melf32bsmip"
6880           ;;
6881         *N32*)
6882           LD="${LD-ld} -melf32bmipn32"
6883           ;;
6884         *64-bit*)
6885           LD="${LD-ld} -melf64bmip"
6886         ;;
6887       esac
6888     else
6889       case `/usr/bin/file conftest.$ac_objext` in
6890         *32-bit*)
6891           LD="${LD-ld} -32"
6892           ;;
6893         *N32*)
6894           LD="${LD-ld} -n32"
6895           ;;
6896         *64-bit*)
6897           LD="${LD-ld} -64"
6898           ;;
6899       esac
6900     fi
6901   fi
6902   rm -rf conftest*
6903   ;;
6904
6905 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6906 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6907   # Find out which ABI we are using.
6908   echo 'int i;' > conftest.$ac_ext
6909   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6910   (eval $ac_compile) 2>&5
6911   ac_status=$?
6912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6913   test $ac_status = 0; }; then
6914     case `/usr/bin/file conftest.o` in
6915       *32-bit*)
6916         case $host in
6917           x86_64-*kfreebsd*-gnu)
6918             LD="${LD-ld} -m elf_i386_fbsd"
6919             ;;
6920           x86_64-*linux*)
6921             LD="${LD-ld} -m elf_i386"
6922             ;;
6923           ppc64-*linux*|powerpc64-*linux*)
6924             LD="${LD-ld} -m elf32ppclinux"
6925             ;;
6926           s390x-*linux*)
6927             LD="${LD-ld} -m elf_s390"
6928             ;;
6929           sparc64-*linux*)
6930             LD="${LD-ld} -m elf32_sparc"
6931             ;;
6932         esac
6933         ;;
6934       *64-bit*)
6935         case $host in
6936           x86_64-*kfreebsd*-gnu)
6937             LD="${LD-ld} -m elf_x86_64_fbsd"
6938             ;;
6939           x86_64-*linux*)
6940             LD="${LD-ld} -m elf_x86_64"
6941             ;;
6942           ppc*-*linux*|powerpc*-*linux*)
6943             LD="${LD-ld} -m elf64ppc"
6944             ;;
6945           s390*-*linux*|s390*-*tpf*)
6946             LD="${LD-ld} -m elf64_s390"
6947             ;;
6948           sparc*-*linux*)
6949             LD="${LD-ld} -m elf64_sparc"
6950             ;;
6951         esac
6952         ;;
6953     esac
6954   fi
6955   rm -rf conftest*
6956   ;;
6957
6958 *-*-sco3.2v5*)
6959   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6960   SAVE_CFLAGS="$CFLAGS"
6961   CFLAGS="$CFLAGS -belf"
6962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6963 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6964 if ${lt_cv_cc_needs_belf+:} false; then :
6965   $as_echo_n "(cached) " >&6
6966 else
6967   ac_ext=c
6968 ac_cpp='$CPP $CPPFLAGS'
6969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972
6973      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h.  */
6975
6976 int
6977 main ()
6978 {
6979
6980   ;
6981   return 0;
6982 }
6983 _ACEOF
6984 if ac_fn_c_try_link "$LINENO"; then :
6985   lt_cv_cc_needs_belf=yes
6986 else
6987   lt_cv_cc_needs_belf=no
6988 fi
6989 rm -f core conftest.err conftest.$ac_objext \
6990     conftest$ac_exeext conftest.$ac_ext
6991      ac_ext=c
6992 ac_cpp='$CPP $CPPFLAGS'
6993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6996
6997 fi
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6999 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7000   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7001     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7002     CFLAGS="$SAVE_CFLAGS"
7003   fi
7004   ;;
7005 *-*solaris*)
7006   # Find out which ABI we are using.
7007   echo 'int i;' > conftest.$ac_ext
7008   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7009   (eval $ac_compile) 2>&5
7010   ac_status=$?
7011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7012   test $ac_status = 0; }; then
7013     case `/usr/bin/file conftest.o` in
7014     *64-bit*)
7015       case $lt_cv_prog_gnu_ld in
7016       yes*)
7017         case $host in
7018         i?86-*-solaris*)
7019           LD="${LD-ld} -m elf_x86_64"
7020           ;;
7021         sparc*-*-solaris*)
7022           LD="${LD-ld} -m elf64_sparc"
7023           ;;
7024         esac
7025         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7026         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7027           LD="${LD-ld}_sol2"
7028         fi
7029         ;;
7030       *)
7031         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7032           LD="${LD-ld} -64"
7033         fi
7034         ;;
7035       esac
7036       ;;
7037     esac
7038   fi
7039   rm -rf conftest*
7040   ;;
7041 esac
7042
7043 need_locks="$enable_libtool_lock"
7044
7045 if test -n "$ac_tool_prefix"; then
7046   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7047 set dummy ${ac_tool_prefix}mt; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7051   $as_echo_n "(cached) " >&6
7052 else
7053   if test -n "$MANIFEST_TOOL"; then
7054   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059   IFS=$as_save_IFS
7060   test -z "$as_dir" && as_dir=.
7061     for ac_exec_ext in '' $ac_executable_extensions; do
7062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065     break 2
7066   fi
7067 done
7068   done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7074 if test -n "$MANIFEST_TOOL"; then
7075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7076 $as_echo "$MANIFEST_TOOL" >&6; }
7077 else
7078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082
7083 fi
7084 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7085   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7086   # Extract the first word of "mt", so it can be a program name with args.
7087 set dummy mt; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7091   $as_echo_n "(cached) " >&6
7092 else
7093   if test -n "$ac_ct_MANIFEST_TOOL"; then
7094   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099   IFS=$as_save_IFS
7100   test -z "$as_dir" && as_dir=.
7101     for ac_exec_ext in '' $ac_executable_extensions; do
7102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105     break 2
7106   fi
7107 done
7108   done
7109 IFS=$as_save_IFS
7110
7111 fi
7112 fi
7113 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7114 if test -n "$ac_ct_MANIFEST_TOOL"; then
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7116 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7117 else
7118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 fi
7121
7122   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7123     MANIFEST_TOOL=":"
7124   else
7125     case $cross_compiling:$ac_tool_warned in
7126 yes:)
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7129 ac_tool_warned=yes ;;
7130 esac
7131     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7132   fi
7133 else
7134   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7135 fi
7136
7137 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7139 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7140 if ${lt_cv_path_mainfest_tool+:} false; then :
7141   $as_echo_n "(cached) " >&6
7142 else
7143   lt_cv_path_mainfest_tool=no
7144   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7145   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7146   cat conftest.err >&5
7147   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7148     lt_cv_path_mainfest_tool=yes
7149   fi
7150   rm -f conftest*
7151 fi
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7153 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7154 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7155   MANIFEST_TOOL=:
7156 fi
7157
7158
7159
7160
7161
7162
7163   case $host_os in
7164     rhapsody* | darwin*)
7165     if test -n "$ac_tool_prefix"; then
7166   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7167 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7169 $as_echo_n "checking for $ac_word... " >&6; }
7170 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7171   $as_echo_n "(cached) " >&6
7172 else
7173   if test -n "$DSYMUTIL"; then
7174   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7175 else
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 for as_dir in $PATH
7178 do
7179   IFS=$as_save_IFS
7180   test -z "$as_dir" && as_dir=.
7181     for ac_exec_ext in '' $ac_executable_extensions; do
7182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7183     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185     break 2
7186   fi
7187 done
7188   done
7189 IFS=$as_save_IFS
7190
7191 fi
7192 fi
7193 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7194 if test -n "$DSYMUTIL"; then
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7196 $as_echo "$DSYMUTIL" >&6; }
7197 else
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 fi
7201
7202
7203 fi
7204 if test -z "$ac_cv_prog_DSYMUTIL"; then
7205   ac_ct_DSYMUTIL=$DSYMUTIL
7206   # Extract the first word of "dsymutil", so it can be a program name with args.
7207 set dummy dsymutil; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   if test -n "$ac_ct_DSYMUTIL"; then
7214   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221     for ac_exec_ext in '' $ac_executable_extensions; do
7222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228   done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7234 if test -n "$ac_ct_DSYMUTIL"; then
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7236 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7237 else
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242   if test "x$ac_ct_DSYMUTIL" = x; then
7243     DSYMUTIL=":"
7244   else
7245     case $cross_compiling:$ac_tool_warned in
7246 yes:)
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7249 ac_tool_warned=yes ;;
7250 esac
7251     DSYMUTIL=$ac_ct_DSYMUTIL
7252   fi
7253 else
7254   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7255 fi
7256
7257     if test -n "$ac_tool_prefix"; then
7258   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7259 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_prog_NMEDIT+:} false; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   if test -n "$NMEDIT"; then
7266   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273     for ac_exec_ext in '' $ac_executable_extensions; do
7274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280   done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 NMEDIT=$ac_cv_prog_NMEDIT
7286 if test -n "$NMEDIT"; then
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7288 $as_echo "$NMEDIT" >&6; }
7289 else
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291 $as_echo "no" >&6; }
7292 fi
7293
7294
7295 fi
7296 if test -z "$ac_cv_prog_NMEDIT"; then
7297   ac_ct_NMEDIT=$NMEDIT
7298   # Extract the first word of "nmedit", so it can be a program name with args.
7299 set dummy nmedit; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7303   $as_echo_n "(cached) " >&6
7304 else
7305   if test -n "$ac_ct_NMEDIT"; then
7306   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7310 do
7311   IFS=$as_save_IFS
7312   test -z "$as_dir" && as_dir=.
7313     for ac_exec_ext in '' $ac_executable_extensions; do
7314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317     break 2
7318   fi
7319 done
7320   done
7321 IFS=$as_save_IFS
7322
7323 fi
7324 fi
7325 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7326 if test -n "$ac_ct_NMEDIT"; then
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7328 $as_echo "$ac_ct_NMEDIT" >&6; }
7329 else
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7333
7334   if test "x$ac_ct_NMEDIT" = x; then
7335     NMEDIT=":"
7336   else
7337     case $cross_compiling:$ac_tool_warned in
7338 yes:)
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7341 ac_tool_warned=yes ;;
7342 esac
7343     NMEDIT=$ac_ct_NMEDIT
7344   fi
7345 else
7346   NMEDIT="$ac_cv_prog_NMEDIT"
7347 fi
7348
7349     if test -n "$ac_tool_prefix"; then
7350   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7351 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_LIPO+:} false; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   if test -n "$LIPO"; then
7358   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365     for ac_exec_ext in '' $ac_executable_extensions; do
7366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7367     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372   done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 LIPO=$ac_cv_prog_LIPO
7378 if test -n "$LIPO"; then
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7380 $as_echo "$LIPO" >&6; }
7381 else
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386
7387 fi
7388 if test -z "$ac_cv_prog_LIPO"; then
7389   ac_ct_LIPO=$LIPO
7390   # Extract the first word of "lipo", so it can be a program name with args.
7391 set dummy lipo; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   if test -n "$ac_ct_LIPO"; then
7398   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405     for ac_exec_ext in '' $ac_executable_extensions; do
7406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407     ac_cv_prog_ac_ct_LIPO="lipo"
7408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412   done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7418 if test -n "$ac_ct_LIPO"; then
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7420 $as_echo "$ac_ct_LIPO" >&6; }
7421 else
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426   if test "x$ac_ct_LIPO" = x; then
7427     LIPO=":"
7428   else
7429     case $cross_compiling:$ac_tool_warned in
7430 yes:)
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7433 ac_tool_warned=yes ;;
7434 esac
7435     LIPO=$ac_ct_LIPO
7436   fi
7437 else
7438   LIPO="$ac_cv_prog_LIPO"
7439 fi
7440
7441     if test -n "$ac_tool_prefix"; then
7442   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7443 set dummy ${ac_tool_prefix}otool; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_OTOOL+:} false; then :
7447   $as_echo_n "(cached) " >&6
7448 else
7449   if test -n "$OTOOL"; then
7450   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457     for ac_exec_ext in '' $ac_executable_extensions; do
7458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464   done
7465 IFS=$as_save_IFS
7466
7467 fi
7468 fi
7469 OTOOL=$ac_cv_prog_OTOOL
7470 if test -n "$OTOOL"; then
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7472 $as_echo "$OTOOL" >&6; }
7473 else
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477
7478
7479 fi
7480 if test -z "$ac_cv_prog_OTOOL"; then
7481   ac_ct_OTOOL=$OTOOL
7482   # Extract the first word of "otool", so it can be a program name with args.
7483 set dummy otool; ac_word=$2
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7485 $as_echo_n "checking for $ac_word... " >&6; }
7486 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7487   $as_echo_n "(cached) " >&6
7488 else
7489   if test -n "$ac_ct_OTOOL"; then
7490   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7491 else
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7493 for as_dir in $PATH
7494 do
7495   IFS=$as_save_IFS
7496   test -z "$as_dir" && as_dir=.
7497     for ac_exec_ext in '' $ac_executable_extensions; do
7498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7499     ac_cv_prog_ac_ct_OTOOL="otool"
7500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501     break 2
7502   fi
7503 done
7504   done
7505 IFS=$as_save_IFS
7506
7507 fi
7508 fi
7509 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7510 if test -n "$ac_ct_OTOOL"; then
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7512 $as_echo "$ac_ct_OTOOL" >&6; }
7513 else
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7515 $as_echo "no" >&6; }
7516 fi
7517
7518   if test "x$ac_ct_OTOOL" = x; then
7519     OTOOL=":"
7520   else
7521     case $cross_compiling:$ac_tool_warned in
7522 yes:)
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525 ac_tool_warned=yes ;;
7526 esac
7527     OTOOL=$ac_ct_OTOOL
7528   fi
7529 else
7530   OTOOL="$ac_cv_prog_OTOOL"
7531 fi
7532
7533     if test -n "$ac_tool_prefix"; then
7534   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7535 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_OTOOL64+:} false; then :
7539   $as_echo_n "(cached) " >&6
7540 else
7541   if test -n "$OTOOL64"; then
7542   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547   IFS=$as_save_IFS
7548   test -z "$as_dir" && as_dir=.
7549     for ac_exec_ext in '' $ac_executable_extensions; do
7550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7551     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553     break 2
7554   fi
7555 done
7556   done
7557 IFS=$as_save_IFS
7558
7559 fi
7560 fi
7561 OTOOL64=$ac_cv_prog_OTOOL64
7562 if test -n "$OTOOL64"; then
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7564 $as_echo "$OTOOL64" >&6; }
7565 else
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7568 fi
7569
7570
7571 fi
7572 if test -z "$ac_cv_prog_OTOOL64"; then
7573   ac_ct_OTOOL64=$OTOOL64
7574   # Extract the first word of "otool64", so it can be a program name with args.
7575 set dummy otool64; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7579   $as_echo_n "(cached) " >&6
7580 else
7581   if test -n "$ac_ct_OTOOL64"; then
7582   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589     for ac_exec_ext in '' $ac_executable_extensions; do
7590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591     ac_cv_prog_ac_ct_OTOOL64="otool64"
7592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596   done
7597 IFS=$as_save_IFS
7598
7599 fi
7600 fi
7601 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7602 if test -n "$ac_ct_OTOOL64"; then
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7604 $as_echo "$ac_ct_OTOOL64" >&6; }
7605 else
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7608 fi
7609
7610   if test "x$ac_ct_OTOOL64" = x; then
7611     OTOOL64=":"
7612   else
7613     case $cross_compiling:$ac_tool_warned in
7614 yes:)
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7617 ac_tool_warned=yes ;;
7618 esac
7619     OTOOL64=$ac_ct_OTOOL64
7620   fi
7621 else
7622   OTOOL64="$ac_cv_prog_OTOOL64"
7623 fi
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7652 $as_echo_n "checking for -single_module linker flag... " >&6; }
7653 if ${lt_cv_apple_cc_single_mod+:} false; then :
7654   $as_echo_n "(cached) " >&6
7655 else
7656   lt_cv_apple_cc_single_mod=no
7657       if test -z "${LT_MULTI_MODULE}"; then
7658         # By default we will add the -single_module flag. You can override
7659         # by either setting the environment variable LT_MULTI_MODULE
7660         # non-empty at configure time, or by adding -multi_module to the
7661         # link flags.
7662         rm -rf libconftest.dylib*
7663         echo "int foo(void){return 1;}" > conftest.c
7664         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7665 -dynamiclib -Wl,-single_module conftest.c" >&5
7666         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7667           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7668         _lt_result=$?
7669         # If there is a non-empty error log, and "single_module"
7670         # appears in it, assume the flag caused a linker warning
7671         if test -s conftest.err && $GREP single_module conftest.err; then
7672           cat conftest.err >&5
7673         # Otherwise, if the output was created with a 0 exit code from
7674         # the compiler, it worked.
7675         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7676           lt_cv_apple_cc_single_mod=yes
7677         else
7678           cat conftest.err >&5
7679         fi
7680         rm -rf libconftest.dylib*
7681         rm -f conftest.*
7682       fi
7683 fi
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7685 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7686
7687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7688 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7689 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7690   $as_echo_n "(cached) " >&6
7691 else
7692   lt_cv_ld_exported_symbols_list=no
7693       save_LDFLAGS=$LDFLAGS
7694       echo "_main" > conftest.sym
7695       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7696       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h.  */
7698
7699 int
7700 main ()
7701 {
7702
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 if ac_fn_c_try_link "$LINENO"; then :
7708   lt_cv_ld_exported_symbols_list=yes
7709 else
7710   lt_cv_ld_exported_symbols_list=no
7711 fi
7712 rm -f core conftest.err conftest.$ac_objext \
7713     conftest$ac_exeext conftest.$ac_ext
7714         LDFLAGS="$save_LDFLAGS"
7715
7716 fi
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7718 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7719
7720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7721 $as_echo_n "checking for -force_load linker flag... " >&6; }
7722 if ${lt_cv_ld_force_load+:} false; then :
7723   $as_echo_n "(cached) " >&6
7724 else
7725   lt_cv_ld_force_load=no
7726       cat > conftest.c << _LT_EOF
7727 int forced_loaded() { return 2;}
7728 _LT_EOF
7729       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7730       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7731       echo "$AR cru libconftest.a conftest.o" >&5
7732       $AR cru libconftest.a conftest.o 2>&5
7733       echo "$RANLIB libconftest.a" >&5
7734       $RANLIB libconftest.a 2>&5
7735       cat > conftest.c << _LT_EOF
7736 int main() { return 0;}
7737 _LT_EOF
7738       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7739       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7740       _lt_result=$?
7741       if test -s conftest.err && $GREP force_load conftest.err; then
7742         cat conftest.err >&5
7743       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7744         lt_cv_ld_force_load=yes
7745       else
7746         cat conftest.err >&5
7747       fi
7748         rm -f conftest.err libconftest.a conftest conftest.c
7749         rm -rf conftest.dSYM
7750
7751 fi
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7753 $as_echo "$lt_cv_ld_force_load" >&6; }
7754     case $host_os in
7755     rhapsody* | darwin1.[012])
7756       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7757     darwin1.*)
7758       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7759     darwin*) # darwin 5.x on
7760       # if running on 10.5 or later, the deployment target defaults
7761       # to the OS version, if on x86, and 10.4, the deployment
7762       # target defaults to 10.4. Don't you love it?
7763       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7764         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7765           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7766         10.[012]*)
7767           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7768         10.*)
7769           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7770       esac
7771     ;;
7772   esac
7773     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7774       _lt_dar_single_mod='$single_module'
7775     fi
7776     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7777       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7778     else
7779       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7780     fi
7781     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7782       _lt_dsymutil='~$DSYMUTIL $lib || :'
7783     else
7784       _lt_dsymutil=
7785     fi
7786     ;;
7787   esac
7788
7789 for ac_header in dlfcn.h
7790 do :
7791   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7792 "
7793 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7794   cat >>confdefs.h <<_ACEOF
7795 #define HAVE_DLFCN_H 1
7796 _ACEOF
7797
7798 fi
7799
7800 done
7801
7802
7803
7804
7805
7806 # Set options
7807 # Check whether --enable-static was given.
7808 if test "${enable_static+set}" = set; then :
7809   enableval=$enable_static; p=${PACKAGE-default}
7810     case $enableval in
7811     yes) enable_static=yes ;;
7812     no) enable_static=no ;;
7813     *)
7814      enable_static=no
7815       # Look at the argument we got.  We use all the common list separators.
7816       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7817       for pkg in $enableval; do
7818         IFS="$lt_save_ifs"
7819         if test "X$pkg" = "X$p"; then
7820           enable_static=yes
7821         fi
7822       done
7823       IFS="$lt_save_ifs"
7824       ;;
7825     esac
7826 else
7827   enable_static=no
7828 fi
7829
7830
7831
7832
7833
7834
7835
7836 enable_dlopen=yes
7837
7838
7839
7840
7841   enable_win32_dll=no
7842
7843
7844             # Check whether --enable-shared was given.
7845 if test "${enable_shared+set}" = set; then :
7846   enableval=$enable_shared; p=${PACKAGE-default}
7847     case $enableval in
7848     yes) enable_shared=yes ;;
7849     no) enable_shared=no ;;
7850     *)
7851       enable_shared=no
7852       # Look at the argument we got.  We use all the common list separators.
7853       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7854       for pkg in $enableval; do
7855         IFS="$lt_save_ifs"
7856         if test "X$pkg" = "X$p"; then
7857           enable_shared=yes
7858         fi
7859       done
7860       IFS="$lt_save_ifs"
7861       ;;
7862     esac
7863 else
7864   enable_shared=yes
7865 fi
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877 # Check whether --with-pic was given.
7878 if test "${with_pic+set}" = set; then :
7879   withval=$with_pic; lt_p=${PACKAGE-default}
7880     case $withval in
7881     yes|no) pic_mode=$withval ;;
7882     *)
7883       pic_mode=default
7884       # Look at the argument we got.  We use all the common list separators.
7885       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7886       for lt_pkg in $withval; do
7887         IFS="$lt_save_ifs"
7888         if test "X$lt_pkg" = "X$lt_p"; then
7889           pic_mode=yes
7890         fi
7891       done
7892       IFS="$lt_save_ifs"
7893       ;;
7894     esac
7895 else
7896   pic_mode=default
7897 fi
7898
7899
7900 test -z "$pic_mode" && pic_mode=default
7901
7902
7903
7904
7905
7906
7907
7908   # Check whether --enable-fast-install was given.
7909 if test "${enable_fast_install+set}" = set; then :
7910   enableval=$enable_fast_install; p=${PACKAGE-default}
7911     case $enableval in
7912     yes) enable_fast_install=yes ;;
7913     no) enable_fast_install=no ;;
7914     *)
7915       enable_fast_install=no
7916       # Look at the argument we got.  We use all the common list separators.
7917       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7918       for pkg in $enableval; do
7919         IFS="$lt_save_ifs"
7920         if test "X$pkg" = "X$p"; then
7921           enable_fast_install=yes
7922         fi
7923       done
7924       IFS="$lt_save_ifs"
7925       ;;
7926     esac
7927 else
7928   enable_fast_install=yes
7929 fi
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941 # This can be used to rebuild libtool when needed
7942 LIBTOOL_DEPS="$ltmain"
7943
7944 # Always use our own libtool.
7945 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976 test -z "$LN_S" && LN_S="ln -s"
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991 if test -n "${ZSH_VERSION+set}" ; then
7992    setopt NO_GLOB_SUBST
7993 fi
7994
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7996 $as_echo_n "checking for objdir... " >&6; }
7997 if ${lt_cv_objdir+:} false; then :
7998   $as_echo_n "(cached) " >&6
7999 else
8000   rm -f .libs 2>/dev/null
8001 mkdir .libs 2>/dev/null
8002 if test -d .libs; then
8003   lt_cv_objdir=.libs
8004 else
8005   # MS-DOS does not allow filenames that begin with a dot.
8006   lt_cv_objdir=_libs
8007 fi
8008 rmdir .libs 2>/dev/null
8009 fi
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8011 $as_echo "$lt_cv_objdir" >&6; }
8012 objdir=$lt_cv_objdir
8013
8014
8015
8016
8017
8018 cat >>confdefs.h <<_ACEOF
8019 #define LT_OBJDIR "$lt_cv_objdir/"
8020 _ACEOF
8021
8022
8023
8024
8025 case $host_os in
8026 aix3*)
8027   # AIX sometimes has problems with the GCC collect2 program.  For some
8028   # reason, if we set the COLLECT_NAMES environment variable, the problems
8029   # vanish in a puff of smoke.
8030   if test "X${COLLECT_NAMES+set}" != Xset; then
8031     COLLECT_NAMES=
8032     export COLLECT_NAMES
8033   fi
8034   ;;
8035 esac
8036
8037 # Global variables:
8038 ofile=libtool
8039 can_build_shared=yes
8040
8041 # All known linkers require a `.a' archive for static linking (except MSVC,
8042 # which needs '.lib').
8043 libext=a
8044
8045 with_gnu_ld="$lt_cv_prog_gnu_ld"
8046
8047 old_CC="$CC"
8048 old_CFLAGS="$CFLAGS"
8049
8050 # Set sane defaults for various variables
8051 test -z "$CC" && CC=cc
8052 test -z "$LTCC" && LTCC=$CC
8053 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8054 test -z "$LD" && LD=ld
8055 test -z "$ac_objext" && ac_objext=o
8056
8057 for cc_temp in $compiler""; do
8058   case $cc_temp in
8059     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8060     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8061     \-*) ;;
8062     *) break;;
8063   esac
8064 done
8065 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8066
8067
8068 # Only perform the check for file, if the check method requires it
8069 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8070 case $deplibs_check_method in
8071 file_magic*)
8072   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8074 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8075 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8076   $as_echo_n "(cached) " >&6
8077 else
8078   case $MAGIC_CMD in
8079 [\\/*] |  ?:[\\/]*)
8080   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8081   ;;
8082 *)
8083   lt_save_MAGIC_CMD="$MAGIC_CMD"
8084   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8085   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8086   for ac_dir in $ac_dummy; do
8087     IFS="$lt_save_ifs"
8088     test -z "$ac_dir" && ac_dir=.
8089     if test -f $ac_dir/${ac_tool_prefix}file; then
8090       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8091       if test -n "$file_magic_test_file"; then
8092         case $deplibs_check_method in
8093         "file_magic "*)
8094           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8095           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8096           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8097             $EGREP "$file_magic_regex" > /dev/null; then
8098             :
8099           else
8100             cat <<_LT_EOF 1>&2
8101
8102 *** Warning: the command libtool uses to detect shared libraries,
8103 *** $file_magic_cmd, produces output that libtool cannot recognize.
8104 *** The result is that libtool may fail to recognize shared libraries
8105 *** as such.  This will affect the creation of libtool libraries that
8106 *** depend on shared libraries, but programs linked with such libtool
8107 *** libraries will work regardless of this problem.  Nevertheless, you
8108 *** may want to report the problem to your system manager and/or to
8109 *** bug-libtool@gnu.org
8110
8111 _LT_EOF
8112           fi ;;
8113         esac
8114       fi
8115       break
8116     fi
8117   done
8118   IFS="$lt_save_ifs"
8119   MAGIC_CMD="$lt_save_MAGIC_CMD"
8120   ;;
8121 esac
8122 fi
8123
8124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8125 if test -n "$MAGIC_CMD"; then
8126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8127 $as_echo "$MAGIC_CMD" >&6; }
8128 else
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8131 fi
8132
8133
8134
8135
8136
8137 if test -z "$lt_cv_path_MAGIC_CMD"; then
8138   if test -n "$ac_tool_prefix"; then
8139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8140 $as_echo_n "checking for file... " >&6; }
8141 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8142   $as_echo_n "(cached) " >&6
8143 else
8144   case $MAGIC_CMD in
8145 [\\/*] |  ?:[\\/]*)
8146   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8147   ;;
8148 *)
8149   lt_save_MAGIC_CMD="$MAGIC_CMD"
8150   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8151   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8152   for ac_dir in $ac_dummy; do
8153     IFS="$lt_save_ifs"
8154     test -z "$ac_dir" && ac_dir=.
8155     if test -f $ac_dir/file; then
8156       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8157       if test -n "$file_magic_test_file"; then
8158         case $deplibs_check_method in
8159         "file_magic "*)
8160           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8161           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8162           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8163             $EGREP "$file_magic_regex" > /dev/null; then
8164             :
8165           else
8166             cat <<_LT_EOF 1>&2
8167
8168 *** Warning: the command libtool uses to detect shared libraries,
8169 *** $file_magic_cmd, produces output that libtool cannot recognize.
8170 *** The result is that libtool may fail to recognize shared libraries
8171 *** as such.  This will affect the creation of libtool libraries that
8172 *** depend on shared libraries, but programs linked with such libtool
8173 *** libraries will work regardless of this problem.  Nevertheless, you
8174 *** may want to report the problem to your system manager and/or to
8175 *** bug-libtool@gnu.org
8176
8177 _LT_EOF
8178           fi ;;
8179         esac
8180       fi
8181       break
8182     fi
8183   done
8184   IFS="$lt_save_ifs"
8185   MAGIC_CMD="$lt_save_MAGIC_CMD"
8186   ;;
8187 esac
8188 fi
8189
8190 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8191 if test -n "$MAGIC_CMD"; then
8192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8193 $as_echo "$MAGIC_CMD" >&6; }
8194 else
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196 $as_echo "no" >&6; }
8197 fi
8198
8199
8200   else
8201     MAGIC_CMD=:
8202   fi
8203 fi
8204
8205   fi
8206   ;;
8207 esac
8208
8209 # Use C for the default configuration in the libtool script
8210
8211 lt_save_CC="$CC"
8212 ac_ext=c
8213 ac_cpp='$CPP $CPPFLAGS'
8214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8217
8218
8219 # Source file extension for C test sources.
8220 ac_ext=c
8221
8222 # Object file extension for compiled C test sources.
8223 objext=o
8224 objext=$objext
8225
8226 # Code to be used in simple compile tests
8227 lt_simple_compile_test_code="int some_variable = 0;"
8228
8229 # Code to be used in simple link tests
8230 lt_simple_link_test_code='int main(){return(0);}'
8231
8232
8233
8234
8235
8236
8237
8238 # If no C compiler was specified, use CC.
8239 LTCC=${LTCC-"$CC"}
8240
8241 # If no C compiler flags were specified, use CFLAGS.
8242 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8243
8244 # Allow CC to be a program name with arguments.
8245 compiler=$CC
8246
8247 # Save the default compiler, since it gets overwritten when the other
8248 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8249 compiler_DEFAULT=$CC
8250
8251 # save warnings/boilerplate of simple test code
8252 ac_outfile=conftest.$ac_objext
8253 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8254 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8255 _lt_compiler_boilerplate=`cat conftest.err`
8256 $RM conftest*
8257
8258 ac_outfile=conftest.$ac_objext
8259 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8260 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8261 _lt_linker_boilerplate=`cat conftest.err`
8262 $RM -r conftest*
8263
8264
8265 if test -n "$compiler"; then
8266
8267 lt_prog_compiler_no_builtin_flag=
8268
8269 if test "$GCC" = yes; then
8270   case $cc_basename in
8271   nvcc*)
8272     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8273   *)
8274     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8275   esac
8276
8277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8278 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8279 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8280   $as_echo_n "(cached) " >&6
8281 else
8282   lt_cv_prog_compiler_rtti_exceptions=no
8283    ac_outfile=conftest.$ac_objext
8284    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8285    lt_compiler_flag="-fno-rtti -fno-exceptions"
8286    # Insert the option either (1) after the last *FLAGS variable, or
8287    # (2) before a word containing "conftest.", or (3) at the end.
8288    # Note that $ac_compile itself does not contain backslashes and begins
8289    # with a dollar sign (not a hyphen), so the echo should work correctly.
8290    # The option is referenced via a variable to avoid confusing sed.
8291    lt_compile=`echo "$ac_compile" | $SED \
8292    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8293    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8294    -e 's:$: $lt_compiler_flag:'`
8295    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8296    (eval "$lt_compile" 2>conftest.err)
8297    ac_status=$?
8298    cat conftest.err >&5
8299    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300    if (exit $ac_status) && test -s "$ac_outfile"; then
8301      # The compiler can only warn and ignore the option if not recognized
8302      # So say no if there are warnings other than the usual output.
8303      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8304      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8305      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8306        lt_cv_prog_compiler_rtti_exceptions=yes
8307      fi
8308    fi
8309    $RM conftest*
8310
8311 fi
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8313 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8314
8315 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8316     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8317 else
8318     :
8319 fi
8320
8321 fi
8322
8323
8324
8325
8326
8327
8328   lt_prog_compiler_wl=
8329 lt_prog_compiler_pic=
8330 lt_prog_compiler_static=
8331
8332
8333   if test "$GCC" = yes; then
8334     lt_prog_compiler_wl='-Wl,'
8335     lt_prog_compiler_static='-static'
8336
8337     case $host_os in
8338       aix*)
8339       # All AIX code is PIC.
8340       if test "$host_cpu" = ia64; then
8341         # AIX 5 now supports IA64 processor
8342         lt_prog_compiler_static='-Bstatic'
8343       fi
8344       ;;
8345
8346     amigaos*)
8347       case $host_cpu in
8348       powerpc)
8349             # see comment about AmigaOS4 .so support
8350             lt_prog_compiler_pic='-fPIC'
8351         ;;
8352       m68k)
8353             # FIXME: we need at least 68020 code to build shared libraries, but
8354             # adding the `-m68020' flag to GCC prevents building anything better,
8355             # like `-m68040'.
8356             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8357         ;;
8358       esac
8359       ;;
8360
8361     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8362       # PIC is the default for these OSes.
8363       ;;
8364
8365     mingw* | cygwin* | pw32* | os2* | cegcc*)
8366       # This hack is so that the source file can tell whether it is being
8367       # built for inclusion in a dll (and should export symbols for example).
8368       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8369       # (--disable-auto-import) libraries
8370       lt_prog_compiler_pic='-DDLL_EXPORT'
8371       ;;
8372
8373     darwin* | rhapsody*)
8374       # PIC is the default on this platform
8375       # Common symbols not allowed in MH_DYLIB files
8376       lt_prog_compiler_pic='-fno-common'
8377       ;;
8378
8379     haiku*)
8380       # PIC is the default for Haiku.
8381       # The "-static" flag exists, but is broken.
8382       lt_prog_compiler_static=
8383       ;;
8384
8385     hpux*)
8386       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8387       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8388       # sets the default TLS model and affects inlining.
8389       case $host_cpu in
8390       hppa*64*)
8391         # +Z the default
8392         ;;
8393       *)
8394         lt_prog_compiler_pic='-fPIC'
8395         ;;
8396       esac
8397       ;;
8398
8399     interix[3-9]*)
8400       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8401       # Instead, we relocate shared libraries at runtime.
8402       ;;
8403
8404     msdosdjgpp*)
8405       # Just because we use GCC doesn't mean we suddenly get shared libraries
8406       # on systems that don't support them.
8407       lt_prog_compiler_can_build_shared=no
8408       enable_shared=no
8409       ;;
8410
8411     *nto* | *qnx*)
8412       # QNX uses GNU C++, but need to define -shared option too, otherwise
8413       # it will coredump.
8414       lt_prog_compiler_pic='-fPIC -shared'
8415       ;;
8416
8417     sysv4*MP*)
8418       if test -d /usr/nec; then
8419         lt_prog_compiler_pic=-Kconform_pic
8420       fi
8421       ;;
8422
8423     *)
8424       lt_prog_compiler_pic='-fPIC'
8425       ;;
8426     esac
8427
8428     case $cc_basename in
8429     nvcc*) # Cuda Compiler Driver 2.2
8430       lt_prog_compiler_wl='-Xlinker '
8431       if test -n "$lt_prog_compiler_pic"; then
8432         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8433       fi
8434       ;;
8435     esac
8436   else
8437     # PORTME Check for flag to pass linker flags through the system compiler.
8438     case $host_os in
8439     aix*)
8440       lt_prog_compiler_wl='-Wl,'
8441       if test "$host_cpu" = ia64; then
8442         # AIX 5 now supports IA64 processor
8443         lt_prog_compiler_static='-Bstatic'
8444       else
8445         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8446       fi
8447       ;;
8448
8449     mingw* | cygwin* | pw32* | os2* | cegcc*)
8450       # This hack is so that the source file can tell whether it is being
8451       # built for inclusion in a dll (and should export symbols for example).
8452       lt_prog_compiler_pic='-DDLL_EXPORT'
8453       ;;
8454
8455     hpux9* | hpux10* | hpux11*)
8456       lt_prog_compiler_wl='-Wl,'
8457       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8458       # not for PA HP-UX.
8459       case $host_cpu in
8460       hppa*64*|ia64*)
8461         # +Z the default
8462         ;;
8463       *)
8464         lt_prog_compiler_pic='+Z'
8465         ;;
8466       esac
8467       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8468       lt_prog_compiler_static='${wl}-a ${wl}archive'
8469       ;;
8470
8471     irix5* | irix6* | nonstopux*)
8472       lt_prog_compiler_wl='-Wl,'
8473       # PIC (with -KPIC) is the default.
8474       lt_prog_compiler_static='-non_shared'
8475       ;;
8476
8477     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8478       case $cc_basename in
8479       # old Intel for x86_64 which still supported -KPIC.
8480       ecc*)
8481         lt_prog_compiler_wl='-Wl,'
8482         lt_prog_compiler_pic='-KPIC'
8483         lt_prog_compiler_static='-static'
8484         ;;
8485       # icc used to be incompatible with GCC.
8486       # ICC 10 doesn't accept -KPIC any more.
8487       icc* | ifort*)
8488         lt_prog_compiler_wl='-Wl,'
8489         lt_prog_compiler_pic='-fPIC'
8490         lt_prog_compiler_static='-static'
8491         ;;
8492       # Lahey Fortran 8.1.
8493       lf95*)
8494         lt_prog_compiler_wl='-Wl,'
8495         lt_prog_compiler_pic='--shared'
8496         lt_prog_compiler_static='--static'
8497         ;;
8498       nagfor*)
8499         # NAG Fortran compiler
8500         lt_prog_compiler_wl='-Wl,-Wl,,'
8501         lt_prog_compiler_pic='-PIC'
8502         lt_prog_compiler_static='-Bstatic'
8503         ;;
8504       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8505         # Portland Group compilers (*not* the Pentium gcc compiler,
8506         # which looks to be a dead project)
8507         lt_prog_compiler_wl='-Wl,'
8508         lt_prog_compiler_pic='-fpic'
8509         lt_prog_compiler_static='-Bstatic'
8510         ;;
8511       ccc*)
8512         lt_prog_compiler_wl='-Wl,'
8513         # All Alpha code is PIC.
8514         lt_prog_compiler_static='-non_shared'
8515         ;;
8516       xl* | bgxl* | bgf* | mpixl*)
8517         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8518         lt_prog_compiler_wl='-Wl,'
8519         lt_prog_compiler_pic='-qpic'
8520         lt_prog_compiler_static='-qstaticlink'
8521         ;;
8522       *)
8523         case `$CC -V 2>&1 | sed 5q` in
8524         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8525           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8526           lt_prog_compiler_pic='-KPIC'
8527           lt_prog_compiler_static='-Bstatic'
8528           lt_prog_compiler_wl=''
8529           ;;
8530         *Sun\ F* | *Sun*Fortran*)
8531           lt_prog_compiler_pic='-KPIC'
8532           lt_prog_compiler_static='-Bstatic'
8533           lt_prog_compiler_wl='-Qoption ld '
8534           ;;
8535         *Sun\ C*)
8536           # Sun C 5.9
8537           lt_prog_compiler_pic='-KPIC'
8538           lt_prog_compiler_static='-Bstatic'
8539           lt_prog_compiler_wl='-Wl,'
8540           ;;
8541         *Intel*\ [CF]*Compiler*)
8542           lt_prog_compiler_wl='-Wl,'
8543           lt_prog_compiler_pic='-fPIC'
8544           lt_prog_compiler_static='-static'
8545           ;;
8546         *Portland\ Group*)
8547           lt_prog_compiler_wl='-Wl,'
8548           lt_prog_compiler_pic='-fpic'
8549           lt_prog_compiler_static='-Bstatic'
8550           ;;
8551         esac
8552         ;;
8553       esac
8554       ;;
8555
8556     newsos6)
8557       lt_prog_compiler_pic='-KPIC'
8558       lt_prog_compiler_static='-Bstatic'
8559       ;;
8560
8561     *nto* | *qnx*)
8562       # QNX uses GNU C++, but need to define -shared option too, otherwise
8563       # it will coredump.
8564       lt_prog_compiler_pic='-fPIC -shared'
8565       ;;
8566
8567     osf3* | osf4* | osf5*)
8568       lt_prog_compiler_wl='-Wl,'
8569       # All OSF/1 code is PIC.
8570       lt_prog_compiler_static='-non_shared'
8571       ;;
8572
8573     rdos*)
8574       lt_prog_compiler_static='-non_shared'
8575       ;;
8576
8577     solaris*)
8578       lt_prog_compiler_pic='-KPIC'
8579       lt_prog_compiler_static='-Bstatic'
8580       case $cc_basename in
8581       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8582         lt_prog_compiler_wl='-Qoption ld ';;
8583       *)
8584         lt_prog_compiler_wl='-Wl,';;
8585       esac
8586       ;;
8587
8588     sunos4*)
8589       lt_prog_compiler_wl='-Qoption ld '
8590       lt_prog_compiler_pic='-PIC'
8591       lt_prog_compiler_static='-Bstatic'
8592       ;;
8593
8594     sysv4 | sysv4.2uw2* | sysv4.3*)
8595       lt_prog_compiler_wl='-Wl,'
8596       lt_prog_compiler_pic='-KPIC'
8597       lt_prog_compiler_static='-Bstatic'
8598       ;;
8599
8600     sysv4*MP*)
8601       if test -d /usr/nec ;then
8602         lt_prog_compiler_pic='-Kconform_pic'
8603         lt_prog_compiler_static='-Bstatic'
8604       fi
8605       ;;
8606
8607     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8608       lt_prog_compiler_wl='-Wl,'
8609       lt_prog_compiler_pic='-KPIC'
8610       lt_prog_compiler_static='-Bstatic'
8611       ;;
8612
8613     unicos*)
8614       lt_prog_compiler_wl='-Wl,'
8615       lt_prog_compiler_can_build_shared=no
8616       ;;
8617
8618     uts4*)
8619       lt_prog_compiler_pic='-pic'
8620       lt_prog_compiler_static='-Bstatic'
8621       ;;
8622
8623     *)
8624       lt_prog_compiler_can_build_shared=no
8625       ;;
8626     esac
8627   fi
8628
8629 case $host_os in
8630   # For platforms which do not support PIC, -DPIC is meaningless:
8631   *djgpp*)
8632     lt_prog_compiler_pic=
8633     ;;
8634   *)
8635     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8636     ;;
8637 esac
8638
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8640 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8641 if ${lt_cv_prog_compiler_pic+:} false; then :
8642   $as_echo_n "(cached) " >&6
8643 else
8644   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8645 fi
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8647 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8648 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8649
8650 #
8651 # Check to make sure the PIC flag actually works.
8652 #
8653 if test -n "$lt_prog_compiler_pic"; then
8654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8655 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8656 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8657   $as_echo_n "(cached) " >&6
8658 else
8659   lt_cv_prog_compiler_pic_works=no
8660    ac_outfile=conftest.$ac_objext
8661    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8662    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8663    # Insert the option either (1) after the last *FLAGS variable, or
8664    # (2) before a word containing "conftest.", or (3) at the end.
8665    # Note that $ac_compile itself does not contain backslashes and begins
8666    # with a dollar sign (not a hyphen), so the echo should work correctly.
8667    # The option is referenced via a variable to avoid confusing sed.
8668    lt_compile=`echo "$ac_compile" | $SED \
8669    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8670    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8671    -e 's:$: $lt_compiler_flag:'`
8672    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8673    (eval "$lt_compile" 2>conftest.err)
8674    ac_status=$?
8675    cat conftest.err >&5
8676    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677    if (exit $ac_status) && test -s "$ac_outfile"; then
8678      # The compiler can only warn and ignore the option if not recognized
8679      # So say no if there are warnings other than the usual output.
8680      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8681      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8682      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8683        lt_cv_prog_compiler_pic_works=yes
8684      fi
8685    fi
8686    $RM conftest*
8687
8688 fi
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8690 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8691
8692 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8693     case $lt_prog_compiler_pic in
8694      "" | " "*) ;;
8695      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8696      esac
8697 else
8698     lt_prog_compiler_pic=
8699      lt_prog_compiler_can_build_shared=no
8700 fi
8701
8702 fi
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714 #
8715 # Check to make sure the static flag actually works.
8716 #
8717 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8719 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8720 if ${lt_cv_prog_compiler_static_works+:} false; then :
8721   $as_echo_n "(cached) " >&6
8722 else
8723   lt_cv_prog_compiler_static_works=no
8724    save_LDFLAGS="$LDFLAGS"
8725    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8726    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8727    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8728      # The linker can only warn and ignore the option if not recognized
8729      # So say no if there are warnings
8730      if test -s conftest.err; then
8731        # Append any errors to the config.log.
8732        cat conftest.err 1>&5
8733        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8734        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8735        if diff conftest.exp conftest.er2 >/dev/null; then
8736          lt_cv_prog_compiler_static_works=yes
8737        fi
8738      else
8739        lt_cv_prog_compiler_static_works=yes
8740      fi
8741    fi
8742    $RM -r conftest*
8743    LDFLAGS="$save_LDFLAGS"
8744
8745 fi
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8747 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8748
8749 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8750     :
8751 else
8752     lt_prog_compiler_static=
8753 fi
8754
8755
8756
8757
8758
8759
8760
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8762 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8763 if ${lt_cv_prog_compiler_c_o+:} false; then :
8764   $as_echo_n "(cached) " >&6
8765 else
8766   lt_cv_prog_compiler_c_o=no
8767    $RM -r conftest 2>/dev/null
8768    mkdir conftest
8769    cd conftest
8770    mkdir out
8771    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8772
8773    lt_compiler_flag="-o out/conftest2.$ac_objext"
8774    # Insert the option either (1) after the last *FLAGS variable, or
8775    # (2) before a word containing "conftest.", or (3) at the end.
8776    # Note that $ac_compile itself does not contain backslashes and begins
8777    # with a dollar sign (not a hyphen), so the echo should work correctly.
8778    lt_compile=`echo "$ac_compile" | $SED \
8779    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8780    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8781    -e 's:$: $lt_compiler_flag:'`
8782    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8783    (eval "$lt_compile" 2>out/conftest.err)
8784    ac_status=$?
8785    cat out/conftest.err >&5
8786    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8788    then
8789      # The compiler can only warn and ignore the option if not recognized
8790      # So say no if there are warnings
8791      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8792      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8793      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8794        lt_cv_prog_compiler_c_o=yes
8795      fi
8796    fi
8797    chmod u+w . 2>&5
8798    $RM conftest*
8799    # SGI C++ compiler will create directory out/ii_files/ for
8800    # template instantiation
8801    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8802    $RM out/* && rmdir out
8803    cd ..
8804    $RM -r conftest
8805    $RM conftest*
8806
8807 fi
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8809 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8810
8811
8812
8813
8814
8815
8816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8817 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8818 if ${lt_cv_prog_compiler_c_o+:} false; then :
8819   $as_echo_n "(cached) " >&6
8820 else
8821   lt_cv_prog_compiler_c_o=no
8822    $RM -r conftest 2>/dev/null
8823    mkdir conftest
8824    cd conftest
8825    mkdir out
8826    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8827
8828    lt_compiler_flag="-o out/conftest2.$ac_objext"
8829    # Insert the option either (1) after the last *FLAGS variable, or
8830    # (2) before a word containing "conftest.", or (3) at the end.
8831    # Note that $ac_compile itself does not contain backslashes and begins
8832    # with a dollar sign (not a hyphen), so the echo should work correctly.
8833    lt_compile=`echo "$ac_compile" | $SED \
8834    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8835    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8836    -e 's:$: $lt_compiler_flag:'`
8837    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8838    (eval "$lt_compile" 2>out/conftest.err)
8839    ac_status=$?
8840    cat out/conftest.err >&5
8841    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8843    then
8844      # The compiler can only warn and ignore the option if not recognized
8845      # So say no if there are warnings
8846      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8847      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8848      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8849        lt_cv_prog_compiler_c_o=yes
8850      fi
8851    fi
8852    chmod u+w . 2>&5
8853    $RM conftest*
8854    # SGI C++ compiler will create directory out/ii_files/ for
8855    # template instantiation
8856    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8857    $RM out/* && rmdir out
8858    cd ..
8859    $RM -r conftest
8860    $RM conftest*
8861
8862 fi
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8864 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8865
8866
8867
8868
8869 hard_links="nottested"
8870 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8871   # do not overwrite the value of need_locks provided by the user
8872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8873 $as_echo_n "checking if we can lock with hard links... " >&6; }
8874   hard_links=yes
8875   $RM conftest*
8876   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8877   touch conftest.a
8878   ln conftest.a conftest.b 2>&5 || hard_links=no
8879   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8881 $as_echo "$hard_links" >&6; }
8882   if test "$hard_links" = no; then
8883     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8884 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8885     need_locks=warn
8886   fi
8887 else
8888   need_locks=no
8889 fi
8890
8891
8892
8893
8894
8895
8896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8897 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8898
8899   runpath_var=
8900   allow_undefined_flag=
8901   always_export_symbols=no
8902   archive_cmds=
8903   archive_expsym_cmds=
8904   compiler_needs_object=no
8905   enable_shared_with_static_runtimes=no
8906   export_dynamic_flag_spec=
8907   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8908   hardcode_automatic=no
8909   hardcode_direct=no
8910   hardcode_direct_absolute=no
8911   hardcode_libdir_flag_spec=
8912   hardcode_libdir_separator=
8913   hardcode_minus_L=no
8914   hardcode_shlibpath_var=unsupported
8915   inherit_rpath=no
8916   link_all_deplibs=unknown
8917   module_cmds=
8918   module_expsym_cmds=
8919   old_archive_from_new_cmds=
8920   old_archive_from_expsyms_cmds=
8921   thread_safe_flag_spec=
8922   whole_archive_flag_spec=
8923   # include_expsyms should be a list of space-separated symbols to be *always*
8924   # included in the symbol list
8925   include_expsyms=
8926   # exclude_expsyms can be an extended regexp of symbols to exclude
8927   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8928   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8929   # as well as any symbol that contains `d'.
8930   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8931   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8932   # platforms (ab)use it in PIC code, but their linkers get confused if
8933   # the symbol is explicitly referenced.  Since portable code cannot
8934   # rely on this symbol name, it's probably fine to never include it in
8935   # preloaded symbol tables.
8936   # Exclude shared library initialization/finalization symbols.
8937   extract_expsyms_cmds=
8938
8939   case $host_os in
8940   cygwin* | mingw* | pw32* | cegcc*)
8941     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8942     # When not using gcc, we currently assume that we are using
8943     # Microsoft Visual C++.
8944     if test "$GCC" != yes; then
8945       with_gnu_ld=no
8946     fi
8947     ;;
8948   interix*)
8949     # we just hope/assume this is gcc and not c89 (= MSVC++)
8950     with_gnu_ld=yes
8951     ;;
8952   openbsd*)
8953     with_gnu_ld=no
8954     ;;
8955   esac
8956
8957   ld_shlibs=yes
8958
8959   # On some targets, GNU ld is compatible enough with the native linker
8960   # that we're better off using the native interface for both.
8961   lt_use_gnu_ld_interface=no
8962   if test "$with_gnu_ld" = yes; then
8963     case $host_os in
8964       aix*)
8965         # The AIX port of GNU ld has always aspired to compatibility
8966         # with the native linker.  However, as the warning in the GNU ld
8967         # block says, versions before 2.19.5* couldn't really create working
8968         # shared libraries, regardless of the interface used.
8969         case `$LD -v 2>&1` in
8970           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8971           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8972           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8973           *)
8974             lt_use_gnu_ld_interface=yes
8975             ;;
8976         esac
8977         ;;
8978       *)
8979         lt_use_gnu_ld_interface=yes
8980         ;;
8981     esac
8982   fi
8983
8984   if test "$lt_use_gnu_ld_interface" = yes; then
8985     # If archive_cmds runs LD, not CC, wlarc should be empty
8986     wlarc='${wl}'
8987
8988     # Set some defaults for GNU ld with shared library support. These
8989     # are reset later if shared libraries are not supported. Putting them
8990     # here allows them to be overridden if necessary.
8991     runpath_var=LD_RUN_PATH
8992     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8993     export_dynamic_flag_spec='${wl}--export-dynamic'
8994     # ancient GNU ld didn't support --whole-archive et. al.
8995     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8996       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8997     else
8998       whole_archive_flag_spec=
8999     fi
9000     supports_anon_versioning=no
9001     case `$LD -v 2>&1` in
9002       *GNU\ gold*) supports_anon_versioning=yes ;;
9003       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9004       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9005       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9006       *\ 2.11.*) ;; # other 2.11 versions
9007       *) supports_anon_versioning=yes ;;
9008     esac
9009
9010     # See if GNU ld supports shared libraries.
9011     case $host_os in
9012     aix[3-9]*)
9013       # On AIX/PPC, the GNU linker is very broken
9014       if test "$host_cpu" != ia64; then
9015         ld_shlibs=no
9016         cat <<_LT_EOF 1>&2
9017
9018 *** Warning: the GNU linker, at least up to release 2.19, is reported
9019 *** to be unable to reliably create shared libraries on AIX.
9020 *** Therefore, libtool is disabling shared libraries support.  If you
9021 *** really care for shared libraries, you may want to install binutils
9022 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9023 *** You will then need to restart the configuration process.
9024
9025 _LT_EOF
9026       fi
9027       ;;
9028
9029     amigaos*)
9030       case $host_cpu in
9031       powerpc)
9032             # see comment about AmigaOS4 .so support
9033             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034             archive_expsym_cmds=''
9035         ;;
9036       m68k)
9037             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)'
9038             hardcode_libdir_flag_spec='-L$libdir'
9039             hardcode_minus_L=yes
9040         ;;
9041       esac
9042       ;;
9043
9044     beos*)
9045       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9046         allow_undefined_flag=unsupported
9047         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9048         # support --undefined.  This deserves some investigation.  FIXME
9049         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9050       else
9051         ld_shlibs=no
9052       fi
9053       ;;
9054
9055     cygwin* | mingw* | pw32* | cegcc*)
9056       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9057       # as there is no search path for DLLs.
9058       hardcode_libdir_flag_spec='-L$libdir'
9059       export_dynamic_flag_spec='${wl}--export-all-symbols'
9060       allow_undefined_flag=unsupported
9061       always_export_symbols=no
9062       enable_shared_with_static_runtimes=yes
9063       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'
9064       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9065
9066       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9067         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9068         # If the export-symbols file already is a .def file (1st line
9069         # is EXPORTS), use it as is; otherwise, prepend...
9070         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9071           cp $export_symbols $output_objdir/$soname.def;
9072         else
9073           echo EXPORTS > $output_objdir/$soname.def;
9074           cat $export_symbols >> $output_objdir/$soname.def;
9075         fi~
9076         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9077       else
9078         ld_shlibs=no
9079       fi
9080       ;;
9081
9082     haiku*)
9083       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9084       link_all_deplibs=yes
9085       ;;
9086
9087     interix[3-9]*)
9088       hardcode_direct=no
9089       hardcode_shlibpath_var=no
9090       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9091       export_dynamic_flag_spec='${wl}-E'
9092       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9093       # Instead, shared libraries are loaded at an image base (0x10000000 by
9094       # default) and relocated if they conflict, which is a slow very memory
9095       # consuming and fragmenting process.  To avoid this, we pick a random,
9096       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9097       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9098       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9099       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'
9100       ;;
9101
9102     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9103       tmp_diet=no
9104       if test "$host_os" = linux-dietlibc; then
9105         case $cc_basename in
9106           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9107         esac
9108       fi
9109       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9110          && test "$tmp_diet" = no
9111       then
9112         tmp_addflag=' $pic_flag'
9113         tmp_sharedflag='-shared'
9114         case $cc_basename,$host_cpu in
9115         pgcc*)                          # Portland Group C compiler
9116           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'
9117           tmp_addflag=' $pic_flag'
9118           ;;
9119         pgf77* | pgf90* | pgf95* | pgfortran*)
9120                                         # Portland Group f77 and f90 compilers
9121           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'
9122           tmp_addflag=' $pic_flag -Mnomain' ;;
9123         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9124           tmp_addflag=' -i_dynamic' ;;
9125         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9126           tmp_addflag=' -i_dynamic -nofor_main' ;;
9127         ifc* | ifort*)                  # Intel Fortran compiler
9128           tmp_addflag=' -nofor_main' ;;
9129         lf95*)                          # Lahey Fortran 8.1
9130           whole_archive_flag_spec=
9131           tmp_sharedflag='--shared' ;;
9132         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9133           tmp_sharedflag='-qmkshrobj'
9134           tmp_addflag= ;;
9135         nvcc*)  # Cuda Compiler Driver 2.2
9136           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'
9137           compiler_needs_object=yes
9138           ;;
9139         esac
9140         case `$CC -V 2>&1 | sed 5q` in
9141         *Sun\ C*)                       # Sun C 5.9
9142           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'
9143           compiler_needs_object=yes
9144           tmp_sharedflag='-G' ;;
9145         *Sun\ F*)                       # Sun Fortran 8.3
9146           tmp_sharedflag='-G' ;;
9147         esac
9148         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9149
9150         if test "x$supports_anon_versioning" = xyes; then
9151           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9152             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9153             echo "local: *; };" >> $output_objdir/$libname.ver~
9154             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9155         fi
9156
9157         case $cc_basename in
9158         xlf* | bgf* | bgxlf* | mpixlf*)
9159           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9160           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9161           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9162           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9163           if test "x$supports_anon_versioning" = xyes; then
9164             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9165               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9166               echo "local: *; };" >> $output_objdir/$libname.ver~
9167               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9168           fi
9169           ;;
9170         esac
9171       else
9172         ld_shlibs=no
9173       fi
9174       ;;
9175
9176     netbsd*)
9177       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9178         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9179         wlarc=
9180       else
9181         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9182         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9183       fi
9184       ;;
9185
9186     solaris*)
9187       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9188         ld_shlibs=no
9189         cat <<_LT_EOF 1>&2
9190
9191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9192 *** create shared libraries on Solaris systems.  Therefore, libtool
9193 *** is disabling shared libraries support.  We urge you to upgrade GNU
9194 *** binutils to release 2.9.1 or newer.  Another option is to modify
9195 *** your PATH or compiler configuration so that the native linker is
9196 *** used, and then restart.
9197
9198 _LT_EOF
9199       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9200         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9202       else
9203         ld_shlibs=no
9204       fi
9205       ;;
9206
9207     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9208       case `$LD -v 2>&1` in
9209         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9210         ld_shlibs=no
9211         cat <<_LT_EOF 1>&2
9212
9213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9214 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9215 *** is disabling shared libraries support.  We urge you to upgrade GNU
9216 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9217 *** your PATH or compiler configuration so that the native linker is
9218 *** used, and then restart.
9219
9220 _LT_EOF
9221         ;;
9222         *)
9223           # For security reasons, it is highly recommended that you always
9224           # use absolute paths for naming shared libraries, and exclude the
9225           # DT_RUNPATH tag from executables and libraries.  But doing so
9226           # requires that you compile everything twice, which is a pain.
9227           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9228             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9231           else
9232             ld_shlibs=no
9233           fi
9234         ;;
9235       esac
9236       ;;
9237
9238     sunos4*)
9239       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9240       wlarc=
9241       hardcode_direct=yes
9242       hardcode_shlibpath_var=no
9243       ;;
9244
9245     *)
9246       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9247         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9248         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9249       else
9250         ld_shlibs=no
9251       fi
9252       ;;
9253     esac
9254
9255     if test "$ld_shlibs" = no; then
9256       runpath_var=
9257       hardcode_libdir_flag_spec=
9258       export_dynamic_flag_spec=
9259       whole_archive_flag_spec=
9260     fi
9261   else
9262     # PORTME fill in a description of your system's linker (not GNU ld)
9263     case $host_os in
9264     aix3*)
9265       allow_undefined_flag=unsupported
9266       always_export_symbols=yes
9267       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'
9268       # Note: this linker hardcodes the directories in LIBPATH if there
9269       # are no directories specified by -L.
9270       hardcode_minus_L=yes
9271       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9272         # Neither direct hardcoding nor static linking is supported with a
9273         # broken collect2.
9274         hardcode_direct=unsupported
9275       fi
9276       ;;
9277
9278     aix[4-9]*)
9279       if test "$host_cpu" = ia64; then
9280         # On IA64, the linker does run time linking by default, so we don't
9281         # have to do anything special.
9282         aix_use_runtimelinking=no
9283         exp_sym_flag='-Bexport'
9284         no_entry_flag=""
9285       else
9286         # If we're using GNU nm, then we don't want the "-C" option.
9287         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9288         # Also, AIX nm treats weak defined symbols like other global
9289         # defined symbols, whereas GNU nm marks them as "W".
9290         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9291           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'
9292         else
9293           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'
9294         fi
9295         aix_use_runtimelinking=no
9296
9297         # Test if we are trying to use run time linking or normal
9298         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9299         # need to do runtime linking.
9300         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9301           for ld_flag in $LDFLAGS; do
9302           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9303             aix_use_runtimelinking=yes
9304             break
9305           fi
9306           done
9307           ;;
9308         esac
9309
9310         exp_sym_flag='-bexport'
9311         no_entry_flag='-bnoentry'
9312       fi
9313
9314       # When large executables or shared objects are built, AIX ld can
9315       # have problems creating the table of contents.  If linking a library
9316       # or program results in "error TOC overflow" add -mminimal-toc to
9317       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9318       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9319
9320       archive_cmds=''
9321       hardcode_direct=yes
9322       hardcode_direct_absolute=yes
9323       hardcode_libdir_separator=':'
9324       link_all_deplibs=yes
9325       file_list_spec='${wl}-f,'
9326
9327       if test "$GCC" = yes; then
9328         case $host_os in aix4.[012]|aix4.[012].*)
9329         # We only want to do this on AIX 4.2 and lower, the check
9330         # below for broken collect2 doesn't work under 4.3+
9331           collect2name=`${CC} -print-prog-name=collect2`
9332           if test -f "$collect2name" &&
9333            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9334           then
9335           # We have reworked collect2
9336           :
9337           else
9338           # We have old collect2
9339           hardcode_direct=unsupported
9340           # It fails to find uninstalled libraries when the uninstalled
9341           # path is not listed in the libpath.  Setting hardcode_minus_L
9342           # to unsupported forces relinking
9343           hardcode_minus_L=yes
9344           hardcode_libdir_flag_spec='-L$libdir'
9345           hardcode_libdir_separator=
9346           fi
9347           ;;
9348         esac
9349         shared_flag='-shared'
9350         if test "$aix_use_runtimelinking" = yes; then
9351           shared_flag="$shared_flag "'${wl}-G'
9352         fi
9353       else
9354         # not using gcc
9355         if test "$host_cpu" = ia64; then
9356         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9357         # chokes on -Wl,-G. The following line is correct:
9358           shared_flag='-G'
9359         else
9360           if test "$aix_use_runtimelinking" = yes; then
9361             shared_flag='${wl}-G'
9362           else
9363             shared_flag='${wl}-bM:SRE'
9364           fi
9365         fi
9366       fi
9367
9368       export_dynamic_flag_spec='${wl}-bexpall'
9369       # It seems that -bexpall does not export symbols beginning with
9370       # underscore (_), so it is better to generate a list of symbols to export.
9371       always_export_symbols=yes
9372       if test "$aix_use_runtimelinking" = yes; then
9373         # Warning - without using the other runtime loading flags (-brtl),
9374         # -berok will link without error, but may produce a broken library.
9375         allow_undefined_flag='-berok'
9376         # Determine the default libpath from the value encoded in an
9377         # empty executable.
9378         if test "${lt_cv_aix_libpath+set}" = set; then
9379   aix_libpath=$lt_cv_aix_libpath
9380 else
9381   if ${lt_cv_aix_libpath_+:} false; then :
9382   $as_echo_n "(cached) " >&6
9383 else
9384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h.  */
9386
9387 int
9388 main ()
9389 {
9390
9391   ;
9392   return 0;
9393 }
9394 _ACEOF
9395 if ac_fn_c_try_link "$LINENO"; then :
9396
9397   lt_aix_libpath_sed='
9398       /Import File Strings/,/^$/ {
9399           /^0/ {
9400               s/^0  *\([^ ]*\) *$/\1/
9401               p
9402           }
9403       }'
9404   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9405   # Check for a 64-bit object if we didn't find anything.
9406   if test -z "$lt_cv_aix_libpath_"; then
9407     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9408   fi
9409 fi
9410 rm -f core conftest.err conftest.$ac_objext \
9411     conftest$ac_exeext conftest.$ac_ext
9412   if test -z "$lt_cv_aix_libpath_"; then
9413     lt_cv_aix_libpath_="/usr/lib:/lib"
9414   fi
9415
9416 fi
9417
9418   aix_libpath=$lt_cv_aix_libpath_
9419 fi
9420
9421         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9422         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"
9423       else
9424         if test "$host_cpu" = ia64; then
9425           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9426           allow_undefined_flag="-z nodefs"
9427           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"
9428         else
9429          # Determine the default libpath from the value encoded in an
9430          # empty executable.
9431          if test "${lt_cv_aix_libpath+set}" = set; then
9432   aix_libpath=$lt_cv_aix_libpath
9433 else
9434   if ${lt_cv_aix_libpath_+:} false; then :
9435   $as_echo_n "(cached) " >&6
9436 else
9437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h.  */
9439
9440 int
9441 main ()
9442 {
9443
9444   ;
9445   return 0;
9446 }
9447 _ACEOF
9448 if ac_fn_c_try_link "$LINENO"; then :
9449
9450   lt_aix_libpath_sed='
9451       /Import File Strings/,/^$/ {
9452           /^0/ {
9453               s/^0  *\([^ ]*\) *$/\1/
9454               p
9455           }
9456       }'
9457   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9458   # Check for a 64-bit object if we didn't find anything.
9459   if test -z "$lt_cv_aix_libpath_"; then
9460     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9461   fi
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext \
9464     conftest$ac_exeext conftest.$ac_ext
9465   if test -z "$lt_cv_aix_libpath_"; then
9466     lt_cv_aix_libpath_="/usr/lib:/lib"
9467   fi
9468
9469 fi
9470
9471   aix_libpath=$lt_cv_aix_libpath_
9472 fi
9473
9474          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9475           # Warning - without using the other run time loading flags,
9476           # -berok will link without error, but may produce a broken library.
9477           no_undefined_flag=' ${wl}-bernotok'
9478           allow_undefined_flag=' ${wl}-berok'
9479           if test "$with_gnu_ld" = yes; then
9480             # We only use this code for GNU lds that support --whole-archive.
9481             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9482           else
9483             # Exported symbols can be pulled into shared objects from archives
9484             whole_archive_flag_spec='$convenience'
9485           fi
9486           archive_cmds_need_lc=yes
9487           # This is similar to how AIX traditionally builds its shared libraries.
9488           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'
9489         fi
9490       fi
9491       ;;
9492
9493     amigaos*)
9494       case $host_cpu in
9495       powerpc)
9496             # see comment about AmigaOS4 .so support
9497             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498             archive_expsym_cmds=''
9499         ;;
9500       m68k)
9501             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)'
9502             hardcode_libdir_flag_spec='-L$libdir'
9503             hardcode_minus_L=yes
9504         ;;
9505       esac
9506       ;;
9507
9508     bsdi[45]*)
9509       export_dynamic_flag_spec=-rdynamic
9510       ;;
9511
9512     cygwin* | mingw* | pw32* | cegcc*)
9513       # When not using gcc, we currently assume that we are using
9514       # Microsoft Visual C++.
9515       # hardcode_libdir_flag_spec is actually meaningless, as there is
9516       # no search path for DLLs.
9517       case $cc_basename in
9518       cl*)
9519         # Native MSVC
9520         hardcode_libdir_flag_spec=' '
9521         allow_undefined_flag=unsupported
9522         always_export_symbols=yes
9523         file_list_spec='@'
9524         # Tell ltmain to make .lib files, not .a files.
9525         libext=lib
9526         # Tell ltmain to make .dll files, not .so files.
9527         shrext_cmds=".dll"
9528         # FIXME: Setting linknames here is a bad hack.
9529         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9530         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9531             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9532           else
9533             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9534           fi~
9535           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9536           linknames='
9537         # The linker will not automatically build a static lib if we build a DLL.
9538         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9539         enable_shared_with_static_runtimes=yes
9540         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9541         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9542         # Don't use ranlib
9543         old_postinstall_cmds='chmod 644 $oldlib'
9544         postlink_cmds='lt_outputfile="@OUTPUT@"~
9545           lt_tool_outputfile="@TOOL_OUTPUT@"~
9546           case $lt_outputfile in
9547             *.exe|*.EXE) ;;
9548             *)
9549               lt_outputfile="$lt_outputfile.exe"
9550               lt_tool_outputfile="$lt_tool_outputfile.exe"
9551               ;;
9552           esac~
9553           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9554             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9555             $RM "$lt_outputfile.manifest";
9556           fi'
9557         ;;
9558       *)
9559         # Assume MSVC wrapper
9560         hardcode_libdir_flag_spec=' '
9561         allow_undefined_flag=unsupported
9562         # Tell ltmain to make .lib files, not .a files.
9563         libext=lib
9564         # Tell ltmain to make .dll files, not .so files.
9565         shrext_cmds=".dll"
9566         # FIXME: Setting linknames here is a bad hack.
9567         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9568         # The linker will automatically build a .lib file if we build a DLL.
9569         old_archive_from_new_cmds='true'
9570         # FIXME: Should let the user specify the lib program.
9571         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9572         enable_shared_with_static_runtimes=yes
9573         ;;
9574       esac
9575       ;;
9576
9577     darwin* | rhapsody*)
9578
9579
9580   archive_cmds_need_lc=no
9581   hardcode_direct=no
9582   hardcode_automatic=yes
9583   hardcode_shlibpath_var=unsupported
9584   if test "$lt_cv_ld_force_load" = "yes"; then
9585     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\"`'
9586
9587   else
9588     whole_archive_flag_spec=''
9589   fi
9590   link_all_deplibs=yes
9591   allow_undefined_flag="$_lt_dar_allow_undefined"
9592   case $cc_basename in
9593      ifort*) _lt_dar_can_shared=yes ;;
9594      *) _lt_dar_can_shared=$GCC ;;
9595   esac
9596   if test "$_lt_dar_can_shared" = "yes"; then
9597     output_verbose_link_cmd=func_echo_all
9598     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9599     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9600     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}"
9601     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}"
9602
9603   else
9604   ld_shlibs=no
9605   fi
9606
9607       ;;
9608
9609     dgux*)
9610       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611       hardcode_libdir_flag_spec='-L$libdir'
9612       hardcode_shlibpath_var=no
9613       ;;
9614
9615     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9616     # support.  Future versions do this automatically, but an explicit c++rt0.o
9617     # does not break anything, and helps significantly (at the cost of a little
9618     # extra space).
9619     freebsd2.2*)
9620       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9621       hardcode_libdir_flag_spec='-R$libdir'
9622       hardcode_direct=yes
9623       hardcode_shlibpath_var=no
9624       ;;
9625
9626     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9627     freebsd2.*)
9628       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9629       hardcode_direct=yes
9630       hardcode_minus_L=yes
9631       hardcode_shlibpath_var=no
9632       ;;
9633
9634     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9635     freebsd* | dragonfly*)
9636       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9637       hardcode_libdir_flag_spec='-R$libdir'
9638       hardcode_direct=yes
9639       hardcode_shlibpath_var=no
9640       ;;
9641
9642     hpux9*)
9643       if test "$GCC" = yes; then
9644         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'
9645       else
9646         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'
9647       fi
9648       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9649       hardcode_libdir_separator=:
9650       hardcode_direct=yes
9651
9652       # hardcode_minus_L: Not really in the search PATH,
9653       # but as the default location of the library.
9654       hardcode_minus_L=yes
9655       export_dynamic_flag_spec='${wl}-E'
9656       ;;
9657
9658     hpux10*)
9659       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9660         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9661       else
9662         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9663       fi
9664       if test "$with_gnu_ld" = no; then
9665         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9666         hardcode_libdir_separator=:
9667         hardcode_direct=yes
9668         hardcode_direct_absolute=yes
9669         export_dynamic_flag_spec='${wl}-E'
9670         # hardcode_minus_L: Not really in the search PATH,
9671         # but as the default location of the library.
9672         hardcode_minus_L=yes
9673       fi
9674       ;;
9675
9676     hpux11*)
9677       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9678         case $host_cpu in
9679         hppa*64*)
9680           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9681           ;;
9682         ia64*)
9683           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9684           ;;
9685         *)
9686           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9687           ;;
9688         esac
9689       else
9690         case $host_cpu in
9691         hppa*64*)
9692           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9693           ;;
9694         ia64*)
9695           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9696           ;;
9697         *)
9698
9699           # Older versions of the 11.00 compiler do not understand -b yet
9700           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9701           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9702 $as_echo_n "checking if $CC understands -b... " >&6; }
9703 if ${lt_cv_prog_compiler__b+:} false; then :
9704   $as_echo_n "(cached) " >&6
9705 else
9706   lt_cv_prog_compiler__b=no
9707    save_LDFLAGS="$LDFLAGS"
9708    LDFLAGS="$LDFLAGS -b"
9709    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9710    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9711      # The linker can only warn and ignore the option if not recognized
9712      # So say no if there are warnings
9713      if test -s conftest.err; then
9714        # Append any errors to the config.log.
9715        cat conftest.err 1>&5
9716        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9717        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9718        if diff conftest.exp conftest.er2 >/dev/null; then
9719          lt_cv_prog_compiler__b=yes
9720        fi
9721      else
9722        lt_cv_prog_compiler__b=yes
9723      fi
9724    fi
9725    $RM -r conftest*
9726    LDFLAGS="$save_LDFLAGS"
9727
9728 fi
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9730 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9731
9732 if test x"$lt_cv_prog_compiler__b" = xyes; then
9733     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9734 else
9735     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9736 fi
9737
9738           ;;
9739         esac
9740       fi
9741       if test "$with_gnu_ld" = no; then
9742         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9743         hardcode_libdir_separator=:
9744
9745         case $host_cpu in
9746         hppa*64*|ia64*)
9747           hardcode_direct=no
9748           hardcode_shlibpath_var=no
9749           ;;
9750         *)
9751           hardcode_direct=yes
9752           hardcode_direct_absolute=yes
9753           export_dynamic_flag_spec='${wl}-E'
9754
9755           # hardcode_minus_L: Not really in the search PATH,
9756           # but as the default location of the library.
9757           hardcode_minus_L=yes
9758           ;;
9759         esac
9760       fi
9761       ;;
9762
9763     irix5* | irix6* | nonstopux*)
9764       if test "$GCC" = yes; then
9765         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'
9766         # Try to use the -exported_symbol ld option, if it does not
9767         # work, assume that -exports_file does not work either and
9768         # implicitly export all symbols.
9769         # This should be the same for all languages, so no per-tag cache variable.
9770         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9771 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9772 if ${lt_cv_irix_exported_symbol+:} false; then :
9773   $as_echo_n "(cached) " >&6
9774 else
9775   save_LDFLAGS="$LDFLAGS"
9776            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9777            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h.  */
9779 int foo (void) { return 0; }
9780 _ACEOF
9781 if ac_fn_c_try_link "$LINENO"; then :
9782   lt_cv_irix_exported_symbol=yes
9783 else
9784   lt_cv_irix_exported_symbol=no
9785 fi
9786 rm -f core conftest.err conftest.$ac_objext \
9787     conftest$ac_exeext conftest.$ac_ext
9788            LDFLAGS="$save_LDFLAGS"
9789 fi
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9791 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9792         if test "$lt_cv_irix_exported_symbol" = yes; then
9793           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'
9794         fi
9795       else
9796         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'
9797         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'
9798       fi
9799       archive_cmds_need_lc='no'
9800       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9801       hardcode_libdir_separator=:
9802       inherit_rpath=yes
9803       link_all_deplibs=yes
9804       ;;
9805
9806     netbsd*)
9807       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9808         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9809       else
9810         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9811       fi
9812       hardcode_libdir_flag_spec='-R$libdir'
9813       hardcode_direct=yes
9814       hardcode_shlibpath_var=no
9815       ;;
9816
9817     newsos6)
9818       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819       hardcode_direct=yes
9820       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9821       hardcode_libdir_separator=:
9822       hardcode_shlibpath_var=no
9823       ;;
9824
9825     *nto* | *qnx*)
9826       ;;
9827
9828     openbsd*)
9829       if test -f /usr/libexec/ld.so; then
9830         hardcode_direct=yes
9831         hardcode_shlibpath_var=no
9832         hardcode_direct_absolute=yes
9833         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9834           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9835           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9836           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9837           export_dynamic_flag_spec='${wl}-E'
9838         else
9839           case $host_os in
9840            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9841              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9842              hardcode_libdir_flag_spec='-R$libdir'
9843              ;;
9844            *)
9845              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9846              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9847              ;;
9848           esac
9849         fi
9850       else
9851         ld_shlibs=no
9852       fi
9853       ;;
9854
9855     os2*)
9856       hardcode_libdir_flag_spec='-L$libdir'
9857       hardcode_minus_L=yes
9858       allow_undefined_flag=unsupported
9859       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'
9860       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9861       ;;
9862
9863     osf3*)
9864       if test "$GCC" = yes; then
9865         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9866         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'
9867       else
9868         allow_undefined_flag=' -expect_unresolved \*'
9869         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'
9870       fi
9871       archive_cmds_need_lc='no'
9872       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9873       hardcode_libdir_separator=:
9874       ;;
9875
9876     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9877       if test "$GCC" = yes; then
9878         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9879         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'
9880         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9881       else
9882         allow_undefined_flag=' -expect_unresolved \*'
9883         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'
9884         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~
9885         $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'
9886
9887         # Both c and cxx compiler support -rpath directly
9888         hardcode_libdir_flag_spec='-rpath $libdir'
9889       fi
9890       archive_cmds_need_lc='no'
9891       hardcode_libdir_separator=:
9892       ;;
9893
9894     solaris*)
9895       no_undefined_flag=' -z defs'
9896       if test "$GCC" = yes; then
9897         wlarc='${wl}'
9898         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9899         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9900           $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'
9901       else
9902         case `$CC -V 2>&1` in
9903         *"Compilers 5.0"*)
9904           wlarc=''
9905           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9906           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9907           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9908           ;;
9909         *)
9910           wlarc='${wl}'
9911           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9912           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9913           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9914           ;;
9915         esac
9916       fi
9917       hardcode_libdir_flag_spec='-R$libdir'
9918       hardcode_shlibpath_var=no
9919       case $host_os in
9920       solaris2.[0-5] | solaris2.[0-5].*) ;;
9921       *)
9922         # The compiler driver will combine and reorder linker options,
9923         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9924         # but is careful enough not to reorder.
9925         # Supported since Solaris 2.6 (maybe 2.5.1?)
9926         if test "$GCC" = yes; then
9927           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9928         else
9929           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9930         fi
9931         ;;
9932       esac
9933       link_all_deplibs=yes
9934       ;;
9935
9936     sunos4*)
9937       if test "x$host_vendor" = xsequent; then
9938         # Use $CC to link under sequent, because it throws in some extra .o
9939         # files that make .init and .fini sections work.
9940         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9941       else
9942         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9943       fi
9944       hardcode_libdir_flag_spec='-L$libdir'
9945       hardcode_direct=yes
9946       hardcode_minus_L=yes
9947       hardcode_shlibpath_var=no
9948       ;;
9949
9950     sysv4)
9951       case $host_vendor in
9952         sni)
9953           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954           hardcode_direct=yes # is this really true???
9955         ;;
9956         siemens)
9957           ## LD is ld it makes a PLAMLIB
9958           ## CC just makes a GrossModule.
9959           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9960           reload_cmds='$CC -r -o $output$reload_objs'
9961           hardcode_direct=no
9962         ;;
9963         motorola)
9964           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9966         ;;
9967       esac
9968       runpath_var='LD_RUN_PATH'
9969       hardcode_shlibpath_var=no
9970       ;;
9971
9972     sysv4.3*)
9973       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974       hardcode_shlibpath_var=no
9975       export_dynamic_flag_spec='-Bexport'
9976       ;;
9977
9978     sysv4*MP*)
9979       if test -d /usr/nec; then
9980         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981         hardcode_shlibpath_var=no
9982         runpath_var=LD_RUN_PATH
9983         hardcode_runpath_var=yes
9984         ld_shlibs=yes
9985       fi
9986       ;;
9987
9988     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9989       no_undefined_flag='${wl}-z,text'
9990       archive_cmds_need_lc=no
9991       hardcode_shlibpath_var=no
9992       runpath_var='LD_RUN_PATH'
9993
9994       if test "$GCC" = yes; then
9995         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9997       else
9998         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9999         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10000       fi
10001       ;;
10002
10003     sysv5* | sco3.2v5* | sco5v6*)
10004       # Note: We can NOT use -z defs as we might desire, because we do not
10005       # link with -lc, and that would cause any symbols used from libc to
10006       # always be unresolved, which means just about no library would
10007       # ever link correctly.  If we're not using GNU ld we use -z text
10008       # though, which does catch some bad symbols but isn't as heavy-handed
10009       # as -z defs.
10010       no_undefined_flag='${wl}-z,text'
10011       allow_undefined_flag='${wl}-z,nodefs'
10012       archive_cmds_need_lc=no
10013       hardcode_shlibpath_var=no
10014       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10015       hardcode_libdir_separator=':'
10016       link_all_deplibs=yes
10017       export_dynamic_flag_spec='${wl}-Bexport'
10018       runpath_var='LD_RUN_PATH'
10019
10020       if test "$GCC" = yes; then
10021         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023       else
10024         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026       fi
10027       ;;
10028
10029     uts4*)
10030       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10031       hardcode_libdir_flag_spec='-L$libdir'
10032       hardcode_shlibpath_var=no
10033       ;;
10034
10035     *)
10036       ld_shlibs=no
10037       ;;
10038     esac
10039
10040     if test x$host_vendor = xsni; then
10041       case $host in
10042       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10043         export_dynamic_flag_spec='${wl}-Blargedynsym'
10044         ;;
10045       esac
10046     fi
10047   fi
10048
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10050 $as_echo "$ld_shlibs" >&6; }
10051 test "$ld_shlibs" = no && can_build_shared=no
10052
10053 with_gnu_ld=$with_gnu_ld
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069 #
10070 # Do we need to explicitly link libc?
10071 #
10072 case "x$archive_cmds_need_lc" in
10073 x|xyes)
10074   # Assume -lc should be added
10075   archive_cmds_need_lc=yes
10076
10077   if test "$enable_shared" = yes && test "$GCC" = yes; then
10078     case $archive_cmds in
10079     *'~'*)
10080       # FIXME: we may have to deal with multi-command sequences.
10081       ;;
10082     '$CC '*)
10083       # Test whether the compiler implicitly links with -lc since on some
10084       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10085       # to ld, don't add -lc before -lgcc.
10086       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10087 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10088 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10089   $as_echo_n "(cached) " >&6
10090 else
10091   $RM conftest*
10092         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10093
10094         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10095   (eval $ac_compile) 2>&5
10096   ac_status=$?
10097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10098   test $ac_status = 0; } 2>conftest.err; then
10099           soname=conftest
10100           lib=conftest
10101           libobjs=conftest.$ac_objext
10102           deplibs=
10103           wl=$lt_prog_compiler_wl
10104           pic_flag=$lt_prog_compiler_pic
10105           compiler_flags=-v
10106           linker_flags=-v
10107           verstring=
10108           output_objdir=.
10109           libname=conftest
10110           lt_save_allow_undefined_flag=$allow_undefined_flag
10111           allow_undefined_flag=
10112           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10113   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10114   ac_status=$?
10115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10116   test $ac_status = 0; }
10117           then
10118             lt_cv_archive_cmds_need_lc=no
10119           else
10120             lt_cv_archive_cmds_need_lc=yes
10121           fi
10122           allow_undefined_flag=$lt_save_allow_undefined_flag
10123         else
10124           cat conftest.err 1>&5
10125         fi
10126         $RM conftest*
10127
10128 fi
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10130 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10131       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10132       ;;
10133     esac
10134   fi
10135   ;;
10136 esac
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10290 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10291
10292 if test "$GCC" = yes; then
10293   case $host_os in
10294     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10295     *) lt_awk_arg="/^libraries:/" ;;
10296   esac
10297   case $host_os in
10298     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10299     *) lt_sed_strip_eq="s,=/,/,g" ;;
10300   esac
10301   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10302   case $lt_search_path_spec in
10303   *\;*)
10304     # if the path contains ";" then we assume it to be the separator
10305     # otherwise default to the standard path separator (i.e. ":") - it is
10306     # assumed that no part of a normal pathname contains ";" but that should
10307     # okay in the real world where ";" in dirpaths is itself problematic.
10308     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10309     ;;
10310   *)
10311     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10312     ;;
10313   esac
10314   # Ok, now we have the path, separated by spaces, we can step through it
10315   # and add multilib dir if necessary.
10316   lt_tmp_lt_search_path_spec=
10317   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10318   for lt_sys_path in $lt_search_path_spec; do
10319     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10320       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10321     else
10322       test -d "$lt_sys_path" && \
10323         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10324     fi
10325   done
10326   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10327 BEGIN {RS=" "; FS="/|\n";} {
10328   lt_foo="";
10329   lt_count=0;
10330   for (lt_i = NF; lt_i > 0; lt_i--) {
10331     if ($lt_i != "" && $lt_i != ".") {
10332       if ($lt_i == "..") {
10333         lt_count++;
10334       } else {
10335         if (lt_count == 0) {
10336           lt_foo="/" $lt_i lt_foo;
10337         } else {
10338           lt_count--;
10339         }
10340       }
10341     }
10342   }
10343   if (lt_foo != "") { lt_freq[lt_foo]++; }
10344   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10345 }'`
10346   # AWK program above erroneously prepends '/' to C:/dos/paths
10347   # for these hosts.
10348   case $host_os in
10349     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10350       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10351   esac
10352   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10353 else
10354   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10355 fi
10356 library_names_spec=
10357 libname_spec='lib$name'
10358 soname_spec=
10359 shrext_cmds=".so"
10360 postinstall_cmds=
10361 postuninstall_cmds=
10362 finish_cmds=
10363 finish_eval=
10364 shlibpath_var=
10365 shlibpath_overrides_runpath=unknown
10366 version_type=none
10367 dynamic_linker="$host_os ld.so"
10368 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10369 need_lib_prefix=unknown
10370 hardcode_into_libs=no
10371
10372 # when you set need_version to no, make sure it does not cause -set_version
10373 # flags to be left without arguments
10374 need_version=unknown
10375
10376 case $host_os in
10377 aix3*)
10378   version_type=linux # correct to gnu/linux during the next big refactor
10379   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10380   shlibpath_var=LIBPATH
10381
10382   # AIX 3 has no versioning support, so we append a major version to the name.
10383   soname_spec='${libname}${release}${shared_ext}$major'
10384   ;;
10385
10386 aix[4-9]*)
10387   version_type=linux # correct to gnu/linux during the next big refactor
10388   need_lib_prefix=no
10389   need_version=no
10390   hardcode_into_libs=yes
10391   if test "$host_cpu" = ia64; then
10392     # AIX 5 supports IA64
10393     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10394     shlibpath_var=LD_LIBRARY_PATH
10395   else
10396     # With GCC up to 2.95.x, collect2 would create an import file
10397     # for dependence libraries.  The import file would start with
10398     # the line `#! .'.  This would cause the generated library to
10399     # depend on `.', always an invalid library.  This was fixed in
10400     # development snapshots of GCC prior to 3.0.
10401     case $host_os in
10402       aix4 | aix4.[01] | aix4.[01].*)
10403       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10404            echo ' yes '
10405            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10406         :
10407       else
10408         can_build_shared=no
10409       fi
10410       ;;
10411     esac
10412     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10413     # soname into executable. Probably we can add versioning support to
10414     # collect2, so additional links can be useful in future.
10415     if test "$aix_use_runtimelinking" = yes; then
10416       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10417       # instead of lib<name>.a to let people know that these are not
10418       # typical AIX shared libraries.
10419       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420     else
10421       # We preserve .a as extension for shared libraries through AIX4.2
10422       # and later when we are not doing run time linking.
10423       library_names_spec='${libname}${release}.a $libname.a'
10424       soname_spec='${libname}${release}${shared_ext}$major'
10425     fi
10426     shlibpath_var=LIBPATH
10427   fi
10428   ;;
10429
10430 amigaos*)
10431   case $host_cpu in
10432   powerpc)
10433     # Since July 2007 AmigaOS4 officially supports .so libraries.
10434     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436     ;;
10437   m68k)
10438     library_names_spec='$libname.ixlibrary $libname.a'
10439     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10440     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'
10441     ;;
10442   esac
10443   ;;
10444
10445 beos*)
10446   library_names_spec='${libname}${shared_ext}'
10447   dynamic_linker="$host_os ld.so"
10448   shlibpath_var=LIBRARY_PATH
10449   ;;
10450
10451 bsdi[45]*)
10452   version_type=linux # correct to gnu/linux during the next big refactor
10453   need_version=no
10454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455   soname_spec='${libname}${release}${shared_ext}$major'
10456   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10457   shlibpath_var=LD_LIBRARY_PATH
10458   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10459   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10460   # the default ld.so.conf also contains /usr/contrib/lib and
10461   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10462   # libtool to hard-code these into programs
10463   ;;
10464
10465 cygwin* | mingw* | pw32* | cegcc*)
10466   version_type=windows
10467   shrext_cmds=".dll"
10468   need_version=no
10469   need_lib_prefix=no
10470
10471   case $GCC,$cc_basename in
10472   yes,*)
10473     # gcc
10474     library_names_spec='$libname.dll.a'
10475     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10476     postinstall_cmds='base_file=`basename \${file}`~
10477       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10478       dldir=$destdir/`dirname \$dlpath`~
10479       test -d \$dldir || mkdir -p \$dldir~
10480       $install_prog $dir/$dlname \$dldir/$dlname~
10481       chmod a+x \$dldir/$dlname~
10482       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10483         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10484       fi'
10485     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10486       dlpath=$dir/\$dldll~
10487        $RM \$dlpath'
10488     shlibpath_overrides_runpath=yes
10489
10490     case $host_os in
10491     cygwin*)
10492       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10493       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10494
10495       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10496       ;;
10497     mingw* | cegcc*)
10498       # MinGW DLLs use traditional 'lib' prefix
10499       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10500       ;;
10501     pw32*)
10502       # pw32 DLLs use 'pw' prefix rather than 'lib'
10503       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10504       ;;
10505     esac
10506     dynamic_linker='Win32 ld.exe'
10507     ;;
10508
10509   *,cl*)
10510     # Native MSVC
10511     libname_spec='$name'
10512     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10513     library_names_spec='${libname}.dll.lib'
10514
10515     case $build_os in
10516     mingw*)
10517       sys_lib_search_path_spec=
10518       lt_save_ifs=$IFS
10519       IFS=';'
10520       for lt_path in $LIB
10521       do
10522         IFS=$lt_save_ifs
10523         # Let DOS variable expansion print the short 8.3 style file name.
10524         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10525         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10526       done
10527       IFS=$lt_save_ifs
10528       # Convert to MSYS style.
10529       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10530       ;;
10531     cygwin*)
10532       # Convert to unix form, then to dos form, then back to unix form
10533       # but this time dos style (no spaces!) so that the unix form looks
10534       # like /cygdrive/c/PROGRA~1:/cygdr...
10535       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10536       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10537       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10538       ;;
10539     *)
10540       sys_lib_search_path_spec="$LIB"
10541       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10542         # It is most probably a Windows format PATH.
10543         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10544       else
10545         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10546       fi
10547       # FIXME: find the short name or the path components, as spaces are
10548       # common. (e.g. "Program Files" -> "PROGRA~1")
10549       ;;
10550     esac
10551
10552     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10553     postinstall_cmds='base_file=`basename \${file}`~
10554       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10555       dldir=$destdir/`dirname \$dlpath`~
10556       test -d \$dldir || mkdir -p \$dldir~
10557       $install_prog $dir/$dlname \$dldir/$dlname'
10558     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10559       dlpath=$dir/\$dldll~
10560        $RM \$dlpath'
10561     shlibpath_overrides_runpath=yes
10562     dynamic_linker='Win32 link.exe'
10563     ;;
10564
10565   *)
10566     # Assume MSVC wrapper
10567     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10568     dynamic_linker='Win32 ld.exe'
10569     ;;
10570   esac
10571   # FIXME: first we should search . and the directory the executable is in
10572   shlibpath_var=PATH
10573   ;;
10574
10575 darwin* | rhapsody*)
10576   dynamic_linker="$host_os dyld"
10577   version_type=darwin
10578   need_lib_prefix=no
10579   need_version=no
10580   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10581   soname_spec='${libname}${release}${major}$shared_ext'
10582   shlibpath_overrides_runpath=yes
10583   shlibpath_var=DYLD_LIBRARY_PATH
10584   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10585
10586   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10587   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10588   ;;
10589
10590 dgux*)
10591   version_type=linux # correct to gnu/linux during the next big refactor
10592   need_lib_prefix=no
10593   need_version=no
10594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10595   soname_spec='${libname}${release}${shared_ext}$major'
10596   shlibpath_var=LD_LIBRARY_PATH
10597   ;;
10598
10599 freebsd* | dragonfly*)
10600   # DragonFly does not have aout.  When/if they implement a new
10601   # versioning mechanism, adjust this.
10602   if test -x /usr/bin/objformat; then
10603     objformat=`/usr/bin/objformat`
10604   else
10605     case $host_os in
10606     freebsd[23].*) objformat=aout ;;
10607     *) objformat=elf ;;
10608     esac
10609   fi
10610   version_type=freebsd-$objformat
10611   case $version_type in
10612     freebsd-elf*)
10613       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10614       need_version=no
10615       need_lib_prefix=no
10616       ;;
10617     freebsd-*)
10618       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10619       need_version=yes
10620       ;;
10621   esac
10622   shlibpath_var=LD_LIBRARY_PATH
10623   case $host_os in
10624   freebsd2.*)
10625     shlibpath_overrides_runpath=yes
10626     ;;
10627   freebsd3.[01]* | freebsdelf3.[01]*)
10628     shlibpath_overrides_runpath=yes
10629     hardcode_into_libs=yes
10630     ;;
10631   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10632   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10633     shlibpath_overrides_runpath=no
10634     hardcode_into_libs=yes
10635     ;;
10636   *) # from 4.6 on, and DragonFly
10637     shlibpath_overrides_runpath=yes
10638     hardcode_into_libs=yes
10639     ;;
10640   esac
10641   ;;
10642
10643 gnu*)
10644   version_type=linux # correct to gnu/linux during the next big refactor
10645   need_lib_prefix=no
10646   need_version=no
10647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10648   soname_spec='${libname}${release}${shared_ext}$major'
10649   shlibpath_var=LD_LIBRARY_PATH
10650   shlibpath_overrides_runpath=no
10651   hardcode_into_libs=yes
10652   ;;
10653
10654 haiku*)
10655   version_type=linux # correct to gnu/linux during the next big refactor
10656   need_lib_prefix=no
10657   need_version=no
10658   dynamic_linker="$host_os runtime_loader"
10659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10660   soname_spec='${libname}${release}${shared_ext}$major'
10661   shlibpath_var=LIBRARY_PATH
10662   shlibpath_overrides_runpath=yes
10663   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10664   hardcode_into_libs=yes
10665   ;;
10666
10667 hpux9* | hpux10* | hpux11*)
10668   # Give a soname corresponding to the major version so that dld.sl refuses to
10669   # link against other versions.
10670   version_type=sunos
10671   need_lib_prefix=no
10672   need_version=no
10673   case $host_cpu in
10674   ia64*)
10675     shrext_cmds='.so'
10676     hardcode_into_libs=yes
10677     dynamic_linker="$host_os dld.so"
10678     shlibpath_var=LD_LIBRARY_PATH
10679     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10680     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681     soname_spec='${libname}${release}${shared_ext}$major'
10682     if test "X$HPUX_IA64_MODE" = X32; then
10683       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10684     else
10685       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10686     fi
10687     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10688     ;;
10689   hppa*64*)
10690     shrext_cmds='.sl'
10691     hardcode_into_libs=yes
10692     dynamic_linker="$host_os dld.sl"
10693     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10694     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696     soname_spec='${libname}${release}${shared_ext}$major'
10697     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10698     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10699     ;;
10700   *)
10701     shrext_cmds='.sl'
10702     dynamic_linker="$host_os dld.sl"
10703     shlibpath_var=SHLIB_PATH
10704     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706     soname_spec='${libname}${release}${shared_ext}$major'
10707     ;;
10708   esac
10709   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10710   postinstall_cmds='chmod 555 $lib'
10711   # or fails outright, so override atomically:
10712   install_override_mode=555
10713   ;;
10714
10715 interix[3-9]*)
10716   version_type=linux # correct to gnu/linux during the next big refactor
10717   need_lib_prefix=no
10718   need_version=no
10719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10720   soname_spec='${libname}${release}${shared_ext}$major'
10721   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10722   shlibpath_var=LD_LIBRARY_PATH
10723   shlibpath_overrides_runpath=no
10724   hardcode_into_libs=yes
10725   ;;
10726
10727 irix5* | irix6* | nonstopux*)
10728   case $host_os in
10729     nonstopux*) version_type=nonstopux ;;
10730     *)
10731         if test "$lt_cv_prog_gnu_ld" = yes; then
10732                 version_type=linux # correct to gnu/linux during the next big refactor
10733         else
10734                 version_type=irix
10735         fi ;;
10736   esac
10737   need_lib_prefix=no
10738   need_version=no
10739   soname_spec='${libname}${release}${shared_ext}$major'
10740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10741   case $host_os in
10742   irix5* | nonstopux*)
10743     libsuff= shlibsuff=
10744     ;;
10745   *)
10746     case $LD in # libtool.m4 will add one of these switches to LD
10747     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10748       libsuff= shlibsuff= libmagic=32-bit;;
10749     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10750       libsuff=32 shlibsuff=N32 libmagic=N32;;
10751     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10752       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10753     *) libsuff= shlibsuff= libmagic=never-match;;
10754     esac
10755     ;;
10756   esac
10757   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10758   shlibpath_overrides_runpath=no
10759   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10760   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10761   hardcode_into_libs=yes
10762   ;;
10763
10764 # No shared lib support for Linux oldld, aout, or coff.
10765 linux*oldld* | linux*aout* | linux*coff*)
10766   dynamic_linker=no
10767   ;;
10768
10769 # This must be glibc/ELF.
10770 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10771   version_type=linux # correct to gnu/linux during the next big refactor
10772   need_lib_prefix=no
10773   need_version=no
10774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775   soname_spec='${libname}${release}${shared_ext}$major'
10776   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10777   shlibpath_var=LD_LIBRARY_PATH
10778   shlibpath_overrides_runpath=no
10779
10780   # Some binutils ld are patched to set DT_RUNPATH
10781   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10782   $as_echo_n "(cached) " >&6
10783 else
10784   lt_cv_shlibpath_overrides_runpath=no
10785     save_LDFLAGS=$LDFLAGS
10786     save_libdir=$libdir
10787     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10788          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10789     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h.  */
10791
10792 int
10793 main ()
10794 {
10795
10796   ;
10797   return 0;
10798 }
10799 _ACEOF
10800 if ac_fn_c_try_link "$LINENO"; then :
10801   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10802   lt_cv_shlibpath_overrides_runpath=yes
10803 fi
10804 fi
10805 rm -f core conftest.err conftest.$ac_objext \
10806     conftest$ac_exeext conftest.$ac_ext
10807     LDFLAGS=$save_LDFLAGS
10808     libdir=$save_libdir
10809
10810 fi
10811
10812   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10813
10814   # This implies no fast_install, which is unacceptable.
10815   # Some rework will be needed to allow for fast_install
10816   # before this can be enabled.
10817   hardcode_into_libs=yes
10818
10819   # Append ld.so.conf contents to the search path
10820   if test -f /etc/ld.so.conf; then
10821     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' ' '`
10822     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10823   fi
10824
10825   # We used to test for /lib/ld.so.1 and disable shared libraries on
10826   # powerpc, because MkLinux only supported shared libraries with the
10827   # GNU dynamic linker.  Since this was broken with cross compilers,
10828   # most powerpc-linux boxes support dynamic linking these days and
10829   # people can always --disable-shared, the test was removed, and we
10830   # assume the GNU/Linux dynamic linker is in use.
10831   dynamic_linker='GNU/Linux ld.so'
10832   ;;
10833
10834 netbsd*)
10835   version_type=sunos
10836   need_lib_prefix=no
10837   need_version=no
10838   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10839     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10840     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10841     dynamic_linker='NetBSD (a.out) ld.so'
10842   else
10843     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10844     soname_spec='${libname}${release}${shared_ext}$major'
10845     dynamic_linker='NetBSD ld.elf_so'
10846   fi
10847   shlibpath_var=LD_LIBRARY_PATH
10848   shlibpath_overrides_runpath=yes
10849   hardcode_into_libs=yes
10850   ;;
10851
10852 newsos6)
10853   version_type=linux # correct to gnu/linux during the next big refactor
10854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855   shlibpath_var=LD_LIBRARY_PATH
10856   shlibpath_overrides_runpath=yes
10857   ;;
10858
10859 *nto* | *qnx*)
10860   version_type=qnx
10861   need_lib_prefix=no
10862   need_version=no
10863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10864   soname_spec='${libname}${release}${shared_ext}$major'
10865   shlibpath_var=LD_LIBRARY_PATH
10866   shlibpath_overrides_runpath=no
10867   hardcode_into_libs=yes
10868   dynamic_linker='ldqnx.so'
10869   ;;
10870
10871 openbsd*)
10872   version_type=sunos
10873   sys_lib_dlsearch_path_spec="/usr/lib"
10874   need_lib_prefix=no
10875   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10876   case $host_os in
10877     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10878     *)                          need_version=no  ;;
10879   esac
10880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10881   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10882   shlibpath_var=LD_LIBRARY_PATH
10883   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10884     case $host_os in
10885       openbsd2.[89] | openbsd2.[89].*)
10886         shlibpath_overrides_runpath=no
10887         ;;
10888       *)
10889         shlibpath_overrides_runpath=yes
10890         ;;
10891       esac
10892   else
10893     shlibpath_overrides_runpath=yes
10894   fi
10895   ;;
10896
10897 os2*)
10898   libname_spec='$name'
10899   shrext_cmds=".dll"
10900   need_lib_prefix=no
10901   library_names_spec='$libname${shared_ext} $libname.a'
10902   dynamic_linker='OS/2 ld.exe'
10903   shlibpath_var=LIBPATH
10904   ;;
10905
10906 osf3* | osf4* | osf5*)
10907   version_type=osf
10908   need_lib_prefix=no
10909   need_version=no
10910   soname_spec='${libname}${release}${shared_ext}$major'
10911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912   shlibpath_var=LD_LIBRARY_PATH
10913   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10914   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10915   ;;
10916
10917 rdos*)
10918   dynamic_linker=no
10919   ;;
10920
10921 solaris*)
10922   version_type=linux # correct to gnu/linux during the next big refactor
10923   need_lib_prefix=no
10924   need_version=no
10925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926   soname_spec='${libname}${release}${shared_ext}$major'
10927   shlibpath_var=LD_LIBRARY_PATH
10928   shlibpath_overrides_runpath=yes
10929   hardcode_into_libs=yes
10930   # ldd complains unless libraries are executable
10931   postinstall_cmds='chmod +x $lib'
10932   ;;
10933
10934 sunos4*)
10935   version_type=sunos
10936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10937   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10938   shlibpath_var=LD_LIBRARY_PATH
10939   shlibpath_overrides_runpath=yes
10940   if test "$with_gnu_ld" = yes; then
10941     need_lib_prefix=no
10942   fi
10943   need_version=yes
10944   ;;
10945
10946 sysv4 | sysv4.3*)
10947   version_type=linux # correct to gnu/linux during the next big refactor
10948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10949   soname_spec='${libname}${release}${shared_ext}$major'
10950   shlibpath_var=LD_LIBRARY_PATH
10951   case $host_vendor in
10952     sni)
10953       shlibpath_overrides_runpath=no
10954       need_lib_prefix=no
10955       runpath_var=LD_RUN_PATH
10956       ;;
10957     siemens)
10958       need_lib_prefix=no
10959       ;;
10960     motorola)
10961       need_lib_prefix=no
10962       need_version=no
10963       shlibpath_overrides_runpath=no
10964       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10965       ;;
10966   esac
10967   ;;
10968
10969 sysv4*MP*)
10970   if test -d /usr/nec ;then
10971     version_type=linux # correct to gnu/linux during the next big refactor
10972     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10973     soname_spec='$libname${shared_ext}.$major'
10974     shlibpath_var=LD_LIBRARY_PATH
10975   fi
10976   ;;
10977
10978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10979   version_type=freebsd-elf
10980   need_lib_prefix=no
10981   need_version=no
10982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10983   soname_spec='${libname}${release}${shared_ext}$major'
10984   shlibpath_var=LD_LIBRARY_PATH
10985   shlibpath_overrides_runpath=yes
10986   hardcode_into_libs=yes
10987   if test "$with_gnu_ld" = yes; then
10988     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10989   else
10990     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10991     case $host_os in
10992       sco3.2v5*)
10993         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10994         ;;
10995     esac
10996   fi
10997   sys_lib_dlsearch_path_spec='/usr/lib'
10998   ;;
10999
11000 tpf*)
11001   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11002   version_type=linux # correct to gnu/linux during the next big refactor
11003   need_lib_prefix=no
11004   need_version=no
11005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006   shlibpath_var=LD_LIBRARY_PATH
11007   shlibpath_overrides_runpath=no
11008   hardcode_into_libs=yes
11009   ;;
11010
11011 uts4*)
11012   version_type=linux # correct to gnu/linux during the next big refactor
11013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11014   soname_spec='${libname}${release}${shared_ext}$major'
11015   shlibpath_var=LD_LIBRARY_PATH
11016   ;;
11017
11018 *)
11019   dynamic_linker=no
11020   ;;
11021 esac
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11023 $as_echo "$dynamic_linker" >&6; }
11024 test "$dynamic_linker" = no && can_build_shared=no
11025
11026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11027 if test "$GCC" = yes; then
11028   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11029 fi
11030
11031 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11032   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11033 fi
11034 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11035   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11036 fi
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11130 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11131 hardcode_action=
11132 if test -n "$hardcode_libdir_flag_spec" ||
11133    test -n "$runpath_var" ||
11134    test "X$hardcode_automatic" = "Xyes" ; then
11135
11136   # We can hardcode non-existent directories.
11137   if test "$hardcode_direct" != no &&
11138      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11139      # have to relink, otherwise we might link with an installed library
11140      # when we should be linking with a yet-to-be-installed one
11141      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11142      test "$hardcode_minus_L" != no; then
11143     # Linking always hardcodes the temporary library directory.
11144     hardcode_action=relink
11145   else
11146     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11147     hardcode_action=immediate
11148   fi
11149 else
11150   # We cannot hardcode anything, or else we can only hardcode existing
11151   # directories.
11152   hardcode_action=unsupported
11153 fi
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11155 $as_echo "$hardcode_action" >&6; }
11156
11157 if test "$hardcode_action" = relink ||
11158    test "$inherit_rpath" = yes; then
11159   # Fast installation is not supported
11160   enable_fast_install=no
11161 elif test "$shlibpath_overrides_runpath" = yes ||
11162      test "$enable_shared" = no; then
11163   # Fast installation is not necessary
11164   enable_fast_install=needless
11165 fi
11166
11167
11168
11169
11170
11171
11172   if test "x$enable_dlopen" != xyes; then
11173   enable_dlopen=unknown
11174   enable_dlopen_self=unknown
11175   enable_dlopen_self_static=unknown
11176 else
11177   lt_cv_dlopen=no
11178   lt_cv_dlopen_libs=
11179
11180   case $host_os in
11181   beos*)
11182     lt_cv_dlopen="load_add_on"
11183     lt_cv_dlopen_libs=
11184     lt_cv_dlopen_self=yes
11185     ;;
11186
11187   mingw* | pw32* | cegcc*)
11188     lt_cv_dlopen="LoadLibrary"
11189     lt_cv_dlopen_libs=
11190     ;;
11191
11192   cygwin*)
11193     lt_cv_dlopen="dlopen"
11194     lt_cv_dlopen_libs=
11195     ;;
11196
11197   darwin*)
11198   # if libdl is installed we need to link against it
11199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11200 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11201 if ${ac_cv_lib_dl_dlopen+:} false; then :
11202   $as_echo_n "(cached) " >&6
11203 else
11204   ac_check_lib_save_LIBS=$LIBS
11205 LIBS="-ldl  $LIBS"
11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h.  */
11208
11209 /* Override any GCC internal prototype to avoid an error.
11210    Use char because int might match the return type of a GCC
11211    builtin and then its argument prototype would still apply.  */
11212 #ifdef __cplusplus
11213 extern "C"
11214 #endif
11215 char dlopen ();
11216 int
11217 main ()
11218 {
11219 return dlopen ();
11220   ;
11221   return 0;
11222 }
11223 _ACEOF
11224 if ac_fn_c_try_link "$LINENO"; then :
11225   ac_cv_lib_dl_dlopen=yes
11226 else
11227   ac_cv_lib_dl_dlopen=no
11228 fi
11229 rm -f core conftest.err conftest.$ac_objext \
11230     conftest$ac_exeext conftest.$ac_ext
11231 LIBS=$ac_check_lib_save_LIBS
11232 fi
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11234 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11235 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11236   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11237 else
11238
11239     lt_cv_dlopen="dyld"
11240     lt_cv_dlopen_libs=
11241     lt_cv_dlopen_self=yes
11242
11243 fi
11244
11245     ;;
11246
11247   *)
11248     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11249 if test "x$ac_cv_func_shl_load" = xyes; then :
11250   lt_cv_dlopen="shl_load"
11251 else
11252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11253 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11254 if ${ac_cv_lib_dld_shl_load+:} false; then :
11255   $as_echo_n "(cached) " >&6
11256 else
11257   ac_check_lib_save_LIBS=$LIBS
11258 LIBS="-ldld  $LIBS"
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h.  */
11261
11262 /* Override any GCC internal prototype to avoid an error.
11263    Use char because int might match the return type of a GCC
11264    builtin and then its argument prototype would still apply.  */
11265 #ifdef __cplusplus
11266 extern "C"
11267 #endif
11268 char shl_load ();
11269 int
11270 main ()
11271 {
11272 return shl_load ();
11273   ;
11274   return 0;
11275 }
11276 _ACEOF
11277 if ac_fn_c_try_link "$LINENO"; then :
11278   ac_cv_lib_dld_shl_load=yes
11279 else
11280   ac_cv_lib_dld_shl_load=no
11281 fi
11282 rm -f core conftest.err conftest.$ac_objext \
11283     conftest$ac_exeext conftest.$ac_ext
11284 LIBS=$ac_check_lib_save_LIBS
11285 fi
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11287 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11288 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11289   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11290 else
11291   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11292 if test "x$ac_cv_func_dlopen" = xyes; then :
11293   lt_cv_dlopen="dlopen"
11294 else
11295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11296 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11297 if ${ac_cv_lib_dl_dlopen+:} false; then :
11298   $as_echo_n "(cached) " >&6
11299 else
11300   ac_check_lib_save_LIBS=$LIBS
11301 LIBS="-ldl  $LIBS"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h.  */
11304
11305 /* Override any GCC internal prototype to avoid an error.
11306    Use char because int might match the return type of a GCC
11307    builtin and then its argument prototype would still apply.  */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char dlopen ();
11312 int
11313 main ()
11314 {
11315 return dlopen ();
11316   ;
11317   return 0;
11318 }
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321   ac_cv_lib_dl_dlopen=yes
11322 else
11323   ac_cv_lib_dl_dlopen=no
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext \
11326     conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11328 fi
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11330 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11331 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11332   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11333 else
11334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11335 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11336 if ${ac_cv_lib_svld_dlopen+:} false; then :
11337   $as_echo_n "(cached) " >&6
11338 else
11339   ac_check_lib_save_LIBS=$LIBS
11340 LIBS="-lsvld  $LIBS"
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h.  */
11343
11344 /* Override any GCC internal prototype to avoid an error.
11345    Use char because int might match the return type of a GCC
11346    builtin and then its argument prototype would still apply.  */
11347 #ifdef __cplusplus
11348 extern "C"
11349 #endif
11350 char dlopen ();
11351 int
11352 main ()
11353 {
11354 return dlopen ();
11355   ;
11356   return 0;
11357 }
11358 _ACEOF
11359 if ac_fn_c_try_link "$LINENO"; then :
11360   ac_cv_lib_svld_dlopen=yes
11361 else
11362   ac_cv_lib_svld_dlopen=no
11363 fi
11364 rm -f core conftest.err conftest.$ac_objext \
11365     conftest$ac_exeext conftest.$ac_ext
11366 LIBS=$ac_check_lib_save_LIBS
11367 fi
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11369 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11370 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11371   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11372 else
11373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11374 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11375 if ${ac_cv_lib_dld_dld_link+:} false; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378   ac_check_lib_save_LIBS=$LIBS
11379 LIBS="-ldld  $LIBS"
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h.  */
11382
11383 /* Override any GCC internal prototype to avoid an error.
11384    Use char because int might match the return type of a GCC
11385    builtin and then its argument prototype would still apply.  */
11386 #ifdef __cplusplus
11387 extern "C"
11388 #endif
11389 char dld_link ();
11390 int
11391 main ()
11392 {
11393 return dld_link ();
11394   ;
11395   return 0;
11396 }
11397 _ACEOF
11398 if ac_fn_c_try_link "$LINENO"; then :
11399   ac_cv_lib_dld_dld_link=yes
11400 else
11401   ac_cv_lib_dld_dld_link=no
11402 fi
11403 rm -f core conftest.err conftest.$ac_objext \
11404     conftest$ac_exeext conftest.$ac_ext
11405 LIBS=$ac_check_lib_save_LIBS
11406 fi
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11408 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11409 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11410   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11411 fi
11412
11413
11414 fi
11415
11416
11417 fi
11418
11419
11420 fi
11421
11422
11423 fi
11424
11425
11426 fi
11427
11428     ;;
11429   esac
11430
11431   if test "x$lt_cv_dlopen" != xno; then
11432     enable_dlopen=yes
11433   else
11434     enable_dlopen=no
11435   fi
11436
11437   case $lt_cv_dlopen in
11438   dlopen)
11439     save_CPPFLAGS="$CPPFLAGS"
11440     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11441
11442     save_LDFLAGS="$LDFLAGS"
11443     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11444
11445     save_LIBS="$LIBS"
11446     LIBS="$lt_cv_dlopen_libs $LIBS"
11447
11448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11449 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11450 if ${lt_cv_dlopen_self+:} false; then :
11451   $as_echo_n "(cached) " >&6
11452 else
11453           if test "$cross_compiling" = yes; then :
11454   lt_cv_dlopen_self=cross
11455 else
11456   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11457   lt_status=$lt_dlunknown
11458   cat > conftest.$ac_ext <<_LT_EOF
11459 #line $LINENO "configure"
11460 #include "confdefs.h"
11461
11462 #if HAVE_DLFCN_H
11463 #include <dlfcn.h>
11464 #endif
11465
11466 #include <stdio.h>
11467
11468 #ifdef RTLD_GLOBAL
11469 #  define LT_DLGLOBAL           RTLD_GLOBAL
11470 #else
11471 #  ifdef DL_GLOBAL
11472 #    define LT_DLGLOBAL         DL_GLOBAL
11473 #  else
11474 #    define LT_DLGLOBAL         0
11475 #  endif
11476 #endif
11477
11478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11479    find out it does not work in some platform. */
11480 #ifndef LT_DLLAZY_OR_NOW
11481 #  ifdef RTLD_LAZY
11482 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11483 #  else
11484 #    ifdef DL_LAZY
11485 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11486 #    else
11487 #      ifdef RTLD_NOW
11488 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11489 #      else
11490 #        ifdef DL_NOW
11491 #          define LT_DLLAZY_OR_NOW      DL_NOW
11492 #        else
11493 #          define LT_DLLAZY_OR_NOW      0
11494 #        endif
11495 #      endif
11496 #    endif
11497 #  endif
11498 #endif
11499
11500 /* When -fvisbility=hidden is used, assume the code has been annotated
11501    correspondingly for the symbols needed.  */
11502 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11503 int fnord () __attribute__((visibility("default")));
11504 #endif
11505
11506 int fnord () { return 42; }
11507 int main ()
11508 {
11509   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11510   int status = $lt_dlunknown;
11511
11512   if (self)
11513     {
11514       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11515       else
11516         {
11517           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11518           else puts (dlerror ());
11519         }
11520       /* dlclose (self); */
11521     }
11522   else
11523     puts (dlerror ());
11524
11525   return status;
11526 }
11527 _LT_EOF
11528   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11529   (eval $ac_link) 2>&5
11530   ac_status=$?
11531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11532   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11533     (./conftest; exit; ) >&5 2>/dev/null
11534     lt_status=$?
11535     case x$lt_status in
11536       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11537       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11538       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11539     esac
11540   else :
11541     # compilation failed
11542     lt_cv_dlopen_self=no
11543   fi
11544 fi
11545 rm -fr conftest*
11546
11547
11548 fi
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11550 $as_echo "$lt_cv_dlopen_self" >&6; }
11551
11552     if test "x$lt_cv_dlopen_self" = xyes; then
11553       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11554       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11555 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11556 if ${lt_cv_dlopen_self_static+:} false; then :
11557   $as_echo_n "(cached) " >&6
11558 else
11559           if test "$cross_compiling" = yes; then :
11560   lt_cv_dlopen_self_static=cross
11561 else
11562   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11563   lt_status=$lt_dlunknown
11564   cat > conftest.$ac_ext <<_LT_EOF
11565 #line $LINENO "configure"
11566 #include "confdefs.h"
11567
11568 #if HAVE_DLFCN_H
11569 #include <dlfcn.h>
11570 #endif
11571
11572 #include <stdio.h>
11573
11574 #ifdef RTLD_GLOBAL
11575 #  define LT_DLGLOBAL           RTLD_GLOBAL
11576 #else
11577 #  ifdef DL_GLOBAL
11578 #    define LT_DLGLOBAL         DL_GLOBAL
11579 #  else
11580 #    define LT_DLGLOBAL         0
11581 #  endif
11582 #endif
11583
11584 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11585    find out it does not work in some platform. */
11586 #ifndef LT_DLLAZY_OR_NOW
11587 #  ifdef RTLD_LAZY
11588 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11589 #  else
11590 #    ifdef DL_LAZY
11591 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11592 #    else
11593 #      ifdef RTLD_NOW
11594 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11595 #      else
11596 #        ifdef DL_NOW
11597 #          define LT_DLLAZY_OR_NOW      DL_NOW
11598 #        else
11599 #          define LT_DLLAZY_OR_NOW      0
11600 #        endif
11601 #      endif
11602 #    endif
11603 #  endif
11604 #endif
11605
11606 /* When -fvisbility=hidden is used, assume the code has been annotated
11607    correspondingly for the symbols needed.  */
11608 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11609 int fnord () __attribute__((visibility("default")));
11610 #endif
11611
11612 int fnord () { return 42; }
11613 int main ()
11614 {
11615   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11616   int status = $lt_dlunknown;
11617
11618   if (self)
11619     {
11620       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11621       else
11622         {
11623           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11624           else puts (dlerror ());
11625         }
11626       /* dlclose (self); */
11627     }
11628   else
11629     puts (dlerror ());
11630
11631   return status;
11632 }
11633 _LT_EOF
11634   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11635   (eval $ac_link) 2>&5
11636   ac_status=$?
11637   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11638   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11639     (./conftest; exit; ) >&5 2>/dev/null
11640     lt_status=$?
11641     case x$lt_status in
11642       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11643       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11644       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11645     esac
11646   else :
11647     # compilation failed
11648     lt_cv_dlopen_self_static=no
11649   fi
11650 fi
11651 rm -fr conftest*
11652
11653
11654 fi
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11656 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11657     fi
11658
11659     CPPFLAGS="$save_CPPFLAGS"
11660     LDFLAGS="$save_LDFLAGS"
11661     LIBS="$save_LIBS"
11662     ;;
11663   esac
11664
11665   case $lt_cv_dlopen_self in
11666   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11667   *) enable_dlopen_self=unknown ;;
11668   esac
11669
11670   case $lt_cv_dlopen_self_static in
11671   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11672   *) enable_dlopen_self_static=unknown ;;
11673   esac
11674 fi
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692 striplib=
11693 old_striplib=
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11695 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11696 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11697   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11698   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11700 $as_echo "yes" >&6; }
11701 else
11702 # FIXME - insert some real tests, host_os isn't really good enough
11703   case $host_os in
11704   darwin*)
11705     if test -n "$STRIP" ; then
11706       striplib="$STRIP -x"
11707       old_striplib="$STRIP -S"
11708       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11709 $as_echo "yes" >&6; }
11710     else
11711       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11713     fi
11714     ;;
11715   *)
11716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11718     ;;
11719   esac
11720 fi
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733   # Report which library types will actually be built
11734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11735 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11737 $as_echo "$can_build_shared" >&6; }
11738
11739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11740 $as_echo_n "checking whether to build shared libraries... " >&6; }
11741   test "$can_build_shared" = "no" && enable_shared=no
11742
11743   # On AIX, shared libraries and static libraries use the same namespace, and
11744   # are all built from PIC.
11745   case $host_os in
11746   aix3*)
11747     test "$enable_shared" = yes && enable_static=no
11748     if test -n "$RANLIB"; then
11749       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11750       postinstall_cmds='$RANLIB $lib'
11751     fi
11752     ;;
11753
11754   aix[4-9]*)
11755     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11756       test "$enable_shared" = yes && enable_static=no
11757     fi
11758     ;;
11759   esac
11760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11761 $as_echo "$enable_shared" >&6; }
11762
11763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11764 $as_echo_n "checking whether to build static libraries... " >&6; }
11765   # Make sure either enable_shared or enable_static is yes.
11766   test "$enable_shared" = yes || enable_static=yes
11767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11768 $as_echo "$enable_static" >&6; }
11769
11770
11771
11772
11773 fi
11774 ac_ext=c
11775 ac_cpp='$CPP $CPPFLAGS'
11776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11779
11780 CC="$lt_save_CC"
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796         ac_config_commands="$ac_config_commands libtool"
11797
11798
11799
11800
11801 # Only expand once:
11802
11803
11804
11805 # other programs
11806
11807
11808 LIB_MAJ=2
11809
11810
11811 cat >>confdefs.h <<_ACEOF
11812 #define LIB_MAJ $LIB_MAJ
11813 _ACEOF
11814
11815
11816 # Check whether --enable-debug was given.
11817 if test "${enable_debug+set}" = set; then :
11818   enableval=$enable_debug;
11819 $as_echo "#define OPENPAM_DEBUG 1" >>confdefs.h
11820
11821 fi
11822
11823
11824 # Check whether --enable-unversioned-modules was given.
11825 if test "${enable_unversioned_modules+set}" = set; then :
11826   enableval=$enable_unversioned_modules; if test x"$enableval" = x"no"; then :
11827
11828
11829 $as_echo "#define DISABLE_UNVERSIONED_MODULES 1" >>confdefs.h
11830
11831
11832 fi
11833 fi
11834
11835
11836
11837 # Check whether --with-modules-dir was given.
11838 if test "${with_modules_dir+set}" = set; then :
11839   withval=$with_modules_dir; if test x"$withval" != x"no"; then :
11840
11841         OPENPAM_MODULES_DIR="$withval"
11842
11843 else
11844
11845         OPENPAM_MODULES_DIR="$libdir"
11846
11847 fi
11848 else
11849   OPENPAM_MODULES_DIR="$libdir"
11850 fi
11851
11852
11853 cat >>confdefs.h <<_ACEOF
11854 #define OPENPAM_MODULES_DIR "${OPENPAM_MODULES_DIR%/}/"
11855 _ACEOF
11856
11857
11858
11859
11860 # Check whether --with-doc was given.
11861 if test "${with_doc+set}" = set; then :
11862   withval=$with_doc;
11863 else
11864   with_doc=yes
11865 fi
11866
11867  if test x"$with_doc" = x"yes"; then
11868   WITH_DOC_TRUE=
11869   WITH_DOC_FALSE='#'
11870 else
11871   WITH_DOC_TRUE='#'
11872   WITH_DOC_FALSE=
11873 fi
11874
11875
11876
11877 # Check whether --with-pam-unix was given.
11878 if test "${with_pam_unix+set}" = set; then :
11879   withval=$with_pam_unix;
11880 else
11881   with_pam_unix=no
11882 fi
11883
11884  if test x"$with_pam_unix" = x"yes"; then
11885   WITH_PAM_UNIX_TRUE=
11886   WITH_PAM_UNIX_FALSE='#'
11887 else
11888   WITH_PAM_UNIX_TRUE='#'
11889   WITH_PAM_UNIX_FALSE=
11890 fi
11891
11892
11893
11894 # Check whether --with-pamtest was given.
11895 if test "${with_pamtest+set}" = set; then :
11896   withval=$with_pamtest;
11897 else
11898   with_pamtest=no
11899 fi
11900
11901  if test x"$with_pamtest" = x"yes"; then
11902   WITH_PAMTEST_TRUE=
11903   WITH_PAMTEST_FALSE='#'
11904 else
11905   WITH_PAMTEST_TRUE='#'
11906   WITH_PAMTEST_FALSE=
11907 fi
11908
11909
11910
11911 # Check whether --with-su was given.
11912 if test "${with_su+set}" = set; then :
11913   withval=$with_su;
11914 else
11915   with_su=no
11916 fi
11917
11918  if test x"$with_su" = x"yes"; then
11919   WITH_SU_TRUE=
11920   WITH_SU_FALSE='#'
11921 else
11922   WITH_SU_TRUE='#'
11923   WITH_SU_FALSE=
11924 fi
11925
11926
11927 for ac_header in crypt.h
11928 do :
11929   ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
11930 if test "x$ac_cv_header_crypt_h" = xyes; then :
11931   cat >>confdefs.h <<_ACEOF
11932 #define HAVE_CRYPT_H 1
11933 _ACEOF
11934
11935 fi
11936
11937 done
11938
11939
11940 for ac_func in fdlopen fpurge strlcat strlcmp strlcpy
11941 do :
11942   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11943 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11944 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11945   cat >>confdefs.h <<_ACEOF
11946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11947 _ACEOF
11948
11949 fi
11950 done
11951
11952
11953 saved_LIBS="${LIBS}"
11954 LIBS=""
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11956 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11957 if ${ac_cv_lib_dl_dlopen+:} false; then :
11958   $as_echo_n "(cached) " >&6
11959 else
11960   ac_check_lib_save_LIBS=$LIBS
11961 LIBS="-ldl  $LIBS"
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h.  */
11964
11965 /* Override any GCC internal prototype to avoid an error.
11966    Use char because int might match the return type of a GCC
11967    builtin and then its argument prototype would still apply.  */
11968 #ifdef __cplusplus
11969 extern "C"
11970 #endif
11971 char dlopen ();
11972 int
11973 main ()
11974 {
11975 return dlopen ();
11976   ;
11977   return 0;
11978 }
11979 _ACEOF
11980 if ac_fn_c_try_link "$LINENO"; then :
11981   ac_cv_lib_dl_dlopen=yes
11982 else
11983   ac_cv_lib_dl_dlopen=no
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext \
11986     conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11990 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11991 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11992   cat >>confdefs.h <<_ACEOF
11993 #define HAVE_LIBDL 1
11994 _ACEOF
11995
11996   LIBS="-ldl $LIBS"
11997
11998 fi
11999
12000 DL_LIBS="${LIBS}"
12001 LIBS="${saved_LIBS}"
12002
12003
12004 saved_LIBS="${LIBS}"
12005 LIBS=""
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
12007 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
12008 if ${ac_cv_lib_crypt_crypt+:} false; then :
12009   $as_echo_n "(cached) " >&6
12010 else
12011   ac_check_lib_save_LIBS=$LIBS
12012 LIBS="-lcrypt  $LIBS"
12013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h.  */
12015
12016 /* Override any GCC internal prototype to avoid an error.
12017    Use char because int might match the return type of a GCC
12018    builtin and then its argument prototype would still apply.  */
12019 #ifdef __cplusplus
12020 extern "C"
12021 #endif
12022 char crypt ();
12023 int
12024 main ()
12025 {
12026 return crypt ();
12027   ;
12028   return 0;
12029 }
12030 _ACEOF
12031 if ac_fn_c_try_link "$LINENO"; then :
12032   ac_cv_lib_crypt_crypt=yes
12033 else
12034   ac_cv_lib_crypt_crypt=no
12035 fi
12036 rm -f core conftest.err conftest.$ac_objext \
12037     conftest$ac_exeext conftest.$ac_ext
12038 LIBS=$ac_check_lib_save_LIBS
12039 fi
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
12041 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
12042 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
12043   cat >>confdefs.h <<_ACEOF
12044 #define HAVE_LIBCRYPT 1
12045 _ACEOF
12046
12047   LIBS="-lcrypt $LIBS"
12048
12049 fi
12050
12051 CRYPT_LIBS="${LIBS}"
12052 LIBS="${saved_LIBS}"
12053
12054
12055 # Check whether --enable-developer-warnings was given.
12056 if test "${enable_developer_warnings+set}" = set; then :
12057   enableval=$enable_developer_warnings; CFLAGS="${CFLAGS} -Wall -Wextra"
12058 fi
12059
12060 # Check whether --enable-debugging-symbols was given.
12061 if test "${enable_debugging_symbols+set}" = set; then :
12062   enableval=$enable_debugging_symbols; CFLAGS="${CFLAGS} -O0 -g -fno-inline"
12063 fi
12064
12065 # Check whether --enable-werror was given.
12066 if test "${enable_werror+set}" = set; then :
12067   enableval=$enable_werror; CFLAGS="${CFLAGS} -Werror"
12068 fi
12069
12070
12071 ac_config_files="$ac_config_files Makefile bin/Makefile bin/openpam_dump_policy/Makefile bin/pamtest/Makefile bin/su/Makefile doc/Makefile doc/man/Makefile include/Makefile include/security/Makefile lib/Makefile modules/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile modules/pam_unix/Makefile t/Makefile"
12072
12073 ac_config_files="$ac_config_files pamgdb"
12074
12075 cat >confcache <<\_ACEOF
12076 # This file is a shell script that caches the results of configure
12077 # tests run on this system so they can be shared between configure
12078 # scripts and configure runs, see configure's option --config-cache.
12079 # It is not useful on other systems.  If it contains results you don't
12080 # want to keep, you may remove or edit it.
12081 #
12082 # config.status only pays attention to the cache file if you give it
12083 # the --recheck option to rerun configure.
12084 #
12085 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12086 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12087 # following values.
12088
12089 _ACEOF
12090
12091 # The following way of writing the cache mishandles newlines in values,
12092 # but we know of no workaround that is simple, portable, and efficient.
12093 # So, we kill variables containing newlines.
12094 # Ultrix sh set writes to stderr and can't be redirected directly,
12095 # and sets the high bit in the cache file unless we assign to the vars.
12096 (
12097   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12098     eval ac_val=\$$ac_var
12099     case $ac_val in #(
12100     *${as_nl}*)
12101       case $ac_var in #(
12102       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12103 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12104       esac
12105       case $ac_var in #(
12106       _ | IFS | as_nl) ;; #(
12107       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12108       *) { eval $ac_var=; unset $ac_var;} ;;
12109       esac ;;
12110     esac
12111   done
12112
12113   (set) 2>&1 |
12114     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12115     *${as_nl}ac_space=\ *)
12116       # `set' does not quote correctly, so add quotes: double-quote
12117       # substitution turns \\\\ into \\, and sed turns \\ into \.
12118       sed -n \
12119         "s/'/'\\\\''/g;
12120           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12121       ;; #(
12122     *)
12123       # `set' quotes correctly as required by POSIX, so do not add quotes.
12124       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12125       ;;
12126     esac |
12127     sort
12128 ) |
12129   sed '
12130      /^ac_cv_env_/b end
12131      t clear
12132      :clear
12133      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12134      t end
12135      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12136      :end' >>confcache
12137 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12138   if test -w "$cache_file"; then
12139     if test "x$cache_file" != "x/dev/null"; then
12140       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12141 $as_echo "$as_me: updating cache $cache_file" >&6;}
12142       if test ! -f "$cache_file" || test -h "$cache_file"; then
12143         cat confcache >"$cache_file"
12144       else
12145         case $cache_file in #(
12146         */* | ?:*)
12147           mv -f confcache "$cache_file"$$ &&
12148           mv -f "$cache_file"$$ "$cache_file" ;; #(
12149         *)
12150           mv -f confcache "$cache_file" ;;
12151         esac
12152       fi
12153     fi
12154   else
12155     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12156 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12157   fi
12158 fi
12159 rm -f confcache
12160
12161 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12162 # Let make expand exec_prefix.
12163 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12164
12165 DEFS=-DHAVE_CONFIG_H
12166
12167 ac_libobjs=
12168 ac_ltlibobjs=
12169 U=
12170 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12171   # 1. Remove the extension, and $U if already installed.
12172   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12173   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12174   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12175   #    will be set to the directory where LIBOBJS objects are built.
12176   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12177   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12178 done
12179 LIBOBJS=$ac_libobjs
12180
12181 LTLIBOBJS=$ac_ltlibobjs
12182
12183
12184  if test -n "$EXEEXT"; then
12185   am__EXEEXT_TRUE=
12186   am__EXEEXT_FALSE='#'
12187 else
12188   am__EXEEXT_TRUE='#'
12189   am__EXEEXT_FALSE=
12190 fi
12191
12192 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12193   as_fn_error $? "conditional \"AMDEP\" was never defined.
12194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12195 fi
12196 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12197   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12199 fi
12200 if test -z "${WITH_DOC_TRUE}" && test -z "${WITH_DOC_FALSE}"; then
12201   as_fn_error $? "conditional \"WITH_DOC\" was never defined.
12202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12203 fi
12204 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
12205   as_fn_error $? "conditional \"WITH_PAM_UNIX\" was never defined.
12206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12207 fi
12208 if test -z "${WITH_PAMTEST_TRUE}" && test -z "${WITH_PAMTEST_FALSE}"; then
12209   as_fn_error $? "conditional \"WITH_PAMTEST\" was never defined.
12210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12211 fi
12212 if test -z "${WITH_SU_TRUE}" && test -z "${WITH_SU_FALSE}"; then
12213   as_fn_error $? "conditional \"WITH_SU\" was never defined.
12214 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12215 fi
12216
12217 : "${CONFIG_STATUS=./config.status}"
12218 ac_write_fail=0
12219 ac_clean_files_save=$ac_clean_files
12220 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12222 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12223 as_write_fail=0
12224 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12225 #! $SHELL
12226 # Generated by $as_me.
12227 # Run this file to recreate the current configuration.
12228 # Compiler output produced by configure, useful for debugging
12229 # configure, is in config.log if it exists.
12230
12231 debug=false
12232 ac_cs_recheck=false
12233 ac_cs_silent=false
12234
12235 SHELL=\${CONFIG_SHELL-$SHELL}
12236 export SHELL
12237 _ASEOF
12238 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12239 ## -------------------- ##
12240 ## M4sh Initialization. ##
12241 ## -------------------- ##
12242
12243 # Be more Bourne compatible
12244 DUALCASE=1; export DUALCASE # for MKS sh
12245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12246   emulate sh
12247   NULLCMD=:
12248   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12249   # is contrary to our usage.  Disable this feature.
12250   alias -g '${1+"$@"}'='"$@"'
12251   setopt NO_GLOB_SUBST
12252 else
12253   case `(set -o) 2>/dev/null` in #(
12254   *posix*) :
12255     set -o posix ;; #(
12256   *) :
12257      ;;
12258 esac
12259 fi
12260
12261
12262 as_nl='
12263 '
12264 export as_nl
12265 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12266 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12268 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12269 # Prefer a ksh shell builtin over an external printf program on Solaris,
12270 # but without wasting forks for bash or zsh.
12271 if test -z "$BASH_VERSION$ZSH_VERSION" \
12272     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12273   as_echo='print -r --'
12274   as_echo_n='print -rn --'
12275 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12276   as_echo='printf %s\n'
12277   as_echo_n='printf %s'
12278 else
12279   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12280     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12281     as_echo_n='/usr/ucb/echo -n'
12282   else
12283     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12284     as_echo_n_body='eval
12285       arg=$1;
12286       case $arg in #(
12287       *"$as_nl"*)
12288         expr "X$arg" : "X\\(.*\\)$as_nl";
12289         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12290       esac;
12291       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12292     '
12293     export as_echo_n_body
12294     as_echo_n='sh -c $as_echo_n_body as_echo'
12295   fi
12296   export as_echo_body
12297   as_echo='sh -c $as_echo_body as_echo'
12298 fi
12299
12300 # The user is always right.
12301 if test "${PATH_SEPARATOR+set}" != set; then
12302   PATH_SEPARATOR=:
12303   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12304     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12305       PATH_SEPARATOR=';'
12306   }
12307 fi
12308
12309
12310 # IFS
12311 # We need space, tab and new line, in precisely that order.  Quoting is
12312 # there to prevent editors from complaining about space-tab.
12313 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12314 # splitting by setting IFS to empty value.)
12315 IFS=" ""        $as_nl"
12316
12317 # Find who we are.  Look in the path if we contain no directory separator.
12318 as_myself=
12319 case $0 in #((
12320   *[\\/]* ) as_myself=$0 ;;
12321   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322 for as_dir in $PATH
12323 do
12324   IFS=$as_save_IFS
12325   test -z "$as_dir" && as_dir=.
12326     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12327   done
12328 IFS=$as_save_IFS
12329
12330      ;;
12331 esac
12332 # We did not find ourselves, most probably we were run as `sh COMMAND'
12333 # in which case we are not to be found in the path.
12334 if test "x$as_myself" = x; then
12335   as_myself=$0
12336 fi
12337 if test ! -f "$as_myself"; then
12338   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12339   exit 1
12340 fi
12341
12342 # Unset variables that we do not need and which cause bugs (e.g. in
12343 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12344 # suppresses any "Segmentation fault" message there.  '((' could
12345 # trigger a bug in pdksh 5.2.14.
12346 for as_var in BASH_ENV ENV MAIL MAILPATH
12347 do eval test x\${$as_var+set} = xset \
12348   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12349 done
12350 PS1='$ '
12351 PS2='> '
12352 PS4='+ '
12353
12354 # NLS nuisances.
12355 LC_ALL=C
12356 export LC_ALL
12357 LANGUAGE=C
12358 export LANGUAGE
12359
12360 # CDPATH.
12361 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12362
12363
12364 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12365 # ----------------------------------------
12366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12368 # script with STATUS, using 1 if that was 0.
12369 as_fn_error ()
12370 {
12371   as_status=$1; test $as_status -eq 0 && as_status=1
12372   if test "$4"; then
12373     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12374     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12375   fi
12376   $as_echo "$as_me: error: $2" >&2
12377   as_fn_exit $as_status
12378 } # as_fn_error
12379
12380
12381 # as_fn_set_status STATUS
12382 # -----------------------
12383 # Set $? to STATUS, without forking.
12384 as_fn_set_status ()
12385 {
12386   return $1
12387 } # as_fn_set_status
12388
12389 # as_fn_exit STATUS
12390 # -----------------
12391 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12392 as_fn_exit ()
12393 {
12394   set +e
12395   as_fn_set_status $1
12396   exit $1
12397 } # as_fn_exit
12398
12399 # as_fn_unset VAR
12400 # ---------------
12401 # Portably unset VAR.
12402 as_fn_unset ()
12403 {
12404   { eval $1=; unset $1;}
12405 }
12406 as_unset=as_fn_unset
12407 # as_fn_append VAR VALUE
12408 # ----------------------
12409 # Append the text in VALUE to the end of the definition contained in VAR. Take
12410 # advantage of any shell optimizations that allow amortized linear growth over
12411 # repeated appends, instead of the typical quadratic growth present in naive
12412 # implementations.
12413 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12414   eval 'as_fn_append ()
12415   {
12416     eval $1+=\$2
12417   }'
12418 else
12419   as_fn_append ()
12420   {
12421     eval $1=\$$1\$2
12422   }
12423 fi # as_fn_append
12424
12425 # as_fn_arith ARG...
12426 # ------------------
12427 # Perform arithmetic evaluation on the ARGs, and store the result in the
12428 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12429 # must be portable across $(()) and expr.
12430 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12431   eval 'as_fn_arith ()
12432   {
12433     as_val=$(( $* ))
12434   }'
12435 else
12436   as_fn_arith ()
12437   {
12438     as_val=`expr "$@" || test $? -eq 1`
12439   }
12440 fi # as_fn_arith
12441
12442
12443 if expr a : '\(a\)' >/dev/null 2>&1 &&
12444    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12445   as_expr=expr
12446 else
12447   as_expr=false
12448 fi
12449
12450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12451   as_basename=basename
12452 else
12453   as_basename=false
12454 fi
12455
12456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12457   as_dirname=dirname
12458 else
12459   as_dirname=false
12460 fi
12461
12462 as_me=`$as_basename -- "$0" ||
12463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12464          X"$0" : 'X\(//\)$' \| \
12465          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12466 $as_echo X/"$0" |
12467     sed '/^.*\/\([^/][^/]*\)\/*$/{
12468             s//\1/
12469             q
12470           }
12471           /^X\/\(\/\/\)$/{
12472             s//\1/
12473             q
12474           }
12475           /^X\/\(\/\).*/{
12476             s//\1/
12477             q
12478           }
12479           s/.*/./; q'`
12480
12481 # Avoid depending upon Character Ranges.
12482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12485 as_cr_digits='0123456789'
12486 as_cr_alnum=$as_cr_Letters$as_cr_digits
12487
12488 ECHO_C= ECHO_N= ECHO_T=
12489 case `echo -n x` in #(((((
12490 -n*)
12491   case `echo 'xy\c'` in
12492   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12493   xy)  ECHO_C='\c';;
12494   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12495        ECHO_T=' ';;
12496   esac;;
12497 *)
12498   ECHO_N='-n';;
12499 esac
12500
12501 rm -f conf$$ conf$$.exe conf$$.file
12502 if test -d conf$$.dir; then
12503   rm -f conf$$.dir/conf$$.file
12504 else
12505   rm -f conf$$.dir
12506   mkdir conf$$.dir 2>/dev/null
12507 fi
12508 if (echo >conf$$.file) 2>/dev/null; then
12509   if ln -s conf$$.file conf$$ 2>/dev/null; then
12510     as_ln_s='ln -s'
12511     # ... but there are two gotchas:
12512     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12513     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12514     # In both cases, we have to default to `cp -p'.
12515     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12516       as_ln_s='cp -p'
12517   elif ln conf$$.file conf$$ 2>/dev/null; then
12518     as_ln_s=ln
12519   else
12520     as_ln_s='cp -p'
12521   fi
12522 else
12523   as_ln_s='cp -p'
12524 fi
12525 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12526 rmdir conf$$.dir 2>/dev/null
12527
12528
12529 # as_fn_mkdir_p
12530 # -------------
12531 # Create "$as_dir" as a directory, including parents if necessary.
12532 as_fn_mkdir_p ()
12533 {
12534
12535   case $as_dir in #(
12536   -*) as_dir=./$as_dir;;
12537   esac
12538   test -d "$as_dir" || eval $as_mkdir_p || {
12539     as_dirs=
12540     while :; do
12541       case $as_dir in #(
12542       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12543       *) as_qdir=$as_dir;;
12544       esac
12545       as_dirs="'$as_qdir' $as_dirs"
12546       as_dir=`$as_dirname -- "$as_dir" ||
12547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12548          X"$as_dir" : 'X\(//\)[^/]' \| \
12549          X"$as_dir" : 'X\(//\)$' \| \
12550          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12551 $as_echo X"$as_dir" |
12552     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12553             s//\1/
12554             q
12555           }
12556           /^X\(\/\/\)[^/].*/{
12557             s//\1/
12558             q
12559           }
12560           /^X\(\/\/\)$/{
12561             s//\1/
12562             q
12563           }
12564           /^X\(\/\).*/{
12565             s//\1/
12566             q
12567           }
12568           s/.*/./; q'`
12569       test -d "$as_dir" && break
12570     done
12571     test -z "$as_dirs" || eval "mkdir $as_dirs"
12572   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12573
12574
12575 } # as_fn_mkdir_p
12576 if mkdir -p . 2>/dev/null; then
12577   as_mkdir_p='mkdir -p "$as_dir"'
12578 else
12579   test -d ./-p && rmdir ./-p
12580   as_mkdir_p=false
12581 fi
12582
12583 if test -x / >/dev/null 2>&1; then
12584   as_test_x='test -x'
12585 else
12586   if ls -dL / >/dev/null 2>&1; then
12587     as_ls_L_option=L
12588   else
12589     as_ls_L_option=
12590   fi
12591   as_test_x='
12592     eval sh -c '\''
12593       if test -d "$1"; then
12594         test -d "$1/.";
12595       else
12596         case $1 in #(
12597         -*)set "./$1";;
12598         esac;
12599         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12600         ???[sx]*):;;*)false;;esac;fi
12601     '\'' sh
12602   '
12603 fi
12604 as_executable_p=$as_test_x
12605
12606 # Sed expression to map a string onto a valid CPP name.
12607 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12608
12609 # Sed expression to map a string onto a valid variable name.
12610 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12611
12612
12613 exec 6>&1
12614 ## ----------------------------------- ##
12615 ## Main body of $CONFIG_STATUS script. ##
12616 ## ----------------------------------- ##
12617 _ASEOF
12618 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12619
12620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12621 # Save the log message, to keep $0 and so on meaningful, and to
12622 # report actual input values of CONFIG_FILES etc. instead of their
12623 # values after options handling.
12624 ac_log="
12625 This file was extended by OpenPAM $as_me 20120526, which was
12626 generated by GNU Autoconf 2.68.  Invocation command line was
12627
12628   CONFIG_FILES    = $CONFIG_FILES
12629   CONFIG_HEADERS  = $CONFIG_HEADERS
12630   CONFIG_LINKS    = $CONFIG_LINKS
12631   CONFIG_COMMANDS = $CONFIG_COMMANDS
12632   $ $0 $@
12633
12634 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12635 "
12636
12637 _ACEOF
12638
12639 case $ac_config_files in *"
12640 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12641 esac
12642
12643 case $ac_config_headers in *"
12644 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12645 esac
12646
12647
12648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12649 # Files that config.status was made for.
12650 config_files="$ac_config_files"
12651 config_headers="$ac_config_headers"
12652 config_commands="$ac_config_commands"
12653
12654 _ACEOF
12655
12656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12657 ac_cs_usage="\
12658 \`$as_me' instantiates files and other configuration actions
12659 from templates according to the current configuration.  Unless the files
12660 and actions are specified as TAGs, all are instantiated by default.
12661
12662 Usage: $0 [OPTION]... [TAG]...
12663
12664   -h, --help       print this help, then exit
12665   -V, --version    print version number and configuration settings, then exit
12666       --config     print configuration, then exit
12667   -q, --quiet, --silent
12668                    do not print progress messages
12669   -d, --debug      don't remove temporary files
12670       --recheck    update $as_me by reconfiguring in the same conditions
12671       --file=FILE[:TEMPLATE]
12672                    instantiate the configuration file FILE
12673       --header=FILE[:TEMPLATE]
12674                    instantiate the configuration header FILE
12675
12676 Configuration files:
12677 $config_files
12678
12679 Configuration headers:
12680 $config_headers
12681
12682 Configuration commands:
12683 $config_commands
12684
12685 Report bugs to <des@des.no>."
12686
12687 _ACEOF
12688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12689 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12690 ac_cs_version="\\
12691 OpenPAM config.status 20120526
12692 configured by $0, generated by GNU Autoconf 2.68,
12693   with options \\"\$ac_cs_config\\"
12694
12695 Copyright (C) 2010 Free Software Foundation, Inc.
12696 This config.status script is free software; the Free Software Foundation
12697 gives unlimited permission to copy, distribute and modify it."
12698
12699 ac_pwd='$ac_pwd'
12700 srcdir='$srcdir'
12701 INSTALL='$INSTALL'
12702 MKDIR_P='$MKDIR_P'
12703 AWK='$AWK'
12704 test -n "\$AWK" || AWK=awk
12705 _ACEOF
12706
12707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12708 # The default lists apply if the user does not specify any file.
12709 ac_need_defaults=:
12710 while test $# != 0
12711 do
12712   case $1 in
12713   --*=?*)
12714     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12715     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12716     ac_shift=:
12717     ;;
12718   --*=)
12719     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12720     ac_optarg=
12721     ac_shift=:
12722     ;;
12723   *)
12724     ac_option=$1
12725     ac_optarg=$2
12726     ac_shift=shift
12727     ;;
12728   esac
12729
12730   case $ac_option in
12731   # Handling of the options.
12732   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12733     ac_cs_recheck=: ;;
12734   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12735     $as_echo "$ac_cs_version"; exit ;;
12736   --config | --confi | --conf | --con | --co | --c )
12737     $as_echo "$ac_cs_config"; exit ;;
12738   --debug | --debu | --deb | --de | --d | -d )
12739     debug=: ;;
12740   --file | --fil | --fi | --f )
12741     $ac_shift
12742     case $ac_optarg in
12743     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12744     '') as_fn_error $? "missing file argument" ;;
12745     esac
12746     as_fn_append CONFIG_FILES " '$ac_optarg'"
12747     ac_need_defaults=false;;
12748   --header | --heade | --head | --hea )
12749     $ac_shift
12750     case $ac_optarg in
12751     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12752     esac
12753     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12754     ac_need_defaults=false;;
12755   --he | --h)
12756     # Conflict between --help and --header
12757     as_fn_error $? "ambiguous option: \`$1'
12758 Try \`$0 --help' for more information.";;
12759   --help | --hel | -h )
12760     $as_echo "$ac_cs_usage"; exit ;;
12761   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12762   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12763     ac_cs_silent=: ;;
12764
12765   # This is an error.
12766   -*) as_fn_error $? "unrecognized option: \`$1'
12767 Try \`$0 --help' for more information." ;;
12768
12769   *) as_fn_append ac_config_targets " $1"
12770      ac_need_defaults=false ;;
12771
12772   esac
12773   shift
12774 done
12775
12776 ac_configure_extra_args=
12777
12778 if $ac_cs_silent; then
12779   exec 6>/dev/null
12780   ac_configure_extra_args="$ac_configure_extra_args --silent"
12781 fi
12782
12783 _ACEOF
12784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12785 if \$ac_cs_recheck; then
12786   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12787   shift
12788   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12789   CONFIG_SHELL='$SHELL'
12790   export CONFIG_SHELL
12791   exec "\$@"
12792 fi
12793
12794 _ACEOF
12795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12796 exec 5>>config.log
12797 {
12798   echo
12799   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12800 ## Running $as_me. ##
12801 _ASBOX
12802   $as_echo "$ac_log"
12803 } >&5
12804
12805 _ACEOF
12806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12807 #
12808 # INIT-COMMANDS
12809 #
12810 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12811
12812
12813 # The HP-UX ksh and POSIX shell print the target directory to stdout
12814 # if CDPATH is set.
12815 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12816
12817 sed_quote_subst='$sed_quote_subst'
12818 double_quote_subst='$double_quote_subst'
12819 delay_variable_subst='$delay_variable_subst'
12820 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12821 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12822 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12823 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12824 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12825 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12826 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12827 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12828 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12829 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12830 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12831 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12832 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12833 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12834 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12835 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12836 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12837 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12838 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12839 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12840 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12841 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12842 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12843 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12844 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12845 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12846 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12847 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12848 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12849 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12850 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12851 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12852 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12853 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12854 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12855 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12856 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12857 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12858 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12859 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12860 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12861 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12862 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12863 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12864 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12865 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12866 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12867 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12868 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12869 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12870 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12871 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12872 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12873 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12874 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12875 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12876 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"`'
12877 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12878 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12879 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12880 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12881 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12882 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12883 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12884 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12885 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12886 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12887 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12888 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12889 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12890 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12891 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12892 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12893 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12894 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12895 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12896 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12897 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12898 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12899 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12900 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12901 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12902 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12903 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12904 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12905 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12906 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12907 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12908 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12909 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12910 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12911 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12912 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12913 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12914 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12915 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12916 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12917 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12918 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12919 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12920 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12921 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12922 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12923 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12924 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12925 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12926 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12927 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12928 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12929 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12930 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12931 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12932 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12933 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12934 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12935 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12936 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12937 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12938 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12939 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12940 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12941 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12942 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12943 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12944 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12945 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12946 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12947 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12948 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12949 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12950
12951 LTCC='$LTCC'
12952 LTCFLAGS='$LTCFLAGS'
12953 compiler='$compiler_DEFAULT'
12954
12955 # A function that is used when there is no print builtin or printf.
12956 func_fallback_echo ()
12957 {
12958   eval 'cat <<_LTECHO_EOF
12959 \$1
12960 _LTECHO_EOF'
12961 }
12962
12963 # Quote evaled strings.
12964 for var in SHELL \
12965 ECHO \
12966 PATH_SEPARATOR \
12967 SED \
12968 GREP \
12969 EGREP \
12970 FGREP \
12971 LD \
12972 NM \
12973 LN_S \
12974 lt_SP2NL \
12975 lt_NL2SP \
12976 reload_flag \
12977 OBJDUMP \
12978 deplibs_check_method \
12979 file_magic_cmd \
12980 file_magic_glob \
12981 want_nocaseglob \
12982 DLLTOOL \
12983 sharedlib_from_linklib_cmd \
12984 AR \
12985 AR_FLAGS \
12986 archiver_list_spec \
12987 STRIP \
12988 RANLIB \
12989 CC \
12990 CFLAGS \
12991 compiler \
12992 lt_cv_sys_global_symbol_pipe \
12993 lt_cv_sys_global_symbol_to_cdecl \
12994 lt_cv_sys_global_symbol_to_c_name_address \
12995 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12996 nm_file_list_spec \
12997 lt_prog_compiler_no_builtin_flag \
12998 lt_prog_compiler_pic \
12999 lt_prog_compiler_wl \
13000 lt_prog_compiler_static \
13001 lt_cv_prog_compiler_c_o \
13002 need_locks \
13003 MANIFEST_TOOL \
13004 DSYMUTIL \
13005 NMEDIT \
13006 LIPO \
13007 OTOOL \
13008 OTOOL64 \
13009 shrext_cmds \
13010 export_dynamic_flag_spec \
13011 whole_archive_flag_spec \
13012 compiler_needs_object \
13013 with_gnu_ld \
13014 allow_undefined_flag \
13015 no_undefined_flag \
13016 hardcode_libdir_flag_spec \
13017 hardcode_libdir_separator \
13018 exclude_expsyms \
13019 include_expsyms \
13020 file_list_spec \
13021 variables_saved_for_relink \
13022 libname_spec \
13023 library_names_spec \
13024 soname_spec \
13025 install_override_mode \
13026 finish_eval \
13027 old_striplib \
13028 striplib; do
13029     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13030     *[\\\\\\\`\\"\\\$]*)
13031       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13032       ;;
13033     *)
13034       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13035       ;;
13036     esac
13037 done
13038
13039 # Double-quote double-evaled strings.
13040 for var in reload_cmds \
13041 old_postinstall_cmds \
13042 old_postuninstall_cmds \
13043 old_archive_cmds \
13044 extract_expsyms_cmds \
13045 old_archive_from_new_cmds \
13046 old_archive_from_expsyms_cmds \
13047 archive_cmds \
13048 archive_expsym_cmds \
13049 module_cmds \
13050 module_expsym_cmds \
13051 export_symbols_cmds \
13052 prelink_cmds \
13053 postlink_cmds \
13054 postinstall_cmds \
13055 postuninstall_cmds \
13056 finish_cmds \
13057 sys_lib_search_path_spec \
13058 sys_lib_dlsearch_path_spec; do
13059     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13060     *[\\\\\\\`\\"\\\$]*)
13061       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13062       ;;
13063     *)
13064       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13065       ;;
13066     esac
13067 done
13068
13069 ac_aux_dir='$ac_aux_dir'
13070 xsi_shell='$xsi_shell'
13071 lt_shell_append='$lt_shell_append'
13072
13073 # See if we are running on zsh, and set the options which allow our
13074 # commands through without removal of \ escapes INIT.
13075 if test -n "\${ZSH_VERSION+set}" ; then
13076    setopt NO_GLOB_SUBST
13077 fi
13078
13079
13080     PACKAGE='$PACKAGE'
13081     VERSION='$VERSION'
13082     TIMESTAMP='$TIMESTAMP'
13083     RM='$RM'
13084     ofile='$ofile'
13085
13086
13087
13088
13089 _ACEOF
13090
13091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13092
13093 # Handling of arguments.
13094 for ac_config_target in $ac_config_targets
13095 do
13096   case $ac_config_target in
13097     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13098     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13099     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13100     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13101     "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
13102     "bin/openpam_dump_policy/Makefile") CONFIG_FILES="$CONFIG_FILES bin/openpam_dump_policy/Makefile" ;;
13103     "bin/pamtest/Makefile") CONFIG_FILES="$CONFIG_FILES bin/pamtest/Makefile" ;;
13104     "bin/su/Makefile") CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
13105     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13106     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
13107     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13108     "include/security/Makefile") CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
13109     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13110     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
13111     "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
13112     "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
13113     "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
13114     "t/Makefile") CONFIG_FILES="$CONFIG_FILES t/Makefile" ;;
13115     "pamgdb") CONFIG_FILES="$CONFIG_FILES pamgdb" ;;
13116
13117   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13118   esac
13119 done
13120
13121
13122 # If the user did not use the arguments to specify the items to instantiate,
13123 # then the envvar interface is used.  Set only those that are not.
13124 # We use the long form for the default assignment because of an extremely
13125 # bizarre bug on SunOS 4.1.3.
13126 if $ac_need_defaults; then
13127   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13128   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13129   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13130 fi
13131
13132 # Have a temporary directory for convenience.  Make it in the build tree
13133 # simply because there is no reason against having it here, and in addition,
13134 # creating and moving files from /tmp can sometimes cause problems.
13135 # Hook for its removal unless debugging.
13136 # Note that there is a small window in which the directory will not be cleaned:
13137 # after its creation but before its name has been assigned to `$tmp'.
13138 $debug ||
13139 {
13140   tmp= ac_tmp=
13141   trap 'exit_status=$?
13142   : "${ac_tmp:=$tmp}"
13143   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13144 ' 0
13145   trap 'as_fn_exit 1' 1 2 13 15
13146 }
13147 # Create a (secure) tmp directory for tmp files.
13148
13149 {
13150   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13151   test -d "$tmp"
13152 }  ||
13153 {
13154   tmp=./conf$$-$RANDOM
13155   (umask 077 && mkdir "$tmp")
13156 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13157 ac_tmp=$tmp
13158
13159 # Set up the scripts for CONFIG_FILES section.
13160 # No need to generate them if there are no CONFIG_FILES.
13161 # This happens for instance with `./config.status config.h'.
13162 if test -n "$CONFIG_FILES"; then
13163
13164
13165 ac_cr=`echo X | tr X '\015'`
13166 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13167 # But we know of no other shell where ac_cr would be empty at this
13168 # point, so we can use a bashism as a fallback.
13169 if test "x$ac_cr" = x; then
13170   eval ac_cr=\$\'\\r\'
13171 fi
13172 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13173 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13174   ac_cs_awk_cr='\\r'
13175 else
13176   ac_cs_awk_cr=$ac_cr
13177 fi
13178
13179 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13180 _ACEOF
13181
13182
13183 {
13184   echo "cat >conf$$subs.awk <<_ACEOF" &&
13185   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13186   echo "_ACEOF"
13187 } >conf$$subs.sh ||
13188   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13189 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13190 ac_delim='%!_!# '
13191 for ac_last_try in false false false false false :; do
13192   . ./conf$$subs.sh ||
13193     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13194
13195   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13196   if test $ac_delim_n = $ac_delim_num; then
13197     break
13198   elif $ac_last_try; then
13199     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13200   else
13201     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13202   fi
13203 done
13204 rm -f conf$$subs.sh
13205
13206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13208 _ACEOF
13209 sed -n '
13210 h
13211 s/^/S["/; s/!.*/"]=/
13212 p
13213 g
13214 s/^[^!]*!//
13215 :repl
13216 t repl
13217 s/'"$ac_delim"'$//
13218 t delim
13219 :nl
13220 h
13221 s/\(.\{148\}\)..*/\1/
13222 t more1
13223 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13224 p
13225 n
13226 b repl
13227 :more1
13228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13229 p
13230 g
13231 s/.\{148\}//
13232 t nl
13233 :delim
13234 h
13235 s/\(.\{148\}\)..*/\1/
13236 t more2
13237 s/["\\]/\\&/g; s/^/"/; s/$/"/
13238 p
13239 b
13240 :more2
13241 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13242 p
13243 g
13244 s/.\{148\}//
13245 t delim
13246 ' <conf$$subs.awk | sed '
13247 /^[^""]/{
13248   N
13249   s/\n//
13250 }
13251 ' >>$CONFIG_STATUS || ac_write_fail=1
13252 rm -f conf$$subs.awk
13253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13254 _ACAWK
13255 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13256   for (key in S) S_is_set[key] = 1
13257   FS = "\a"
13258
13259 }
13260 {
13261   line = $ 0
13262   nfields = split(line, field, "@")
13263   substed = 0
13264   len = length(field[1])
13265   for (i = 2; i < nfields; i++) {
13266     key = field[i]
13267     keylen = length(key)
13268     if (S_is_set[key]) {
13269       value = S[key]
13270       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13271       len += length(value) + length(field[++i])
13272       substed = 1
13273     } else
13274       len += 1 + keylen
13275   }
13276
13277   print line
13278 }
13279
13280 _ACAWK
13281 _ACEOF
13282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13283 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13284   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13285 else
13286   cat
13287 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13288   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13289 _ACEOF
13290
13291 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13292 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13293 # trailing colons and then remove the whole line if VPATH becomes empty
13294 # (actually we leave an empty line to preserve line numbers).
13295 if test "x$srcdir" = x.; then
13296   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13297 h
13298 s///
13299 s/^/:/
13300 s/[      ]*$/:/
13301 s/:\$(srcdir):/:/g
13302 s/:\${srcdir}:/:/g
13303 s/:@srcdir@:/:/g
13304 s/^:*//
13305 s/:*$//
13306 x
13307 s/\(=[   ]*\).*/\1/
13308 G
13309 s/\n//
13310 s/^[^=]*=[       ]*$//
13311 }'
13312 fi
13313
13314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13315 fi # test -n "$CONFIG_FILES"
13316
13317 # Set up the scripts for CONFIG_HEADERS section.
13318 # No need to generate them if there are no CONFIG_HEADERS.
13319 # This happens for instance with `./config.status Makefile'.
13320 if test -n "$CONFIG_HEADERS"; then
13321 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13322 BEGIN {
13323 _ACEOF
13324
13325 # Transform confdefs.h into an awk script `defines.awk', embedded as
13326 # here-document in config.status, that substitutes the proper values into
13327 # config.h.in to produce config.h.
13328
13329 # Create a delimiter string that does not exist in confdefs.h, to ease
13330 # handling of long lines.
13331 ac_delim='%!_!# '
13332 for ac_last_try in false false :; do
13333   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13334   if test -z "$ac_tt"; then
13335     break
13336   elif $ac_last_try; then
13337     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13338   else
13339     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13340   fi
13341 done
13342
13343 # For the awk script, D is an array of macro values keyed by name,
13344 # likewise P contains macro parameters if any.  Preserve backslash
13345 # newline sequences.
13346
13347 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13348 sed -n '
13349 s/.\{148\}/&'"$ac_delim"'/g
13350 t rset
13351 :rset
13352 s/^[     ]*#[    ]*define[       ][      ]*/ /
13353 t def
13354 d
13355 :def
13356 s/\\$//
13357 t bsnl
13358 s/["\\]/\\&/g
13359 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13360 D["\1"]=" \3"/p
13361 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13362 d
13363 :bsnl
13364 s/["\\]/\\&/g
13365 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13366 D["\1"]=" \3\\\\\\n"\\/p
13367 t cont
13368 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13369 t cont
13370 d
13371 :cont
13372 n
13373 s/.\{148\}/&'"$ac_delim"'/g
13374 t clear
13375 :clear
13376 s/\\$//
13377 t bsnlc
13378 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13379 d
13380 :bsnlc
13381 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13382 b cont
13383 ' <confdefs.h | sed '
13384 s/'"$ac_delim"'/"\\\
13385 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13386
13387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13388   for (key in D) D_is_set[key] = 1
13389   FS = "\a"
13390 }
13391 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13392   line = \$ 0
13393   split(line, arg, " ")
13394   if (arg[1] == "#") {
13395     defundef = arg[2]
13396     mac1 = arg[3]
13397   } else {
13398     defundef = substr(arg[1], 2)
13399     mac1 = arg[2]
13400   }
13401   split(mac1, mac2, "(") #)
13402   macro = mac2[1]
13403   prefix = substr(line, 1, index(line, defundef) - 1)
13404   if (D_is_set[macro]) {
13405     # Preserve the white space surrounding the "#".
13406     print prefix "define", macro P[macro] D[macro]
13407     next
13408   } else {
13409     # Replace #undef with comments.  This is necessary, for example,
13410     # in the case of _POSIX_SOURCE, which is predefined and required
13411     # on some systems where configure will not decide to define it.
13412     if (defundef == "undef") {
13413       print "/*", prefix defundef, macro, "*/"
13414       next
13415     }
13416   }
13417 }
13418 { print }
13419 _ACAWK
13420 _ACEOF
13421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13422   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13423 fi # test -n "$CONFIG_HEADERS"
13424
13425
13426 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13427 shift
13428 for ac_tag
13429 do
13430   case $ac_tag in
13431   :[FHLC]) ac_mode=$ac_tag; continue;;
13432   esac
13433   case $ac_mode$ac_tag in
13434   :[FHL]*:*);;
13435   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13436   :[FH]-) ac_tag=-:-;;
13437   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13438   esac
13439   ac_save_IFS=$IFS
13440   IFS=:
13441   set x $ac_tag
13442   IFS=$ac_save_IFS
13443   shift
13444   ac_file=$1
13445   shift
13446
13447   case $ac_mode in
13448   :L) ac_source=$1;;
13449   :[FH])
13450     ac_file_inputs=
13451     for ac_f
13452     do
13453       case $ac_f in
13454       -) ac_f="$ac_tmp/stdin";;
13455       *) # Look for the file first in the build tree, then in the source tree
13456          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13457          # because $ac_f cannot contain `:'.
13458          test -f "$ac_f" ||
13459            case $ac_f in
13460            [\\/$]*) false;;
13461            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13462            esac ||
13463            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13464       esac
13465       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13466       as_fn_append ac_file_inputs " '$ac_f'"
13467     done
13468
13469     # Let's still pretend it is `configure' which instantiates (i.e., don't
13470     # use $as_me), people would be surprised to read:
13471     #    /* config.h.  Generated by config.status.  */
13472     configure_input='Generated from '`
13473           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13474         `' by configure.'
13475     if test x"$ac_file" != x-; then
13476       configure_input="$ac_file.  $configure_input"
13477       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13478 $as_echo "$as_me: creating $ac_file" >&6;}
13479     fi
13480     # Neutralize special characters interpreted by sed in replacement strings.
13481     case $configure_input in #(
13482     *\&* | *\|* | *\\* )
13483        ac_sed_conf_input=`$as_echo "$configure_input" |
13484        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13485     *) ac_sed_conf_input=$configure_input;;
13486     esac
13487
13488     case $ac_tag in
13489     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13490       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13491     esac
13492     ;;
13493   esac
13494
13495   ac_dir=`$as_dirname -- "$ac_file" ||
13496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13497          X"$ac_file" : 'X\(//\)[^/]' \| \
13498          X"$ac_file" : 'X\(//\)$' \| \
13499          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13500 $as_echo X"$ac_file" |
13501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13502             s//\1/
13503             q
13504           }
13505           /^X\(\/\/\)[^/].*/{
13506             s//\1/
13507             q
13508           }
13509           /^X\(\/\/\)$/{
13510             s//\1/
13511             q
13512           }
13513           /^X\(\/\).*/{
13514             s//\1/
13515             q
13516           }
13517           s/.*/./; q'`
13518   as_dir="$ac_dir"; as_fn_mkdir_p
13519   ac_builddir=.
13520
13521 case "$ac_dir" in
13522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13523 *)
13524   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13525   # A ".." for each directory in $ac_dir_suffix.
13526   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13527   case $ac_top_builddir_sub in
13528   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13529   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13530   esac ;;
13531 esac
13532 ac_abs_top_builddir=$ac_pwd
13533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13534 # for backward compatibility:
13535 ac_top_builddir=$ac_top_build_prefix
13536
13537 case $srcdir in
13538   .)  # We are building in place.
13539     ac_srcdir=.
13540     ac_top_srcdir=$ac_top_builddir_sub
13541     ac_abs_top_srcdir=$ac_pwd ;;
13542   [\\/]* | ?:[\\/]* )  # Absolute name.
13543     ac_srcdir=$srcdir$ac_dir_suffix;
13544     ac_top_srcdir=$srcdir
13545     ac_abs_top_srcdir=$srcdir ;;
13546   *) # Relative name.
13547     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13548     ac_top_srcdir=$ac_top_build_prefix$srcdir
13549     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13550 esac
13551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13552
13553
13554   case $ac_mode in
13555   :F)
13556   #
13557   # CONFIG_FILE
13558   #
13559
13560   case $INSTALL in
13561   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13562   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13563   esac
13564   ac_MKDIR_P=$MKDIR_P
13565   case $MKDIR_P in
13566   [\\/$]* | ?:[\\/]* ) ;;
13567   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13568   esac
13569 _ACEOF
13570
13571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13572 # If the template does not know about datarootdir, expand it.
13573 # FIXME: This hack should be removed a few years after 2.60.
13574 ac_datarootdir_hack=; ac_datarootdir_seen=
13575 ac_sed_dataroot='
13576 /datarootdir/ {
13577   p
13578   q
13579 }
13580 /@datadir@/p
13581 /@docdir@/p
13582 /@infodir@/p
13583 /@localedir@/p
13584 /@mandir@/p'
13585 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13586 *datarootdir*) ac_datarootdir_seen=yes;;
13587 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13588   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13589 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13590 _ACEOF
13591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13592   ac_datarootdir_hack='
13593   s&@datadir@&$datadir&g
13594   s&@docdir@&$docdir&g
13595   s&@infodir@&$infodir&g
13596   s&@localedir@&$localedir&g
13597   s&@mandir@&$mandir&g
13598   s&\\\${datarootdir}&$datarootdir&g' ;;
13599 esac
13600 _ACEOF
13601
13602 # Neutralize VPATH when `$srcdir' = `.'.
13603 # Shell code in configure.ac might set extrasub.
13604 # FIXME: do we really want to maintain this feature?
13605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13606 ac_sed_extra="$ac_vpsub
13607 $extrasub
13608 _ACEOF
13609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13610 :t
13611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13612 s|@configure_input@|$ac_sed_conf_input|;t t
13613 s&@top_builddir@&$ac_top_builddir_sub&;t t
13614 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13615 s&@srcdir@&$ac_srcdir&;t t
13616 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13617 s&@top_srcdir@&$ac_top_srcdir&;t t
13618 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13619 s&@builddir@&$ac_builddir&;t t
13620 s&@abs_builddir@&$ac_abs_builddir&;t t
13621 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13622 s&@INSTALL@&$ac_INSTALL&;t t
13623 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13624 $ac_datarootdir_hack
13625 "
13626 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13627   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13628
13629 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13630   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13631   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13632       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13633   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13634 which seems to be undefined.  Please make sure it is defined" >&5
13635 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13636 which seems to be undefined.  Please make sure it is defined" >&2;}
13637
13638   rm -f "$ac_tmp/stdin"
13639   case $ac_file in
13640   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13641   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13642   esac \
13643   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13644  ;;
13645   :H)
13646   #
13647   # CONFIG_HEADER
13648   #
13649   if test x"$ac_file" != x-; then
13650     {
13651       $as_echo "/* $configure_input  */" \
13652       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13653     } >"$ac_tmp/config.h" \
13654       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13655     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13656       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13657 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13658     else
13659       rm -f "$ac_file"
13660       mv "$ac_tmp/config.h" "$ac_file" \
13661         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13662     fi
13663   else
13664     $as_echo "/* $configure_input  */" \
13665       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13666       || as_fn_error $? "could not create -" "$LINENO" 5
13667   fi
13668 # Compute "$ac_file"'s index in $config_headers.
13669 _am_arg="$ac_file"
13670 _am_stamp_count=1
13671 for _am_header in $config_headers :; do
13672   case $_am_header in
13673     $_am_arg | $_am_arg:* )
13674       break ;;
13675     * )
13676       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13677   esac
13678 done
13679 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13680 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13681          X"$_am_arg" : 'X\(//\)[^/]' \| \
13682          X"$_am_arg" : 'X\(//\)$' \| \
13683          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13684 $as_echo X"$_am_arg" |
13685     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13686             s//\1/
13687             q
13688           }
13689           /^X\(\/\/\)[^/].*/{
13690             s//\1/
13691             q
13692           }
13693           /^X\(\/\/\)$/{
13694             s//\1/
13695             q
13696           }
13697           /^X\(\/\).*/{
13698             s//\1/
13699             q
13700           }
13701           s/.*/./; q'`/stamp-h$_am_stamp_count
13702  ;;
13703
13704   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13705 $as_echo "$as_me: executing $ac_file commands" >&6;}
13706  ;;
13707   esac
13708
13709
13710   case $ac_file$ac_mode in
13711     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13712   # Autoconf 2.62 quotes --file arguments for eval, but not when files
13713   # are listed without --file.  Let's play safe and only enable the eval
13714   # if we detect the quoting.
13715   case $CONFIG_FILES in
13716   *\'*) eval set x "$CONFIG_FILES" ;;
13717   *)   set x $CONFIG_FILES ;;
13718   esac
13719   shift
13720   for mf
13721   do
13722     # Strip MF so we end up with the name of the file.
13723     mf=`echo "$mf" | sed -e 's/:.*$//'`
13724     # Check whether this is an Automake generated Makefile or not.
13725     # We used to match only the files named `Makefile.in', but
13726     # some people rename them; so instead we look at the file content.
13727     # Grep'ing the first line is not enough: some people post-process
13728     # each Makefile.in and add a new line on top of each file to say so.
13729     # Grep'ing the whole file is not good either: AIX grep has a line
13730     # limit of 2048, but all sed's we know have understand at least 4000.
13731     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13732       dirpart=`$as_dirname -- "$mf" ||
13733 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13734          X"$mf" : 'X\(//\)[^/]' \| \
13735          X"$mf" : 'X\(//\)$' \| \
13736          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13737 $as_echo X"$mf" |
13738     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13739             s//\1/
13740             q
13741           }
13742           /^X\(\/\/\)[^/].*/{
13743             s//\1/
13744             q
13745           }
13746           /^X\(\/\/\)$/{
13747             s//\1/
13748             q
13749           }
13750           /^X\(\/\).*/{
13751             s//\1/
13752             q
13753           }
13754           s/.*/./; q'`
13755     else
13756       continue
13757     fi
13758     # Extract the definition of DEPDIR, am__include, and am__quote
13759     # from the Makefile without running `make'.
13760     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13761     test -z "$DEPDIR" && continue
13762     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13763     test -z "am__include" && continue
13764     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13765     # When using ansi2knr, U may be empty or an underscore; expand it
13766     U=`sed -n 's/^U = //p' < "$mf"`
13767     # Find all dependency output files, they are included files with
13768     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13769     # simplest approach to changing $(DEPDIR) to its actual value in the
13770     # expansion.
13771     for file in `sed -n "
13772       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13773          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13774       # Make sure the directory exists.
13775       test -f "$dirpart/$file" && continue
13776       fdir=`$as_dirname -- "$file" ||
13777 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13778          X"$file" : 'X\(//\)[^/]' \| \
13779          X"$file" : 'X\(//\)$' \| \
13780          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13781 $as_echo X"$file" |
13782     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13783             s//\1/
13784             q
13785           }
13786           /^X\(\/\/\)[^/].*/{
13787             s//\1/
13788             q
13789           }
13790           /^X\(\/\/\)$/{
13791             s//\1/
13792             q
13793           }
13794           /^X\(\/\).*/{
13795             s//\1/
13796             q
13797           }
13798           s/.*/./; q'`
13799       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13800       # echo "creating $dirpart/$file"
13801       echo '# dummy' > "$dirpart/$file"
13802     done
13803   done
13804 }
13805  ;;
13806     "libtool":C)
13807
13808     # See if we are running on zsh, and set the options which allow our
13809     # commands through without removal of \ escapes.
13810     if test -n "${ZSH_VERSION+set}" ; then
13811       setopt NO_GLOB_SUBST
13812     fi
13813
13814     cfgfile="${ofile}T"
13815     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13816     $RM "$cfgfile"
13817
13818     cat <<_LT_EOF >> "$cfgfile"
13819 #! $SHELL
13820
13821 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13822 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13824 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13825 #
13826 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13827 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13828 #                 Foundation, Inc.
13829 #   Written by Gordon Matzigkeit, 1996
13830 #
13831 #   This file is part of GNU Libtool.
13832 #
13833 # GNU Libtool is free software; you can redistribute it and/or
13834 # modify it under the terms of the GNU General Public License as
13835 # published by the Free Software Foundation; either version 2 of
13836 # the License, or (at your option) any later version.
13837 #
13838 # As a special exception to the GNU General Public License,
13839 # if you distribute this file as part of a program or library that
13840 # is built using GNU Libtool, you may include this file under the
13841 # same distribution terms that you use for the rest of that program.
13842 #
13843 # GNU Libtool is distributed in the hope that it will be useful,
13844 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13845 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13846 # GNU General Public License for more details.
13847 #
13848 # You should have received a copy of the GNU General Public License
13849 # along with GNU Libtool; see the file COPYING.  If not, a copy
13850 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13851 # obtained by writing to the Free Software Foundation, Inc.,
13852 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13853
13854
13855 # The names of the tagged configurations supported by this script.
13856 available_tags=""
13857
13858 # ### BEGIN LIBTOOL CONFIG
13859
13860 # Which release of libtool.m4 was used?
13861 macro_version=$macro_version
13862 macro_revision=$macro_revision
13863
13864 # Whether or not to build static libraries.
13865 build_old_libs=$enable_static
13866
13867 # Whether or not to build shared libraries.
13868 build_libtool_libs=$enable_shared
13869
13870 # What type of objects to build.
13871 pic_mode=$pic_mode
13872
13873 # Whether or not to optimize for fast installation.
13874 fast_install=$enable_fast_install
13875
13876 # Shell to use when invoking shell scripts.
13877 SHELL=$lt_SHELL
13878
13879 # An echo program that protects backslashes.
13880 ECHO=$lt_ECHO
13881
13882 # The PATH separator for the build system.
13883 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13884
13885 # The host system.
13886 host_alias=$host_alias
13887 host=$host
13888 host_os=$host_os
13889
13890 # The build system.
13891 build_alias=$build_alias
13892 build=$build
13893 build_os=$build_os
13894
13895 # A sed program that does not truncate output.
13896 SED=$lt_SED
13897
13898 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13899 Xsed="\$SED -e 1s/^X//"
13900
13901 # A grep program that handles long lines.
13902 GREP=$lt_GREP
13903
13904 # An ERE matcher.
13905 EGREP=$lt_EGREP
13906
13907 # A literal string matcher.
13908 FGREP=$lt_FGREP
13909
13910 # A BSD- or MS-compatible name lister.
13911 NM=$lt_NM
13912
13913 # Whether we need soft or hard links.
13914 LN_S=$lt_LN_S
13915
13916 # What is the maximum length of a command?
13917 max_cmd_len=$max_cmd_len
13918
13919 # Object file suffix (normally "o").
13920 objext=$ac_objext
13921
13922 # Executable file suffix (normally "").
13923 exeext=$exeext
13924
13925 # whether the shell understands "unset".
13926 lt_unset=$lt_unset
13927
13928 # turn spaces into newlines.
13929 SP2NL=$lt_lt_SP2NL
13930
13931 # turn newlines into spaces.
13932 NL2SP=$lt_lt_NL2SP
13933
13934 # convert \$build file names to \$host format.
13935 to_host_file_cmd=$lt_cv_to_host_file_cmd
13936
13937 # convert \$build files to toolchain format.
13938 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13939
13940 # An object symbol dumper.
13941 OBJDUMP=$lt_OBJDUMP
13942
13943 # Method to check whether dependent libraries are shared objects.
13944 deplibs_check_method=$lt_deplibs_check_method
13945
13946 # Command to use when deplibs_check_method = "file_magic".
13947 file_magic_cmd=$lt_file_magic_cmd
13948
13949 # How to find potential files when deplibs_check_method = "file_magic".
13950 file_magic_glob=$lt_file_magic_glob
13951
13952 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13953 want_nocaseglob=$lt_want_nocaseglob
13954
13955 # DLL creation program.
13956 DLLTOOL=$lt_DLLTOOL
13957
13958 # Command to associate shared and link libraries.
13959 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13960
13961 # The archiver.
13962 AR=$lt_AR
13963
13964 # Flags to create an archive.
13965 AR_FLAGS=$lt_AR_FLAGS
13966
13967 # How to feed a file listing to the archiver.
13968 archiver_list_spec=$lt_archiver_list_spec
13969
13970 # A symbol stripping program.
13971 STRIP=$lt_STRIP
13972
13973 # Commands used to install an old-style archive.
13974 RANLIB=$lt_RANLIB
13975 old_postinstall_cmds=$lt_old_postinstall_cmds
13976 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13977
13978 # Whether to use a lock for old archive extraction.
13979 lock_old_archive_extraction=$lock_old_archive_extraction
13980
13981 # A C compiler.
13982 LTCC=$lt_CC
13983
13984 # LTCC compiler flags.
13985 LTCFLAGS=$lt_CFLAGS
13986
13987 # Take the output of nm and produce a listing of raw symbols and C names.
13988 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13989
13990 # Transform the output of nm in a proper C declaration.
13991 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13992
13993 # Transform the output of nm in a C name address pair.
13994 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13995
13996 # Transform the output of nm in a C name address pair when lib prefix is needed.
13997 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13998
13999 # Specify filename containing input files for \$NM.
14000 nm_file_list_spec=$lt_nm_file_list_spec
14001
14002 # The root where to search for dependent libraries,and in which our libraries should be installed.
14003 lt_sysroot=$lt_sysroot
14004
14005 # The name of the directory that contains temporary libtool files.
14006 objdir=$objdir
14007
14008 # Used to examine libraries when file_magic_cmd begins with "file".
14009 MAGIC_CMD=$MAGIC_CMD
14010
14011 # Must we lock files when doing compilation?
14012 need_locks=$lt_need_locks
14013
14014 # Manifest tool.
14015 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14016
14017 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14018 DSYMUTIL=$lt_DSYMUTIL
14019
14020 # Tool to change global to local symbols on Mac OS X.
14021 NMEDIT=$lt_NMEDIT
14022
14023 # Tool to manipulate fat objects and archives on Mac OS X.
14024 LIPO=$lt_LIPO
14025
14026 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14027 OTOOL=$lt_OTOOL
14028
14029 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14030 OTOOL64=$lt_OTOOL64
14031
14032 # Old archive suffix (normally "a").
14033 libext=$libext
14034
14035 # Shared library suffix (normally ".so").
14036 shrext_cmds=$lt_shrext_cmds
14037
14038 # The commands to extract the exported symbol list from a shared archive.
14039 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14040
14041 # Variables whose values should be saved in libtool wrapper scripts and
14042 # restored at link time.
14043 variables_saved_for_relink=$lt_variables_saved_for_relink
14044
14045 # Do we need the "lib" prefix for modules?
14046 need_lib_prefix=$need_lib_prefix
14047
14048 # Do we need a version for libraries?
14049 need_version=$need_version
14050
14051 # Library versioning type.
14052 version_type=$version_type
14053
14054 # Shared library runtime path variable.
14055 runpath_var=$runpath_var
14056
14057 # Shared library path variable.
14058 shlibpath_var=$shlibpath_var
14059
14060 # Is shlibpath searched before the hard-coded library search path?
14061 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14062
14063 # Format of library name prefix.
14064 libname_spec=$lt_libname_spec
14065
14066 # List of archive names.  First name is the real one, the rest are links.
14067 # The last name is the one that the linker finds with -lNAME
14068 library_names_spec=$lt_library_names_spec
14069
14070 # The coded name of the library, if different from the real name.
14071 soname_spec=$lt_soname_spec
14072
14073 # Permission mode override for installation of shared libraries.
14074 install_override_mode=$lt_install_override_mode
14075
14076 # Command to use after installation of a shared archive.
14077 postinstall_cmds=$lt_postinstall_cmds
14078
14079 # Command to use after uninstallation of a shared archive.
14080 postuninstall_cmds=$lt_postuninstall_cmds
14081
14082 # Commands used to finish a libtool library installation in a directory.
14083 finish_cmds=$lt_finish_cmds
14084
14085 # As "finish_cmds", except a single script fragment to be evaled but
14086 # not shown.
14087 finish_eval=$lt_finish_eval
14088
14089 # Whether we should hardcode library paths into libraries.
14090 hardcode_into_libs=$hardcode_into_libs
14091
14092 # Compile-time system search path for libraries.
14093 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14094
14095 # Run-time system search path for libraries.
14096 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14097
14098 # Whether dlopen is supported.
14099 dlopen_support=$enable_dlopen
14100
14101 # Whether dlopen of programs is supported.
14102 dlopen_self=$enable_dlopen_self
14103
14104 # Whether dlopen of statically linked programs is supported.
14105 dlopen_self_static=$enable_dlopen_self_static
14106
14107 # Commands to strip libraries.
14108 old_striplib=$lt_old_striplib
14109 striplib=$lt_striplib
14110
14111
14112 # The linker used to build libraries.
14113 LD=$lt_LD
14114
14115 # How to create reloadable object files.
14116 reload_flag=$lt_reload_flag
14117 reload_cmds=$lt_reload_cmds
14118
14119 # Commands used to build an old-style archive.
14120 old_archive_cmds=$lt_old_archive_cmds
14121
14122 # A language specific compiler.
14123 CC=$lt_compiler
14124
14125 # Is the compiler the GNU compiler?
14126 with_gcc=$GCC
14127
14128 # Compiler flag to turn off builtin functions.
14129 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14130
14131 # Additional compiler flags for building library objects.
14132 pic_flag=$lt_lt_prog_compiler_pic
14133
14134 # How to pass a linker flag through the compiler.
14135 wl=$lt_lt_prog_compiler_wl
14136
14137 # Compiler flag to prevent dynamic linking.
14138 link_static_flag=$lt_lt_prog_compiler_static
14139
14140 # Does compiler simultaneously support -c and -o options?
14141 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14142
14143 # Whether or not to add -lc for building shared libraries.
14144 build_libtool_need_lc=$archive_cmds_need_lc
14145
14146 # Whether or not to disallow shared libs when runtime libs are static.
14147 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14148
14149 # Compiler flag to allow reflexive dlopens.
14150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14151
14152 # Compiler flag to generate shared objects directly from archives.
14153 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14154
14155 # Whether the compiler copes with passing no objects directly.
14156 compiler_needs_object=$lt_compiler_needs_object
14157
14158 # Create an old-style archive from a shared archive.
14159 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14160
14161 # Create a temporary old-style archive to link instead of a shared archive.
14162 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14163
14164 # Commands used to build a shared archive.
14165 archive_cmds=$lt_archive_cmds
14166 archive_expsym_cmds=$lt_archive_expsym_cmds
14167
14168 # Commands used to build a loadable module if different from building
14169 # a shared archive.
14170 module_cmds=$lt_module_cmds
14171 module_expsym_cmds=$lt_module_expsym_cmds
14172
14173 # Whether we are building with GNU ld or not.
14174 with_gnu_ld=$lt_with_gnu_ld
14175
14176 # Flag that allows shared libraries with undefined symbols to be built.
14177 allow_undefined_flag=$lt_allow_undefined_flag
14178
14179 # Flag that enforces no undefined symbols.
14180 no_undefined_flag=$lt_no_undefined_flag
14181
14182 # Flag to hardcode \$libdir into a binary during linking.
14183 # This must work even if \$libdir does not exist
14184 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14185
14186 # Whether we need a single "-rpath" flag with a separated argument.
14187 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14188
14189 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14190 # DIR into the resulting binary.
14191 hardcode_direct=$hardcode_direct
14192
14193 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14194 # DIR into the resulting binary and the resulting library dependency is
14195 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14196 # library is relocated.
14197 hardcode_direct_absolute=$hardcode_direct_absolute
14198
14199 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14200 # into the resulting binary.
14201 hardcode_minus_L=$hardcode_minus_L
14202
14203 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14204 # into the resulting binary.
14205 hardcode_shlibpath_var=$hardcode_shlibpath_var
14206
14207 # Set to "yes" if building a shared library automatically hardcodes DIR
14208 # into the library and all subsequent libraries and executables linked
14209 # against it.
14210 hardcode_automatic=$hardcode_automatic
14211
14212 # Set to yes if linker adds runtime paths of dependent libraries
14213 # to runtime path list.
14214 inherit_rpath=$inherit_rpath
14215
14216 # Whether libtool must link a program against all its dependency libraries.
14217 link_all_deplibs=$link_all_deplibs
14218
14219 # Set to "yes" if exported symbols are required.
14220 always_export_symbols=$always_export_symbols
14221
14222 # The commands to list exported symbols.
14223 export_symbols_cmds=$lt_export_symbols_cmds
14224
14225 # Symbols that should not be listed in the preloaded symbols.
14226 exclude_expsyms=$lt_exclude_expsyms
14227
14228 # Symbols that must always be exported.
14229 include_expsyms=$lt_include_expsyms
14230
14231 # Commands necessary for linking programs (against libraries) with templates.
14232 prelink_cmds=$lt_prelink_cmds
14233
14234 # Commands necessary for finishing linking programs.
14235 postlink_cmds=$lt_postlink_cmds
14236
14237 # Specify filename containing input files.
14238 file_list_spec=$lt_file_list_spec
14239
14240 # How to hardcode a shared library path into an executable.
14241 hardcode_action=$hardcode_action
14242
14243 # ### END LIBTOOL CONFIG
14244
14245 _LT_EOF
14246
14247   case $host_os in
14248   aix3*)
14249     cat <<\_LT_EOF >> "$cfgfile"
14250 # AIX sometimes has problems with the GCC collect2 program.  For some
14251 # reason, if we set the COLLECT_NAMES environment variable, the problems
14252 # vanish in a puff of smoke.
14253 if test "X${COLLECT_NAMES+set}" != Xset; then
14254   COLLECT_NAMES=
14255   export COLLECT_NAMES
14256 fi
14257 _LT_EOF
14258     ;;
14259   esac
14260
14261
14262 ltmain="$ac_aux_dir/ltmain.sh"
14263
14264
14265   # We use sed instead of cat because bash on DJGPP gets confused if
14266   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14267   # text mode, it properly converts lines to CR/LF.  This bash problem
14268   # is reportedly fixed, but why not run on old versions too?
14269   sed '$q' "$ltmain" >> "$cfgfile" \
14270      || (rm -f "$cfgfile"; exit 1)
14271
14272   if test x"$xsi_shell" = xyes; then
14273   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14274 func_dirname ()\
14275 {\
14276 \    case ${1} in\
14277 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14278 \      *  ) func_dirname_result="${3}" ;;\
14279 \    esac\
14280 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14281   && mv -f "$cfgfile.tmp" "$cfgfile" \
14282     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14283 test 0 -eq $? || _lt_function_replace_fail=:
14284
14285
14286   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14287 func_basename ()\
14288 {\
14289 \    func_basename_result="${1##*/}"\
14290 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14291   && mv -f "$cfgfile.tmp" "$cfgfile" \
14292     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14293 test 0 -eq $? || _lt_function_replace_fail=:
14294
14295
14296   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14297 func_dirname_and_basename ()\
14298 {\
14299 \    case ${1} in\
14300 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14301 \      *  ) func_dirname_result="${3}" ;;\
14302 \    esac\
14303 \    func_basename_result="${1##*/}"\
14304 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14305   && mv -f "$cfgfile.tmp" "$cfgfile" \
14306     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14307 test 0 -eq $? || _lt_function_replace_fail=:
14308
14309
14310   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14311 func_stripname ()\
14312 {\
14313 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14314 \    # positional parameters, so assign one to ordinary parameter first.\
14315 \    func_stripname_result=${3}\
14316 \    func_stripname_result=${func_stripname_result#"${1}"}\
14317 \    func_stripname_result=${func_stripname_result%"${2}"}\
14318 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14319   && mv -f "$cfgfile.tmp" "$cfgfile" \
14320     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14321 test 0 -eq $? || _lt_function_replace_fail=:
14322
14323
14324   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14325 func_split_long_opt ()\
14326 {\
14327 \    func_split_long_opt_name=${1%%=*}\
14328 \    func_split_long_opt_arg=${1#*=}\
14329 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14330   && mv -f "$cfgfile.tmp" "$cfgfile" \
14331     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14332 test 0 -eq $? || _lt_function_replace_fail=:
14333
14334
14335   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14336 func_split_short_opt ()\
14337 {\
14338 \    func_split_short_opt_arg=${1#??}\
14339 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14340 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14341   && mv -f "$cfgfile.tmp" "$cfgfile" \
14342     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14343 test 0 -eq $? || _lt_function_replace_fail=:
14344
14345
14346   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14347 func_lo2o ()\
14348 {\
14349 \    case ${1} in\
14350 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14351 \      *)    func_lo2o_result=${1} ;;\
14352 \    esac\
14353 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14354   && mv -f "$cfgfile.tmp" "$cfgfile" \
14355     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14356 test 0 -eq $? || _lt_function_replace_fail=:
14357
14358
14359   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14360 func_xform ()\
14361 {\
14362     func_xform_result=${1%.*}.lo\
14363 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14364   && mv -f "$cfgfile.tmp" "$cfgfile" \
14365     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14366 test 0 -eq $? || _lt_function_replace_fail=:
14367
14368
14369   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14370 func_arith ()\
14371 {\
14372     func_arith_result=$(( $* ))\
14373 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14374   && mv -f "$cfgfile.tmp" "$cfgfile" \
14375     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14376 test 0 -eq $? || _lt_function_replace_fail=:
14377
14378
14379   sed -e '/^func_len ()$/,/^} # func_len /c\
14380 func_len ()\
14381 {\
14382     func_len_result=${#1}\
14383 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14384   && mv -f "$cfgfile.tmp" "$cfgfile" \
14385     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14386 test 0 -eq $? || _lt_function_replace_fail=:
14387
14388 fi
14389
14390 if test x"$lt_shell_append" = xyes; then
14391   sed -e '/^func_append ()$/,/^} # func_append /c\
14392 func_append ()\
14393 {\
14394     eval "${1}+=\\${2}"\
14395 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14396   && mv -f "$cfgfile.tmp" "$cfgfile" \
14397     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14398 test 0 -eq $? || _lt_function_replace_fail=:
14399
14400
14401   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14402 func_append_quoted ()\
14403 {\
14404 \    func_quote_for_eval "${2}"\
14405 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14406 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14407   && mv -f "$cfgfile.tmp" "$cfgfile" \
14408     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14409 test 0 -eq $? || _lt_function_replace_fail=:
14410
14411
14412   # Save a `func_append' function call where possible by direct use of '+='
14413   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14414     && mv -f "$cfgfile.tmp" "$cfgfile" \
14415       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14416   test 0 -eq $? || _lt_function_replace_fail=:
14417 else
14418   # Save a `func_append' function call even when '+=' is not available
14419   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14420     && mv -f "$cfgfile.tmp" "$cfgfile" \
14421       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14422   test 0 -eq $? || _lt_function_replace_fail=:
14423 fi
14424
14425 if test x"$_lt_function_replace_fail" = x":"; then
14426   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14427 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14428 fi
14429
14430
14431    mv -f "$cfgfile" "$ofile" ||
14432     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14433   chmod +x "$ofile"
14434
14435  ;;
14436     "pamgdb":F) chmod +x pamgdb ;;
14437
14438   esac
14439 done # for ac_tag
14440
14441
14442 as_fn_exit 0
14443 _ACEOF
14444 ac_clean_files=$ac_clean_files_save
14445
14446 test $ac_write_fail = 0 ||
14447   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14448
14449
14450 # configure is writing to config.log, and then calls config.status.
14451 # config.status does its own redirection, appending to config.log.
14452 # Unfortunately, on DOS this fails, as config.log is still kept open
14453 # by configure, so config.status won't be able to write to it; its
14454 # output is simply discarded.  So we exec the FD to /dev/null,
14455 # effectively closing config.log, so it can be properly (re)opened and
14456 # appended to by config.status.  When coming back to configure, we
14457 # need to make the FD available again.
14458 if test "$no_create" != yes; then
14459   ac_cs_success=:
14460   ac_config_status_args=
14461   test "$silent" = yes &&
14462     ac_config_status_args="$ac_config_status_args --quiet"
14463   exec 5>/dev/null
14464   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14465   exec 5>>config.log
14466   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14467   # would make configure fail if this is the last instruction.
14468   $ac_cs_success || as_fn_exit 1
14469 fi
14470 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14471   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14472 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14473 fi
14474