libphobos: Fix FAIL phobos.exp/core.time on CentOS 5.11, Linux 2.6.18
[platform/upstream/gcc.git] / libphobos / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libphobos'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="libdruntime/gcc/attribute.d"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 GDCFLAGSX
637 libtool_VERSION
638 SPEC_PHOBOS_DEPS
639 gdc_include_dir
640 libphobos_toolexeclibdir
641 libphobos_toolexecdir
642 gcc_version
643 LIBZ
644 BACKTRACE_SUPPORTS_THREADS
645 BACKTRACE_USES_MALLOC
646 BACKTRACE_SUPPORTED
647 LIBBACKTRACE
648 LIBATOMIC
649 DCFG_HAVE_LIBATOMIC
650 DCFG_HAVE_64BIT_ATOMICS
651 DCFG_HAVE_ATOMIC_BUILTINS
652 DCFG_HAVE_QSORT_R
653 OS_LINK_SPEC
654 DCFG_DLPI_TLS_MODID
655 DRUNTIME_OS_MINFO_BRACKETING_FALSE
656 DRUNTIME_OS_MINFO_BRACKETING_TRUE
657 DCFG_MINFO_BRACKETING
658 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
659 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
660 DCFG_ARM_EABI_UNWINDER
661 DCFG_THREAD_MODEL
662 DRUNTIME_OS_SOLARIS_FALSE
663 DRUNTIME_OS_SOLARIS_TRUE
664 DRUNTIME_OS_MINGW_FALSE
665 DRUNTIME_OS_MINGW_TRUE
666 DRUNTIME_OS_LINUX_FALSE
667 DRUNTIME_OS_LINUX_TRUE
668 DRUNTIME_OS_OPENBSD_FALSE
669 DRUNTIME_OS_OPENBSD_TRUE
670 DRUNTIME_OS_NETBSD_FALSE
671 DRUNTIME_OS_NETBSD_TRUE
672 DRUNTIME_OS_FREEBSD_FALSE
673 DRUNTIME_OS_FREEBSD_TRUE
674 DRUNTIME_OS_DRAGONFLYBSD_FALSE
675 DRUNTIME_OS_DRAGONFLYBSD_TRUE
676 DRUNTIME_OS_DARWIN_FALSE
677 DRUNTIME_OS_DARWIN_TRUE
678 DRUNTIME_OS_ANDROID_FALSE
679 DRUNTIME_OS_ANDROID_TRUE
680 DRUNTIME_OS_AIX_FALSE
681 DRUNTIME_OS_AIX_TRUE
682 DRUNTIME_OS_UNIX_FALSE
683 DRUNTIME_OS_UNIX_TRUE
684 DRUNTIME_GC_ENABLE_FALSE
685 DRUNTIME_GC_ENABLE_TRUE
686 libphobos_srcdir
687 libphobos_builddir
688 get_gcc_base_ver
689 ENABLE_LIBPHOBOS_FALSE
690 ENABLE_LIBPHOBOS_TRUE
691 phobos_compiler_shared_flag
692 phobos_compiler_pic_flag
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 OBJDUMP
699 LN_S
700 NM
701 ac_ct_DUMPBIN
702 DUMPBIN
703 LD
704 FGREP
705 SED
706 LIBTOOL
707 CFLAGS_FOR_BUILD
708 CC_FOR_BUILD
709 AR
710 RANLIB
711 MAINT
712 MAINTAINER_MODE_FALSE
713 MAINTAINER_MODE_TRUE
714 GDCFLAGS
715 GDC
716 CCASFLAGS
717 CCAS
718 AM_BACKSLASH
719 AM_DEFAULT_VERBOSITY
720 AM_DEFAULT_V
721 AM_V
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
727 AWK
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 EGREP
746 GREP
747 CPP
748 OBJEXT
749 EXEEXT
750 ac_ct_CC
751 CPPFLAGS
752 LDFLAGS
753 CFLAGS
754 CC
755 target_os
756 target_vendor
757 target_cpu
758 target
759 host_os
760 host_vendor
761 host_cpu
762 host
763 build_os
764 build_vendor
765 build_cpu
766 build
767 multi_basedir
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL'
806 ac_subst_files='DRTSTUFF_SPEC'
807 ac_user_opts='
808 enable_option_checking
809 enable_multilib
810 enable_silent_rules
811 enable_maintainer_mode
812 enable_shared
813 enable_static
814 with_pic
815 enable_fast_install
816 with_gnu_ld
817 enable_libtool_lock
818 enable_libphobos
819 with_gcc_major_version_only
820 enable_werror
821 enable_druntime_gc
822 enable_unix
823 enable_thread_lib
824 with_libatomic
825 with_libbacktrace
826 with_target_system_zlib
827 with_cross_host
828 enable_version_specific_runtime_libs
829 '
830       ac_precious_vars='build_alias
831 host_alias
832 target_alias
833 CC
834 CFLAGS
835 LDFLAGS
836 LIBS
837 CPPFLAGS
838 CPP'
839
840
841 # Initialize some variables set by options.
842 ac_init_help=
843 ac_init_version=false
844 ac_unrecognized_opts=
845 ac_unrecognized_sep=
846 # The variables have the same names as the options, with
847 # dashes changed to underlines.
848 cache_file=/dev/null
849 exec_prefix=NONE
850 no_create=
851 no_recursion=
852 prefix=NONE
853 program_prefix=NONE
854 program_suffix=NONE
855 program_transform_name=s,x,x,
856 silent=
857 site=
858 srcdir=
859 verbose=
860 x_includes=NONE
861 x_libraries=NONE
862
863 # Installation directory options.
864 # These are left unexpanded so users can "make install exec_prefix=/foo"
865 # and all the variables that are supposed to be based on exec_prefix
866 # by default will actually change.
867 # Use braces instead of parens because sh, perl, etc. also accept them.
868 # (The list follows the same order as the GNU Coding Standards.)
869 bindir='${exec_prefix}/bin'
870 sbindir='${exec_prefix}/sbin'
871 libexecdir='${exec_prefix}/libexec'
872 datarootdir='${prefix}/share'
873 datadir='${datarootdir}'
874 sysconfdir='${prefix}/etc'
875 sharedstatedir='${prefix}/com'
876 localstatedir='${prefix}/var'
877 includedir='${prefix}/include'
878 oldincludedir='/usr/include'
879 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
880 infodir='${datarootdir}/info'
881 htmldir='${docdir}'
882 dvidir='${docdir}'
883 pdfdir='${docdir}'
884 psdir='${docdir}'
885 libdir='${exec_prefix}/lib'
886 localedir='${datarootdir}/locale'
887 mandir='${datarootdir}/man'
888
889 ac_prev=
890 ac_dashdash=
891 for ac_option
892 do
893   # If the previous option needs an argument, assign it.
894   if test -n "$ac_prev"; then
895     eval $ac_prev=\$ac_option
896     ac_prev=
897     continue
898   fi
899
900   case $ac_option in
901   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902   *=)   ac_optarg= ;;
903   *)    ac_optarg=yes ;;
904   esac
905
906   # Accept the important Cygnus configure options, so we can diagnose typos.
907
908   case $ac_dashdash$ac_option in
909   --)
910     ac_dashdash=yes ;;
911
912   -bindir | --bindir | --bindi | --bind | --bin | --bi)
913     ac_prev=bindir ;;
914   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915     bindir=$ac_optarg ;;
916
917   -build | --build | --buil | --bui | --bu)
918     ac_prev=build_alias ;;
919   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920     build_alias=$ac_optarg ;;
921
922   -cache-file | --cache-file | --cache-fil | --cache-fi \
923   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924     ac_prev=cache_file ;;
925   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927     cache_file=$ac_optarg ;;
928
929   --config-cache | -C)
930     cache_file=config.cache ;;
931
932   -datadir | --datadir | --datadi | --datad)
933     ac_prev=datadir ;;
934   -datadir=* | --datadir=* | --datadi=* | --datad=*)
935     datadir=$ac_optarg ;;
936
937   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938   | --dataroo | --dataro | --datar)
939     ac_prev=datarootdir ;;
940   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942     datarootdir=$ac_optarg ;;
943
944   -disable-* | --disable-*)
945     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946     # Reject names that are not valid shell variable names.
947     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948       as_fn_error $? "invalid feature name: $ac_useropt"
949     ac_useropt_orig=$ac_useropt
950     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951     case $ac_user_opts in
952       *"
953 "enable_$ac_useropt"
954 "*) ;;
955       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956          ac_unrecognized_sep=', ';;
957     esac
958     eval enable_$ac_useropt=no ;;
959
960   -docdir | --docdir | --docdi | --doc | --do)
961     ac_prev=docdir ;;
962   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963     docdir=$ac_optarg ;;
964
965   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966     ac_prev=dvidir ;;
967   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968     dvidir=$ac_optarg ;;
969
970   -enable-* | --enable-*)
971     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972     # Reject names that are not valid shell variable names.
973     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974       as_fn_error $? "invalid feature name: $ac_useropt"
975     ac_useropt_orig=$ac_useropt
976     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977     case $ac_user_opts in
978       *"
979 "enable_$ac_useropt"
980 "*) ;;
981       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982          ac_unrecognized_sep=', ';;
983     esac
984     eval enable_$ac_useropt=\$ac_optarg ;;
985
986   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988   | --exec | --exe | --ex)
989     ac_prev=exec_prefix ;;
990   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992   | --exec=* | --exe=* | --ex=*)
993     exec_prefix=$ac_optarg ;;
994
995   -gas | --gas | --ga | --g)
996     # Obsolete; use --with-gas.
997     with_gas=yes ;;
998
999   -help | --help | --hel | --he | -h)
1000     ac_init_help=long ;;
1001   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002     ac_init_help=recursive ;;
1003   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004     ac_init_help=short ;;
1005
1006   -host | --host | --hos | --ho)
1007     ac_prev=host_alias ;;
1008   -host=* | --host=* | --hos=* | --ho=*)
1009     host_alias=$ac_optarg ;;
1010
1011   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1012     ac_prev=htmldir ;;
1013   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1014   | --ht=*)
1015     htmldir=$ac_optarg ;;
1016
1017   -includedir | --includedir | --includedi | --included | --include \
1018   | --includ | --inclu | --incl | --inc)
1019     ac_prev=includedir ;;
1020   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021   | --includ=* | --inclu=* | --incl=* | --inc=*)
1022     includedir=$ac_optarg ;;
1023
1024   -infodir | --infodir | --infodi | --infod | --info | --inf)
1025     ac_prev=infodir ;;
1026   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027     infodir=$ac_optarg ;;
1028
1029   -libdir | --libdir | --libdi | --libd)
1030     ac_prev=libdir ;;
1031   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032     libdir=$ac_optarg ;;
1033
1034   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035   | --libexe | --libex | --libe)
1036     ac_prev=libexecdir ;;
1037   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038   | --libexe=* | --libex=* | --libe=*)
1039     libexecdir=$ac_optarg ;;
1040
1041   -localedir | --localedir | --localedi | --localed | --locale)
1042     ac_prev=localedir ;;
1043   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044     localedir=$ac_optarg ;;
1045
1046   -localstatedir | --localstatedir | --localstatedi | --localstated \
1047   | --localstate | --localstat | --localsta | --localst | --locals)
1048     ac_prev=localstatedir ;;
1049   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051     localstatedir=$ac_optarg ;;
1052
1053   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1054     ac_prev=mandir ;;
1055   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056     mandir=$ac_optarg ;;
1057
1058   -nfp | --nfp | --nf)
1059     # Obsolete; use --without-fp.
1060     with_fp=no ;;
1061
1062   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063   | --no-cr | --no-c | -n)
1064     no_create=yes ;;
1065
1066   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068     no_recursion=yes ;;
1069
1070   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072   | --oldin | --oldi | --old | --ol | --o)
1073     ac_prev=oldincludedir ;;
1074   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077     oldincludedir=$ac_optarg ;;
1078
1079   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1080     ac_prev=prefix ;;
1081   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082     prefix=$ac_optarg ;;
1083
1084   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085   | --program-pre | --program-pr | --program-p)
1086     ac_prev=program_prefix ;;
1087   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089     program_prefix=$ac_optarg ;;
1090
1091   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092   | --program-suf | --program-su | --program-s)
1093     ac_prev=program_suffix ;;
1094   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096     program_suffix=$ac_optarg ;;
1097
1098   -program-transform-name | --program-transform-name \
1099   | --program-transform-nam | --program-transform-na \
1100   | --program-transform-n | --program-transform- \
1101   | --program-transform | --program-transfor \
1102   | --program-transfo | --program-transf \
1103   | --program-trans | --program-tran \
1104   | --progr-tra | --program-tr | --program-t)
1105     ac_prev=program_transform_name ;;
1106   -program-transform-name=* | --program-transform-name=* \
1107   | --program-transform-nam=* | --program-transform-na=* \
1108   | --program-transform-n=* | --program-transform-=* \
1109   | --program-transform=* | --program-transfor=* \
1110   | --program-transfo=* | --program-transf=* \
1111   | --program-trans=* | --program-tran=* \
1112   | --progr-tra=* | --program-tr=* | --program-t=*)
1113     program_transform_name=$ac_optarg ;;
1114
1115   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1116     ac_prev=pdfdir ;;
1117   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118     pdfdir=$ac_optarg ;;
1119
1120   -psdir | --psdir | --psdi | --psd | --ps)
1121     ac_prev=psdir ;;
1122   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123     psdir=$ac_optarg ;;
1124
1125   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126   | -silent | --silent | --silen | --sile | --sil)
1127     silent=yes ;;
1128
1129   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1130     ac_prev=sbindir ;;
1131   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1132   | --sbi=* | --sb=*)
1133     sbindir=$ac_optarg ;;
1134
1135   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137   | --sharedst | --shareds | --shared | --share | --shar \
1138   | --sha | --sh)
1139     ac_prev=sharedstatedir ;;
1140   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1143   | --sha=* | --sh=*)
1144     sharedstatedir=$ac_optarg ;;
1145
1146   -site | --site | --sit)
1147     ac_prev=site ;;
1148   -site=* | --site=* | --sit=*)
1149     site=$ac_optarg ;;
1150
1151   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1152     ac_prev=srcdir ;;
1153   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154     srcdir=$ac_optarg ;;
1155
1156   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157   | --syscon | --sysco | --sysc | --sys | --sy)
1158     ac_prev=sysconfdir ;;
1159   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161     sysconfdir=$ac_optarg ;;
1162
1163   -target | --target | --targe | --targ | --tar | --ta | --t)
1164     ac_prev=target_alias ;;
1165   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166     target_alias=$ac_optarg ;;
1167
1168   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169     verbose=yes ;;
1170
1171   -version | --version | --versio | --versi | --vers | -V)
1172     ac_init_version=: ;;
1173
1174   -with-* | --with-*)
1175     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176     # Reject names that are not valid shell variable names.
1177     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178       as_fn_error $? "invalid package name: $ac_useropt"
1179     ac_useropt_orig=$ac_useropt
1180     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181     case $ac_user_opts in
1182       *"
1183 "with_$ac_useropt"
1184 "*) ;;
1185       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186          ac_unrecognized_sep=', ';;
1187     esac
1188     eval with_$ac_useropt=\$ac_optarg ;;
1189
1190   -without-* | --without-*)
1191     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192     # Reject names that are not valid shell variable names.
1193     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194       as_fn_error $? "invalid package name: $ac_useropt"
1195     ac_useropt_orig=$ac_useropt
1196     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197     case $ac_user_opts in
1198       *"
1199 "with_$ac_useropt"
1200 "*) ;;
1201       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202          ac_unrecognized_sep=', ';;
1203     esac
1204     eval with_$ac_useropt=no ;;
1205
1206   --x)
1207     # Obsolete; use --with-x.
1208     with_x=yes ;;
1209
1210   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211   | --x-incl | --x-inc | --x-in | --x-i)
1212     ac_prev=x_includes ;;
1213   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215     x_includes=$ac_optarg ;;
1216
1217   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219     ac_prev=x_libraries ;;
1220   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222     x_libraries=$ac_optarg ;;
1223
1224   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information"
1226     ;;
1227
1228   *=*)
1229     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230     # Reject names that are not valid shell variable names.
1231     case $ac_envvar in #(
1232       '' | [0-9]* | *[!_$as_cr_alnum]* )
1233       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1234     esac
1235     eval $ac_envvar=\$ac_optarg
1236     export $ac_envvar ;;
1237
1238   *)
1239     # FIXME: should be removed in autoconf 3.0.
1240     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244     ;;
1245
1246   esac
1247 done
1248
1249 if test -n "$ac_prev"; then
1250   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251   as_fn_error $? "missing argument to $ac_option"
1252 fi
1253
1254 if test -n "$ac_unrecognized_opts"; then
1255   case $enable_option_checking in
1256     no) ;;
1257     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1258     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1259   esac
1260 fi
1261
1262 # Check all directory arguments for consistency.
1263 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264                 datadir sysconfdir sharedstatedir localstatedir includedir \
1265                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266                 libdir localedir mandir
1267 do
1268   eval ac_val=\$$ac_var
1269   # Remove trailing slashes.
1270   case $ac_val in
1271     */ )
1272       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273       eval $ac_var=\$ac_val;;
1274   esac
1275   # Be sure to have absolute directory names.
1276   case $ac_val in
1277     [\\/$]* | ?:[\\/]* )  continue;;
1278     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1279   esac
1280   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 done
1282
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1286 build=$build_alias
1287 host=$host_alias
1288 target=$target_alias
1289
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292   if test "x$build_alias" = x; then
1293     cross_compiling=maybe
1294   elif test "x$build_alias" != "x$host_alias"; then
1295     cross_compiling=yes
1296   fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308   as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310   as_fn_error $? "pwd does not report name of working directory"
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315   ac_srcdir_defaulted=yes
1316   # Try the directory containing this script, then the parent directory.
1317   ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319          X"$as_myself" : 'X\(//\)[^/]' \| \
1320          X"$as_myself" : 'X\(//\)$' \| \
1321          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)[^/].*/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\/\)$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\).*/{
1336             s//\1/
1337             q
1338           }
1339           s/.*/./; q'`
1340   srcdir=$ac_confdir
1341   if test ! -r "$srcdir/$ac_unique_file"; then
1342     srcdir=..
1343   fi
1344 else
1345   ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 fi
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1354         pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357   srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_env_${ac_var}_value=\$${ac_var}
1368   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376   # Omit some internal or obsolete options to make the list less imposing.
1377   # This message is too long to be a string in the A/UX 3.1 sh.
1378   cat <<_ACEOF
1379 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE.  See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389   -h, --help              display this help and exit
1390       --help=short        display options specific to this package
1391       --help=recursive    display the short help of all the included packages
1392   -V, --version           display version information and exit
1393   -q, --quiet, --silent   do not print \`checking ...' messages
1394       --cache-file=FILE   cache test results in FILE [disabled]
1395   -C, --config-cache      alias for \`--cache-file=config.cache'
1396   -n, --no-create         do not create output files
1397       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1398
1399 Installation directories:
1400   --prefix=PREFIX         install architecture-independent files in PREFIX
1401                           [$ac_default_prefix]
1402   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1403                           [PREFIX]
1404
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413   --bindir=DIR            user executables [EPREFIX/bin]
1414   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1415   --libexecdir=DIR        program executables [EPREFIX/libexec]
1416   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1417   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1418   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1419   --libdir=DIR            object code libraries [EPREFIX/lib]
1420   --includedir=DIR        C header files [PREFIX/include]
1421   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1422   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1423   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1424   --infodir=DIR           info documentation [DATAROOTDIR/info]
1425   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1426   --mandir=DIR            man documentation [DATAROOTDIR/man]
1427   --docdir=DIR            documentation root [DATAROOTDIR/doc/libphobos]
1428   --htmldir=DIR           html documentation [DOCDIR]
1429   --dvidir=DIR            dvi documentation [DOCDIR]
1430   --pdfdir=DIR            pdf documentation [DOCDIR]
1431   --psdir=DIR             ps documentation [DOCDIR]
1432 _ACEOF
1433
1434   cat <<\_ACEOF
1435
1436 Program names:
1437   --program-prefix=PREFIX            prepend PREFIX to installed program names
1438   --program-suffix=SUFFIX            append SUFFIX to installed program names
1439   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1440
1441 System types:
1442   --build=BUILD     configure for building on BUILD [guessed]
1443   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1444   --target=TARGET   configure for building compilers for TARGET [HOST]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449   case $ac_init_help in
1450      short | recursive ) echo "Configuration of package-unused version-unused:";;
1451    esac
1452   cat <<\_ACEOF
1453
1454 Optional Features:
1455   --disable-option-checking  ignore unrecognized --enable/--with options
1456   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1457   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1458   --enable-multilib       build many library versions (default)
1459   --enable-silent-rules   less verbose build output (undo: "make V=1")
1460   --disable-silent-rules  verbose build output (undo: "make V=0")
1461   --enable-maintainer-mode
1462                           enable make rules and dependencies not useful (and
1463                           sometimes confusing) to the casual installer
1464   --enable-shared[=PKGS]  build shared libraries [default=yes]
1465   --enable-static[=PKGS]  build static libraries [default=yes]
1466   --enable-fast-install[=PKGS]
1467                           optimize for fast installation [default=yes]
1468   --disable-libtool-lock  avoid locking (might break parallel builds)
1469   --enable-libphobos      Enable libphobos
1470   --enable-werror         turns on -Werror [default=no]
1471   --enable-druntime-gc    enable D runtime garbage collector (default: yes)
1472   --enable-unix           enables Unix runtime (default: yes, for Unix
1473                           targets)
1474   --enable-thread-lib=<arg>
1475                           specify linker option for the system thread library
1476                           (default: autodetect)
1477   --enable-version-specific-runtime-libs
1478                           Specify that runtime libraries should be installed
1479                           in a compiler-specific directory
1480
1481 Optional Packages:
1482   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1483   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1484   --with-pic              try to use only PIC/non-PIC objects [default=use
1485                           both]
1486   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1487   --with-gcc-major-version-only
1488                           use only GCC major number in filesystem paths
1489   --without-libatomic     Do not use libatomic in core.atomic (default: auto)
1490   --without-libbacktrace  Do not use libbacktrace in core.runtime (default:
1491                           auto)
1492   --with-target-system-zlib={yes,no,auto}
1493                           use installed libz (default: no)
1494   --with-cross-host=HOST  configuring with a cross compiler
1495
1496 Some influential environment variables:
1497   CC          C compiler command
1498   CFLAGS      C compiler flags
1499   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1500               nonstandard directory <lib dir>
1501   LIBS        libraries to pass to the linker, e.g. -l<library>
1502   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503               you have headers in a nonstandard directory <include dir>
1504   CPP         C preprocessor
1505   CCAS        assembler compiler command (defaults to CC)
1506   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1507   GDC         D compiler command
1508   GDCFLAGS    D compiler flags
1509
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1512
1513 Report bugs to the package provider.
1514 _ACEOF
1515 ac_status=$?
1516 fi
1517
1518 if test "$ac_init_help" = "recursive"; then
1519   # If there are subdirs, report their specific --help.
1520   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521     test -d "$ac_dir" ||
1522       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523       continue
1524     ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530   # A ".." for each directory in $ac_dir_suffix.
1531   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532   case $ac_top_builddir_sub in
1533   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535   esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543   .)  # We are building in place.
1544     ac_srcdir=.
1545     ac_top_srcdir=$ac_top_builddir_sub
1546     ac_abs_top_srcdir=$ac_pwd ;;
1547   [\\/]* | ?:[\\/]* )  # Absolute name.
1548     ac_srcdir=$srcdir$ac_dir_suffix;
1549     ac_top_srcdir=$srcdir
1550     ac_abs_top_srcdir=$srcdir ;;
1551   *) # Relative name.
1552     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553     ac_top_srcdir=$ac_top_build_prefix$srcdir
1554     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558     cd "$ac_dir" || { ac_status=$?; continue; }
1559     # Check for guested configure.
1560     if test -f "$ac_srcdir/configure.gnu"; then
1561       echo &&
1562       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563     elif test -f "$ac_srcdir/configure"; then
1564       echo &&
1565       $SHELL "$ac_srcdir/configure" --help=recursive
1566     else
1567       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568     fi || ac_status=$?
1569     cd "$ac_pwd" || { ac_status=$?; break; }
1570   done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575   cat <<\_ACEOF
1576 package-unused configure version-unused
1577 generated by GNU Autoconf 2.69
1578
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583   exit
1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596   rm -f conftest.$ac_objext
1597   if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600   *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604   (eval "$ac_compile") 2>conftest.err
1605   ac_status=$?
1606   if test -s conftest.err; then
1607     grep -v '^ *+' conftest.err >conftest.er1
1608     cat conftest.er1 >&5
1609     mv -f conftest.er1 conftest.err
1610   fi
1611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612   test $ac_status = 0; } && {
1613          test -z "$ac_c_werror_flag" ||
1614          test ! -s conftest.err
1615        } && test -s conftest.$ac_objext; then :
1616   ac_retval=0
1617 else
1618   $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621         ac_retval=1
1622 fi
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624   as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_compile
1627
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_cpp ()
1632 {
1633   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634   if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 case "(($ac_try" in
1636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637   *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642   ac_status=$?
1643   if test -s conftest.err; then
1644     grep -v '^ *+' conftest.err >conftest.er1
1645     cat conftest.er1 >&5
1646     mv -f conftest.er1 conftest.err
1647   fi
1648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649   test $ac_status = 0; } > conftest.i && {
1650          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651          test ! -s conftest.err
1652        }; then :
1653   ac_retval=0
1654 else
1655   $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658     ac_retval=1
1659 fi
1660   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661   as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_cpp
1664
1665 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668 # the include files in INCLUDES and setting the cache variable VAR
1669 # accordingly.
1670 ac_fn_c_check_header_mongrel ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   if eval \${$3+:} false; then :
1674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677   $as_echo_n "(cached) " >&6
1678 fi
1679 eval ac_res=\$$3
1680                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 else
1683   # Is the header compilable?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685 $as_echo_n "checking $2 usability... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h.  */
1688 $4
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692   ac_header_compiler=yes
1693 else
1694   ac_header_compiler=no
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698 $as_echo "$ac_header_compiler" >&6; }
1699
1700 # Is the header present?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702 $as_echo_n "checking $2 presence... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h.  */
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_cpp "$LINENO"; then :
1708   ac_header_preproc=yes
1709 else
1710   ac_header_preproc=no
1711 fi
1712 rm -f conftest.err conftest.i conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714 $as_echo "$ac_header_preproc" >&6; }
1715
1716 # So?  What about this header?
1717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718   yes:no: )
1719     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723     ;;
1724   no:yes:* )
1725     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1728 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1732 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1733     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735     ;;
1736 esac
1737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740   $as_echo_n "(cached) " >&6
1741 else
1742   eval "$3=\$ac_header_compiler"
1743 fi
1744 eval ac_res=\$$3
1745                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 fi
1748   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749
1750 } # ac_fn_c_check_header_mongrel
1751
1752 # ac_fn_c_try_run LINENO
1753 # ----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755 # that executables *can* be run.
1756 ac_fn_c_try_run ()
1757 {
1758   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759   if { { ac_try="$ac_link"
1760 case "(($ac_try" in
1761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762   *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766   (eval "$ac_link") 2>&5
1767   ac_status=$?
1768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770   { { case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_try") 2>&5
1777   ac_status=$?
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; }; }; then :
1780   ac_retval=0
1781 else
1782   $as_echo "$as_me: program exited with status $ac_status" >&5
1783        $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1785
1786        ac_retval=$ac_status
1787 fi
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_run
1793
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1799 {
1800   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804   $as_echo_n "(cached) " >&6
1805 else
1806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h.  */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812   eval "$3=yes"
1813 else
1814   eval "$3=no"
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 fi
1818 eval ac_res=\$$3
1819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822
1823 } # ac_fn_c_check_header_compile
1824
1825 # ac_fn_d_try_compile LINENO
1826 # --------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_d_try_compile ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   rm -f conftest.$ac_objext
1832   if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835   *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839   (eval "$ac_compile") 2>conftest.err
1840   ac_status=$?
1841   if test -s conftest.err; then
1842     grep -v '^ *+' conftest.err >conftest.er1
1843     cat conftest.er1 >&5
1844     mv -f conftest.er1 conftest.err
1845   fi
1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847   test $ac_status = 0; } && {
1848          test -z "$ac_d_werror_flag" ||
1849          test ! -s conftest.err
1850        } && test -s conftest.$ac_objext; then :
1851   ac_retval=0
1852 else
1853   $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856         ac_retval=1
1857 fi
1858   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859   as_fn_set_status $ac_retval
1860
1861 } # ac_fn_d_try_compile
1862
1863 # ac_fn_c_try_link LINENO
1864 # -----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_link ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   rm -f conftest.$ac_objext conftest$ac_exeext
1870   if { { ac_try="$ac_link"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_link") 2>conftest.err
1878   ac_status=$?
1879   if test -s conftest.err; then
1880     grep -v '^ *+' conftest.err >conftest.er1
1881     cat conftest.er1 >&5
1882     mv -f conftest.er1 conftest.err
1883   fi
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && {
1886          test -z "$ac_c_werror_flag" ||
1887          test ! -s conftest.err
1888        } && test -s conftest$ac_exeext && {
1889          test "$cross_compiling" = yes ||
1890          test -x conftest$ac_exeext
1891        }; then :
1892   ac_retval=0
1893 else
1894   $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1896
1897         ac_retval=1
1898 fi
1899   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901   # interfere with the next link command; also delete a directory that is
1902   # left behind by Apple's compiler.  We do this before executing the actions.
1903   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905   as_fn_set_status $ac_retval
1906
1907 } # ac_fn_c_try_link
1908
1909 # ac_fn_c_check_func LINENO FUNC VAR
1910 # ----------------------------------
1911 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1912 ac_fn_c_check_func ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918   $as_echo_n "(cached) " >&6
1919 else
1920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h.  */
1922 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1924 #define $2 innocuous_$2
1925
1926 /* System header to define __stub macros and hopefully few prototypes,
1927     which can conflict with char $2 (); below.
1928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1929     <limits.h> exists even on freestanding compilers.  */
1930
1931 #ifdef __STDC__
1932 # include <limits.h>
1933 #else
1934 # include <assert.h>
1935 #endif
1936
1937 #undef $2
1938
1939 /* Override any GCC internal prototype to avoid an error.
1940    Use char because int might match the return type of a GCC
1941    builtin and then its argument prototype would still apply.  */
1942 #ifdef __cplusplus
1943 extern "C"
1944 #endif
1945 char $2 ();
1946 /* The GNU C library defines this for functions which it implements
1947     to always fail with ENOSYS.  Some functions are actually named
1948     something starting with __ and the normal name is an alias.  */
1949 #if defined __stub_$2 || defined __stub___$2
1950 choke me
1951 #endif
1952
1953 int
1954 main ()
1955 {
1956 return $2 ();
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_link "$LINENO"; then :
1962   eval "$3=yes"
1963 else
1964   eval "$3=no"
1965 fi
1966 rm -f core conftest.err conftest.$ac_objext \
1967     conftest$ac_exeext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974 } # ac_fn_c_check_func
1975
1976 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1977 # ----------------------------------------------------
1978 # Tries to find if the field MEMBER exists in type AGGR, after including
1979 # INCLUDES, setting cache variable VAR accordingly.
1980 ac_fn_c_check_member ()
1981 {
1982   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1984 $as_echo_n "checking for $2.$3... " >&6; }
1985 if eval \${$4+:} false; then :
1986   $as_echo_n "(cached) " >&6
1987 else
1988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h.  */
1990 $5
1991 int
1992 main ()
1993 {
1994 static $2 ac_aggr;
1995 if (ac_aggr.$3)
1996 return 0;
1997   ;
1998   return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002   eval "$4=yes"
2003 else
2004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h.  */
2006 $5
2007 int
2008 main ()
2009 {
2010 static $2 ac_aggr;
2011 if (sizeof ac_aggr.$3)
2012 return 0;
2013   ;
2014   return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018   eval "$4=yes"
2019 else
2020   eval "$4=no"
2021 fi
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 fi
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 fi
2026 eval ac_res=\$$4
2027                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030
2031 } # ac_fn_c_check_member
2032
2033 # ac_fn_d_try_link LINENO
2034 # -----------------------
2035 # Try to link conftest.$ac_ext, and return whether this succeeded.
2036 ac_fn_d_try_link ()
2037 {
2038   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039   rm -f conftest.$ac_objext conftest$ac_exeext
2040   if { { ac_try="$ac_link"
2041 case "(($ac_try" in
2042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043   *) ac_try_echo=$ac_try;;
2044 esac
2045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2046 $as_echo "$ac_try_echo"; } >&5
2047   (eval "$ac_link") 2>conftest.err
2048   ac_status=$?
2049   if test -s conftest.err; then
2050     grep -v '^ *+' conftest.err >conftest.er1
2051     cat conftest.er1 >&5
2052     mv -f conftest.er1 conftest.err
2053   fi
2054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055   test $ac_status = 0; } && {
2056          test -z "$ac_d_werror_flag" ||
2057          test ! -s conftest.err
2058        } && test -s conftest$ac_exeext && {
2059          test "$cross_compiling" = yes ||
2060          test -x conftest$ac_exeext
2061        }; then :
2062   ac_retval=0
2063 else
2064   $as_echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2066
2067         ac_retval=1
2068 fi
2069   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2070   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2071   # interfere with the next link command; also delete a directory that is
2072   # left behind by Apple's compiler.  We do this before executing the actions.
2073   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075   as_fn_set_status $ac_retval
2076
2077 } # ac_fn_d_try_link
2078 cat >config.log <<_ACEOF
2079 This file contains any messages produced by compilers while
2080 running configure, to aid debugging if configure makes a mistake.
2081
2082 It was created by package-unused $as_me version-unused, which was
2083 generated by GNU Autoconf 2.69.  Invocation command line was
2084
2085   $ $0 $@
2086
2087 _ACEOF
2088 exec 5>>config.log
2089 {
2090 cat <<_ASUNAME
2091 ## --------- ##
2092 ## Platform. ##
2093 ## --------- ##
2094
2095 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2096 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2097 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2098 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2099 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2100
2101 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2102 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2103
2104 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2105 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2106 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2107 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2108 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2109 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2110 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2111
2112 _ASUNAME
2113
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2116 do
2117   IFS=$as_save_IFS
2118   test -z "$as_dir" && as_dir=.
2119     $as_echo "PATH: $as_dir"
2120   done
2121 IFS=$as_save_IFS
2122
2123 } >&5
2124
2125 cat >&5 <<_ACEOF
2126
2127
2128 ## ----------- ##
2129 ## Core tests. ##
2130 ## ----------- ##
2131
2132 _ACEOF
2133
2134
2135 # Keep a trace of the command line.
2136 # Strip out --no-create and --no-recursion so they do not pile up.
2137 # Strip out --silent because we don't want to record it for future runs.
2138 # Also quote any args containing shell meta-characters.
2139 # Make two passes to allow for proper duplicate-argument suppression.
2140 ac_configure_args=
2141 ac_configure_args0=
2142 ac_configure_args1=
2143 ac_must_keep_next=false
2144 for ac_pass in 1 2
2145 do
2146   for ac_arg
2147   do
2148     case $ac_arg in
2149     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2150     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2151     | -silent | --silent | --silen | --sile | --sil)
2152       continue ;;
2153     *\'*)
2154       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2155     esac
2156     case $ac_pass in
2157     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2158     2)
2159       as_fn_append ac_configure_args1 " '$ac_arg'"
2160       if test $ac_must_keep_next = true; then
2161         ac_must_keep_next=false # Got value, back to normal.
2162       else
2163         case $ac_arg in
2164           *=* | --config-cache | -C | -disable-* | --disable-* \
2165           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2166           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2167           | -with-* | --with-* | -without-* | --without-* | --x)
2168             case "$ac_configure_args0 " in
2169               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2170             esac
2171             ;;
2172           -* ) ac_must_keep_next=true ;;
2173         esac
2174       fi
2175       as_fn_append ac_configure_args " '$ac_arg'"
2176       ;;
2177     esac
2178   done
2179 done
2180 { ac_configure_args0=; unset ac_configure_args0;}
2181 { ac_configure_args1=; unset ac_configure_args1;}
2182
2183 # When interrupted or exit'd, cleanup temporary files, and complete
2184 # config.log.  We remove comments because anyway the quotes in there
2185 # would cause problems or look ugly.
2186 # WARNING: Use '\'' to represent an apostrophe within the trap.
2187 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2188 trap 'exit_status=$?
2189   # Save into config.log some information that might help in debugging.
2190   {
2191     echo
2192
2193     $as_echo "## ---------------- ##
2194 ## Cache variables. ##
2195 ## ---------------- ##"
2196     echo
2197     # The following way of writing the cache mishandles newlines in values,
2198 (
2199   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2200     eval ac_val=\$$ac_var
2201     case $ac_val in #(
2202     *${as_nl}*)
2203       case $ac_var in #(
2204       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2205 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2206       esac
2207       case $ac_var in #(
2208       _ | IFS | as_nl) ;; #(
2209       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2210       *) { eval $ac_var=; unset $ac_var;} ;;
2211       esac ;;
2212     esac
2213   done
2214   (set) 2>&1 |
2215     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2216     *${as_nl}ac_space=\ *)
2217       sed -n \
2218         "s/'\''/'\''\\\\'\'''\''/g;
2219           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2220       ;; #(
2221     *)
2222       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2223       ;;
2224     esac |
2225     sort
2226 )
2227     echo
2228
2229     $as_echo "## ----------------- ##
2230 ## Output variables. ##
2231 ## ----------------- ##"
2232     echo
2233     for ac_var in $ac_subst_vars
2234     do
2235       eval ac_val=\$$ac_var
2236       case $ac_val in
2237       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238       esac
2239       $as_echo "$ac_var='\''$ac_val'\''"
2240     done | sort
2241     echo
2242
2243     if test -n "$ac_subst_files"; then
2244       $as_echo "## ------------------- ##
2245 ## File substitutions. ##
2246 ## ------------------- ##"
2247       echo
2248       for ac_var in $ac_subst_files
2249       do
2250         eval ac_val=\$$ac_var
2251         case $ac_val in
2252         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253         esac
2254         $as_echo "$ac_var='\''$ac_val'\''"
2255       done | sort
2256       echo
2257     fi
2258
2259     if test -s confdefs.h; then
2260       $as_echo "## ----------- ##
2261 ## confdefs.h. ##
2262 ## ----------- ##"
2263       echo
2264       cat confdefs.h
2265       echo
2266     fi
2267     test "$ac_signal" != 0 &&
2268       $as_echo "$as_me: caught signal $ac_signal"
2269     $as_echo "$as_me: exit $exit_status"
2270   } >&5
2271   rm -f core *.core core.conftest.* &&
2272     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2273     exit $exit_status
2274 ' 0
2275 for ac_signal in 1 2 13 15; do
2276   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2277 done
2278 ac_signal=0
2279
2280 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2281 rm -f -r conftest* confdefs.h
2282
2283 $as_echo "/* confdefs.h */" > confdefs.h
2284
2285 # Predefined preprocessor variables.
2286
2287 cat >>confdefs.h <<_ACEOF
2288 #define PACKAGE_NAME "$PACKAGE_NAME"
2289 _ACEOF
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2293 _ACEOF
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_STRING "$PACKAGE_STRING"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_URL "$PACKAGE_URL"
2309 _ACEOF
2310
2311
2312 # Let the site file select an alternate cache file if it wants to.
2313 # Prefer an explicitly selected file to automatically selected ones.
2314 ac_site_file1=NONE
2315 ac_site_file2=NONE
2316 if test -n "$CONFIG_SITE"; then
2317   # We do not want a PATH search for config.site.
2318   case $CONFIG_SITE in #((
2319     -*)  ac_site_file1=./$CONFIG_SITE;;
2320     */*) ac_site_file1=$CONFIG_SITE;;
2321     *)   ac_site_file1=./$CONFIG_SITE;;
2322   esac
2323 elif test "x$prefix" != xNONE; then
2324   ac_site_file1=$prefix/share/config.site
2325   ac_site_file2=$prefix/etc/config.site
2326 else
2327   ac_site_file1=$ac_default_prefix/share/config.site
2328   ac_site_file2=$ac_default_prefix/etc/config.site
2329 fi
2330 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331 do
2332   test "x$ac_site_file" = xNONE && continue
2333   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2334     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2335 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336     sed 's/^/| /' "$ac_site_file" >&5
2337     . "$ac_site_file" \
2338       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2340 as_fn_error $? "failed to load site script $ac_site_file
2341 See \`config.log' for more details" "$LINENO" 5; }
2342   fi
2343 done
2344
2345 if test -r "$cache_file"; then
2346   # Some versions of bash will fail to source /dev/null (special files
2347   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2348   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2349     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2350 $as_echo "$as_me: loading cache $cache_file" >&6;}
2351     case $cache_file in
2352       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2353       *)                      . "./$cache_file";;
2354     esac
2355   fi
2356 else
2357   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2358 $as_echo "$as_me: creating cache $cache_file" >&6;}
2359   >$cache_file
2360 fi
2361
2362 # Check that the precious variables saved in the cache have kept the same
2363 # value.
2364 ac_cache_corrupted=false
2365 for ac_var in $ac_precious_vars; do
2366   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2367   eval ac_new_set=\$ac_env_${ac_var}_set
2368   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2369   eval ac_new_val=\$ac_env_${ac_var}_value
2370   case $ac_old_set,$ac_new_set in
2371     set,)
2372       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2373 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2374       ac_cache_corrupted=: ;;
2375     ,set)
2376       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2377 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2378       ac_cache_corrupted=: ;;
2379     ,);;
2380     *)
2381       if test "x$ac_old_val" != "x$ac_new_val"; then
2382         # differences in whitespace do not lead to failure.
2383         ac_old_val_w=`echo x $ac_old_val`
2384         ac_new_val_w=`echo x $ac_new_val`
2385         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2386           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2387 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2388           ac_cache_corrupted=:
2389         else
2390           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2391 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2392           eval $ac_var=\$ac_old_val
2393         fi
2394         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2395 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2396         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2397 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2398       fi;;
2399   esac
2400   # Pass precious variables to config.status.
2401   if test "$ac_new_set" = set; then
2402     case $ac_new_val in
2403     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2404     *) ac_arg=$ac_var=$ac_new_val ;;
2405     esac
2406     case " $ac_configure_args " in
2407       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2408       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2409     esac
2410   fi
2411 done
2412 if $ac_cache_corrupted; then
2413   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2416 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2417   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2418 fi
2419 ## -------------------- ##
2420 ## Main body of script. ##
2421 ## -------------------- ##
2422
2423 ac_ext=c
2424 ac_cpp='$CPP $CPPFLAGS'
2425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428
2429
2430
2431
2432
2433
2434 ac_config_headers="$ac_config_headers config.h"
2435
2436
2437 # Default to --enable-multilib
2438 # Check whether --enable-multilib was given.
2439 if test "${enable_multilib+set}" = set; then :
2440   enableval=$enable_multilib; case "$enableval" in
2441   yes) multilib=yes ;;
2442   no)  multilib=no ;;
2443   *)   as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2444  esac
2445 else
2446   multilib=yes
2447 fi
2448
2449
2450 # We may get other options which we leave undocumented:
2451 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2452 # See config-ml.in if you want the gory details.
2453
2454 if test "$srcdir" = "."; then
2455   if test "$with_target_subdir" != "."; then
2456     multi_basedir="$srcdir/$with_multisrctop../.."
2457   else
2458     multi_basedir="$srcdir/$with_multisrctop.."
2459   fi
2460 else
2461   multi_basedir="$srcdir/.."
2462 fi
2463
2464
2465 # Even if the default multilib is not a cross compilation,
2466 # it may be that some of the other multilibs are.
2467 if test $cross_compiling = no && test $multilib = yes \
2468    && test "x${with_multisubdir}" != x ; then
2469    cross_compiling=maybe
2470 fi
2471
2472 ac_config_commands="$ac_config_commands default-1"
2473
2474 ac_aux_dir=
2475 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2476   if test -f "$ac_dir/install-sh"; then
2477     ac_aux_dir=$ac_dir
2478     ac_install_sh="$ac_aux_dir/install-sh -c"
2479     break
2480   elif test -f "$ac_dir/install.sh"; then
2481     ac_aux_dir=$ac_dir
2482     ac_install_sh="$ac_aux_dir/install.sh -c"
2483     break
2484   elif test -f "$ac_dir/shtool"; then
2485     ac_aux_dir=$ac_dir
2486     ac_install_sh="$ac_aux_dir/shtool install -c"
2487     break
2488   fi
2489 done
2490 if test -z "$ac_aux_dir"; then
2491   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2492 fi
2493
2494 # These three variables are undocumented and unsupported,
2495 # and are intended to be withdrawn in a future Autoconf release.
2496 # They can cause serious problems if a builder's source tree is in a directory
2497 # whose full name contains unusual characters.
2498 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2499 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2500 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2501
2502
2503 # Make sure we can run config.sub.
2504 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2505   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2506
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2508 $as_echo_n "checking build system type... " >&6; }
2509 if ${ac_cv_build+:} false; then :
2510   $as_echo_n "(cached) " >&6
2511 else
2512   ac_build_alias=$build_alias
2513 test "x$ac_build_alias" = x &&
2514   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2515 test "x$ac_build_alias" = x &&
2516   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2517 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2518   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2519
2520 fi
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2522 $as_echo "$ac_cv_build" >&6; }
2523 case $ac_cv_build in
2524 *-*-*) ;;
2525 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2526 esac
2527 build=$ac_cv_build
2528 ac_save_IFS=$IFS; IFS='-'
2529 set x $ac_cv_build
2530 shift
2531 build_cpu=$1
2532 build_vendor=$2
2533 shift; shift
2534 # Remember, the first character of IFS is used to create $*,
2535 # except with old shells:
2536 build_os=$*
2537 IFS=$ac_save_IFS
2538 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2539
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2542 $as_echo_n "checking host system type... " >&6; }
2543 if ${ac_cv_host+:} false; then :
2544   $as_echo_n "(cached) " >&6
2545 else
2546   if test "x$host_alias" = x; then
2547   ac_cv_host=$ac_cv_build
2548 else
2549   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2550     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2551 fi
2552
2553 fi
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2555 $as_echo "$ac_cv_host" >&6; }
2556 case $ac_cv_host in
2557 *-*-*) ;;
2558 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2559 esac
2560 host=$ac_cv_host
2561 ac_save_IFS=$IFS; IFS='-'
2562 set x $ac_cv_host
2563 shift
2564 host_cpu=$1
2565 host_vendor=$2
2566 shift; shift
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2569 host_os=$*
2570 IFS=$ac_save_IFS
2571 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2572
2573
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2575 $as_echo_n "checking target system type... " >&6; }
2576 if ${ac_cv_target+:} false; then :
2577   $as_echo_n "(cached) " >&6
2578 else
2579   if test "x$target_alias" = x; then
2580   ac_cv_target=$ac_cv_host
2581 else
2582   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2583     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2584 fi
2585
2586 fi
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2588 $as_echo "$ac_cv_target" >&6; }
2589 case $ac_cv_target in
2590 *-*-*) ;;
2591 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2592 esac
2593 target=$ac_cv_target
2594 ac_save_IFS=$IFS; IFS='-'
2595 set x $ac_cv_target
2596 shift
2597 target_cpu=$1
2598 target_vendor=$2
2599 shift; shift
2600 # Remember, the first character of IFS is used to create $*,
2601 # except with old shells:
2602 target_os=$*
2603 IFS=$ac_save_IFS
2604 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2605
2606
2607 # The aliases save the names the user supplied, while $host etc.
2608 # will get canonicalized.
2609 test -n "$target_alias" &&
2610   test "$program_prefix$program_suffix$program_transform_name" = \
2611     NONENONEs,x,x, &&
2612   program_prefix=${target_alias}-
2613
2614 # Expand $ac_aux_dir to an absolute path.
2615 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2616
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622 if test -n "$ac_tool_prefix"; then
2623   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2624 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if ${ac_cv_prog_CC+:} false; then :
2628   $as_echo_n "(cached) " >&6
2629 else
2630   if test -n "$CC"; then
2631   ac_cv_prog_CC="$CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638     for ac_exec_ext in '' $ac_executable_extensions; do
2639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645   done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 CC=$ac_cv_prog_CC
2651 if test -n "$CC"; then
2652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653 $as_echo "$CC" >&6; }
2654 else
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 fi
2658
2659
2660 fi
2661 if test -z "$ac_cv_prog_CC"; then
2662   ac_ct_CC=$CC
2663   # Extract the first word of "gcc", so it can be a program name with args.
2664 set dummy gcc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2668   $as_echo_n "(cached) " >&6
2669 else
2670   if test -n "$ac_ct_CC"; then
2671   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676   IFS=$as_save_IFS
2677   test -z "$as_dir" && as_dir=.
2678     for ac_exec_ext in '' $ac_executable_extensions; do
2679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680     ac_cv_prog_ac_ct_CC="gcc"
2681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682     break 2
2683   fi
2684 done
2685   done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2693 $as_echo "$ac_ct_CC" >&6; }
2694 else
2695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2697 fi
2698
2699   if test "x$ac_ct_CC" = x; then
2700     CC=""
2701   else
2702     case $cross_compiling:$ac_tool_warned in
2703 yes:)
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2706 ac_tool_warned=yes ;;
2707 esac
2708     CC=$ac_ct_CC
2709   fi
2710 else
2711   CC="$ac_cv_prog_CC"
2712 fi
2713
2714 if test -z "$CC"; then
2715           if test -n "$ac_tool_prefix"; then
2716     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}cc; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_CC+:} false; then :
2721   $as_echo_n "(cached) " >&6
2722 else
2723   if test -n "$CC"; then
2724   ac_cv_prog_CC="$CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731     for ac_exec_ext in '' $ac_executable_extensions; do
2732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733     ac_cv_prog_CC="${ac_tool_prefix}cc"
2734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735     break 2
2736   fi
2737 done
2738   done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2746 $as_echo "$CC" >&6; }
2747 else
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752
2753   fi
2754 fi
2755 if test -z "$CC"; then
2756   # Extract the first word of "cc", so it can be a program name with args.
2757 set dummy cc; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_CC+:} false; then :
2761   $as_echo_n "(cached) " >&6
2762 else
2763   if test -n "$CC"; then
2764   ac_cv_prog_CC="$CC" # Let the user override the test.
2765 else
2766   ac_prog_rejected=no
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770   IFS=$as_save_IFS
2771   test -z "$as_dir" && as_dir=.
2772     for ac_exec_ext in '' $ac_executable_extensions; do
2773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2775        ac_prog_rejected=yes
2776        continue
2777      fi
2778     ac_cv_prog_CC="cc"
2779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783   done
2784 IFS=$as_save_IFS
2785
2786 if test $ac_prog_rejected = yes; then
2787   # We found a bogon in the path, so make sure we never use it.
2788   set dummy $ac_cv_prog_CC
2789   shift
2790   if test $# != 0; then
2791     # We chose a different compiler from the bogus one.
2792     # However, it has the same basename, so the bogon will be chosen
2793     # first if we set CC to just the basename; use the full file name.
2794     shift
2795     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2796   fi
2797 fi
2798 fi
2799 fi
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2804 else
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810 fi
2811 if test -z "$CC"; then
2812   if test -n "$ac_tool_prefix"; then
2813   for ac_prog in cl.exe
2814   do
2815     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 $as_echo_n "checking for $ac_word... " >&6; }
2819 if ${ac_cv_prog_CC+:} false; then :
2820   $as_echo_n "(cached) " >&6
2821 else
2822   if test -n "$CC"; then
2823   ac_cv_prog_CC="$CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828   IFS=$as_save_IFS
2829   test -z "$as_dir" && as_dir=.
2830     for ac_exec_ext in '' $ac_executable_extensions; do
2831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834     break 2
2835   fi
2836 done
2837   done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 CC=$ac_cv_prog_CC
2843 if test -n "$CC"; then
2844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2845 $as_echo "$CC" >&6; }
2846 else
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848 $as_echo "no" >&6; }
2849 fi
2850
2851
2852     test -n "$CC" && break
2853   done
2854 fi
2855 if test -z "$CC"; then
2856   ac_ct_CC=$CC
2857   for ac_prog in cl.exe
2858 do
2859   # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   if test -n "$ac_ct_CC"; then
2867   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872   IFS=$as_save_IFS
2873   test -z "$as_dir" && as_dir=.
2874     for ac_exec_ext in '' $ac_executable_extensions; do
2875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876     ac_cv_prog_ac_ct_CC="$ac_prog"
2877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878     break 2
2879   fi
2880 done
2881   done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2887 if test -n "$ac_ct_CC"; then
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2889 $as_echo "$ac_ct_CC" >&6; }
2890 else
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896   test -n "$ac_ct_CC" && break
2897 done
2898
2899   if test "x$ac_ct_CC" = x; then
2900     CC=""
2901   else
2902     case $cross_compiling:$ac_tool_warned in
2903 yes:)
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2906 ac_tool_warned=yes ;;
2907 esac
2908     CC=$ac_ct_CC
2909   fi
2910 fi
2911
2912 fi
2913
2914
2915 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2917 as_fn_error $? "no acceptable C compiler found in \$PATH
2918 See \`config.log' for more details" "$LINENO" 5; }
2919
2920 # Provide some information about the compiler.
2921 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2922 set X $ac_compile
2923 ac_compiler=$2
2924 for ac_option in --version -v -V -qversion; do
2925   { { ac_try="$ac_compiler $ac_option >&5"
2926 case "(($ac_try" in
2927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928   *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2933   ac_status=$?
2934   if test -s conftest.err; then
2935     sed '10a\
2936 ... rest of stderr output deleted ...
2937          10q' conftest.err >conftest.er1
2938     cat conftest.er1 >&5
2939   fi
2940   rm -f conftest.er1 conftest.err
2941   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2942   test $ac_status = 0; }
2943 done
2944
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946 /* end confdefs.h.  */
2947
2948 int
2949 main ()
2950 {
2951
2952   ;
2953   return 0;
2954 }
2955 _ACEOF
2956 ac_clean_files_save=$ac_clean_files
2957 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2958 # Try to create an executable without -o first, disregard a.out.
2959 # It will help us diagnose broken compilers, and finding out an intuition
2960 # of exeext.
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2962 $as_echo_n "checking whether the C compiler works... " >&6; }
2963 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2964
2965 # The possible output files:
2966 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2967
2968 ac_rmfiles=
2969 for ac_file in $ac_files
2970 do
2971   case $ac_file in
2972     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2973     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2974   esac
2975 done
2976 rm -f $ac_rmfiles
2977
2978 if { { ac_try="$ac_link_default"
2979 case "(($ac_try" in
2980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981   *) ac_try_echo=$ac_try;;
2982 esac
2983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2984 $as_echo "$ac_try_echo"; } >&5
2985   (eval "$ac_link_default") 2>&5
2986   ac_status=$?
2987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988   test $ac_status = 0; }; then :
2989   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2990 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2991 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2992 # so that the user can short-circuit this test for compilers unknown to
2993 # Autoconf.
2994 for ac_file in $ac_files ''
2995 do
2996   test -f "$ac_file" || continue
2997   case $ac_file in
2998     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2999         ;;
3000     [ab].out )
3001         # We found the default executable, but exeext='' is most
3002         # certainly right.
3003         break;;
3004     *.* )
3005         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3006         then :; else
3007            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3008         fi
3009         # We set ac_cv_exeext here because the later test for it is not
3010         # safe: cross compilers may not add the suffix if given an `-o'
3011         # argument, so we may need to know it at that point already.
3012         # Even if this section looks crufty: it has the advantage of
3013         # actually working.
3014         break;;
3015     * )
3016         break;;
3017   esac
3018 done
3019 test "$ac_cv_exeext" = no && ac_cv_exeext=
3020
3021 else
3022   ac_file=''
3023 fi
3024 if test -z "$ac_file"; then :
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 $as_echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 as_fn_error 77 "C compiler cannot create executables
3033 See \`config.log' for more details" "$LINENO" 5; }
3034 else
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3036 $as_echo "yes" >&6; }
3037 fi
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3039 $as_echo_n "checking for C compiler default output file name... " >&6; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3041 $as_echo "$ac_file" >&6; }
3042 ac_exeext=$ac_cv_exeext
3043
3044 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3045 ac_clean_files=$ac_clean_files_save
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3047 $as_echo_n "checking for suffix of executables... " >&6; }
3048 if { { ac_try="$ac_link"
3049 case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055   (eval "$ac_link") 2>&5
3056   ac_status=$?
3057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058   test $ac_status = 0; }; then :
3059   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3060 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3061 # work properly (i.e., refer to `conftest.exe'), while it won't with
3062 # `rm'.
3063 for ac_file in conftest.exe conftest conftest.*; do
3064   test -f "$ac_file" || continue
3065   case $ac_file in
3066     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3067     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068           break;;
3069     * ) break;;
3070   esac
3071 done
3072 else
3073   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3076 See \`config.log' for more details" "$LINENO" 5; }
3077 fi
3078 rm -f conftest conftest$ac_cv_exeext
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3080 $as_echo "$ac_cv_exeext" >&6; }
3081
3082 rm -f conftest.$ac_ext
3083 EXEEXT=$ac_cv_exeext
3084 ac_exeext=$EXEEXT
3085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3086 /* end confdefs.h.  */
3087 #include <stdio.h>
3088 int
3089 main ()
3090 {
3091 FILE *f = fopen ("conftest.out", "w");
3092  return ferror (f) || fclose (f) != 0;
3093
3094   ;
3095   return 0;
3096 }
3097 _ACEOF
3098 ac_clean_files="$ac_clean_files conftest.out"
3099 # Check that the compiler produces executables we can run.  If not, either
3100 # the compiler is broken, or we cross compile.
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3102 $as_echo_n "checking whether we are cross compiling... " >&6; }
3103 if test "$cross_compiling" != yes; then
3104   { { ac_try="$ac_link"
3105 case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111   (eval "$ac_link") 2>&5
3112   ac_status=$?
3113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114   test $ac_status = 0; }
3115   if { ac_try='./conftest$ac_cv_exeext'
3116   { { case "(($ac_try" in
3117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118   *) ac_try_echo=$ac_try;;
3119 esac
3120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3121 $as_echo "$ac_try_echo"; } >&5
3122   (eval "$ac_try") 2>&5
3123   ac_status=$?
3124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125   test $ac_status = 0; }; }; then
3126     cross_compiling=no
3127   else
3128     if test "$cross_compiling" = maybe; then
3129         cross_compiling=yes
3130     else
3131         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error $? "cannot run C compiled programs.
3134 If you meant to cross compile, use \`--host'.
3135 See \`config.log' for more details" "$LINENO" 5; }
3136     fi
3137   fi
3138 fi
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3140 $as_echo "$cross_compiling" >&6; }
3141
3142 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3143 ac_clean_files=$ac_clean_files_save
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3145 $as_echo_n "checking for suffix of object files... " >&6; }
3146 if ${ac_cv_objext+:} false; then :
3147   $as_echo_n "(cached) " >&6
3148 else
3149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h.  */
3151
3152 int
3153 main ()
3154 {
3155
3156   ;
3157   return 0;
3158 }
3159 _ACEOF
3160 rm -f conftest.o conftest.obj
3161 if { { ac_try="$ac_compile"
3162 case "(($ac_try" in
3163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164   *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168   (eval "$ac_compile") 2>&5
3169   ac_status=$?
3170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171   test $ac_status = 0; }; then :
3172   for ac_file in conftest.o conftest.obj conftest.*; do
3173   test -f "$ac_file" || continue;
3174   case $ac_file in
3175     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3176     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3177        break;;
3178   esac
3179 done
3180 else
3181   $as_echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error $? "cannot compute suffix of object files: cannot compile
3187 See \`config.log' for more details" "$LINENO" 5; }
3188 fi
3189 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3190 fi
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3192 $as_echo "$ac_cv_objext" >&6; }
3193 OBJEXT=$ac_cv_objext
3194 ac_objext=$OBJEXT
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3196 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3197 if ${ac_cv_c_compiler_gnu+:} false; then :
3198   $as_echo_n "(cached) " >&6
3199 else
3200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h.  */
3202
3203 int
3204 main ()
3205 {
3206 #ifndef __GNUC__
3207        choke me
3208 #endif
3209
3210   ;
3211   return 0;
3212 }
3213 _ACEOF
3214 if ac_fn_c_try_compile "$LINENO"; then :
3215   ac_compiler_gnu=yes
3216 else
3217   ac_compiler_gnu=no
3218 fi
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3221
3222 fi
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3224 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3225 if test $ac_compiler_gnu = yes; then
3226   GCC=yes
3227 else
3228   GCC=
3229 fi
3230 ac_test_CFLAGS=${CFLAGS+set}
3231 ac_save_CFLAGS=$CFLAGS
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3233 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3234 if ${ac_cv_prog_cc_g+:} false; then :
3235   $as_echo_n "(cached) " >&6
3236 else
3237   ac_save_c_werror_flag=$ac_c_werror_flag
3238    ac_c_werror_flag=yes
3239    ac_cv_prog_cc_g=no
3240    CFLAGS="-g"
3241    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h.  */
3243
3244 int
3245 main ()
3246 {
3247
3248   ;
3249   return 0;
3250 }
3251 _ACEOF
3252 if ac_fn_c_try_compile "$LINENO"; then :
3253   ac_cv_prog_cc_g=yes
3254 else
3255   CFLAGS=""
3256       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h.  */
3258
3259 int
3260 main ()
3261 {
3262
3263   ;
3264   return 0;
3265 }
3266 _ACEOF
3267 if ac_fn_c_try_compile "$LINENO"; then :
3268
3269 else
3270   ac_c_werror_flag=$ac_save_c_werror_flag
3271          CFLAGS="-g"
3272          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h.  */
3274
3275 int
3276 main ()
3277 {
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 if ac_fn_c_try_compile "$LINENO"; then :
3284   ac_cv_prog_cc_g=yes
3285 fi
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 fi
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 fi
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291    ac_c_werror_flag=$ac_save_c_werror_flag
3292 fi
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3294 $as_echo "$ac_cv_prog_cc_g" >&6; }
3295 if test "$ac_test_CFLAGS" = set; then
3296   CFLAGS=$ac_save_CFLAGS
3297 elif test $ac_cv_prog_cc_g = yes; then
3298   if test "$GCC" = yes; then
3299     CFLAGS="-g -O2"
3300   else
3301     CFLAGS="-g"
3302   fi
3303 else
3304   if test "$GCC" = yes; then
3305     CFLAGS="-O2"
3306   else
3307     CFLAGS=
3308   fi
3309 fi
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3311 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3312 if ${ac_cv_prog_cc_c89+:} false; then :
3313   $as_echo_n "(cached) " >&6
3314 else
3315   ac_cv_prog_cc_c89=no
3316 ac_save_CC=$CC
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h.  */
3319 #include <stdarg.h>
3320 #include <stdio.h>
3321 struct stat;
3322 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3323 struct buf { int x; };
3324 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3325 static char *e (p, i)
3326      char **p;
3327      int i;
3328 {
3329   return p[i];
3330 }
3331 static char *f (char * (*g) (char **, int), char **p, ...)
3332 {
3333   char *s;
3334   va_list v;
3335   va_start (v,p);
3336   s = g (p, va_arg (v,int));
3337   va_end (v);
3338   return s;
3339 }
3340
3341 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3342    function prototypes and stuff, but not '\xHH' hex character constants.
3343    These don't provoke an error unfortunately, instead are silently treated
3344    as 'x'.  The following induces an error, until -std is added to get
3345    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3346    array size at least.  It's necessary to write '\x00'==0 to get something
3347    that's true only with -std.  */
3348 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3349
3350 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3351    inside strings and character constants.  */
3352 #define FOO(x) 'x'
3353 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3354
3355 int test (int i, double x);
3356 struct s1 {int (*f) (int a);};
3357 struct s2 {int (*f) (double a);};
3358 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3359 int argc;
3360 char **argv;
3361 int
3362 main ()
3363 {
3364 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3365   ;
3366   return 0;
3367 }
3368 _ACEOF
3369 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3370         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3371 do
3372   CC="$ac_save_CC $ac_arg"
3373   if ac_fn_c_try_compile "$LINENO"; then :
3374   ac_cv_prog_cc_c89=$ac_arg
3375 fi
3376 rm -f core conftest.err conftest.$ac_objext
3377   test "x$ac_cv_prog_cc_c89" != "xno" && break
3378 done
3379 rm -f conftest.$ac_ext
3380 CC=$ac_save_CC
3381
3382 fi
3383 # AC_CACHE_VAL
3384 case "x$ac_cv_prog_cc_c89" in
3385   x)
3386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3387 $as_echo "none needed" >&6; } ;;
3388   xno)
3389     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3390 $as_echo "unsupported" >&6; } ;;
3391   *)
3392     CC="$CC $ac_cv_prog_cc_c89"
3393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3394 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3395 esac
3396 if test "x$ac_cv_prog_cc_c89" != xno; then :
3397
3398 fi
3399
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
3406 ac_ext=c
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3412 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3413 if ${am_cv_prog_cc_c_o+:} false; then :
3414   $as_echo_n "(cached) " >&6
3415 else
3416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h.  */
3418
3419 int
3420 main ()
3421 {
3422
3423   ;
3424   return 0;
3425 }
3426 _ACEOF
3427   # Make sure it works both with $CC and with simple cc.
3428   # Following AC_PROG_CC_C_O, we do the test twice because some
3429   # compilers refuse to overwrite an existing .o file with -o,
3430   # though they will create one.
3431   am_cv_prog_cc_c_o=yes
3432   for am_i in 1 2; do
3433     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3434    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3435    ac_status=$?
3436    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437    (exit $ac_status); } \
3438          && test -f conftest2.$ac_objext; then
3439       : OK
3440     else
3441       am_cv_prog_cc_c_o=no
3442       break
3443     fi
3444   done
3445   rm -f core conftest*
3446   unset am_i
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3449 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3450 if test "$am_cv_prog_cc_c_o" != yes; then
3451    # Losing compiler, so override with the script.
3452    # FIXME: It is wrong to rewrite CC.
3453    # But if we don't then we get into trouble of one sort or another.
3454    # A longer-term fix would be to have automake use am__CC in this case,
3455    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3456    CC="$am_aux_dir/compile $CC"
3457 fi
3458 ac_ext=c
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463
3464
3465
3466 ac_ext=c
3467 ac_cpp='$CPP $CPPFLAGS'
3468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3472 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3473 # On Suns, sometimes $CPP names a directory.
3474 if test -n "$CPP" && test -d "$CPP"; then
3475   CPP=
3476 fi
3477 if test -z "$CPP"; then
3478   if ${ac_cv_prog_CPP+:} false; then :
3479   $as_echo_n "(cached) " >&6
3480 else
3481       # Double quotes because CPP needs to be expanded
3482     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3483     do
3484       ac_preproc_ok=false
3485 for ac_c_preproc_warn_flag in '' yes
3486 do
3487   # Use a header file that comes with gcc, so configuring glibc
3488   # with a fresh cross-compiler works.
3489   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3490   # <limits.h> exists even on freestanding compilers.
3491   # On the NeXT, cc -E runs the code through the compiler's parser,
3492   # not just through cpp. "Syntax error" is here to catch this case.
3493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h.  */
3495 #ifdef __STDC__
3496 # include <limits.h>
3497 #else
3498 # include <assert.h>
3499 #endif
3500                      Syntax error
3501 _ACEOF
3502 if ac_fn_c_try_cpp "$LINENO"; then :
3503
3504 else
3505   # Broken: fails on valid input.
3506 continue
3507 fi
3508 rm -f conftest.err conftest.i conftest.$ac_ext
3509
3510   # OK, works on sane cases.  Now check whether nonexistent headers
3511   # can be detected and how.
3512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h.  */
3514 #include <ac_nonexistent.h>
3515 _ACEOF
3516 if ac_fn_c_try_cpp "$LINENO"; then :
3517   # Broken: success on invalid input.
3518 continue
3519 else
3520   # Passes both tests.
3521 ac_preproc_ok=:
3522 break
3523 fi
3524 rm -f conftest.err conftest.i conftest.$ac_ext
3525
3526 done
3527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3528 rm -f conftest.i conftest.err conftest.$ac_ext
3529 if $ac_preproc_ok; then :
3530   break
3531 fi
3532
3533     done
3534     ac_cv_prog_CPP=$CPP
3535
3536 fi
3537   CPP=$ac_cv_prog_CPP
3538 else
3539   ac_cv_prog_CPP=$CPP
3540 fi
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3542 $as_echo "$CPP" >&6; }
3543 ac_preproc_ok=false
3544 for ac_c_preproc_warn_flag in '' yes
3545 do
3546   # Use a header file that comes with gcc, so configuring glibc
3547   # with a fresh cross-compiler works.
3548   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3549   # <limits.h> exists even on freestanding compilers.
3550   # On the NeXT, cc -E runs the code through the compiler's parser,
3551   # not just through cpp. "Syntax error" is here to catch this case.
3552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h.  */
3554 #ifdef __STDC__
3555 # include <limits.h>
3556 #else
3557 # include <assert.h>
3558 #endif
3559                      Syntax error
3560 _ACEOF
3561 if ac_fn_c_try_cpp "$LINENO"; then :
3562
3563 else
3564   # Broken: fails on valid input.
3565 continue
3566 fi
3567 rm -f conftest.err conftest.i conftest.$ac_ext
3568
3569   # OK, works on sane cases.  Now check whether nonexistent headers
3570   # can be detected and how.
3571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572 /* end confdefs.h.  */
3573 #include <ac_nonexistent.h>
3574 _ACEOF
3575 if ac_fn_c_try_cpp "$LINENO"; then :
3576   # Broken: success on invalid input.
3577 continue
3578 else
3579   # Passes both tests.
3580 ac_preproc_ok=:
3581 break
3582 fi
3583 rm -f conftest.err conftest.i conftest.$ac_ext
3584
3585 done
3586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3587 rm -f conftest.i conftest.err conftest.$ac_ext
3588 if $ac_preproc_ok; then :
3589
3590 else
3591   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3594 See \`config.log' for more details" "$LINENO" 5; }
3595 fi
3596
3597 ac_ext=c
3598 ac_cpp='$CPP $CPPFLAGS'
3599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
3603
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3605 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3606 if ${ac_cv_path_GREP+:} false; then :
3607   $as_echo_n "(cached) " >&6
3608 else
3609   if test -z "$GREP"; then
3610   ac_path_GREP_found=false
3611   # Loop through the user's path and test for each of PROGNAME-LIST
3612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3614 do
3615   IFS=$as_save_IFS
3616   test -z "$as_dir" && as_dir=.
3617     for ac_prog in grep ggrep; do
3618     for ac_exec_ext in '' $ac_executable_extensions; do
3619       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3620       as_fn_executable_p "$ac_path_GREP" || continue
3621 # Check for GNU ac_path_GREP and select it if it is found.
3622   # Check for GNU $ac_path_GREP
3623 case `"$ac_path_GREP" --version 2>&1` in
3624 *GNU*)
3625   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3626 *)
3627   ac_count=0
3628   $as_echo_n 0123456789 >"conftest.in"
3629   while :
3630   do
3631     cat "conftest.in" "conftest.in" >"conftest.tmp"
3632     mv "conftest.tmp" "conftest.in"
3633     cp "conftest.in" "conftest.nl"
3634     $as_echo 'GREP' >> "conftest.nl"
3635     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3636     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3637     as_fn_arith $ac_count + 1 && ac_count=$as_val
3638     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3639       # Best one so far, save it but keep looking for a better one
3640       ac_cv_path_GREP="$ac_path_GREP"
3641       ac_path_GREP_max=$ac_count
3642     fi
3643     # 10*(2^10) chars as input seems more than enough
3644     test $ac_count -gt 10 && break
3645   done
3646   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3647 esac
3648
3649       $ac_path_GREP_found && break 3
3650     done
3651   done
3652   done
3653 IFS=$as_save_IFS
3654   if test -z "$ac_cv_path_GREP"; then
3655     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3656   fi
3657 else
3658   ac_cv_path_GREP=$GREP
3659 fi
3660
3661 fi
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3663 $as_echo "$ac_cv_path_GREP" >&6; }
3664  GREP="$ac_cv_path_GREP"
3665
3666
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3668 $as_echo_n "checking for egrep... " >&6; }
3669 if ${ac_cv_path_EGREP+:} false; then :
3670   $as_echo_n "(cached) " >&6
3671 else
3672   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3673    then ac_cv_path_EGREP="$GREP -E"
3674    else
3675      if test -z "$EGREP"; then
3676   ac_path_EGREP_found=false
3677   # Loop through the user's path and test for each of PROGNAME-LIST
3678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3680 do
3681   IFS=$as_save_IFS
3682   test -z "$as_dir" && as_dir=.
3683     for ac_prog in egrep; do
3684     for ac_exec_ext in '' $ac_executable_extensions; do
3685       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3686       as_fn_executable_p "$ac_path_EGREP" || continue
3687 # Check for GNU ac_path_EGREP and select it if it is found.
3688   # Check for GNU $ac_path_EGREP
3689 case `"$ac_path_EGREP" --version 2>&1` in
3690 *GNU*)
3691   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3692 *)
3693   ac_count=0
3694   $as_echo_n 0123456789 >"conftest.in"
3695   while :
3696   do
3697     cat "conftest.in" "conftest.in" >"conftest.tmp"
3698     mv "conftest.tmp" "conftest.in"
3699     cp "conftest.in" "conftest.nl"
3700     $as_echo 'EGREP' >> "conftest.nl"
3701     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3702     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3703     as_fn_arith $ac_count + 1 && ac_count=$as_val
3704     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3705       # Best one so far, save it but keep looking for a better one
3706       ac_cv_path_EGREP="$ac_path_EGREP"
3707       ac_path_EGREP_max=$ac_count
3708     fi
3709     # 10*(2^10) chars as input seems more than enough
3710     test $ac_count -gt 10 && break
3711   done
3712   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713 esac
3714
3715       $ac_path_EGREP_found && break 3
3716     done
3717   done
3718   done
3719 IFS=$as_save_IFS
3720   if test -z "$ac_cv_path_EGREP"; then
3721     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3722   fi
3723 else
3724   ac_cv_path_EGREP=$EGREP
3725 fi
3726
3727    fi
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3730 $as_echo "$ac_cv_path_EGREP" >&6; }
3731  EGREP="$ac_cv_path_EGREP"
3732
3733
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3735 $as_echo_n "checking for ANSI C header files... " >&6; }
3736 if ${ac_cv_header_stdc+:} false; then :
3737   $as_echo_n "(cached) " >&6
3738 else
3739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h.  */
3741 #include <stdlib.h>
3742 #include <stdarg.h>
3743 #include <string.h>
3744 #include <float.h>
3745
3746 int
3747 main ()
3748 {
3749
3750   ;
3751   return 0;
3752 }
3753 _ACEOF
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755   ac_cv_header_stdc=yes
3756 else
3757   ac_cv_header_stdc=no
3758 fi
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760
3761 if test $ac_cv_header_stdc = yes; then
3762   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h.  */
3765 #include <string.h>
3766
3767 _ACEOF
3768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769   $EGREP "memchr" >/dev/null 2>&1; then :
3770
3771 else
3772   ac_cv_header_stdc=no
3773 fi
3774 rm -f conftest*
3775
3776 fi
3777
3778 if test $ac_cv_header_stdc = yes; then
3779   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h.  */
3782 #include <stdlib.h>
3783
3784 _ACEOF
3785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3786   $EGREP "free" >/dev/null 2>&1; then :
3787
3788 else
3789   ac_cv_header_stdc=no
3790 fi
3791 rm -f conftest*
3792
3793 fi
3794
3795 if test $ac_cv_header_stdc = yes; then
3796   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3797   if test "$cross_compiling" = yes; then :
3798   :
3799 else
3800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h.  */
3802 #include <ctype.h>
3803 #include <stdlib.h>
3804 #if ((' ' & 0x0FF) == 0x020)
3805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3807 #else
3808 # define ISLOWER(c) \
3809                    (('a' <= (c) && (c) <= 'i') \
3810                      || ('j' <= (c) && (c) <= 'r') \
3811                      || ('s' <= (c) && (c) <= 'z'))
3812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3813 #endif
3814
3815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3816 int
3817 main ()
3818 {
3819   int i;
3820   for (i = 0; i < 256; i++)
3821     if (XOR (islower (i), ISLOWER (i))
3822         || toupper (i) != TOUPPER (i))
3823       return 2;
3824   return 0;
3825 }
3826 _ACEOF
3827 if ac_fn_c_try_run "$LINENO"; then :
3828
3829 else
3830   ac_cv_header_stdc=no
3831 fi
3832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3833   conftest.$ac_objext conftest.beam conftest.$ac_ext
3834 fi
3835
3836 fi
3837 fi
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3839 $as_echo "$ac_cv_header_stdc" >&6; }
3840 if test $ac_cv_header_stdc = yes; then
3841
3842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3843
3844 fi
3845
3846 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3847 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3848                   inttypes.h stdint.h unistd.h
3849 do :
3850   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3852 "
3853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3854   cat >>confdefs.h <<_ACEOF
3855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3856 _ACEOF
3857
3858 fi
3859
3860 done
3861
3862
3863
3864   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3865 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3866   MINIX=yes
3867 else
3868   MINIX=
3869 fi
3870
3871
3872   if test "$MINIX" = yes; then
3873
3874 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3875
3876
3877 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3878
3879
3880 $as_echo "#define _MINIX 1" >>confdefs.h
3881
3882   fi
3883
3884
3885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3886 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3887 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3888   $as_echo_n "(cached) " >&6
3889 else
3890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h.  */
3892
3893 #         define __EXTENSIONS__ 1
3894           $ac_includes_default
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904   ac_cv_safe_to_define___extensions__=yes
3905 else
3906   ac_cv_safe_to_define___extensions__=no
3907 fi
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3911 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3912   test $ac_cv_safe_to_define___extensions__ = yes &&
3913     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3914
3915   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3916
3917   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3918
3919   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3920
3921   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3922
3923
3924
3925 target_alias=${target_alias-$target}
3926
3927
3928 # 1.11.1: Require that version of automake.
3929 # foreign: Don't require README, INSTALL, NEWS, etc.
3930 # no-define: Don't define PACKAGE and VERSION.
3931 # no-dependencies: Don't generate automatic dependencies.
3932 #    (because it breaks when using bootstrap-lean, since some of the
3933 #    headers are gone at "make install" time).
3934 # subdir-objects: Build objects in sub-directories.
3935 # -Wall: Issue all automake warnings.
3936 # -Wno-portability: Don't warn about constructs supported by GNU make.
3937 #    (because GCC requires GNU make anyhow).
3938 #  -Wno-override: Overrides used in testsuite.
3939 am__api_version='1.15'
3940
3941 # Find a good install program.  We prefer a C program (faster),
3942 # so one script is as good as another.  But avoid the broken or
3943 # incompatible versions:
3944 # SysV /etc/install, /usr/sbin/install
3945 # SunOS /usr/etc/install
3946 # IRIX /sbin/install
3947 # AIX /bin/install
3948 # AmigaOS /C/install, which installs bootblocks on floppy discs
3949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3952 # OS/2's system install, which has a completely different semantic
3953 # ./install, which can be erroneously created by make from ./install.sh.
3954 # Reject install programs that cannot install multiple files.
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3956 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3957 if test -z "$INSTALL"; then
3958 if ${ac_cv_path_install+:} false; then :
3959   $as_echo_n "(cached) " >&6
3960 else
3961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966     # Account for people who put trailing slashes in PATH elements.
3967 case $as_dir/ in #((
3968   ./ | .// | /[cC]/* | \
3969   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3970   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3971   /usr/ucb/* ) ;;
3972   *)
3973     # OSF1 and SCO ODT 3.0 have their own names for install.
3974     # Don't use installbsd from OSF since it installs stuff as root
3975     # by default.
3976     for ac_prog in ginstall scoinst install; do
3977       for ac_exec_ext in '' $ac_executable_extensions; do
3978         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3979           if test $ac_prog = install &&
3980             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3981             # AIX install.  It has an incompatible calling convention.
3982             :
3983           elif test $ac_prog = install &&
3984             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3985             # program-specific install script used by HP pwplus--don't use.
3986             :
3987           else
3988             rm -rf conftest.one conftest.two conftest.dir
3989             echo one > conftest.one
3990             echo two > conftest.two
3991             mkdir conftest.dir
3992             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3993               test -s conftest.one && test -s conftest.two &&
3994               test -s conftest.dir/conftest.one &&
3995               test -s conftest.dir/conftest.two
3996             then
3997               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3998               break 3
3999             fi
4000           fi
4001         fi
4002       done
4003     done
4004     ;;
4005 esac
4006
4007   done
4008 IFS=$as_save_IFS
4009
4010 rm -rf conftest.one conftest.two conftest.dir
4011
4012 fi
4013   if test "${ac_cv_path_install+set}" = set; then
4014     INSTALL=$ac_cv_path_install
4015   else
4016     # As a last resort, use the slow shell script.  Don't cache a
4017     # value for INSTALL within a source directory, because that will
4018     # break other packages using the cache if that directory is
4019     # removed, or if the value is a relative name.
4020     INSTALL=$ac_install_sh
4021   fi
4022 fi
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4024 $as_echo "$INSTALL" >&6; }
4025
4026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4027 # It thinks the first close brace ends the variable substitution.
4028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4029
4030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4031
4032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4033
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4035 $as_echo_n "checking whether build environment is sane... " >&6; }
4036 # Reject unsafe characters in $srcdir or the absolute working directory
4037 # name.  Accept space and tab only in the latter.
4038 am_lf='
4039 '
4040 case `pwd` in
4041   *[\\\"\#\$\&\'\`$am_lf]*)
4042     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4043 esac
4044 case $srcdir in
4045   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4046     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4047 esac
4048
4049 # Do 'set' in a subshell so we don't clobber the current shell's
4050 # arguments.  Must try -L first in case configure is actually a
4051 # symlink; some systems play weird games with the mod time of symlinks
4052 # (eg FreeBSD returns the mod time of the symlink's containing
4053 # directory).
4054 if (
4055    am_has_slept=no
4056    for am_try in 1 2; do
4057      echo "timestamp, slept: $am_has_slept" > conftest.file
4058      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4059      if test "$*" = "X"; then
4060         # -L didn't work.
4061         set X `ls -t "$srcdir/configure" conftest.file`
4062      fi
4063      if test "$*" != "X $srcdir/configure conftest.file" \
4064         && test "$*" != "X conftest.file $srcdir/configure"; then
4065
4066         # If neither matched, then we have a broken ls.  This can happen
4067         # if, for instance, CONFIG_SHELL is bash and it inherits a
4068         # broken ls alias from the environment.  This has actually
4069         # happened.  Such a system could not be considered "sane".
4070         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4071   alias in your environment" "$LINENO" 5
4072      fi
4073      if test "$2" = conftest.file || test $am_try -eq 2; then
4074        break
4075      fi
4076      # Just in case.
4077      sleep 1
4078      am_has_slept=yes
4079    done
4080    test "$2" = conftest.file
4081    )
4082 then
4083    # Ok.
4084    :
4085 else
4086    as_fn_error $? "newly created file is older than distributed files!
4087 Check your system clock" "$LINENO" 5
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4090 $as_echo "yes" >&6; }
4091 # If we didn't sleep, we still need to ensure time stamps of config.status and
4092 # generated files are strictly newer.
4093 am_sleep_pid=
4094 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4095   ( sleep 1 ) &
4096   am_sleep_pid=$!
4097 fi
4098
4099 rm -f conftest.file
4100
4101 test "$program_prefix" != NONE &&
4102   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4103 # Use a double $ so make ignores it.
4104 test "$program_suffix" != NONE &&
4105   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4106 # Double any \ or $.
4107 # By default was `s,x,x', remove it if useless.
4108 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4109 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4110
4111 if test x"${MISSING+set}" != xset; then
4112   case $am_aux_dir in
4113   *\ * | *\     *)
4114     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4115   *)
4116     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4117   esac
4118 fi
4119 # Use eval to expand $SHELL
4120 if eval "$MISSING --is-lightweight"; then
4121   am_missing_run="$MISSING "
4122 else
4123   am_missing_run=
4124   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4125 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4126 fi
4127
4128 if test x"${install_sh+set}" != xset; then
4129   case $am_aux_dir in
4130   *\ * | *\     *)
4131     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4132   *)
4133     install_sh="\${SHELL} $am_aux_dir/install-sh"
4134   esac
4135 fi
4136
4137 # Installed binaries are usually stripped using 'strip' when the user
4138 # run "make install-strip".  However 'strip' might not be the right
4139 # tool to use in cross-compilation environments, therefore Automake
4140 # will honor the 'STRIP' environment variable to overrule this program.
4141 if test "$cross_compiling" != no; then
4142   if test -n "$ac_tool_prefix"; then
4143   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4144 set dummy ${ac_tool_prefix}strip; ac_word=$2
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 $as_echo_n "checking for $ac_word... " >&6; }
4147 if ${ac_cv_prog_STRIP+:} false; then :
4148   $as_echo_n "(cached) " >&6
4149 else
4150   if test -n "$STRIP"; then
4151   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4155 do
4156   IFS=$as_save_IFS
4157   test -z "$as_dir" && as_dir=.
4158     for ac_exec_ext in '' $ac_executable_extensions; do
4159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162     break 2
4163   fi
4164 done
4165   done
4166 IFS=$as_save_IFS
4167
4168 fi
4169 fi
4170 STRIP=$ac_cv_prog_STRIP
4171 if test -n "$STRIP"; then
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4173 $as_echo "$STRIP" >&6; }
4174 else
4175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4177 fi
4178
4179
4180 fi
4181 if test -z "$ac_cv_prog_STRIP"; then
4182   ac_ct_STRIP=$STRIP
4183   # Extract the first word of "strip", so it can be a program name with args.
4184 set dummy strip; ac_word=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4188   $as_echo_n "(cached) " >&6
4189 else
4190   if test -n "$ac_ct_STRIP"; then
4191   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196   IFS=$as_save_IFS
4197   test -z "$as_dir" && as_dir=.
4198     for ac_exec_ext in '' $ac_executable_extensions; do
4199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200     ac_cv_prog_ac_ct_STRIP="strip"
4201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202     break 2
4203   fi
4204 done
4205   done
4206 IFS=$as_save_IFS
4207
4208 fi
4209 fi
4210 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4211 if test -n "$ac_ct_STRIP"; then
4212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4213 $as_echo "$ac_ct_STRIP" >&6; }
4214 else
4215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4217 fi
4218
4219   if test "x$ac_ct_STRIP" = x; then
4220     STRIP=":"
4221   else
4222     case $cross_compiling:$ac_tool_warned in
4223 yes:)
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4226 ac_tool_warned=yes ;;
4227 esac
4228     STRIP=$ac_ct_STRIP
4229   fi
4230 else
4231   STRIP="$ac_cv_prog_STRIP"
4232 fi
4233
4234 fi
4235 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4238 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4239 if test -z "$MKDIR_P"; then
4240   if ${ac_cv_path_mkdir+:} false; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248     for ac_prog in mkdir gmkdir; do
4249          for ac_exec_ext in '' $ac_executable_extensions; do
4250            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4251            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4252              'mkdir (GNU coreutils) '* | \
4253              'mkdir (coreutils) '* | \
4254              'mkdir (fileutils) '4.1*)
4255                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4256                break 3;;
4257            esac
4258          done
4259        done
4260   done
4261 IFS=$as_save_IFS
4262
4263 fi
4264
4265   test -d ./--version && rmdir ./--version
4266   if test "${ac_cv_path_mkdir+set}" = set; then
4267     MKDIR_P="$ac_cv_path_mkdir -p"
4268   else
4269     # As a last resort, use the slow shell script.  Don't cache a
4270     # value for MKDIR_P within a source directory, because that will
4271     # break other packages using the cache if that directory is
4272     # removed, or if the value is a relative name.
4273     MKDIR_P="$ac_install_sh -d"
4274   fi
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4277 $as_echo "$MKDIR_P" >&6; }
4278
4279 for ac_prog in gawk mawk nawk awk
4280 do
4281   # Extract the first word of "$ac_prog", so it can be a program name with args.
4282 set dummy $ac_prog; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_AWK+:} false; then :
4286   $as_echo_n "(cached) " >&6
4287 else
4288   if test -n "$AWK"; then
4289   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296     for ac_exec_ext in '' $ac_executable_extensions; do
4297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4298     ac_cv_prog_AWK="$ac_prog"
4299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300     break 2
4301   fi
4302 done
4303   done
4304 IFS=$as_save_IFS
4305
4306 fi
4307 fi
4308 AWK=$ac_cv_prog_AWK
4309 if test -n "$AWK"; then
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4311 $as_echo "$AWK" >&6; }
4312 else
4313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4315 fi
4316
4317
4318   test -n "$AWK" && break
4319 done
4320
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4322 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4323 set x ${MAKE-make}
4324 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4325 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4326   $as_echo_n "(cached) " >&6
4327 else
4328   cat >conftest.make <<\_ACEOF
4329 SHELL = /bin/sh
4330 all:
4331         @echo '@@@%%%=$(MAKE)=@@@%%%'
4332 _ACEOF
4333 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4334 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4335   *@@@%%%=?*=@@@%%%*)
4336     eval ac_cv_prog_make_${ac_make}_set=yes;;
4337   *)
4338     eval ac_cv_prog_make_${ac_make}_set=no;;
4339 esac
4340 rm -f conftest.make
4341 fi
4342 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4344 $as_echo "yes" >&6; }
4345   SET_MAKE=
4346 else
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4349   SET_MAKE="MAKE=${MAKE-make}"
4350 fi
4351
4352 rm -rf .tst 2>/dev/null
4353 mkdir .tst 2>/dev/null
4354 if test -d .tst; then
4355   am__leading_dot=.
4356 else
4357   am__leading_dot=_
4358 fi
4359 rmdir .tst 2>/dev/null
4360
4361 # Check whether --enable-silent-rules was given.
4362 if test "${enable_silent_rules+set}" = set; then :
4363   enableval=$enable_silent_rules;
4364 fi
4365
4366 case $enable_silent_rules in # (((
4367   yes) AM_DEFAULT_VERBOSITY=0;;
4368    no) AM_DEFAULT_VERBOSITY=1;;
4369     *) AM_DEFAULT_VERBOSITY=1;;
4370 esac
4371 am_make=${MAKE-make}
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4373 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4374 if ${am_cv_make_support_nested_variables+:} false; then :
4375   $as_echo_n "(cached) " >&6
4376 else
4377   if $as_echo 'TRUE=$(BAR$(V))
4378 BAR0=false
4379 BAR1=true
4380 V=1
4381 am__doit:
4382         @$(TRUE)
4383 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4384   am_cv_make_support_nested_variables=yes
4385 else
4386   am_cv_make_support_nested_variables=no
4387 fi
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4390 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4391 if test $am_cv_make_support_nested_variables = yes; then
4392     AM_V='$(V)'
4393   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4394 else
4395   AM_V=$AM_DEFAULT_VERBOSITY
4396   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4397 fi
4398 AM_BACKSLASH='\'
4399
4400 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4401   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4402   # is not polluted with repeated "-I."
4403   am__isrc=' -I$(srcdir)'
4404   # test to see if srcdir already configured
4405   if test -f $srcdir/config.status; then
4406     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4407   fi
4408 fi
4409
4410 # test whether we have cygpath
4411 if test -z "$CYGPATH_W"; then
4412   if (cygpath --version) >/dev/null 2>/dev/null; then
4413     CYGPATH_W='cygpath -w'
4414   else
4415     CYGPATH_W=echo
4416   fi
4417 fi
4418
4419
4420 # Define the identity of the package.
4421  PACKAGE='libphobos'
4422  VERSION='version-unused'
4423
4424
4425 # Some tools Automake needs.
4426
4427 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4428
4429
4430 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4431
4432
4433 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4434
4435
4436 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4437
4438
4439 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4440
4441 # For better backward compatibility.  To be removed once Automake 1.9.x
4442 # dies out for good.  For more background, see:
4443 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4444 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4445 mkdir_p='$(MKDIR_P)'
4446
4447 # We need awk for the "check" target (and possibly the TAP driver).  The
4448 # system "awk" is bad on some platforms.
4449 # Always define AMTAR for backward compatibility.  Yes, it's still used
4450 # in the wild :-(  We should find a proper way to deprecate it ...
4451 AMTAR='$${TAR-tar}'
4452
4453
4454 # We'll loop over all known methods to create a tar archive until one works.
4455 _am_tools='gnutar  pax cpio none'
4456
4457 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4458
4459
4460
4461
4462
4463
4464 # POSIX will say in a future version that running "rm -f" with no argument
4465 # is OK; and we want to be able to make that assumption in our Makefile
4466 # recipes.  So use an aggressive probe to check that the usage we want is
4467 # actually supported "in the wild" to an acceptable degree.
4468 # See automake bug#10828.
4469 # To make any issue more visible, cause the running configure to be aborted
4470 # by default if the 'rm' program in use doesn't match our expectations; the
4471 # user can still override this though.
4472 if rm -f && rm -fr && rm -rf; then : OK; else
4473   cat >&2 <<'END'
4474 Oops!
4475
4476 Your 'rm' program seems unable to run without file operands specified
4477 on the command line, even when the '-f' option is present.  This is contrary
4478 to the behaviour of most rm programs out there, and not conforming with
4479 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4480
4481 Please tell bug-automake@gnu.org about your system, including the value
4482 of your $PATH and any error possibly output before this message.  This
4483 can help us improve future automake versions.
4484
4485 END
4486   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4487     echo 'Configuration will proceed anyway, since you have set the' >&2
4488     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4489     echo >&2
4490   else
4491     cat >&2 <<'END'
4492 Aborting the configuration process, to ensure you take notice of the issue.
4493
4494 You can download and install GNU coreutils to get an 'rm' implementation
4495 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4496
4497 If you want to complete the configuration process using your problematic
4498 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4499 to "yes", and re-run configure.
4500
4501 END
4502     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4503   fi
4504 fi
4505
4506
4507
4508
4509 # By default we simply use the C compiler to build assembly code.
4510
4511 test "${CCAS+set}" = set || CCAS=$CC
4512 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4513
4514
4515
4516 ac_ext=c
4517 ac_cpp='$CPP $CPPFLAGS'
4518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4521 if test -n "$ac_tool_prefix"; then
4522   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if ${ac_cv_prog_CC+:} false; then :
4527   $as_echo_n "(cached) " >&6
4528 else
4529   if test -n "$CC"; then
4530   ac_cv_prog_CC="$CC" # Let the user override the test.
4531 else
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4534 do
4535   IFS=$as_save_IFS
4536   test -z "$as_dir" && as_dir=.
4537     for ac_exec_ext in '' $ac_executable_extensions; do
4538   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4539     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4541     break 2
4542   fi
4543 done
4544   done
4545 IFS=$as_save_IFS
4546
4547 fi
4548 fi
4549 CC=$ac_cv_prog_CC
4550 if test -n "$CC"; then
4551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4552 $as_echo "$CC" >&6; }
4553 else
4554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555 $as_echo "no" >&6; }
4556 fi
4557
4558
4559 fi
4560 if test -z "$ac_cv_prog_CC"; then
4561   ac_ct_CC=$CC
4562   # Extract the first word of "gcc", so it can be a program name with args.
4563 set dummy gcc; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4567   $as_echo_n "(cached) " >&6
4568 else
4569   if test -n "$ac_ct_CC"; then
4570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575   IFS=$as_save_IFS
4576   test -z "$as_dir" && as_dir=.
4577     for ac_exec_ext in '' $ac_executable_extensions; do
4578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4579     ac_cv_prog_ac_ct_CC="gcc"
4580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581     break 2
4582   fi
4583 done
4584   done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4590 if test -n "$ac_ct_CC"; then
4591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4592 $as_echo "$ac_ct_CC" >&6; }
4593 else
4594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4596 fi
4597
4598   if test "x$ac_ct_CC" = x; then
4599     CC=""
4600   else
4601     case $cross_compiling:$ac_tool_warned in
4602 yes:)
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4605 ac_tool_warned=yes ;;
4606 esac
4607     CC=$ac_ct_CC
4608   fi
4609 else
4610   CC="$ac_cv_prog_CC"
4611 fi
4612
4613 if test -z "$CC"; then
4614           if test -n "$ac_tool_prefix"; then
4615     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4616 set dummy ${ac_tool_prefix}cc; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if ${ac_cv_prog_CC+:} false; then :
4620   $as_echo_n "(cached) " >&6
4621 else
4622   if test -n "$CC"; then
4623   ac_cv_prog_CC="$CC" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628   IFS=$as_save_IFS
4629   test -z "$as_dir" && as_dir=.
4630     for ac_exec_ext in '' $ac_executable_extensions; do
4631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632     ac_cv_prog_CC="${ac_tool_prefix}cc"
4633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634     break 2
4635   fi
4636 done
4637   done
4638 IFS=$as_save_IFS
4639
4640 fi
4641 fi
4642 CC=$ac_cv_prog_CC
4643 if test -n "$CC"; then
4644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4645 $as_echo "$CC" >&6; }
4646 else
4647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4649 fi
4650
4651
4652   fi
4653 fi
4654 if test -z "$CC"; then
4655   # Extract the first word of "cc", so it can be a program name with args.
4656 set dummy cc; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if ${ac_cv_prog_CC+:} false; then :
4660   $as_echo_n "(cached) " >&6
4661 else
4662   if test -n "$CC"; then
4663   ac_cv_prog_CC="$CC" # Let the user override the test.
4664 else
4665   ac_prog_rejected=no
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671     for ac_exec_ext in '' $ac_executable_extensions; do
4672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4674        ac_prog_rejected=yes
4675        continue
4676      fi
4677     ac_cv_prog_CC="cc"
4678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679     break 2
4680   fi
4681 done
4682   done
4683 IFS=$as_save_IFS
4684
4685 if test $ac_prog_rejected = yes; then
4686   # We found a bogon in the path, so make sure we never use it.
4687   set dummy $ac_cv_prog_CC
4688   shift
4689   if test $# != 0; then
4690     # We chose a different compiler from the bogus one.
4691     # However, it has the same basename, so the bogon will be chosen
4692     # first if we set CC to just the basename; use the full file name.
4693     shift
4694     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4695   fi
4696 fi
4697 fi
4698 fi
4699 CC=$ac_cv_prog_CC
4700 if test -n "$CC"; then
4701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4702 $as_echo "$CC" >&6; }
4703 else
4704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4706 fi
4707
4708
4709 fi
4710 if test -z "$CC"; then
4711   if test -n "$ac_tool_prefix"; then
4712   for ac_prog in cl.exe
4713   do
4714     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4715 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4717 $as_echo_n "checking for $ac_word... " >&6; }
4718 if ${ac_cv_prog_CC+:} false; then :
4719   $as_echo_n "(cached) " >&6
4720 else
4721   if test -n "$CC"; then
4722   ac_cv_prog_CC="$CC" # Let the user override the test.
4723 else
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727   IFS=$as_save_IFS
4728   test -z "$as_dir" && as_dir=.
4729     for ac_exec_ext in '' $ac_executable_extensions; do
4730   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4731     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733     break 2
4734   fi
4735 done
4736   done
4737 IFS=$as_save_IFS
4738
4739 fi
4740 fi
4741 CC=$ac_cv_prog_CC
4742 if test -n "$CC"; then
4743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4744 $as_echo "$CC" >&6; }
4745 else
4746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747 $as_echo "no" >&6; }
4748 fi
4749
4750
4751     test -n "$CC" && break
4752   done
4753 fi
4754 if test -z "$CC"; then
4755   ac_ct_CC=$CC
4756   for ac_prog in cl.exe
4757 do
4758   # Extract the first word of "$ac_prog", so it can be a program name with args.
4759 set dummy $ac_prog; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   if test -n "$ac_ct_CC"; then
4766   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773     for ac_exec_ext in '' $ac_executable_extensions; do
4774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775     ac_cv_prog_ac_ct_CC="$ac_prog"
4776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780   done
4781 IFS=$as_save_IFS
4782
4783 fi
4784 fi
4785 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4786 if test -n "$ac_ct_CC"; then
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4788 $as_echo "$ac_ct_CC" >&6; }
4789 else
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4792 fi
4793
4794
4795   test -n "$ac_ct_CC" && break
4796 done
4797
4798   if test "x$ac_ct_CC" = x; then
4799     CC=""
4800   else
4801     case $cross_compiling:$ac_tool_warned in
4802 yes:)
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4805 ac_tool_warned=yes ;;
4806 esac
4807     CC=$ac_ct_CC
4808   fi
4809 fi
4810
4811 fi
4812
4813
4814 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4816 as_fn_error $? "no acceptable C compiler found in \$PATH
4817 See \`config.log' for more details" "$LINENO" 5; }
4818
4819 # Provide some information about the compiler.
4820 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4821 set X $ac_compile
4822 ac_compiler=$2
4823 for ac_option in --version -v -V -qversion; do
4824   { { ac_try="$ac_compiler $ac_option >&5"
4825 case "(($ac_try" in
4826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827   *) ac_try_echo=$ac_try;;
4828 esac
4829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4830 $as_echo "$ac_try_echo"; } >&5
4831   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4832   ac_status=$?
4833   if test -s conftest.err; then
4834     sed '10a\
4835 ... rest of stderr output deleted ...
4836          10q' conftest.err >conftest.er1
4837     cat conftest.er1 >&5
4838   fi
4839   rm -f conftest.er1 conftest.err
4840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4841   test $ac_status = 0; }
4842 done
4843
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4845 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4846 if ${ac_cv_c_compiler_gnu+:} false; then :
4847   $as_echo_n "(cached) " >&6
4848 else
4849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h.  */
4851
4852 int
4853 main ()
4854 {
4855 #ifndef __GNUC__
4856        choke me
4857 #endif
4858
4859   ;
4860   return 0;
4861 }
4862 _ACEOF
4863 if ac_fn_c_try_compile "$LINENO"; then :
4864   ac_compiler_gnu=yes
4865 else
4866   ac_compiler_gnu=no
4867 fi
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4870
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4873 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4874 if test $ac_compiler_gnu = yes; then
4875   GCC=yes
4876 else
4877   GCC=
4878 fi
4879 ac_test_CFLAGS=${CFLAGS+set}
4880 ac_save_CFLAGS=$CFLAGS
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4882 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4883 if ${ac_cv_prog_cc_g+:} false; then :
4884   $as_echo_n "(cached) " >&6
4885 else
4886   ac_save_c_werror_flag=$ac_c_werror_flag
4887    ac_c_werror_flag=yes
4888    ac_cv_prog_cc_g=no
4889    CFLAGS="-g"
4890    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h.  */
4892
4893 int
4894 main ()
4895 {
4896
4897   ;
4898   return 0;
4899 }
4900 _ACEOF
4901 if ac_fn_c_try_compile "$LINENO"; then :
4902   ac_cv_prog_cc_g=yes
4903 else
4904   CFLAGS=""
4905       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h.  */
4907
4908 int
4909 main ()
4910 {
4911
4912   ;
4913   return 0;
4914 }
4915 _ACEOF
4916 if ac_fn_c_try_compile "$LINENO"; then :
4917
4918 else
4919   ac_c_werror_flag=$ac_save_c_werror_flag
4920          CFLAGS="-g"
4921          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h.  */
4923
4924 int
4925 main ()
4926 {
4927
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 if ac_fn_c_try_compile "$LINENO"; then :
4933   ac_cv_prog_cc_g=yes
4934 fi
4935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936 fi
4937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 fi
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940    ac_c_werror_flag=$ac_save_c_werror_flag
4941 fi
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4943 $as_echo "$ac_cv_prog_cc_g" >&6; }
4944 if test "$ac_test_CFLAGS" = set; then
4945   CFLAGS=$ac_save_CFLAGS
4946 elif test $ac_cv_prog_cc_g = yes; then
4947   if test "$GCC" = yes; then
4948     CFLAGS="-g -O2"
4949   else
4950     CFLAGS="-g"
4951   fi
4952 else
4953   if test "$GCC" = yes; then
4954     CFLAGS="-O2"
4955   else
4956     CFLAGS=
4957   fi
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4960 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4961 if ${ac_cv_prog_cc_c89+:} false; then :
4962   $as_echo_n "(cached) " >&6
4963 else
4964   ac_cv_prog_cc_c89=no
4965 ac_save_CC=$CC
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h.  */
4968 #include <stdarg.h>
4969 #include <stdio.h>
4970 struct stat;
4971 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4972 struct buf { int x; };
4973 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4974 static char *e (p, i)
4975      char **p;
4976      int i;
4977 {
4978   return p[i];
4979 }
4980 static char *f (char * (*g) (char **, int), char **p, ...)
4981 {
4982   char *s;
4983   va_list v;
4984   va_start (v,p);
4985   s = g (p, va_arg (v,int));
4986   va_end (v);
4987   return s;
4988 }
4989
4990 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4991    function prototypes and stuff, but not '\xHH' hex character constants.
4992    These don't provoke an error unfortunately, instead are silently treated
4993    as 'x'.  The following induces an error, until -std is added to get
4994    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4995    array size at least.  It's necessary to write '\x00'==0 to get something
4996    that's true only with -std.  */
4997 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4998
4999 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5000    inside strings and character constants.  */
5001 #define FOO(x) 'x'
5002 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5003
5004 int test (int i, double x);
5005 struct s1 {int (*f) (int a);};
5006 struct s2 {int (*f) (double a);};
5007 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5008 int argc;
5009 char **argv;
5010 int
5011 main ()
5012 {
5013 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5014   ;
5015   return 0;
5016 }
5017 _ACEOF
5018 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5019         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5020 do
5021   CC="$ac_save_CC $ac_arg"
5022   if ac_fn_c_try_compile "$LINENO"; then :
5023   ac_cv_prog_cc_c89=$ac_arg
5024 fi
5025 rm -f core conftest.err conftest.$ac_objext
5026   test "x$ac_cv_prog_cc_c89" != "xno" && break
5027 done
5028 rm -f conftest.$ac_ext
5029 CC=$ac_save_CC
5030
5031 fi
5032 # AC_CACHE_VAL
5033 case "x$ac_cv_prog_cc_c89" in
5034   x)
5035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5036 $as_echo "none needed" >&6; } ;;
5037   xno)
5038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5039 $as_echo "unsupported" >&6; } ;;
5040   *)
5041     CC="$CC $ac_cv_prog_cc_c89"
5042     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5043 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5044 esac
5045 if test "x$ac_cv_prog_cc_c89" != xno; then :
5046
5047 fi
5048
5049 ac_ext=c
5050 ac_cpp='$CPP $CPPFLAGS'
5051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054
5055 ac_ext=c
5056 ac_cpp='$CPP $CPPFLAGS'
5057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5061 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5062 if ${am_cv_prog_cc_c_o+:} false; then :
5063   $as_echo_n "(cached) " >&6
5064 else
5065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h.  */
5067
5068 int
5069 main ()
5070 {
5071
5072   ;
5073   return 0;
5074 }
5075 _ACEOF
5076   # Make sure it works both with $CC and with simple cc.
5077   # Following AC_PROG_CC_C_O, we do the test twice because some
5078   # compilers refuse to overwrite an existing .o file with -o,
5079   # though they will create one.
5080   am_cv_prog_cc_c_o=yes
5081   for am_i in 1 2; do
5082     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5083    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5084    ac_status=$?
5085    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086    (exit $ac_status); } \
5087          && test -f conftest2.$ac_objext; then
5088       : OK
5089     else
5090       am_cv_prog_cc_c_o=no
5091       break
5092     fi
5093   done
5094   rm -f core conftest*
5095   unset am_i
5096 fi
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5098 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5099 if test "$am_cv_prog_cc_c_o" != yes; then
5100    # Losing compiler, so override with the script.
5101    # FIXME: It is wrong to rewrite CC.
5102    # But if we don't then we get into trouble of one sort or another.
5103    # A longer-term fix would be to have automake use am__CC in this case,
5104    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5105    CC="$am_aux_dir/compile $CC"
5106 fi
5107 ac_ext=c
5108 ac_cpp='$CPP $CPPFLAGS'
5109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112
5113
5114 ac_ext=d
5115 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5116 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=yes
5118 if test -n "$ac_tool_prefix"; then
5119   # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if ${ac_cv_prog_GDC+:} false; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   if test -n "$GDC"; then
5127   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134     for ac_exec_ext in '' $ac_executable_extensions; do
5135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136     ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138     break 2
5139   fi
5140 done
5141   done
5142 IFS=$as_save_IFS
5143
5144 fi
5145 fi
5146 GDC=$ac_cv_prog_GDC
5147 if test -n "$GDC"; then
5148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5149 $as_echo "$GDC" >&6; }
5150 else
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154
5155
5156 fi
5157 if test -z "$ac_cv_prog_GDC"; then
5158   ac_ct_GDC=$GDC
5159   # Extract the first word of "gdc", so it can be a program name with args.
5160 set dummy gdc; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5164   $as_echo_n "(cached) " >&6
5165 else
5166   if test -n "$ac_ct_GDC"; then
5167   ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172   IFS=$as_save_IFS
5173   test -z "$as_dir" && as_dir=.
5174     for ac_exec_ext in '' $ac_executable_extensions; do
5175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176     ac_cv_prog_ac_ct_GDC="gdc"
5177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178     break 2
5179   fi
5180 done
5181   done
5182 IFS=$as_save_IFS
5183
5184 fi
5185 fi
5186 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5187 if test -n "$ac_ct_GDC"; then
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5189 $as_echo "$ac_ct_GDC" >&6; }
5190 else
5191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5193 fi
5194
5195   if test "x$ac_ct_GDC" = x; then
5196     GDC=""
5197   else
5198     case $cross_compiling:$ac_tool_warned in
5199 yes:)
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202 ac_tool_warned=yes ;;
5203 esac
5204     GDC=$ac_ct_GDC
5205   fi
5206 else
5207   GDC="$ac_cv_prog_GDC"
5208 fi
5209
5210 if test -z "$GDC"; then
5211   if test -n "$ac_tool_prefix"; then
5212     # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5213 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if ${ac_cv_prog_GDC+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219   if test -n "$GDC"; then
5220   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5224 do
5225   IFS=$as_save_IFS
5226   test -z "$as_dir" && as_dir=.
5227     for ac_exec_ext in '' $ac_executable_extensions; do
5228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229     ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231     break 2
5232   fi
5233 done
5234   done
5235 IFS=$as_save_IFS
5236
5237 fi
5238 fi
5239 GDC=$ac_cv_prog_GDC
5240 if test -n "$GDC"; then
5241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5242 $as_echo "$GDC" >&6; }
5243 else
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5246 fi
5247
5248
5249   fi
5250 fi
5251 if test -z "$GDC"; then
5252   # Extract the first word of "gdc", so it can be a program name with args.
5253 set dummy gdc; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if ${ac_cv_prog_GDC+:} false; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259   if test -n "$GDC"; then
5260   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5261 else
5262   ac_prog_rejected=no
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266   IFS=$as_save_IFS
5267   test -z "$as_dir" && as_dir=.
5268     for ac_exec_ext in '' $ac_executable_extensions; do
5269   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270     if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5271        ac_prog_rejected=yes
5272        continue
5273      fi
5274     ac_cv_prog_GDC="gdc"
5275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276     break 2
5277   fi
5278 done
5279   done
5280 IFS=$as_save_IFS
5281
5282 if test $ac_prog_rejected = yes; then
5283   # We found a bogon in the path, so make sure we never use it.
5284   set dummy $ac_cv_prog_GDC
5285   shift
5286   if test $# != 0; then
5287     # We chose a different compiler from the bogus one.
5288     # However, it has the same basename, so the bogon will be chosen
5289     # first if we set GDC to just the basename; use the full file name.
5290     shift
5291     ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5292   fi
5293 fi
5294 fi
5295 fi
5296 GDC=$ac_cv_prog_GDC
5297 if test -n "$GDC"; then
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5299 $as_echo "$GDC" >&6; }
5300 else
5301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5303 fi
5304
5305
5306 fi
5307
5308
5309 # Provide some information about the compiler.
5310 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5311 set X $ac_compile
5312 ac_compiler=$2
5313 { { ac_try="$ac_compiler --version >&5"
5314 case "(($ac_try" in
5315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316   *) ac_try_echo=$ac_try;;
5317 esac
5318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5319 $as_echo "$ac_try_echo"; } >&5
5320   (eval "$ac_compiler --version >&5") 2>conftest.err
5321   ac_status=$?
5322   if test -s conftest.err; then
5323     sed '10a\
5324 ... rest of stderr output deleted ...
5325          10q' conftest.err >conftest.er1
5326     cat conftest.er1 >&5
5327   fi
5328   rm -f conftest.er1 conftest.err
5329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5330   test $ac_status = 0; }
5331 ac_ext=c
5332 ac_cpp='$CPP $CPPFLAGS'
5333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5336
5337
5338       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5339 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5340 if ${phobos_cv_abs_srcdir+:} false; then :
5341   $as_echo_n "(cached) " >&6
5342 else
5343   phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5344 fi
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5346 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5347     if test -d "$phobos_cv_abs_srcdir"; then :
5348
5349 else
5350   as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5351 fi
5352
5353
5354
5355
5356   gdc_save_DFLAGS=$GDCFLAGS
5357   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
5358
5359   ac_ext=d
5360 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5361 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362 ac_compiler_gnu=yes
5363
5364     { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5365 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5366     cat > conftest.$ac_ext <<_ACEOF
5367 module mod;
5368
5369
5370 extern(C) int main() {
5371   return 0;
5372 }
5373 _ACEOF
5374 if ac_fn_d_try_compile "$LINENO"; then :
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5376 $as_echo "yes" >&6; }
5377 else
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380        as_fn_error $? "can't compile D sources!" "$LINENO" 5
5381 fi
5382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383   ac_ext=c
5384 ac_cpp='$CPP $CPPFLAGS'
5385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388
5389
5390   GDCFLAGS=$gdc_save_DFLAGS
5391
5392
5393
5394
5395
5396
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5398 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5399     # Check whether --enable-maintainer-mode was given.
5400 if test "${enable_maintainer_mode+set}" = set; then :
5401   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5402 else
5403   USE_MAINTAINER_MODE=no
5404 fi
5405
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5407 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5408    if test $USE_MAINTAINER_MODE = yes; then
5409   MAINTAINER_MODE_TRUE=
5410   MAINTAINER_MODE_FALSE='#'
5411 else
5412   MAINTAINER_MODE_TRUE='#'
5413   MAINTAINER_MODE_FALSE=
5414 fi
5415
5416   MAINT=$MAINTAINER_MODE_TRUE
5417
5418
5419 if test -n "$ac_tool_prefix"; then
5420   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5421 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_prog_RANLIB+:} false; then :
5425   $as_echo_n "(cached) " >&6
5426 else
5427   if test -n "$RANLIB"; then
5428   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5429 else
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 for as_dir in $PATH
5432 do
5433   IFS=$as_save_IFS
5434   test -z "$as_dir" && as_dir=.
5435     for ac_exec_ext in '' $ac_executable_extensions; do
5436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5439     break 2
5440   fi
5441 done
5442   done
5443 IFS=$as_save_IFS
5444
5445 fi
5446 fi
5447 RANLIB=$ac_cv_prog_RANLIB
5448 if test -n "$RANLIB"; then
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5450 $as_echo "$RANLIB" >&6; }
5451 else
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5454 fi
5455
5456
5457 fi
5458 if test -z "$ac_cv_prog_RANLIB"; then
5459   ac_ct_RANLIB=$RANLIB
5460   # Extract the first word of "ranlib", so it can be a program name with args.
5461 set dummy ranlib; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5465   $as_echo_n "(cached) " >&6
5466 else
5467   if test -n "$ac_ct_RANLIB"; then
5468   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475     for ac_exec_ext in '' $ac_executable_extensions; do
5476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477     ac_cv_prog_ac_ct_RANLIB="ranlib"
5478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482   done
5483 IFS=$as_save_IFS
5484
5485 fi
5486 fi
5487 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5488 if test -n "$ac_ct_RANLIB"; then
5489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5490 $as_echo "$ac_ct_RANLIB" >&6; }
5491 else
5492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5494 fi
5495
5496   if test "x$ac_ct_RANLIB" = x; then
5497     RANLIB=":"
5498   else
5499     case $cross_compiling:$ac_tool_warned in
5500 yes:)
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5503 ac_tool_warned=yes ;;
5504 esac
5505     RANLIB=$ac_ct_RANLIB
5506   fi
5507 else
5508   RANLIB="$ac_cv_prog_RANLIB"
5509 fi
5510
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5513 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5514 set x ${MAKE-make}
5515 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5516 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5517   $as_echo_n "(cached) " >&6
5518 else
5519   cat >conftest.make <<\_ACEOF
5520 SHELL = /bin/sh
5521 all:
5522         @echo '@@@%%%=$(MAKE)=@@@%%%'
5523 _ACEOF
5524 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5525 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5526   *@@@%%%=?*=@@@%%%*)
5527     eval ac_cv_prog_make_${ac_make}_set=yes;;
5528   *)
5529     eval ac_cv_prog_make_${ac_make}_set=no;;
5530 esac
5531 rm -f conftest.make
5532 fi
5533 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5535 $as_echo "yes" >&6; }
5536   SET_MAKE=
5537 else
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540   SET_MAKE="MAKE=${MAKE-make}"
5541 fi
5542
5543
5544 # This should be inherited in the recursive make, but ensure it is defined.
5545 test "$AR" || AR=ar
5546
5547
5548 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5549
5550
5551
5552 # Enable libtool
5553 case `pwd` in
5554   *\ * | *\     *)
5555     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5556 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5557 esac
5558
5559
5560
5561 macro_version='2.2.7a'
5562 macro_revision='1.3134'
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576 ltmain="$ac_aux_dir/ltmain.sh"
5577
5578 # Backslashify metacharacters that are still active within
5579 # double-quoted strings.
5580 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5581
5582 # Same as above, but do not quote variable references.
5583 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5584
5585 # Sed substitution to delay expansion of an escaped shell variable in a
5586 # double_quote_subst'ed string.
5587 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5588
5589 # Sed substitution to delay expansion of an escaped single quote.
5590 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5591
5592 # Sed substitution to avoid accidental globbing in evaled expressions
5593 no_glob_subst='s/\*/\\\*/g'
5594
5595 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5596 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5597 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5600 $as_echo_n "checking how to print strings... " >&6; }
5601 # Test print first, because it will be a builtin if present.
5602 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5603    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5604   ECHO='print -r --'
5605 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5606   ECHO='printf %s\n'
5607 else
5608   # Use this function as a fallback that always works.
5609   func_fallback_echo ()
5610   {
5611     eval 'cat <<_LTECHO_EOF
5612 $1
5613 _LTECHO_EOF'
5614   }
5615   ECHO='func_fallback_echo'
5616 fi
5617
5618 # func_echo_all arg...
5619 # Invoke $ECHO with all args, space-separated.
5620 func_echo_all ()
5621 {
5622     $ECHO ""
5623 }
5624
5625 case "$ECHO" in
5626   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5627 $as_echo "printf" >&6; } ;;
5628   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5629 $as_echo "print -r" >&6; } ;;
5630   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5631 $as_echo "cat" >&6; } ;;
5632 esac
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5648 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5649 if ${ac_cv_path_SED+:} false; then :
5650   $as_echo_n "(cached) " >&6
5651 else
5652             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5653      for ac_i in 1 2 3 4 5 6 7; do
5654        ac_script="$ac_script$as_nl$ac_script"
5655      done
5656      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5657      { ac_script=; unset ac_script;}
5658      if test -z "$SED"; then
5659   ac_path_SED_found=false
5660   # Loop through the user's path and test for each of PROGNAME-LIST
5661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664   IFS=$as_save_IFS
5665   test -z "$as_dir" && as_dir=.
5666     for ac_prog in sed gsed; do
5667     for ac_exec_ext in '' $ac_executable_extensions; do
5668       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5669       as_fn_executable_p "$ac_path_SED" || continue
5670 # Check for GNU ac_path_SED and select it if it is found.
5671   # Check for GNU $ac_path_SED
5672 case `"$ac_path_SED" --version 2>&1` in
5673 *GNU*)
5674   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5675 *)
5676   ac_count=0
5677   $as_echo_n 0123456789 >"conftest.in"
5678   while :
5679   do
5680     cat "conftest.in" "conftest.in" >"conftest.tmp"
5681     mv "conftest.tmp" "conftest.in"
5682     cp "conftest.in" "conftest.nl"
5683     $as_echo '' >> "conftest.nl"
5684     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5685     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5686     as_fn_arith $ac_count + 1 && ac_count=$as_val
5687     if test $ac_count -gt ${ac_path_SED_max-0}; then
5688       # Best one so far, save it but keep looking for a better one
5689       ac_cv_path_SED="$ac_path_SED"
5690       ac_path_SED_max=$ac_count
5691     fi
5692     # 10*(2^10) chars as input seems more than enough
5693     test $ac_count -gt 10 && break
5694   done
5695   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5696 esac
5697
5698       $ac_path_SED_found && break 3
5699     done
5700   done
5701   done
5702 IFS=$as_save_IFS
5703   if test -z "$ac_cv_path_SED"; then
5704     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5705   fi
5706 else
5707   ac_cv_path_SED=$SED
5708 fi
5709
5710 fi
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5712 $as_echo "$ac_cv_path_SED" >&6; }
5713  SED="$ac_cv_path_SED"
5714   rm -f conftest.sed
5715
5716 test -z "$SED" && SED=sed
5717 Xsed="$SED -e 1s/^X//"
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5730 $as_echo_n "checking for fgrep... " >&6; }
5731 if ${ac_cv_path_FGREP+:} false; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5735    then ac_cv_path_FGREP="$GREP -F"
5736    else
5737      if test -z "$FGREP"; then
5738   ac_path_FGREP_found=false
5739   # Loop through the user's path and test for each of PROGNAME-LIST
5740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745     for ac_prog in fgrep; do
5746     for ac_exec_ext in '' $ac_executable_extensions; do
5747       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5748       as_fn_executable_p "$ac_path_FGREP" || continue
5749 # Check for GNU ac_path_FGREP and select it if it is found.
5750   # Check for GNU $ac_path_FGREP
5751 case `"$ac_path_FGREP" --version 2>&1` in
5752 *GNU*)
5753   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5754 *)
5755   ac_count=0
5756   $as_echo_n 0123456789 >"conftest.in"
5757   while :
5758   do
5759     cat "conftest.in" "conftest.in" >"conftest.tmp"
5760     mv "conftest.tmp" "conftest.in"
5761     cp "conftest.in" "conftest.nl"
5762     $as_echo 'FGREP' >> "conftest.nl"
5763     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5764     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5765     as_fn_arith $ac_count + 1 && ac_count=$as_val
5766     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5767       # Best one so far, save it but keep looking for a better one
5768       ac_cv_path_FGREP="$ac_path_FGREP"
5769       ac_path_FGREP_max=$ac_count
5770     fi
5771     # 10*(2^10) chars as input seems more than enough
5772     test $ac_count -gt 10 && break
5773   done
5774   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5775 esac
5776
5777       $ac_path_FGREP_found && break 3
5778     done
5779   done
5780   done
5781 IFS=$as_save_IFS
5782   if test -z "$ac_cv_path_FGREP"; then
5783     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5784   fi
5785 else
5786   ac_cv_path_FGREP=$FGREP
5787 fi
5788
5789    fi
5790 fi
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5792 $as_echo "$ac_cv_path_FGREP" >&6; }
5793  FGREP="$ac_cv_path_FGREP"
5794
5795
5796 test -z "$GREP" && GREP=grep
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816 # Check whether --with-gnu-ld was given.
5817 if test "${with_gnu_ld+set}" = set; then :
5818   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5819 else
5820   with_gnu_ld=no
5821 fi
5822
5823 ac_prog=ld
5824 if test "$GCC" = yes; then
5825   # Check if gcc -print-prog-name=ld gives a path.
5826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5827 $as_echo_n "checking for ld used by $CC... " >&6; }
5828   case $host in
5829   *-*-mingw*)
5830     # gcc leaves a trailing carriage return which upsets mingw
5831     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5832   *)
5833     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5834   esac
5835   case $ac_prog in
5836     # Accept absolute paths.
5837     [\\/]* | ?:[\\/]*)
5838       re_direlt='/[^/][^/]*/\.\./'
5839       # Canonicalize the pathname of ld
5840       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5841       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5842         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5843       done
5844       test -z "$LD" && LD="$ac_prog"
5845       ;;
5846   "")
5847     # If it fails, then pretend we aren't using GCC.
5848     ac_prog=ld
5849     ;;
5850   *)
5851     # If it is relative, then search for the first ld in PATH.
5852     with_gnu_ld=unknown
5853     ;;
5854   esac
5855 elif test "$with_gnu_ld" = yes; then
5856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5857 $as_echo_n "checking for GNU ld... " >&6; }
5858 else
5859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5860 $as_echo_n "checking for non-GNU ld... " >&6; }
5861 fi
5862 if ${lt_cv_path_LD+:} false; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   if test -z "$LD"; then
5866   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5867   for ac_dir in $PATH; do
5868     IFS="$lt_save_ifs"
5869     test -z "$ac_dir" && ac_dir=.
5870     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5871       lt_cv_path_LD="$ac_dir/$ac_prog"
5872       # Check to see if the program is GNU ld.  I'd rather use --version,
5873       # but apparently some variants of GNU ld only accept -v.
5874       # Break only if it was the GNU/non-GNU ld that we prefer.
5875       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5876       *GNU* | *'with BFD'*)
5877         test "$with_gnu_ld" != no && break
5878         ;;
5879       *)
5880         test "$with_gnu_ld" != yes && break
5881         ;;
5882       esac
5883     fi
5884   done
5885   IFS="$lt_save_ifs"
5886 else
5887   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5888 fi
5889 fi
5890
5891 LD="$lt_cv_path_LD"
5892 if test -n "$LD"; then
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5894 $as_echo "$LD" >&6; }
5895 else
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5898 fi
5899 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5901 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5902 if ${lt_cv_prog_gnu_ld+:} false; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5906 case `$LD -v 2>&1 </dev/null` in
5907 *GNU* | *'with BFD'*)
5908   lt_cv_prog_gnu_ld=yes
5909   ;;
5910 *)
5911   lt_cv_prog_gnu_ld=no
5912   ;;
5913 esac
5914 fi
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5916 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5917 with_gnu_ld=$lt_cv_prog_gnu_ld
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5928 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5929 if ${lt_cv_path_NM+:} false; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test -n "$NM"; then
5933   # Let the user override the test.
5934   lt_cv_path_NM="$NM"
5935 else
5936   lt_nm_to_check="${ac_tool_prefix}nm"
5937   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5938     lt_nm_to_check="$lt_nm_to_check nm"
5939   fi
5940   for lt_tmp_nm in $lt_nm_to_check; do
5941     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5942     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5943       IFS="$lt_save_ifs"
5944       test -z "$ac_dir" && ac_dir=.
5945       tmp_nm="$ac_dir/$lt_tmp_nm"
5946       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5947         # Check to see if the nm accepts a BSD-compat flag.
5948         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5949         #   nm: unknown option "B" ignored
5950         # Tru64's nm complains that /dev/null is an invalid object file
5951         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5952         */dev/null* | *'Invalid file or object type'*)
5953           lt_cv_path_NM="$tmp_nm -B"
5954           break
5955           ;;
5956         *)
5957           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5958           */dev/null*)
5959             lt_cv_path_NM="$tmp_nm -p"
5960             break
5961             ;;
5962           *)
5963             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5964             continue # so that we can try to find one that supports BSD flags
5965             ;;
5966           esac
5967           ;;
5968         esac
5969       fi
5970     done
5971     IFS="$lt_save_ifs"
5972   done
5973   : ${lt_cv_path_NM=no}
5974 fi
5975 fi
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5977 $as_echo "$lt_cv_path_NM" >&6; }
5978 if test "$lt_cv_path_NM" != "no"; then
5979   NM="$lt_cv_path_NM"
5980 else
5981   # Didn't find any BSD compatible name lister, look for dumpbin.
5982   if test -n "$DUMPBIN"; then :
5983     # Let the user override the test.
5984   else
5985     if test -n "$ac_tool_prefix"; then
5986   for ac_prog in dumpbin "link -dump"
5987   do
5988     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991 $as_echo_n "checking for $ac_word... " >&6; }
5992 if ${ac_cv_prog_DUMPBIN+:} false; then :
5993   $as_echo_n "(cached) " >&6
5994 else
5995   if test -n "$DUMPBIN"; then
5996   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001   IFS=$as_save_IFS
6002   test -z "$as_dir" && as_dir=.
6003     for ac_exec_ext in '' $ac_executable_extensions; do
6004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6007     break 2
6008   fi
6009 done
6010   done
6011 IFS=$as_save_IFS
6012
6013 fi
6014 fi
6015 DUMPBIN=$ac_cv_prog_DUMPBIN
6016 if test -n "$DUMPBIN"; then
6017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6018 $as_echo "$DUMPBIN" >&6; }
6019 else
6020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021 $as_echo "no" >&6; }
6022 fi
6023
6024
6025     test -n "$DUMPBIN" && break
6026   done
6027 fi
6028 if test -z "$DUMPBIN"; then
6029   ac_ct_DUMPBIN=$DUMPBIN
6030   for ac_prog in dumpbin "link -dump"
6031 do
6032   # Extract the first word of "$ac_prog", so it can be a program name with args.
6033 set dummy $ac_prog; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6037   $as_echo_n "(cached) " >&6
6038 else
6039   if test -n "$ac_ct_DUMPBIN"; then
6040   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045   IFS=$as_save_IFS
6046   test -z "$as_dir" && as_dir=.
6047     for ac_exec_ext in '' $ac_executable_extensions; do
6048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051     break 2
6052   fi
6053 done
6054   done
6055 IFS=$as_save_IFS
6056
6057 fi
6058 fi
6059 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6060 if test -n "$ac_ct_DUMPBIN"; then
6061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6062 $as_echo "$ac_ct_DUMPBIN" >&6; }
6063 else
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6066 fi
6067
6068
6069   test -n "$ac_ct_DUMPBIN" && break
6070 done
6071
6072   if test "x$ac_ct_DUMPBIN" = x; then
6073     DUMPBIN=":"
6074   else
6075     case $cross_compiling:$ac_tool_warned in
6076 yes:)
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6079 ac_tool_warned=yes ;;
6080 esac
6081     DUMPBIN=$ac_ct_DUMPBIN
6082   fi
6083 fi
6084
6085     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6086     *COFF*)
6087       DUMPBIN="$DUMPBIN -symbols"
6088       ;;
6089     *)
6090       DUMPBIN=:
6091       ;;
6092     esac
6093   fi
6094
6095   if test "$DUMPBIN" != ":"; then
6096     NM="$DUMPBIN"
6097   fi
6098 fi
6099 test -z "$NM" && NM=nm
6100
6101
6102
6103
6104
6105
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6107 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6108 if ${lt_cv_nm_interface+:} false; then :
6109   $as_echo_n "(cached) " >&6
6110 else
6111   lt_cv_nm_interface="BSD nm"
6112   echo "int some_variable = 0;" > conftest.$ac_ext
6113   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6114   (eval "$ac_compile" 2>conftest.err)
6115   cat conftest.err >&5
6116   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6117   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6118   cat conftest.err >&5
6119   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6120   cat conftest.out >&5
6121   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6122     lt_cv_nm_interface="MS dumpbin"
6123   fi
6124   rm -f conftest*
6125 fi
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6127 $as_echo "$lt_cv_nm_interface" >&6; }
6128
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6130 $as_echo_n "checking whether ln -s works... " >&6; }
6131 LN_S=$as_ln_s
6132 if test "$LN_S" = "ln -s"; then
6133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6134 $as_echo "yes" >&6; }
6135 else
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6137 $as_echo "no, using $LN_S" >&6; }
6138 fi
6139
6140 # find the maximum length of command line arguments
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6142 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6143 if ${lt_cv_sys_max_cmd_len+:} false; then :
6144   $as_echo_n "(cached) " >&6
6145 else
6146     i=0
6147   teststring="ABCD"
6148
6149   case $build_os in
6150   msdosdjgpp*)
6151     # On DJGPP, this test can blow up pretty badly due to problems in libc
6152     # (any single argument exceeding 2000 bytes causes a buffer overrun
6153     # during glob expansion).  Even if it were fixed, the result of this
6154     # check would be larger than it should be.
6155     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6156     ;;
6157
6158   gnu*)
6159     # Under GNU Hurd, this test is not required because there is
6160     # no limit to the length of command line arguments.
6161     # Libtool will interpret -1 as no limit whatsoever
6162     lt_cv_sys_max_cmd_len=-1;
6163     ;;
6164
6165   cygwin* | mingw* | cegcc*)
6166     # On Win9x/ME, this test blows up -- it succeeds, but takes
6167     # about 5 minutes as the teststring grows exponentially.
6168     # Worse, since 9x/ME are not pre-emptively multitasking,
6169     # you end up with a "frozen" computer, even though with patience
6170     # the test eventually succeeds (with a max line length of 256k).
6171     # Instead, let's just punt: use the minimum linelength reported by
6172     # all of the supported platforms: 8192 (on NT/2K/XP).
6173     lt_cv_sys_max_cmd_len=8192;
6174     ;;
6175
6176   mint*)
6177     # On MiNT this can take a long time and run out of memory.
6178     lt_cv_sys_max_cmd_len=8192;
6179     ;;
6180
6181   amigaos*)
6182     # On AmigaOS with pdksh, this test takes hours, literally.
6183     # So we just punt and use a minimum line length of 8192.
6184     lt_cv_sys_max_cmd_len=8192;
6185     ;;
6186
6187   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6188     # This has been around since 386BSD, at least.  Likely further.
6189     if test -x /sbin/sysctl; then
6190       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6191     elif test -x /usr/sbin/sysctl; then
6192       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6193     else
6194       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6195     fi
6196     # And add a safety zone
6197     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6198     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6199     ;;
6200
6201   interix*)
6202     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6203     lt_cv_sys_max_cmd_len=196608
6204     ;;
6205
6206   osf*)
6207     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6208     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6209     # nice to cause kernel panics so lets avoid the loop below.
6210     # First set a reasonable default.
6211     lt_cv_sys_max_cmd_len=16384
6212     #
6213     if test -x /sbin/sysconfig; then
6214       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6215         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6216       esac
6217     fi
6218     ;;
6219   sco3.2v5*)
6220     lt_cv_sys_max_cmd_len=102400
6221     ;;
6222   sysv5* | sco5v6* | sysv4.2uw2*)
6223     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6224     if test -n "$kargmax"; then
6225       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6226     else
6227       lt_cv_sys_max_cmd_len=32768
6228     fi
6229     ;;
6230   *)
6231     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6232     if test -n "$lt_cv_sys_max_cmd_len"; then
6233       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6234       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6235     else
6236       # Make teststring a little bigger before we do anything with it.
6237       # a 1K string should be a reasonable start.
6238       for i in 1 2 3 4 5 6 7 8 ; do
6239         teststring=$teststring$teststring
6240       done
6241       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6242       # If test is not a shell built-in, we'll probably end up computing a
6243       # maximum length that is only half of the actual maximum length, but
6244       # we can't tell.
6245       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6246                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6247               test $i != 17 # 1/2 MB should be enough
6248       do
6249         i=`expr $i + 1`
6250         teststring=$teststring$teststring
6251       done
6252       # Only check the string length outside the loop.
6253       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6254       teststring=
6255       # Add a significant safety factor because C++ compilers can tack on
6256       # massive amounts of additional arguments before passing them to the
6257       # linker.  It appears as though 1/2 is a usable value.
6258       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6259     fi
6260     ;;
6261   esac
6262
6263 fi
6264
6265 if test -n $lt_cv_sys_max_cmd_len ; then
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6267 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6268 else
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6270 $as_echo "none" >&6; }
6271 fi
6272 max_cmd_len=$lt_cv_sys_max_cmd_len
6273
6274
6275
6276
6277
6278
6279 : ${CP="cp -f"}
6280 : ${MV="mv -f"}
6281 : ${RM="rm -f"}
6282
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6284 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6285 # Try some XSI features
6286 xsi_shell=no
6287 ( _lt_dummy="a/b/c"
6288   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6289       = c,a/b,, \
6290     && eval 'test $(( 1 + 1 )) -eq 2 \
6291     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6292   && xsi_shell=yes
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6294 $as_echo "$xsi_shell" >&6; }
6295
6296
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6298 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6299 lt_shell_append=no
6300 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6301     >/dev/null 2>&1 \
6302   && lt_shell_append=yes
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6304 $as_echo "$lt_shell_append" >&6; }
6305
6306
6307 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6308   lt_unset=unset
6309 else
6310   lt_unset=false
6311 fi
6312
6313
6314
6315
6316
6317 # test EBCDIC or ASCII
6318 case `echo X|tr X '\101'` in
6319  A) # ASCII based system
6320     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6321   lt_SP2NL='tr \040 \012'
6322   lt_NL2SP='tr \015\012 \040\040'
6323   ;;
6324  *) # EBCDIC based system
6325   lt_SP2NL='tr \100 \n'
6326   lt_NL2SP='tr \r\n \100\100'
6327   ;;
6328 esac
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6339 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6340 if ${lt_cv_ld_reload_flag+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   lt_cv_ld_reload_flag='-r'
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6346 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6347 reload_flag=$lt_cv_ld_reload_flag
6348 case $reload_flag in
6349 "" | " "*) ;;
6350 *) reload_flag=" $reload_flag" ;;
6351 esac
6352 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6353 case $host_os in
6354   darwin*)
6355     if test "$GCC" = yes; then
6356       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6357     else
6358       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6359     fi
6360     ;;
6361 esac
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371 if test -n "$ac_tool_prefix"; then
6372   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6373 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_OBJDUMP+:} false; then :
6377   $as_echo_n "(cached) " >&6
6378 else
6379   if test -n "$OBJDUMP"; then
6380   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385   IFS=$as_save_IFS
6386   test -z "$as_dir" && as_dir=.
6387     for ac_exec_ext in '' $ac_executable_extensions; do
6388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391     break 2
6392   fi
6393 done
6394   done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 OBJDUMP=$ac_cv_prog_OBJDUMP
6400 if test -n "$OBJDUMP"; then
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6402 $as_echo "$OBJDUMP" >&6; }
6403 else
6404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407
6408
6409 fi
6410 if test -z "$ac_cv_prog_OBJDUMP"; then
6411   ac_ct_OBJDUMP=$OBJDUMP
6412   # Extract the first word of "objdump", so it can be a program name with args.
6413 set dummy objdump; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6417   $as_echo_n "(cached) " >&6
6418 else
6419   if test -n "$ac_ct_OBJDUMP"; then
6420   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425   IFS=$as_save_IFS
6426   test -z "$as_dir" && as_dir=.
6427     for ac_exec_ext in '' $ac_executable_extensions; do
6428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431     break 2
6432   fi
6433 done
6434   done
6435 IFS=$as_save_IFS
6436
6437 fi
6438 fi
6439 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6440 if test -n "$ac_ct_OBJDUMP"; then
6441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6442 $as_echo "$ac_ct_OBJDUMP" >&6; }
6443 else
6444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6446 fi
6447
6448   if test "x$ac_ct_OBJDUMP" = x; then
6449     OBJDUMP="false"
6450   else
6451     case $cross_compiling:$ac_tool_warned in
6452 yes:)
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455 ac_tool_warned=yes ;;
6456 esac
6457     OBJDUMP=$ac_ct_OBJDUMP
6458   fi
6459 else
6460   OBJDUMP="$ac_cv_prog_OBJDUMP"
6461 fi
6462
6463 test -z "$OBJDUMP" && OBJDUMP=objdump
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6474 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6475 if ${lt_cv_deplibs_check_method+:} false; then :
6476   $as_echo_n "(cached) " >&6
6477 else
6478   lt_cv_file_magic_cmd='$MAGIC_CMD'
6479 lt_cv_file_magic_test_file=
6480 lt_cv_deplibs_check_method='unknown'
6481 # Need to set the preceding variable on all platforms that support
6482 # interlibrary dependencies.
6483 # 'none' -- dependencies not supported.
6484 # `unknown' -- same as none, but documents that we really don't know.
6485 # 'pass_all' -- all dependencies passed with no checks.
6486 # 'test_compile' -- check by making test program.
6487 # 'file_magic [[regex]]' -- check by looking for files in library path
6488 # which responds to the $file_magic_cmd with a given extended regex.
6489 # If you have `file' or equivalent on your system and you're not sure
6490 # whether `pass_all' will *always* work, you probably want this one.
6491
6492 case $host_os in
6493 aix[4-9]*)
6494   lt_cv_deplibs_check_method=pass_all
6495   ;;
6496
6497 beos*)
6498   lt_cv_deplibs_check_method=pass_all
6499   ;;
6500
6501 bsdi[45]*)
6502   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6503   lt_cv_file_magic_cmd='/usr/bin/file -L'
6504   lt_cv_file_magic_test_file=/shlib/libc.so
6505   ;;
6506
6507 cygwin*)
6508   # func_win32_libid is a shell function defined in ltmain.sh
6509   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6510   lt_cv_file_magic_cmd='func_win32_libid'
6511   ;;
6512
6513 mingw* | pw32*)
6514   # Base MSYS/MinGW do not provide the 'file' command needed by
6515   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6516   # unless we find 'file', for example because we are cross-compiling.
6517   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6518   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6519     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6520     lt_cv_file_magic_cmd='func_win32_libid'
6521   else
6522     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6523     lt_cv_file_magic_cmd='$OBJDUMP -f'
6524   fi
6525   ;;
6526
6527 cegcc*)
6528   # use the weaker test based on 'objdump'. See mingw*.
6529   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6530   lt_cv_file_magic_cmd='$OBJDUMP -f'
6531   ;;
6532
6533 darwin* | rhapsody*)
6534   lt_cv_deplibs_check_method=pass_all
6535   ;;
6536
6537 freebsd* | dragonfly*)
6538   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6539     case $host_cpu in
6540     i*86 )
6541       # Not sure whether the presence of OpenBSD here was a mistake.
6542       # Let's accept both of them until this is cleared up.
6543       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6544       lt_cv_file_magic_cmd=/usr/bin/file
6545       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6546       ;;
6547     esac
6548   else
6549     lt_cv_deplibs_check_method=pass_all
6550   fi
6551   ;;
6552
6553 gnu*)
6554   lt_cv_deplibs_check_method=pass_all
6555   ;;
6556
6557 haiku*)
6558   lt_cv_deplibs_check_method=pass_all
6559   ;;
6560
6561 hpux10.20* | hpux11*)
6562   lt_cv_file_magic_cmd=/usr/bin/file
6563   case $host_cpu in
6564   ia64*)
6565     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6566     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6567     ;;
6568   hppa*64*)
6569     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]'
6570     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6571     ;;
6572   *)
6573     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6574     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6575     ;;
6576   esac
6577   ;;
6578
6579 interix[3-9]*)
6580   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6581   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6582   ;;
6583
6584 irix5* | irix6* | nonstopux*)
6585   case $LD in
6586   *-32|*"-32 ") libmagic=32-bit;;
6587   *-n32|*"-n32 ") libmagic=N32;;
6588   *-64|*"-64 ") libmagic=64-bit;;
6589   *) libmagic=never-match;;
6590   esac
6591   lt_cv_deplibs_check_method=pass_all
6592   ;;
6593
6594 # This must be Linux ELF.
6595 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6596   lt_cv_deplibs_check_method=pass_all
6597   ;;
6598
6599 netbsd*)
6600   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6601     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6602   else
6603     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6604   fi
6605   ;;
6606
6607 newos6*)
6608   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6609   lt_cv_file_magic_cmd=/usr/bin/file
6610   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6611   ;;
6612
6613 *nto* | *qnx*)
6614   lt_cv_deplibs_check_method=pass_all
6615   ;;
6616
6617 openbsd*)
6618   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6619     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6620   else
6621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6622   fi
6623   ;;
6624
6625 osf3* | osf4* | osf5*)
6626   lt_cv_deplibs_check_method=pass_all
6627   ;;
6628
6629 rdos*)
6630   lt_cv_deplibs_check_method=pass_all
6631   ;;
6632
6633 solaris*)
6634   lt_cv_deplibs_check_method=pass_all
6635   ;;
6636
6637 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6638   lt_cv_deplibs_check_method=pass_all
6639   ;;
6640
6641 sysv4 | sysv4.3*)
6642   case $host_vendor in
6643   motorola)
6644     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]'
6645     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6646     ;;
6647   ncr)
6648     lt_cv_deplibs_check_method=pass_all
6649     ;;
6650   sequent)
6651     lt_cv_file_magic_cmd='/bin/file'
6652     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6653     ;;
6654   sni)
6655     lt_cv_file_magic_cmd='/bin/file'
6656     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6657     lt_cv_file_magic_test_file=/lib/libc.so
6658     ;;
6659   siemens)
6660     lt_cv_deplibs_check_method=pass_all
6661     ;;
6662   pc)
6663     lt_cv_deplibs_check_method=pass_all
6664     ;;
6665   esac
6666   ;;
6667
6668 tpf*)
6669   lt_cv_deplibs_check_method=pass_all
6670   ;;
6671 esac
6672
6673 fi
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6675 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6676 file_magic_cmd=$lt_cv_file_magic_cmd
6677 deplibs_check_method=$lt_cv_deplibs_check_method
6678 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691 if test -n "$ac_tool_prefix"; then
6692   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}ar; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_AR+:} false; then :
6697   $as_echo_n "(cached) " >&6
6698 else
6699   if test -n "$AR"; then
6700   ac_cv_prog_AR="$AR" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705   IFS=$as_save_IFS
6706   test -z "$as_dir" && as_dir=.
6707     for ac_exec_ext in '' $ac_executable_extensions; do
6708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709     ac_cv_prog_AR="${ac_tool_prefix}ar"
6710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711     break 2
6712   fi
6713 done
6714   done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 AR=$ac_cv_prog_AR
6720 if test -n "$AR"; then
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6722 $as_echo "$AR" >&6; }
6723 else
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728
6729 fi
6730 if test -z "$ac_cv_prog_AR"; then
6731   ac_ct_AR=$AR
6732   # Extract the first word of "ar", so it can be a program name with args.
6733 set dummy ar; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6737   $as_echo_n "(cached) " >&6
6738 else
6739   if test -n "$ac_ct_AR"; then
6740   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745   IFS=$as_save_IFS
6746   test -z "$as_dir" && as_dir=.
6747     for ac_exec_ext in '' $ac_executable_extensions; do
6748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749     ac_cv_prog_ac_ct_AR="ar"
6750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754   done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6760 if test -n "$ac_ct_AR"; then
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6762 $as_echo "$ac_ct_AR" >&6; }
6763 else
6764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768   if test "x$ac_ct_AR" = x; then
6769     AR="false"
6770   else
6771     case $cross_compiling:$ac_tool_warned in
6772 yes:)
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777     AR=$ac_ct_AR
6778   fi
6779 else
6780   AR="$ac_cv_prog_AR"
6781 fi
6782
6783 test -z "$AR" && AR=ar
6784 test -z "$AR_FLAGS" && AR_FLAGS=cru
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796 if test -n "$ac_tool_prefix"; then
6797   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6798 set dummy ${ac_tool_prefix}strip; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if ${ac_cv_prog_STRIP+:} false; then :
6802   $as_echo_n "(cached) " >&6
6803 else
6804   if test -n "$STRIP"; then
6805   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6809 do
6810   IFS=$as_save_IFS
6811   test -z "$as_dir" && as_dir=.
6812     for ac_exec_ext in '' $ac_executable_extensions; do
6813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816     break 2
6817   fi
6818 done
6819   done
6820 IFS=$as_save_IFS
6821
6822 fi
6823 fi
6824 STRIP=$ac_cv_prog_STRIP
6825 if test -n "$STRIP"; then
6826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6827 $as_echo "$STRIP" >&6; }
6828 else
6829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6831 fi
6832
6833
6834 fi
6835 if test -z "$ac_cv_prog_STRIP"; then
6836   ac_ct_STRIP=$STRIP
6837   # Extract the first word of "strip", so it can be a program name with args.
6838 set dummy strip; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6842   $as_echo_n "(cached) " >&6
6843 else
6844   if test -n "$ac_ct_STRIP"; then
6845   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850   IFS=$as_save_IFS
6851   test -z "$as_dir" && as_dir=.
6852     for ac_exec_ext in '' $ac_executable_extensions; do
6853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854     ac_cv_prog_ac_ct_STRIP="strip"
6855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856     break 2
6857   fi
6858 done
6859   done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6865 if test -n "$ac_ct_STRIP"; then
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6867 $as_echo "$ac_ct_STRIP" >&6; }
6868 else
6869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6871 fi
6872
6873   if test "x$ac_ct_STRIP" = x; then
6874     STRIP=":"
6875   else
6876     case $cross_compiling:$ac_tool_warned in
6877 yes:)
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880 ac_tool_warned=yes ;;
6881 esac
6882     STRIP=$ac_ct_STRIP
6883   fi
6884 else
6885   STRIP="$ac_cv_prog_STRIP"
6886 fi
6887
6888 test -z "$STRIP" && STRIP=:
6889
6890
6891
6892
6893
6894
6895 if test -n "$ac_tool_prefix"; then
6896   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6897 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899 $as_echo_n "checking for $ac_word... " >&6; }
6900 if ${ac_cv_prog_RANLIB+:} false; then :
6901   $as_echo_n "(cached) " >&6
6902 else
6903   if test -n "$RANLIB"; then
6904   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909   IFS=$as_save_IFS
6910   test -z "$as_dir" && as_dir=.
6911     for ac_exec_ext in '' $ac_executable_extensions; do
6912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6913     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915     break 2
6916   fi
6917 done
6918   done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 RANLIB=$ac_cv_prog_RANLIB
6924 if test -n "$RANLIB"; then
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6926 $as_echo "$RANLIB" >&6; }
6927 else
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929 $as_echo "no" >&6; }
6930 fi
6931
6932
6933 fi
6934 if test -z "$ac_cv_prog_RANLIB"; then
6935   ac_ct_RANLIB=$RANLIB
6936   # Extract the first word of "ranlib", so it can be a program name with args.
6937 set dummy ranlib; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6941   $as_echo_n "(cached) " >&6
6942 else
6943   if test -n "$ac_ct_RANLIB"; then
6944   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949   IFS=$as_save_IFS
6950   test -z "$as_dir" && as_dir=.
6951     for ac_exec_ext in '' $ac_executable_extensions; do
6952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953     ac_cv_prog_ac_ct_RANLIB="ranlib"
6954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955     break 2
6956   fi
6957 done
6958   done
6959 IFS=$as_save_IFS
6960
6961 fi
6962 fi
6963 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6964 if test -n "$ac_ct_RANLIB"; then
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6966 $as_echo "$ac_ct_RANLIB" >&6; }
6967 else
6968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6970 fi
6971
6972   if test "x$ac_ct_RANLIB" = x; then
6973     RANLIB=":"
6974   else
6975     case $cross_compiling:$ac_tool_warned in
6976 yes:)
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979 ac_tool_warned=yes ;;
6980 esac
6981     RANLIB=$ac_ct_RANLIB
6982   fi
6983 else
6984   RANLIB="$ac_cv_prog_RANLIB"
6985 fi
6986
6987 test -z "$RANLIB" && RANLIB=:
6988
6989
6990
6991
6992
6993
6994 # Determine commands to create old-style static archives.
6995 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6996 old_postinstall_cmds='chmod 644 $oldlib'
6997 old_postuninstall_cmds=
6998
6999 if test -n "$RANLIB"; then
7000   case $host_os in
7001   openbsd*)
7002     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7003     ;;
7004   *)
7005     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7006     ;;
7007   esac
7008   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7009 fi
7010
7011 case $host_os in
7012   darwin*)
7013     lock_old_archive_extraction=yes ;;
7014   *)
7015     lock_old_archive_extraction=no ;;
7016 esac
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056 # If no C compiler was specified, use CC.
7057 LTCC=${LTCC-"$CC"}
7058
7059 # If no C compiler flags were specified, use CFLAGS.
7060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7061
7062 # Allow CC to be a program name with arguments.
7063 compiler=$CC
7064
7065
7066 # Check for command to grab the raw symbol name followed by C symbol from nm.
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7068 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7069 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7070   $as_echo_n "(cached) " >&6
7071 else
7072
7073 # These are sane defaults that work on at least a few old systems.
7074 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7075
7076 # Character class describing NM global symbol codes.
7077 symcode='[BCDEGRST]'
7078
7079 # Regexp to match symbols that can be accessed directly from C.
7080 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7081
7082 # Define system-specific variables.
7083 case $host_os in
7084 aix*)
7085   symcode='[BCDT]'
7086   ;;
7087 cygwin* | mingw* | pw32* | cegcc*)
7088   symcode='[ABCDGISTW]'
7089   ;;
7090 hpux*)
7091   if test "$host_cpu" = ia64; then
7092     symcode='[ABCDEGRST]'
7093   fi
7094   ;;
7095 irix* | nonstopux*)
7096   symcode='[BCDEGRST]'
7097   ;;
7098 osf*)
7099   symcode='[BCDEGQRST]'
7100   ;;
7101 solaris*)
7102   symcode='[BDRT]'
7103   ;;
7104 sco3.2v5*)
7105   symcode='[DT]'
7106   ;;
7107 sysv4.2uw2*)
7108   symcode='[DT]'
7109   ;;
7110 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7111   symcode='[ABDT]'
7112   ;;
7113 sysv4)
7114   symcode='[DFNSTU]'
7115   ;;
7116 esac
7117
7118 # If we're using GNU nm, then use its standard symbol codes.
7119 case `$NM -V 2>&1` in
7120 *GNU* | *'with BFD'*)
7121   symcode='[ABCDGIRSTW]' ;;
7122 esac
7123
7124 # Transform an extracted symbol line into a proper C declaration.
7125 # Some systems (esp. on ia64) link data and code symbols differently,
7126 # so use this general approach.
7127 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7128
7129 # Transform an extracted symbol line into symbol name and symbol address
7130 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7131 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'"
7132
7133 # Handle CRLF in mingw tool chain
7134 opt_cr=
7135 case $build_os in
7136 mingw*)
7137   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7138   ;;
7139 esac
7140
7141 # Try without a prefix underscore, then with it.
7142 for ac_symprfx in "" "_"; do
7143
7144   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7145   symxfrm="\\1 $ac_symprfx\\2 \\2"
7146
7147   # Write the raw and C identifiers.
7148   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7149     # Fake it for dumpbin and say T for any non-static function
7150     # and D for any global variable.
7151     # Also find C++ and __fastcall symbols from MSVC++,
7152     # which start with @ or ?.
7153     lt_cv_sys_global_symbol_pipe="$AWK '"\
7154 "     {last_section=section; section=\$ 3};"\
7155 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7156 "     \$ 0!~/External *\|/{next};"\
7157 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7158 "     {if(hide[section]) next};"\
7159 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7160 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7161 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7162 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7163 "     ' prfx=^$ac_symprfx"
7164   else
7165     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7166   fi
7167
7168   # Check to see that the pipe works correctly.
7169   pipe_works=no
7170
7171   rm -f conftest*
7172   cat > conftest.$ac_ext <<_LT_EOF
7173 #ifdef __cplusplus
7174 extern "C" {
7175 #endif
7176 char nm_test_var;
7177 void nm_test_func(void);
7178 void nm_test_func(void){}
7179 #ifdef __cplusplus
7180 }
7181 #endif
7182 int main(){nm_test_var='a';nm_test_func();return(0);}
7183 _LT_EOF
7184
7185   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7186   (eval $ac_compile) 2>&5
7187   ac_status=$?
7188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189   test $ac_status = 0; }; then
7190     # Now try to grab the symbols.
7191     nlist=conftest.nm
7192     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7193   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7194   ac_status=$?
7195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196   test $ac_status = 0; } && test -s "$nlist"; then
7197       # Try sorting and uniquifying the output.
7198       if sort "$nlist" | uniq > "$nlist"T; then
7199         mv -f "$nlist"T "$nlist"
7200       else
7201         rm -f "$nlist"T
7202       fi
7203
7204       # Make sure that we snagged all the symbols we need.
7205       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7206         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7207           cat <<_LT_EOF > conftest.$ac_ext
7208 #ifdef __cplusplus
7209 extern "C" {
7210 #endif
7211
7212 _LT_EOF
7213           # Now generate the symbol file.
7214           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7215
7216           cat <<_LT_EOF >> conftest.$ac_ext
7217
7218 /* The mapping between symbol names and symbols.  */
7219 const struct {
7220   const char *name;
7221   void       *address;
7222 }
7223 lt__PROGRAM__LTX_preloaded_symbols[] =
7224 {
7225   { "@PROGRAM@", (void *) 0 },
7226 _LT_EOF
7227           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7228           cat <<\_LT_EOF >> conftest.$ac_ext
7229   {0, (void *) 0}
7230 };
7231
7232 /* This works around a problem in FreeBSD linker */
7233 #ifdef FREEBSD_WORKAROUND
7234 static const void *lt_preloaded_setup() {
7235   return lt__PROGRAM__LTX_preloaded_symbols;
7236 }
7237 #endif
7238
7239 #ifdef __cplusplus
7240 }
7241 #endif
7242 _LT_EOF
7243           # Now try linking the two files.
7244           mv conftest.$ac_objext conftstm.$ac_objext
7245           lt_save_LIBS="$LIBS"
7246           lt_save_CFLAGS="$CFLAGS"
7247           LIBS="conftstm.$ac_objext"
7248           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7249           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7250   (eval $ac_link) 2>&5
7251   ac_status=$?
7252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7254             pipe_works=yes
7255           fi
7256           LIBS="$lt_save_LIBS"
7257           CFLAGS="$lt_save_CFLAGS"
7258         else
7259           echo "cannot find nm_test_func in $nlist" >&5
7260         fi
7261       else
7262         echo "cannot find nm_test_var in $nlist" >&5
7263       fi
7264     else
7265       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7266     fi
7267   else
7268     echo "$progname: failed program was:" >&5
7269     cat conftest.$ac_ext >&5
7270   fi
7271   rm -rf conftest* conftst*
7272
7273   # Do not use the global_symbol_pipe unless it works.
7274   if test "$pipe_works" = yes; then
7275     break
7276   else
7277     lt_cv_sys_global_symbol_pipe=
7278   fi
7279 done
7280
7281 fi
7282
7283 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7284   lt_cv_sys_global_symbol_to_cdecl=
7285 fi
7286 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7288 $as_echo "failed" >&6; }
7289 else
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7291 $as_echo "ok" >&6; }
7292 fi
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315 # Check whether --enable-libtool-lock was given.
7316 if test "${enable_libtool_lock+set}" = set; then :
7317   enableval=$enable_libtool_lock;
7318 fi
7319
7320 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7321
7322 # Some flags need to be propagated to the compiler or linker for good
7323 # libtool support.
7324 case $host in
7325 ia64-*-hpux*)
7326   # Find out which ABI we are using.
7327   echo 'int i;' > conftest.$ac_ext
7328   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7329   (eval $ac_compile) 2>&5
7330   ac_status=$?
7331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7332   test $ac_status = 0; }; then
7333     case `/usr/bin/file conftest.$ac_objext` in
7334       *ELF-32*)
7335         HPUX_IA64_MODE="32"
7336         ;;
7337       *ELF-64*)
7338         HPUX_IA64_MODE="64"
7339         ;;
7340     esac
7341   fi
7342   rm -rf conftest*
7343   ;;
7344 *-*-irix6*)
7345   # Find out which ABI we are using.
7346   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7347   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7348   (eval $ac_compile) 2>&5
7349   ac_status=$?
7350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351   test $ac_status = 0; }; then
7352     if test "$lt_cv_prog_gnu_ld" = yes; then
7353       case `/usr/bin/file conftest.$ac_objext` in
7354         *32-bit*)
7355           LD="${LD-ld} -melf32bsmip"
7356           ;;
7357         *N32*)
7358           LD="${LD-ld} -melf32bmipn32"
7359           ;;
7360         *64-bit*)
7361           LD="${LD-ld} -melf64bmip"
7362         ;;
7363       esac
7364     else
7365       case `/usr/bin/file conftest.$ac_objext` in
7366         *32-bit*)
7367           LD="${LD-ld} -32"
7368           ;;
7369         *N32*)
7370           LD="${LD-ld} -n32"
7371           ;;
7372         *64-bit*)
7373           LD="${LD-ld} -64"
7374           ;;
7375       esac
7376     fi
7377   fi
7378   rm -rf conftest*
7379   ;;
7380
7381 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7382 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7383   # Find out which ABI we are using.
7384   echo 'int i;' > conftest.$ac_ext
7385   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7386   (eval $ac_compile) 2>&5
7387   ac_status=$?
7388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7389   test $ac_status = 0; }; then
7390     case `/usr/bin/file conftest.o` in
7391       *32-bit*)
7392         case $host in
7393           x86_64-*kfreebsd*-gnu)
7394             LD="${LD-ld} -m elf_i386_fbsd"
7395             ;;
7396           x86_64-*linux*)
7397             case `/usr/bin/file conftest.o` in
7398               *x86-64*)
7399                 LD="${LD-ld} -m elf32_x86_64"
7400                 ;;
7401               *)
7402                 LD="${LD-ld} -m elf_i386"
7403                 ;;
7404             esac
7405             ;;
7406           powerpc64le-*linux*)
7407             LD="${LD-ld} -m elf32lppclinux"
7408             ;;
7409           powerpc64-*linux*)
7410             LD="${LD-ld} -m elf32ppclinux"
7411             ;;
7412           s390x-*linux*)
7413             LD="${LD-ld} -m elf_s390"
7414             ;;
7415           sparc64-*linux*)
7416             LD="${LD-ld} -m elf32_sparc"
7417             ;;
7418         esac
7419         ;;
7420       *64-bit*)
7421         case $host in
7422           x86_64-*kfreebsd*-gnu)
7423             LD="${LD-ld} -m elf_x86_64_fbsd"
7424             ;;
7425           x86_64-*linux*)
7426             LD="${LD-ld} -m elf_x86_64"
7427             ;;
7428           powerpcle-*linux*)
7429             LD="${LD-ld} -m elf64lppc"
7430             ;;
7431           powerpc-*linux*)
7432             LD="${LD-ld} -m elf64ppc"
7433             ;;
7434           s390*-*linux*|s390*-*tpf*)
7435             LD="${LD-ld} -m elf64_s390"
7436             ;;
7437           sparc*-*linux*)
7438             LD="${LD-ld} -m elf64_sparc"
7439             ;;
7440         esac
7441         ;;
7442     esac
7443   fi
7444   rm -rf conftest*
7445   ;;
7446
7447 *-*-sco3.2v5*)
7448   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7449   SAVE_CFLAGS="$CFLAGS"
7450   CFLAGS="$CFLAGS -belf"
7451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7452 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7453 if ${lt_cv_cc_needs_belf+:} false; then :
7454   $as_echo_n "(cached) " >&6
7455 else
7456   ac_ext=c
7457 ac_cpp='$CPP $CPPFLAGS'
7458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
7462      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h.  */
7464
7465 int
7466 main ()
7467 {
7468
7469   ;
7470   return 0;
7471 }
7472 _ACEOF
7473 if ac_fn_c_try_link "$LINENO"; then :
7474   lt_cv_cc_needs_belf=yes
7475 else
7476   lt_cv_cc_needs_belf=no
7477 fi
7478 rm -f core conftest.err conftest.$ac_objext \
7479     conftest$ac_exeext conftest.$ac_ext
7480      ac_ext=c
7481 ac_cpp='$CPP $CPPFLAGS'
7482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7485
7486 fi
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7488 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7489   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7490     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7491     CFLAGS="$SAVE_CFLAGS"
7492   fi
7493   ;;
7494 sparc*-*solaris*)
7495   # Find out which ABI we are using.
7496   echo 'int i;' > conftest.$ac_ext
7497   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7498   (eval $ac_compile) 2>&5
7499   ac_status=$?
7500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7501   test $ac_status = 0; }; then
7502     case `/usr/bin/file conftest.o` in
7503     *64-bit*)
7504       case $lt_cv_prog_gnu_ld in
7505       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7506       *)
7507         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7508           LD="${LD-ld} -64"
7509         fi
7510         ;;
7511       esac
7512       ;;
7513     esac
7514   fi
7515   rm -rf conftest*
7516   ;;
7517 esac
7518
7519 need_locks="$enable_libtool_lock"
7520
7521
7522   case $host_os in
7523     rhapsody* | darwin*)
7524     if test -n "$ac_tool_prefix"; then
7525   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7526 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7528 $as_echo_n "checking for $ac_word... " >&6; }
7529 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7530   $as_echo_n "(cached) " >&6
7531 else
7532   if test -n "$DSYMUTIL"; then
7533   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7534 else
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7536 for as_dir in $PATH
7537 do
7538   IFS=$as_save_IFS
7539   test -z "$as_dir" && as_dir=.
7540     for ac_exec_ext in '' $ac_executable_extensions; do
7541   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7542     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544     break 2
7545   fi
7546 done
7547   done
7548 IFS=$as_save_IFS
7549
7550 fi
7551 fi
7552 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7553 if test -n "$DSYMUTIL"; then
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7555 $as_echo "$DSYMUTIL" >&6; }
7556 else
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7559 fi
7560
7561
7562 fi
7563 if test -z "$ac_cv_prog_DSYMUTIL"; then
7564   ac_ct_DSYMUTIL=$DSYMUTIL
7565   # Extract the first word of "dsymutil", so it can be a program name with args.
7566 set dummy dsymutil; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7570   $as_echo_n "(cached) " >&6
7571 else
7572   if test -n "$ac_ct_DSYMUTIL"; then
7573   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578   IFS=$as_save_IFS
7579   test -z "$as_dir" && as_dir=.
7580     for ac_exec_ext in '' $ac_executable_extensions; do
7581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584     break 2
7585   fi
7586 done
7587   done
7588 IFS=$as_save_IFS
7589
7590 fi
7591 fi
7592 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7593 if test -n "$ac_ct_DSYMUTIL"; then
7594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7595 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7596 else
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7599 fi
7600
7601   if test "x$ac_ct_DSYMUTIL" = x; then
7602     DSYMUTIL=":"
7603   else
7604     case $cross_compiling:$ac_tool_warned in
7605 yes:)
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7608 ac_tool_warned=yes ;;
7609 esac
7610     DSYMUTIL=$ac_ct_DSYMUTIL
7611   fi
7612 else
7613   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7614 fi
7615
7616     if test -n "$ac_tool_prefix"; then
7617   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7618 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_prog_NMEDIT+:} false; then :
7622   $as_echo_n "(cached) " >&6
7623 else
7624   if test -n "$NMEDIT"; then
7625   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630   IFS=$as_save_IFS
7631   test -z "$as_dir" && as_dir=.
7632     for ac_exec_ext in '' $ac_executable_extensions; do
7633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636     break 2
7637   fi
7638 done
7639   done
7640 IFS=$as_save_IFS
7641
7642 fi
7643 fi
7644 NMEDIT=$ac_cv_prog_NMEDIT
7645 if test -n "$NMEDIT"; then
7646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7647 $as_echo "$NMEDIT" >&6; }
7648 else
7649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652
7653
7654 fi
7655 if test -z "$ac_cv_prog_NMEDIT"; then
7656   ac_ct_NMEDIT=$NMEDIT
7657   # Extract the first word of "nmedit", so it can be a program name with args.
7658 set dummy nmedit; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7660 $as_echo_n "checking for $ac_word... " >&6; }
7661 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7662   $as_echo_n "(cached) " >&6
7663 else
7664   if test -n "$ac_ct_NMEDIT"; then
7665   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7666 else
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670   IFS=$as_save_IFS
7671   test -z "$as_dir" && as_dir=.
7672     for ac_exec_ext in '' $ac_executable_extensions; do
7673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676     break 2
7677   fi
7678 done
7679   done
7680 IFS=$as_save_IFS
7681
7682 fi
7683 fi
7684 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7685 if test -n "$ac_ct_NMEDIT"; then
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7687 $as_echo "$ac_ct_NMEDIT" >&6; }
7688 else
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7691 fi
7692
7693   if test "x$ac_ct_NMEDIT" = x; then
7694     NMEDIT=":"
7695   else
7696     case $cross_compiling:$ac_tool_warned in
7697 yes:)
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7699 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7700 ac_tool_warned=yes ;;
7701 esac
7702     NMEDIT=$ac_ct_NMEDIT
7703   fi
7704 else
7705   NMEDIT="$ac_cv_prog_NMEDIT"
7706 fi
7707
7708     if test -n "$ac_tool_prefix"; then
7709   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7710 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_prog_LIPO+:} false; then :
7714   $as_echo_n "(cached) " >&6
7715 else
7716   if test -n "$LIPO"; then
7717   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722   IFS=$as_save_IFS
7723   test -z "$as_dir" && as_dir=.
7724     for ac_exec_ext in '' $ac_executable_extensions; do
7725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728     break 2
7729   fi
7730 done
7731   done
7732 IFS=$as_save_IFS
7733
7734 fi
7735 fi
7736 LIPO=$ac_cv_prog_LIPO
7737 if test -n "$LIPO"; then
7738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7739 $as_echo "$LIPO" >&6; }
7740 else
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745
7746 fi
7747 if test -z "$ac_cv_prog_LIPO"; then
7748   ac_ct_LIPO=$LIPO
7749   # Extract the first word of "lipo", so it can be a program name with args.
7750 set dummy lipo; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7752 $as_echo_n "checking for $ac_word... " >&6; }
7753 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7754   $as_echo_n "(cached) " >&6
7755 else
7756   if test -n "$ac_ct_LIPO"; then
7757   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7758 else
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7761 do
7762   IFS=$as_save_IFS
7763   test -z "$as_dir" && as_dir=.
7764     for ac_exec_ext in '' $ac_executable_extensions; do
7765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766     ac_cv_prog_ac_ct_LIPO="lipo"
7767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7768     break 2
7769   fi
7770 done
7771   done
7772 IFS=$as_save_IFS
7773
7774 fi
7775 fi
7776 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7777 if test -n "$ac_ct_LIPO"; then
7778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7779 $as_echo "$ac_ct_LIPO" >&6; }
7780 else
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7782 $as_echo "no" >&6; }
7783 fi
7784
7785   if test "x$ac_ct_LIPO" = x; then
7786     LIPO=":"
7787   else
7788     case $cross_compiling:$ac_tool_warned in
7789 yes:)
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7792 ac_tool_warned=yes ;;
7793 esac
7794     LIPO=$ac_ct_LIPO
7795   fi
7796 else
7797   LIPO="$ac_cv_prog_LIPO"
7798 fi
7799
7800     if test -n "$ac_tool_prefix"; then
7801   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7802 set dummy ${ac_tool_prefix}otool; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if ${ac_cv_prog_OTOOL+:} false; then :
7806   $as_echo_n "(cached) " >&6
7807 else
7808   if test -n "$OTOOL"; then
7809   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814   IFS=$as_save_IFS
7815   test -z "$as_dir" && as_dir=.
7816     for ac_exec_ext in '' $ac_executable_extensions; do
7817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820     break 2
7821   fi
7822 done
7823   done
7824 IFS=$as_save_IFS
7825
7826 fi
7827 fi
7828 OTOOL=$ac_cv_prog_OTOOL
7829 if test -n "$OTOOL"; then
7830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7831 $as_echo "$OTOOL" >&6; }
7832 else
7833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7835 fi
7836
7837
7838 fi
7839 if test -z "$ac_cv_prog_OTOOL"; then
7840   ac_ct_OTOOL=$OTOOL
7841   # Extract the first word of "otool", so it can be a program name with args.
7842 set dummy otool; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7846   $as_echo_n "(cached) " >&6
7847 else
7848   if test -n "$ac_ct_OTOOL"; then
7849   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7850 else
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7853 do
7854   IFS=$as_save_IFS
7855   test -z "$as_dir" && as_dir=.
7856     for ac_exec_ext in '' $ac_executable_extensions; do
7857   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858     ac_cv_prog_ac_ct_OTOOL="otool"
7859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860     break 2
7861   fi
7862 done
7863   done
7864 IFS=$as_save_IFS
7865
7866 fi
7867 fi
7868 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7869 if test -n "$ac_ct_OTOOL"; then
7870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7871 $as_echo "$ac_ct_OTOOL" >&6; }
7872 else
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7875 fi
7876
7877   if test "x$ac_ct_OTOOL" = x; then
7878     OTOOL=":"
7879   else
7880     case $cross_compiling:$ac_tool_warned in
7881 yes:)
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7884 ac_tool_warned=yes ;;
7885 esac
7886     OTOOL=$ac_ct_OTOOL
7887   fi
7888 else
7889   OTOOL="$ac_cv_prog_OTOOL"
7890 fi
7891
7892     if test -n "$ac_tool_prefix"; then
7893   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7894 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if ${ac_cv_prog_OTOOL64+:} false; then :
7898   $as_echo_n "(cached) " >&6
7899 else
7900   if test -n "$OTOOL64"; then
7901   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906   IFS=$as_save_IFS
7907   test -z "$as_dir" && as_dir=.
7908     for ac_exec_ext in '' $ac_executable_extensions; do
7909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912     break 2
7913   fi
7914 done
7915   done
7916 IFS=$as_save_IFS
7917
7918 fi
7919 fi
7920 OTOOL64=$ac_cv_prog_OTOOL64
7921 if test -n "$OTOOL64"; then
7922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7923 $as_echo "$OTOOL64" >&6; }
7924 else
7925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7927 fi
7928
7929
7930 fi
7931 if test -z "$ac_cv_prog_OTOOL64"; then
7932   ac_ct_OTOOL64=$OTOOL64
7933   # Extract the first word of "otool64", so it can be a program name with args.
7934 set dummy otool64; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7936 $as_echo_n "checking for $ac_word... " >&6; }
7937 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7938   $as_echo_n "(cached) " >&6
7939 else
7940   if test -n "$ac_ct_OTOOL64"; then
7941   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7942 else
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7945 do
7946   IFS=$as_save_IFS
7947   test -z "$as_dir" && as_dir=.
7948     for ac_exec_ext in '' $ac_executable_extensions; do
7949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950     ac_cv_prog_ac_ct_OTOOL64="otool64"
7951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952     break 2
7953   fi
7954 done
7955   done
7956 IFS=$as_save_IFS
7957
7958 fi
7959 fi
7960 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7961 if test -n "$ac_ct_OTOOL64"; then
7962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7963 $as_echo "$ac_ct_OTOOL64" >&6; }
7964 else
7965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966 $as_echo "no" >&6; }
7967 fi
7968
7969   if test "x$ac_ct_OTOOL64" = x; then
7970     OTOOL64=":"
7971   else
7972     case $cross_compiling:$ac_tool_warned in
7973 yes:)
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7976 ac_tool_warned=yes ;;
7977 esac
7978     OTOOL64=$ac_ct_OTOOL64
7979   fi
7980 else
7981   OTOOL64="$ac_cv_prog_OTOOL64"
7982 fi
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8011 $as_echo_n "checking for -single_module linker flag... " >&6; }
8012 if ${lt_cv_apple_cc_single_mod+:} false; then :
8013   $as_echo_n "(cached) " >&6
8014 else
8015   lt_cv_apple_cc_single_mod=no
8016       if test -z "${LT_MULTI_MODULE}"; then
8017         # By default we will add the -single_module flag. You can override
8018         # by either setting the environment variable LT_MULTI_MODULE
8019         # non-empty at configure time, or by adding -multi_module to the
8020         # link flags.
8021         rm -rf libconftest.dylib*
8022         echo "int foo(void){return 1;}" > conftest.c
8023         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8024 -dynamiclib -Wl,-single_module conftest.c" >&5
8025         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8026           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8027         _lt_result=$?
8028         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8029           lt_cv_apple_cc_single_mod=yes
8030         else
8031           cat conftest.err >&5
8032         fi
8033         rm -rf libconftest.dylib*
8034         rm -f conftest.*
8035       fi
8036 fi
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8038 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8040 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8041 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8042   $as_echo_n "(cached) " >&6
8043 else
8044   lt_cv_ld_exported_symbols_list=no
8045       save_LDFLAGS=$LDFLAGS
8046       echo "_main" > conftest.sym
8047       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8048       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h.  */
8050
8051 int
8052 main ()
8053 {
8054
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 if ac_fn_c_try_link "$LINENO"; then :
8060   lt_cv_ld_exported_symbols_list=yes
8061 else
8062   lt_cv_ld_exported_symbols_list=no
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext \
8065     conftest$ac_exeext conftest.$ac_ext
8066         LDFLAGS="$save_LDFLAGS"
8067
8068 fi
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8070 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8072 $as_echo_n "checking for -force_load linker flag... " >&6; }
8073 if ${lt_cv_ld_force_load+:} false; then :
8074   $as_echo_n "(cached) " >&6
8075 else
8076   lt_cv_ld_force_load=no
8077       cat > conftest.c << _LT_EOF
8078 int forced_loaded() { return 2;}
8079 _LT_EOF
8080       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8081       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8082       echo "$AR cru libconftest.a conftest.o" >&5
8083       $AR cru libconftest.a conftest.o 2>&5
8084       cat > conftest.c << _LT_EOF
8085 int main() { return 0;}
8086 _LT_EOF
8087       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8088       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8089       _lt_result=$?
8090       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8091         lt_cv_ld_force_load=yes
8092       else
8093         cat conftest.err >&5
8094       fi
8095         rm -f conftest.err libconftest.a conftest conftest.c
8096         rm -rf conftest.dSYM
8097
8098 fi
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8100 $as_echo "$lt_cv_ld_force_load" >&6; }
8101     case $host_os in
8102     rhapsody* | darwin1.[012])
8103       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8104     darwin1.*)
8105       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8106     darwin*) # darwin 5.x on
8107       # if running on 10.5 or later, the deployment target defaults
8108       # to the OS version, if on x86, and 10.4, the deployment
8109       # target defaults to 10.4. Don't you love it?
8110       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8111         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8112           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8113         10.[012][,.]*)
8114           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8115         10.*)
8116           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8117       esac
8118     ;;
8119   esac
8120     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8121       _lt_dar_single_mod='$single_module'
8122     fi
8123     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8124       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8125     else
8126       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8127     fi
8128     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8129       _lt_dsymutil='~$DSYMUTIL $lib || :'
8130     else
8131       _lt_dsymutil=
8132     fi
8133     ;;
8134   esac
8135
8136 for ac_header in dlfcn.h
8137 do :
8138   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8139 "
8140 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8141   cat >>confdefs.h <<_ACEOF
8142 #define HAVE_DLFCN_H 1
8143 _ACEOF
8144
8145 fi
8146
8147 done
8148
8149
8150
8151
8152
8153 # Set options
8154 enable_dlopen=yes
8155
8156
8157
8158
8159   enable_win32_dll=no
8160
8161
8162             # Check whether --enable-shared was given.
8163 if test "${enable_shared+set}" = set; then :
8164   enableval=$enable_shared; p=${PACKAGE-default}
8165     case $enableval in
8166     yes) enable_shared=yes ;;
8167     no) enable_shared=no ;;
8168     *)
8169       enable_shared=no
8170       # Look at the argument we got.  We use all the common list separators.
8171       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8172       for pkg in $enableval; do
8173         IFS="$lt_save_ifs"
8174         if test "X$pkg" = "X$p"; then
8175           enable_shared=yes
8176         fi
8177       done
8178       IFS="$lt_save_ifs"
8179       ;;
8180     esac
8181 else
8182   enable_shared=yes
8183 fi
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193   # Check whether --enable-static was given.
8194 if test "${enable_static+set}" = set; then :
8195   enableval=$enable_static; p=${PACKAGE-default}
8196     case $enableval in
8197     yes) enable_static=yes ;;
8198     no) enable_static=no ;;
8199     *)
8200      enable_static=no
8201       # Look at the argument we got.  We use all the common list separators.
8202       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8203       for pkg in $enableval; do
8204         IFS="$lt_save_ifs"
8205         if test "X$pkg" = "X$p"; then
8206           enable_static=yes
8207         fi
8208       done
8209       IFS="$lt_save_ifs"
8210       ;;
8211     esac
8212 else
8213   enable_static=yes
8214 fi
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225 # Check whether --with-pic was given.
8226 if test "${with_pic+set}" = set; then :
8227   withval=$with_pic; pic_mode="$withval"
8228 else
8229   pic_mode=default
8230 fi
8231
8232
8233 test -z "$pic_mode" && pic_mode=default
8234
8235
8236
8237
8238
8239
8240
8241   # Check whether --enable-fast-install was given.
8242 if test "${enable_fast_install+set}" = set; then :
8243   enableval=$enable_fast_install; p=${PACKAGE-default}
8244     case $enableval in
8245     yes) enable_fast_install=yes ;;
8246     no) enable_fast_install=no ;;
8247     *)
8248       enable_fast_install=no
8249       # Look at the argument we got.  We use all the common list separators.
8250       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8251       for pkg in $enableval; do
8252         IFS="$lt_save_ifs"
8253         if test "X$pkg" = "X$p"; then
8254           enable_fast_install=yes
8255         fi
8256       done
8257       IFS="$lt_save_ifs"
8258       ;;
8259     esac
8260 else
8261   enable_fast_install=yes
8262 fi
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274 # This can be used to rebuild libtool when needed
8275 LIBTOOL_DEPS="$ltmain"
8276
8277 # Always use our own libtool.
8278 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305 test -z "$LN_S" && LN_S="ln -s"
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320 if test -n "${ZSH_VERSION+set}" ; then
8321    setopt NO_GLOB_SUBST
8322 fi
8323
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8325 $as_echo_n "checking for objdir... " >&6; }
8326 if ${lt_cv_objdir+:} false; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   rm -f .libs 2>/dev/null
8330 mkdir .libs 2>/dev/null
8331 if test -d .libs; then
8332   lt_cv_objdir=.libs
8333 else
8334   # MS-DOS does not allow filenames that begin with a dot.
8335   lt_cv_objdir=_libs
8336 fi
8337 rmdir .libs 2>/dev/null
8338 fi
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8340 $as_echo "$lt_cv_objdir" >&6; }
8341 objdir=$lt_cv_objdir
8342
8343
8344
8345
8346
8347 cat >>confdefs.h <<_ACEOF
8348 #define LT_OBJDIR "$lt_cv_objdir/"
8349 _ACEOF
8350
8351
8352
8353
8354 case $host_os in
8355 aix3*)
8356   # AIX sometimes has problems with the GCC collect2 program.  For some
8357   # reason, if we set the COLLECT_NAMES environment variable, the problems
8358   # vanish in a puff of smoke.
8359   if test "X${COLLECT_NAMES+set}" != Xset; then
8360     COLLECT_NAMES=
8361     export COLLECT_NAMES
8362   fi
8363   ;;
8364 esac
8365
8366 # Global variables:
8367 ofile=libtool
8368 can_build_shared=yes
8369
8370 # All known linkers require a `.a' archive for static linking (except MSVC,
8371 # which needs '.lib').
8372 libext=a
8373
8374 with_gnu_ld="$lt_cv_prog_gnu_ld"
8375
8376 old_CC="$CC"
8377 old_CFLAGS="$CFLAGS"
8378
8379 # Set sane defaults for various variables
8380 test -z "$CC" && CC=cc
8381 test -z "$LTCC" && LTCC=$CC
8382 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8383 test -z "$LD" && LD=ld
8384 test -z "$ac_objext" && ac_objext=o
8385
8386 for cc_temp in $compiler""; do
8387   case $cc_temp in
8388     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8389     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8390     \-*) ;;
8391     *) break;;
8392   esac
8393 done
8394 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8395
8396
8397 # Only perform the check for file, if the check method requires it
8398 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8399 case $deplibs_check_method in
8400 file_magic*)
8401   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8403 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8404 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8405   $as_echo_n "(cached) " >&6
8406 else
8407   case $MAGIC_CMD in
8408 [\\/*] |  ?:[\\/]*)
8409   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8410   ;;
8411 *)
8412   lt_save_MAGIC_CMD="$MAGIC_CMD"
8413   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8414   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8415   for ac_dir in $ac_dummy; do
8416     IFS="$lt_save_ifs"
8417     test -z "$ac_dir" && ac_dir=.
8418     if test -f $ac_dir/${ac_tool_prefix}file; then
8419       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8420       if test -n "$file_magic_test_file"; then
8421         case $deplibs_check_method in
8422         "file_magic "*)
8423           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8424           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8425           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8426             $EGREP "$file_magic_regex" > /dev/null; then
8427             :
8428           else
8429             cat <<_LT_EOF 1>&2
8430
8431 *** Warning: the command libtool uses to detect shared libraries,
8432 *** $file_magic_cmd, produces output that libtool cannot recognize.
8433 *** The result is that libtool may fail to recognize shared libraries
8434 *** as such.  This will affect the creation of libtool libraries that
8435 *** depend on shared libraries, but programs linked with such libtool
8436 *** libraries will work regardless of this problem.  Nevertheless, you
8437 *** may want to report the problem to your system manager and/or to
8438 *** bug-libtool@gnu.org
8439
8440 _LT_EOF
8441           fi ;;
8442         esac
8443       fi
8444       break
8445     fi
8446   done
8447   IFS="$lt_save_ifs"
8448   MAGIC_CMD="$lt_save_MAGIC_CMD"
8449   ;;
8450 esac
8451 fi
8452
8453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8454 if test -n "$MAGIC_CMD"; then
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8456 $as_echo "$MAGIC_CMD" >&6; }
8457 else
8458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8460 fi
8461
8462
8463
8464
8465
8466 if test -z "$lt_cv_path_MAGIC_CMD"; then
8467   if test -n "$ac_tool_prefix"; then
8468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8469 $as_echo_n "checking for file... " >&6; }
8470 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8471   $as_echo_n "(cached) " >&6
8472 else
8473   case $MAGIC_CMD in
8474 [\\/*] |  ?:[\\/]*)
8475   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8476   ;;
8477 *)
8478   lt_save_MAGIC_CMD="$MAGIC_CMD"
8479   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8480   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8481   for ac_dir in $ac_dummy; do
8482     IFS="$lt_save_ifs"
8483     test -z "$ac_dir" && ac_dir=.
8484     if test -f $ac_dir/file; then
8485       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8486       if test -n "$file_magic_test_file"; then
8487         case $deplibs_check_method in
8488         "file_magic "*)
8489           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8490           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8491           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8492             $EGREP "$file_magic_regex" > /dev/null; then
8493             :
8494           else
8495             cat <<_LT_EOF 1>&2
8496
8497 *** Warning: the command libtool uses to detect shared libraries,
8498 *** $file_magic_cmd, produces output that libtool cannot recognize.
8499 *** The result is that libtool may fail to recognize shared libraries
8500 *** as such.  This will affect the creation of libtool libraries that
8501 *** depend on shared libraries, but programs linked with such libtool
8502 *** libraries will work regardless of this problem.  Nevertheless, you
8503 *** may want to report the problem to your system manager and/or to
8504 *** bug-libtool@gnu.org
8505
8506 _LT_EOF
8507           fi ;;
8508         esac
8509       fi
8510       break
8511     fi
8512   done
8513   IFS="$lt_save_ifs"
8514   MAGIC_CMD="$lt_save_MAGIC_CMD"
8515   ;;
8516 esac
8517 fi
8518
8519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8520 if test -n "$MAGIC_CMD"; then
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8522 $as_echo "$MAGIC_CMD" >&6; }
8523 else
8524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8526 fi
8527
8528
8529   else
8530     MAGIC_CMD=:
8531   fi
8532 fi
8533
8534   fi
8535   ;;
8536 esac
8537
8538 # Use C for the default configuration in the libtool script
8539
8540 lt_save_CC="$CC"
8541 ac_ext=c
8542 ac_cpp='$CPP $CPPFLAGS'
8543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8546
8547
8548 # Source file extension for C test sources.
8549 ac_ext=c
8550
8551 # Object file extension for compiled C test sources.
8552 objext=o
8553 objext=$objext
8554
8555 # Code to be used in simple compile tests
8556 lt_simple_compile_test_code="int some_variable = 0;"
8557
8558 # Code to be used in simple link tests
8559 lt_simple_link_test_code='int main(){return(0);}'
8560
8561
8562
8563
8564
8565
8566
8567 # If no C compiler was specified, use CC.
8568 LTCC=${LTCC-"$CC"}
8569
8570 # If no C compiler flags were specified, use CFLAGS.
8571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8572
8573 # Allow CC to be a program name with arguments.
8574 compiler=$CC
8575
8576 # Save the default compiler, since it gets overwritten when the other
8577 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8578 compiler_DEFAULT=$CC
8579
8580 # save warnings/boilerplate of simple test code
8581 ac_outfile=conftest.$ac_objext
8582 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8583 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8584 _lt_compiler_boilerplate=`cat conftest.err`
8585 $RM conftest*
8586
8587 ac_outfile=conftest.$ac_objext
8588 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8589 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8590 _lt_linker_boilerplate=`cat conftest.err`
8591 $RM -r conftest*
8592
8593
8594 ## CAVEAT EMPTOR:
8595 ## There is no encapsulation within the following macros, do not change
8596 ## the running order or otherwise move them around unless you know exactly
8597 ## what you are doing...
8598 if test -n "$compiler"; then
8599
8600 lt_prog_compiler_no_builtin_flag=
8601
8602 if test "$GCC" = yes; then
8603   case $cc_basename in
8604   nvcc*)
8605     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8606   *)
8607     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8608   esac
8609
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8611 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8612 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8613   $as_echo_n "(cached) " >&6
8614 else
8615   lt_cv_prog_compiler_rtti_exceptions=no
8616    ac_outfile=conftest.$ac_objext
8617    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8618    lt_compiler_flag="-fno-rtti -fno-exceptions"
8619    # Insert the option either (1) after the last *FLAGS variable, or
8620    # (2) before a word containing "conftest.", or (3) at the end.
8621    # Note that $ac_compile itself does not contain backslashes and begins
8622    # with a dollar sign (not a hyphen), so the echo should work correctly.
8623    # The option is referenced via a variable to avoid confusing sed.
8624    lt_compile=`echo "$ac_compile" | $SED \
8625    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8626    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8627    -e 's:$: $lt_compiler_flag:'`
8628    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8629    (eval "$lt_compile" 2>conftest.err)
8630    ac_status=$?
8631    cat conftest.err >&5
8632    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633    if (exit $ac_status) && test -s "$ac_outfile"; then
8634      # The compiler can only warn and ignore the option if not recognized
8635      # So say no if there are warnings other than the usual output.
8636      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8637      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8638      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8639        lt_cv_prog_compiler_rtti_exceptions=yes
8640      fi
8641    fi
8642    $RM conftest*
8643
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8646 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8647
8648 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8649     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8650 else
8651     :
8652 fi
8653
8654 fi
8655
8656
8657
8658
8659
8660
8661   lt_prog_compiler_wl=
8662 lt_prog_compiler_pic=
8663 lt_prog_compiler_static=
8664
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8666 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8667
8668   if test "$GCC" = yes; then
8669     lt_prog_compiler_wl='-Wl,'
8670     lt_prog_compiler_static='-static'
8671
8672     case $host_os in
8673       aix*)
8674       # All AIX code is PIC.
8675       if test "$host_cpu" = ia64; then
8676         # AIX 5 now supports IA64 processor
8677         lt_prog_compiler_static='-Bstatic'
8678       fi
8679       lt_prog_compiler_pic='-fPIC'
8680       ;;
8681
8682     amigaos*)
8683       case $host_cpu in
8684       powerpc)
8685             # see comment about AmigaOS4 .so support
8686             lt_prog_compiler_pic='-fPIC'
8687         ;;
8688       m68k)
8689             # FIXME: we need at least 68020 code to build shared libraries, but
8690             # adding the `-m68020' flag to GCC prevents building anything better,
8691             # like `-m68040'.
8692             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8693         ;;
8694       esac
8695       ;;
8696
8697     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8698       # PIC is the default for these OSes.
8699       ;;
8700
8701     mingw* | cygwin* | pw32* | os2* | cegcc*)
8702       # This hack is so that the source file can tell whether it is being
8703       # built for inclusion in a dll (and should export symbols for example).
8704       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8705       # (--disable-auto-import) libraries
8706       lt_prog_compiler_pic='-DDLL_EXPORT'
8707       ;;
8708
8709     darwin* | rhapsody*)
8710       # PIC is the default on this platform
8711       # Common symbols not allowed in MH_DYLIB files
8712       lt_prog_compiler_pic='-fno-common'
8713       ;;
8714
8715     haiku*)
8716       # PIC is the default for Haiku.
8717       # The "-static" flag exists, but is broken.
8718       lt_prog_compiler_static=
8719       ;;
8720
8721     hpux*)
8722       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8723       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8724       # sets the default TLS model and affects inlining.
8725       case $host_cpu in
8726       hppa*64*)
8727         # +Z the default
8728         ;;
8729       *)
8730         lt_prog_compiler_pic='-fPIC'
8731         ;;
8732       esac
8733       ;;
8734
8735     interix[3-9]*)
8736       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8737       # Instead, we relocate shared libraries at runtime.
8738       ;;
8739
8740     msdosdjgpp*)
8741       # Just because we use GCC doesn't mean we suddenly get shared libraries
8742       # on systems that don't support them.
8743       lt_prog_compiler_can_build_shared=no
8744       enable_shared=no
8745       ;;
8746
8747     *nto* | *qnx*)
8748       # QNX uses GNU C++, but need to define -shared option too, otherwise
8749       # it will coredump.
8750       lt_prog_compiler_pic='-fPIC -shared'
8751       ;;
8752
8753     sysv4*MP*)
8754       if test -d /usr/nec; then
8755         lt_prog_compiler_pic=-Kconform_pic
8756       fi
8757       ;;
8758
8759     *)
8760       lt_prog_compiler_pic='-fPIC'
8761       ;;
8762     esac
8763
8764     case $cc_basename in
8765     nvcc*) # Cuda Compiler Driver 2.2
8766       lt_prog_compiler_wl='-Xlinker '
8767       lt_prog_compiler_pic='-Xcompiler -fPIC'
8768       ;;
8769     esac
8770   else
8771     # PORTME Check for flag to pass linker flags through the system compiler.
8772     case $host_os in
8773     aix*)
8774       lt_prog_compiler_wl='-Wl,'
8775       if test "$host_cpu" = ia64; then
8776         # AIX 5 now supports IA64 processor
8777         lt_prog_compiler_static='-Bstatic'
8778       else
8779         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8780       fi
8781       ;;
8782
8783     mingw* | cygwin* | pw32* | os2* | cegcc*)
8784       # This hack is so that the source file can tell whether it is being
8785       # built for inclusion in a dll (and should export symbols for example).
8786       lt_prog_compiler_pic='-DDLL_EXPORT'
8787       ;;
8788
8789     hpux9* | hpux10* | hpux11*)
8790       lt_prog_compiler_wl='-Wl,'
8791       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8792       # not for PA HP-UX.
8793       case $host_cpu in
8794       hppa*64*|ia64*)
8795         # +Z the default
8796         ;;
8797       *)
8798         lt_prog_compiler_pic='+Z'
8799         ;;
8800       esac
8801       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8802       lt_prog_compiler_static='${wl}-a ${wl}archive'
8803       ;;
8804
8805     irix5* | irix6* | nonstopux*)
8806       lt_prog_compiler_wl='-Wl,'
8807       # PIC (with -KPIC) is the default.
8808       lt_prog_compiler_static='-non_shared'
8809       ;;
8810
8811     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8812       case $cc_basename in
8813       # old Intel for x86_64 which still supported -KPIC.
8814       ecc*)
8815         lt_prog_compiler_wl='-Wl,'
8816         lt_prog_compiler_pic='-KPIC'
8817         lt_prog_compiler_static='-static'
8818         ;;
8819       # icc used to be incompatible with GCC.
8820       # ICC 10 doesn't accept -KPIC any more.
8821       icc* | ifort*)
8822         lt_prog_compiler_wl='-Wl,'
8823         lt_prog_compiler_pic='-fPIC'
8824         lt_prog_compiler_static='-static'
8825         ;;
8826       # Lahey Fortran 8.1.
8827       lf95*)
8828         lt_prog_compiler_wl='-Wl,'
8829         lt_prog_compiler_pic='--shared'
8830         lt_prog_compiler_static='--static'
8831         ;;
8832       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8833         # Portland Group compilers (*not* the Pentium gcc compiler,
8834         # which looks to be a dead project)
8835         lt_prog_compiler_wl='-Wl,'
8836         lt_prog_compiler_pic='-fpic'
8837         lt_prog_compiler_static='-Bstatic'
8838         ;;
8839       ccc*)
8840         lt_prog_compiler_wl='-Wl,'
8841         # All Alpha code is PIC.
8842         lt_prog_compiler_static='-non_shared'
8843         ;;
8844       xl* | bgxl* | bgf* | mpixl*)
8845         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8846         lt_prog_compiler_wl='-Wl,'
8847         lt_prog_compiler_pic='-qpic'
8848         lt_prog_compiler_static='-qstaticlink'
8849         ;;
8850       *)
8851         case `$CC -V 2>&1 | sed 5q` in
8852         *Sun\ F* | *Sun*Fortran*)
8853           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8854           lt_prog_compiler_pic='-KPIC'
8855           lt_prog_compiler_static='-Bstatic'
8856           lt_prog_compiler_wl=''
8857           ;;
8858         *Sun\ C*)
8859           # Sun C 5.9
8860           lt_prog_compiler_pic='-KPIC'
8861           lt_prog_compiler_static='-Bstatic'
8862           lt_prog_compiler_wl='-Wl,'
8863           ;;
8864         esac
8865         ;;
8866       esac
8867       ;;
8868
8869     newsos6)
8870       lt_prog_compiler_pic='-KPIC'
8871       lt_prog_compiler_static='-Bstatic'
8872       ;;
8873
8874     *nto* | *qnx*)
8875       # QNX uses GNU C++, but need to define -shared option too, otherwise
8876       # it will coredump.
8877       lt_prog_compiler_pic='-fPIC -shared'
8878       ;;
8879
8880     osf3* | osf4* | osf5*)
8881       lt_prog_compiler_wl='-Wl,'
8882       # All OSF/1 code is PIC.
8883       lt_prog_compiler_static='-non_shared'
8884       ;;
8885
8886     rdos*)
8887       lt_prog_compiler_static='-non_shared'
8888       ;;
8889
8890     solaris*)
8891       lt_prog_compiler_pic='-KPIC'
8892       lt_prog_compiler_static='-Bstatic'
8893       case $cc_basename in
8894       f77* | f90* | f95*)
8895         lt_prog_compiler_wl='-Qoption ld ';;
8896       *)
8897         lt_prog_compiler_wl='-Wl,';;
8898       esac
8899       ;;
8900
8901     sunos4*)
8902       lt_prog_compiler_wl='-Qoption ld '
8903       lt_prog_compiler_pic='-PIC'
8904       lt_prog_compiler_static='-Bstatic'
8905       ;;
8906
8907     sysv4 | sysv4.2uw2* | sysv4.3*)
8908       lt_prog_compiler_wl='-Wl,'
8909       lt_prog_compiler_pic='-KPIC'
8910       lt_prog_compiler_static='-Bstatic'
8911       ;;
8912
8913     sysv4*MP*)
8914       if test -d /usr/nec ;then
8915         lt_prog_compiler_pic='-Kconform_pic'
8916         lt_prog_compiler_static='-Bstatic'
8917       fi
8918       ;;
8919
8920     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8921       lt_prog_compiler_wl='-Wl,'
8922       lt_prog_compiler_pic='-KPIC'
8923       lt_prog_compiler_static='-Bstatic'
8924       ;;
8925
8926     unicos*)
8927       lt_prog_compiler_wl='-Wl,'
8928       lt_prog_compiler_can_build_shared=no
8929       ;;
8930
8931     uts4*)
8932       lt_prog_compiler_pic='-pic'
8933       lt_prog_compiler_static='-Bstatic'
8934       ;;
8935
8936     *)
8937       lt_prog_compiler_can_build_shared=no
8938       ;;
8939     esac
8940   fi
8941
8942 case $host_os in
8943   # For platforms which do not support PIC, -DPIC is meaningless:
8944   *djgpp*)
8945     lt_prog_compiler_pic=
8946     ;;
8947   *)
8948     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8949     ;;
8950 esac
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8952 $as_echo "$lt_prog_compiler_pic" >&6; }
8953
8954
8955
8956
8957
8958
8959 #
8960 # Check to make sure the PIC flag actually works.
8961 #
8962 if test -n "$lt_prog_compiler_pic"; then
8963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8965 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8966   $as_echo_n "(cached) " >&6
8967 else
8968   lt_cv_prog_compiler_pic_works=no
8969    ac_outfile=conftest.$ac_objext
8970    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8971    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8972    # Insert the option either (1) after the last *FLAGS variable, or
8973    # (2) before a word containing "conftest.", or (3) at the end.
8974    # Note that $ac_compile itself does not contain backslashes and begins
8975    # with a dollar sign (not a hyphen), so the echo should work correctly.
8976    # The option is referenced via a variable to avoid confusing sed.
8977    lt_compile=`echo "$ac_compile" | $SED \
8978    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8979    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8980    -e 's:$: $lt_compiler_flag:'`
8981    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8982    (eval "$lt_compile" 2>conftest.err)
8983    ac_status=$?
8984    cat conftest.err >&5
8985    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986    if (exit $ac_status) && test -s "$ac_outfile"; then
8987      # The compiler can only warn and ignore the option if not recognized
8988      # So say no if there are warnings other than the usual output.
8989      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8990      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8991      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8992        lt_cv_prog_compiler_pic_works=yes
8993      fi
8994    fi
8995    $RM conftest*
8996
8997 fi
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8999 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9000
9001 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9002     case $lt_prog_compiler_pic in
9003      "" | " "*) ;;
9004      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9005      esac
9006 else
9007     lt_prog_compiler_pic=
9008      lt_prog_compiler_can_build_shared=no
9009 fi
9010
9011 fi
9012
9013
9014
9015
9016
9017
9018 #
9019 # Check to make sure the static flag actually works.
9020 #
9021 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9023 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9024 if ${lt_cv_prog_compiler_static_works+:} false; then :
9025   $as_echo_n "(cached) " >&6
9026 else
9027   lt_cv_prog_compiler_static_works=no
9028    save_LDFLAGS="$LDFLAGS"
9029    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9030    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9031    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9032      # The linker can only warn and ignore the option if not recognized
9033      # So say no if there are warnings
9034      if test -s conftest.err; then
9035        # Append any errors to the config.log.
9036        cat conftest.err 1>&5
9037        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9038        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9039        if diff conftest.exp conftest.er2 >/dev/null; then
9040          lt_cv_prog_compiler_static_works=yes
9041        fi
9042      else
9043        lt_cv_prog_compiler_static_works=yes
9044      fi
9045    fi
9046    $RM -r conftest*
9047    LDFLAGS="$save_LDFLAGS"
9048
9049 fi
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9051 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9052
9053 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9054     :
9055 else
9056     lt_prog_compiler_static=
9057 fi
9058
9059
9060
9061
9062
9063
9064
9065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9067 if ${lt_cv_prog_compiler_c_o+:} false; then :
9068   $as_echo_n "(cached) " >&6
9069 else
9070   lt_cv_prog_compiler_c_o=no
9071    $RM -r conftest 2>/dev/null
9072    mkdir conftest
9073    cd conftest
9074    mkdir out
9075    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9076
9077    lt_compiler_flag="-o out/conftest2.$ac_objext"
9078    # Insert the option either (1) after the last *FLAGS variable, or
9079    # (2) before a word containing "conftest.", or (3) at the end.
9080    # Note that $ac_compile itself does not contain backslashes and begins
9081    # with a dollar sign (not a hyphen), so the echo should work correctly.
9082    lt_compile=`echo "$ac_compile" | $SED \
9083    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9084    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9085    -e 's:$: $lt_compiler_flag:'`
9086    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9087    (eval "$lt_compile" 2>out/conftest.err)
9088    ac_status=$?
9089    cat out/conftest.err >&5
9090    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9092    then
9093      # The compiler can only warn and ignore the option if not recognized
9094      # So say no if there are warnings
9095      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9096      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9097      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9098        lt_cv_prog_compiler_c_o=yes
9099      fi
9100    fi
9101    chmod u+w . 2>&5
9102    $RM conftest*
9103    # SGI C++ compiler will create directory out/ii_files/ for
9104    # template instantiation
9105    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9106    $RM out/* && rmdir out
9107    cd ..
9108    $RM -r conftest
9109    $RM conftest*
9110
9111 fi
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9113 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9114
9115
9116
9117
9118
9119
9120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9121 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9122 if ${lt_cv_prog_compiler_c_o+:} false; then :
9123   $as_echo_n "(cached) " >&6
9124 else
9125   lt_cv_prog_compiler_c_o=no
9126    $RM -r conftest 2>/dev/null
9127    mkdir conftest
9128    cd conftest
9129    mkdir out
9130    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9131
9132    lt_compiler_flag="-o out/conftest2.$ac_objext"
9133    # Insert the option either (1) after the last *FLAGS variable, or
9134    # (2) before a word containing "conftest.", or (3) at the end.
9135    # Note that $ac_compile itself does not contain backslashes and begins
9136    # with a dollar sign (not a hyphen), so the echo should work correctly.
9137    lt_compile=`echo "$ac_compile" | $SED \
9138    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9139    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9140    -e 's:$: $lt_compiler_flag:'`
9141    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9142    (eval "$lt_compile" 2>out/conftest.err)
9143    ac_status=$?
9144    cat out/conftest.err >&5
9145    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9147    then
9148      # The compiler can only warn and ignore the option if not recognized
9149      # So say no if there are warnings
9150      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9151      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9152      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9153        lt_cv_prog_compiler_c_o=yes
9154      fi
9155    fi
9156    chmod u+w . 2>&5
9157    $RM conftest*
9158    # SGI C++ compiler will create directory out/ii_files/ for
9159    # template instantiation
9160    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9161    $RM out/* && rmdir out
9162    cd ..
9163    $RM -r conftest
9164    $RM conftest*
9165
9166 fi
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9168 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9169
9170
9171
9172
9173 hard_links="nottested"
9174 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9175   # do not overwrite the value of need_locks provided by the user
9176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9177 $as_echo_n "checking if we can lock with hard links... " >&6; }
9178   hard_links=yes
9179   $RM conftest*
9180   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9181   touch conftest.a
9182   ln conftest.a conftest.b 2>&5 || hard_links=no
9183   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9185 $as_echo "$hard_links" >&6; }
9186   if test "$hard_links" = no; then
9187     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9188 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9189     need_locks=warn
9190   fi
9191 else
9192   need_locks=no
9193 fi
9194
9195
9196
9197
9198
9199
9200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9201 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9202
9203   runpath_var=
9204   allow_undefined_flag=
9205   always_export_symbols=no
9206   archive_cmds=
9207   archive_expsym_cmds=
9208   compiler_needs_object=no
9209   enable_shared_with_static_runtimes=no
9210   export_dynamic_flag_spec=
9211   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9212   hardcode_automatic=no
9213   hardcode_direct=no
9214   hardcode_direct_absolute=no
9215   hardcode_libdir_flag_spec=
9216   hardcode_libdir_flag_spec_ld=
9217   hardcode_libdir_separator=
9218   hardcode_minus_L=no
9219   hardcode_shlibpath_var=unsupported
9220   inherit_rpath=no
9221   link_all_deplibs=unknown
9222   module_cmds=
9223   module_expsym_cmds=
9224   old_archive_from_new_cmds=
9225   old_archive_from_expsyms_cmds=
9226   thread_safe_flag_spec=
9227   whole_archive_flag_spec=
9228   # include_expsyms should be a list of space-separated symbols to be *always*
9229   # included in the symbol list
9230   include_expsyms=
9231   # exclude_expsyms can be an extended regexp of symbols to exclude
9232   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9233   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9234   # as well as any symbol that contains `d'.
9235   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9236   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9237   # platforms (ab)use it in PIC code, but their linkers get confused if
9238   # the symbol is explicitly referenced.  Since portable code cannot
9239   # rely on this symbol name, it's probably fine to never include it in
9240   # preloaded symbol tables.
9241   # Exclude shared library initialization/finalization symbols.
9242   extract_expsyms_cmds=
9243
9244   case $host_os in
9245   cygwin* | mingw* | pw32* | cegcc*)
9246     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9247     # When not using gcc, we currently assume that we are using
9248     # Microsoft Visual C++.
9249     if test "$GCC" != yes; then
9250       with_gnu_ld=no
9251     fi
9252     ;;
9253   interix*)
9254     # we just hope/assume this is gcc and not c89 (= MSVC++)
9255     with_gnu_ld=yes
9256     ;;
9257   openbsd*)
9258     with_gnu_ld=no
9259     ;;
9260   esac
9261
9262   ld_shlibs=yes
9263
9264   # On some targets, GNU ld is compatible enough with the native linker
9265   # that we're better off using the native interface for both.
9266   lt_use_gnu_ld_interface=no
9267   if test "$with_gnu_ld" = yes; then
9268     case $host_os in
9269       aix*)
9270         # The AIX port of GNU ld has always aspired to compatibility
9271         # with the native linker.  However, as the warning in the GNU ld
9272         # block says, versions before 2.19.5* couldn't really create working
9273         # shared libraries, regardless of the interface used.
9274         case `$LD -v 2>&1` in
9275           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9276           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9277           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9278           *)
9279             lt_use_gnu_ld_interface=yes
9280             ;;
9281         esac
9282         ;;
9283       *)
9284         lt_use_gnu_ld_interface=yes
9285         ;;
9286     esac
9287   fi
9288
9289   if test "$lt_use_gnu_ld_interface" = yes; then
9290     # If archive_cmds runs LD, not CC, wlarc should be empty
9291     wlarc='${wl}'
9292
9293     # Set some defaults for GNU ld with shared library support. These
9294     # are reset later if shared libraries are not supported. Putting them
9295     # here allows them to be overridden if necessary.
9296     runpath_var=LD_RUN_PATH
9297     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9298     export_dynamic_flag_spec='${wl}--export-dynamic'
9299     # ancient GNU ld didn't support --whole-archive et. al.
9300     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9301       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9302     else
9303       whole_archive_flag_spec=
9304     fi
9305     supports_anon_versioning=no
9306     case `$LD -v 2>&1` in
9307       *GNU\ gold*) supports_anon_versioning=yes ;;
9308       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9309       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9310       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9311       *\ 2.11.*) ;; # other 2.11 versions
9312       *) supports_anon_versioning=yes ;;
9313     esac
9314
9315     # See if GNU ld supports shared libraries.
9316     case $host_os in
9317     aix[3-9]*)
9318       # On AIX/PPC, the GNU linker is very broken
9319       if test "$host_cpu" != ia64; then
9320         ld_shlibs=no
9321         cat <<_LT_EOF 1>&2
9322
9323 *** Warning: the GNU linker, at least up to release 2.19, is reported
9324 *** to be unable to reliably create shared libraries on AIX.
9325 *** Therefore, libtool is disabling shared libraries support.  If you
9326 *** really care for shared libraries, you may want to install binutils
9327 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9328 *** You will then need to restart the configuration process.
9329
9330 _LT_EOF
9331       fi
9332       ;;
9333
9334     amigaos*)
9335       case $host_cpu in
9336       powerpc)
9337             # see comment about AmigaOS4 .so support
9338             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9339             archive_expsym_cmds=''
9340         ;;
9341       m68k)
9342             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)'
9343             hardcode_libdir_flag_spec='-L$libdir'
9344             hardcode_minus_L=yes
9345         ;;
9346       esac
9347       ;;
9348
9349     beos*)
9350       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9351         allow_undefined_flag=unsupported
9352         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9353         # support --undefined.  This deserves some investigation.  FIXME
9354         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9355       else
9356         ld_shlibs=no
9357       fi
9358       ;;
9359
9360     cygwin* | mingw* | pw32* | cegcc*)
9361       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9362       # as there is no search path for DLLs.
9363       hardcode_libdir_flag_spec='-L$libdir'
9364       export_dynamic_flag_spec='${wl}--export-all-symbols'
9365       allow_undefined_flag=unsupported
9366       always_export_symbols=no
9367       enable_shared_with_static_runtimes=yes
9368       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9369
9370       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9371         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9372         # If the export-symbols file already is a .def file (1st line
9373         # is EXPORTS), use it as is; otherwise, prepend...
9374         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9375           cp $export_symbols $output_objdir/$soname.def;
9376         else
9377           echo EXPORTS > $output_objdir/$soname.def;
9378           cat $export_symbols >> $output_objdir/$soname.def;
9379         fi~
9380         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9381       else
9382         ld_shlibs=no
9383       fi
9384       ;;
9385
9386     haiku*)
9387       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9388       link_all_deplibs=yes
9389       ;;
9390
9391     interix[3-9]*)
9392       hardcode_direct=no
9393       hardcode_shlibpath_var=no
9394       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9395       export_dynamic_flag_spec='${wl}-E'
9396       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9397       # Instead, shared libraries are loaded at an image base (0x10000000 by
9398       # default) and relocated if they conflict, which is a slow very memory
9399       # consuming and fragmenting process.  To avoid this, we pick a random,
9400       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9401       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9402       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9403       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'
9404       ;;
9405
9406     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9407       tmp_diet=no
9408       if test "$host_os" = linux-dietlibc; then
9409         case $cc_basename in
9410           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9411         esac
9412       fi
9413       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9414          && test "$tmp_diet" = no
9415       then
9416         tmp_addflag=' $pic_flag'
9417         tmp_sharedflag='-shared'
9418         case $cc_basename,$host_cpu in
9419         pgcc*)                          # Portland Group C compiler
9420           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'
9421           tmp_addflag=' $pic_flag'
9422           ;;
9423         pgf77* | pgf90* | pgf95* | pgfortran*)
9424                                         # Portland Group f77 and f90 compilers
9425           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'
9426           tmp_addflag=' $pic_flag -Mnomain' ;;
9427         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9428           tmp_addflag=' -i_dynamic' ;;
9429         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9430           tmp_addflag=' -i_dynamic -nofor_main' ;;
9431         ifc* | ifort*)                  # Intel Fortran compiler
9432           tmp_addflag=' -nofor_main' ;;
9433         lf95*)                          # Lahey Fortran 8.1
9434           whole_archive_flag_spec=
9435           tmp_sharedflag='--shared' ;;
9436         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9437           tmp_sharedflag='-qmkshrobj'
9438           tmp_addflag= ;;
9439         nvcc*)  # Cuda Compiler Driver 2.2
9440           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'
9441           compiler_needs_object=yes
9442           ;;
9443         esac
9444         case `$CC -V 2>&1 | sed 5q` in
9445         *Sun\ C*)                       # Sun C 5.9
9446           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'
9447           compiler_needs_object=yes
9448           tmp_sharedflag='-G' ;;
9449         *Sun\ F*)                       # Sun Fortran 8.3
9450           tmp_sharedflag='-G' ;;
9451         esac
9452         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9453
9454         if test "x$supports_anon_versioning" = xyes; then
9455           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9456             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9457             echo "local: *; };" >> $output_objdir/$libname.ver~
9458             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9459         fi
9460
9461         case $cc_basename in
9462         xlf* | bgf* | bgxlf* | mpixlf*)
9463           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9464           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9465           hardcode_libdir_flag_spec=
9466           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9467           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9468           if test "x$supports_anon_versioning" = xyes; then
9469             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9470               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9471               echo "local: *; };" >> $output_objdir/$libname.ver~
9472               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9473           fi
9474           ;;
9475         esac
9476       else
9477         ld_shlibs=no
9478       fi
9479       ;;
9480
9481     netbsd*)
9482       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9483         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9484         wlarc=
9485       else
9486         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9487         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9488       fi
9489       ;;
9490
9491     solaris*)
9492       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9493         ld_shlibs=no
9494         cat <<_LT_EOF 1>&2
9495
9496 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9497 *** create shared libraries on Solaris systems.  Therefore, libtool
9498 *** is disabling shared libraries support.  We urge you to upgrade GNU
9499 *** binutils to release 2.9.1 or newer.  Another option is to modify
9500 *** your PATH or compiler configuration so that the native linker is
9501 *** used, and then restart.
9502
9503 _LT_EOF
9504       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9505         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9506         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9507       else
9508         ld_shlibs=no
9509       fi
9510       ;;
9511
9512     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9513       case `$LD -v 2>&1` in
9514         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9515         ld_shlibs=no
9516         cat <<_LT_EOF 1>&2
9517
9518 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9519 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9520 *** is disabling shared libraries support.  We urge you to upgrade GNU
9521 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9522 *** your PATH or compiler configuration so that the native linker is
9523 *** used, and then restart.
9524
9525 _LT_EOF
9526         ;;
9527         *)
9528           # For security reasons, it is highly recommended that you always
9529           # use absolute paths for naming shared libraries, and exclude the
9530           # DT_RUNPATH tag from executables and libraries.  But doing so
9531           # requires that you compile everything twice, which is a pain.
9532           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9533             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9534             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9536           else
9537             ld_shlibs=no
9538           fi
9539         ;;
9540       esac
9541       ;;
9542
9543     sunos4*)
9544       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9545       wlarc=
9546       hardcode_direct=yes
9547       hardcode_shlibpath_var=no
9548       ;;
9549
9550     *)
9551       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9552         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9553         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9554       else
9555         ld_shlibs=no
9556       fi
9557       ;;
9558     esac
9559
9560     if test "$ld_shlibs" = no; then
9561       runpath_var=
9562       hardcode_libdir_flag_spec=
9563       export_dynamic_flag_spec=
9564       whole_archive_flag_spec=
9565     fi
9566   else
9567     # PORTME fill in a description of your system's linker (not GNU ld)
9568     case $host_os in
9569     aix3*)
9570       allow_undefined_flag=unsupported
9571       always_export_symbols=yes
9572       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'
9573       # Note: this linker hardcodes the directories in LIBPATH if there
9574       # are no directories specified by -L.
9575       hardcode_minus_L=yes
9576       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9577         # Neither direct hardcoding nor static linking is supported with a
9578         # broken collect2.
9579         hardcode_direct=unsupported
9580       fi
9581       ;;
9582
9583     aix[4-9]*)
9584       if test "$host_cpu" = ia64; then
9585         # On IA64, the linker does run time linking by default, so we don't
9586         # have to do anything special.
9587         aix_use_runtimelinking=no
9588         exp_sym_flag='-Bexport'
9589         no_entry_flag=""
9590       else
9591         # If we're using GNU nm, then we don't want the "-C" option.
9592         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9593         # Also, AIX nm treats weak defined symbols like other global
9594         # defined symbols, whereas GNU nm marks them as "W".
9595         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9596           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'
9597         else
9598           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9599         fi
9600         aix_use_runtimelinking=no
9601
9602         # Test if we are trying to use run time linking or normal
9603         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9604         # need to do runtime linking.
9605         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9606           for ld_flag in $LDFLAGS; do
9607           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9608             aix_use_runtimelinking=yes
9609             break
9610           fi
9611           done
9612           ;;
9613         esac
9614
9615         exp_sym_flag='-bexport'
9616         no_entry_flag='-bnoentry'
9617       fi
9618
9619       # When large executables or shared objects are built, AIX ld can
9620       # have problems creating the table of contents.  If linking a library
9621       # or program results in "error TOC overflow" add -mminimal-toc to
9622       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9623       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9624
9625       archive_cmds=''
9626       hardcode_direct=yes
9627       hardcode_direct_absolute=yes
9628       hardcode_libdir_separator=':'
9629       link_all_deplibs=yes
9630       file_list_spec='${wl}-f,'
9631
9632       if test "$GCC" = yes; then
9633         case $host_os in aix4.[012]|aix4.[012].*)
9634         # We only want to do this on AIX 4.2 and lower, the check
9635         # below for broken collect2 doesn't work under 4.3+
9636           collect2name=`${CC} -print-prog-name=collect2`
9637           if test -f "$collect2name" &&
9638            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9639           then
9640           # We have reworked collect2
9641           :
9642           else
9643           # We have old collect2
9644           hardcode_direct=unsupported
9645           # It fails to find uninstalled libraries when the uninstalled
9646           # path is not listed in the libpath.  Setting hardcode_minus_L
9647           # to unsupported forces relinking
9648           hardcode_minus_L=yes
9649           hardcode_libdir_flag_spec='-L$libdir'
9650           hardcode_libdir_separator=
9651           fi
9652           ;;
9653         esac
9654         shared_flag='-shared'
9655         if test "$aix_use_runtimelinking" = yes; then
9656           shared_flag="$shared_flag "'${wl}-G'
9657         fi
9658       else
9659         # not using gcc
9660         if test "$host_cpu" = ia64; then
9661         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9662         # chokes on -Wl,-G. The following line is correct:
9663           shared_flag='-G'
9664         else
9665           if test "$aix_use_runtimelinking" = yes; then
9666             shared_flag='${wl}-G'
9667           else
9668             shared_flag='${wl}-bM:SRE'
9669           fi
9670         fi
9671       fi
9672
9673       export_dynamic_flag_spec='${wl}-bexpall'
9674       # It seems that -bexpall does not export symbols beginning with
9675       # underscore (_), so it is better to generate a list of symbols to export.
9676       always_export_symbols=yes
9677       if test "$aix_use_runtimelinking" = yes; then
9678         # Warning - without using the other runtime loading flags (-brtl),
9679         # -berok will link without error, but may produce a broken library.
9680         allow_undefined_flag='-berok'
9681         # Determine the default libpath from the value encoded in an
9682         # empty executable.
9683         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h.  */
9685
9686 int
9687 main ()
9688 {
9689
9690   ;
9691   return 0;
9692 }
9693 _ACEOF
9694 if ac_fn_c_try_link "$LINENO"; then :
9695
9696 lt_aix_libpath_sed='
9697     /Import File Strings/,/^$/ {
9698         /^0/ {
9699             s/^0  *\(.*\)$/\1/
9700             p
9701         }
9702     }'
9703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9704 # Check for a 64-bit object if we didn't find anything.
9705 if test -z "$aix_libpath"; then
9706   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9707 fi
9708 fi
9709 rm -f core conftest.err conftest.$ac_objext \
9710     conftest$ac_exeext conftest.$ac_ext
9711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9712
9713         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9714         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"
9715       else
9716         if test "$host_cpu" = ia64; then
9717           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9718           allow_undefined_flag="-z nodefs"
9719           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"
9720         else
9721          # Determine the default libpath from the value encoded in an
9722          # empty executable.
9723          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h.  */
9725
9726 int
9727 main ()
9728 {
9729
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 if ac_fn_c_try_link "$LINENO"; then :
9735
9736 lt_aix_libpath_sed='
9737     /Import File Strings/,/^$/ {
9738         /^0/ {
9739             s/^0  *\(.*\)$/\1/
9740             p
9741         }
9742     }'
9743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9744 # Check for a 64-bit object if we didn't find anything.
9745 if test -z "$aix_libpath"; then
9746   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9747 fi
9748 fi
9749 rm -f core conftest.err conftest.$ac_objext \
9750     conftest$ac_exeext conftest.$ac_ext
9751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9752
9753          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9754           # Warning - without using the other run time loading flags,
9755           # -berok will link without error, but may produce a broken library.
9756           no_undefined_flag=' ${wl}-bernotok'
9757           allow_undefined_flag=' ${wl}-berok'
9758           if test "$with_gnu_ld" = yes; then
9759             # We only use this code for GNU lds that support --whole-archive.
9760             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9761           else
9762             # Exported symbols can be pulled into shared objects from archives
9763             whole_archive_flag_spec='$convenience'
9764           fi
9765           archive_cmds_need_lc=yes
9766           # This is similar to how AIX traditionally builds its shared libraries.
9767           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'
9768         fi
9769       fi
9770       ;;
9771
9772     amigaos*)
9773       case $host_cpu in
9774       powerpc)
9775             # see comment about AmigaOS4 .so support
9776             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777             archive_expsym_cmds=''
9778         ;;
9779       m68k)
9780             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)'
9781             hardcode_libdir_flag_spec='-L$libdir'
9782             hardcode_minus_L=yes
9783         ;;
9784       esac
9785       ;;
9786
9787     bsdi[45]*)
9788       export_dynamic_flag_spec=-rdynamic
9789       ;;
9790
9791     cygwin* | mingw* | pw32* | cegcc*)
9792       # When not using gcc, we currently assume that we are using
9793       # Microsoft Visual C++.
9794       # hardcode_libdir_flag_spec is actually meaningless, as there is
9795       # no search path for DLLs.
9796       hardcode_libdir_flag_spec=' '
9797       allow_undefined_flag=unsupported
9798       # Tell ltmain to make .lib files, not .a files.
9799       libext=lib
9800       # Tell ltmain to make .dll files, not .so files.
9801       shrext_cmds=".dll"
9802       # FIXME: Setting linknames here is a bad hack.
9803       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9804       # The linker will automatically build a .lib file if we build a DLL.
9805       old_archive_from_new_cmds='true'
9806       # FIXME: Should let the user specify the lib program.
9807       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9808       fix_srcfile_path='`cygpath -w "$srcfile"`'
9809       enable_shared_with_static_runtimes=yes
9810       ;;
9811
9812     darwin* | rhapsody*)
9813
9814
9815   archive_cmds_need_lc=no
9816   hardcode_direct=no
9817   hardcode_automatic=yes
9818   hardcode_shlibpath_var=unsupported
9819   if test "$lt_cv_ld_force_load" = "yes"; then
9820     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\"`'
9821   else
9822     whole_archive_flag_spec=''
9823   fi
9824   link_all_deplibs=yes
9825   allow_undefined_flag="$_lt_dar_allow_undefined"
9826   case $cc_basename in
9827      ifort*) _lt_dar_can_shared=yes ;;
9828      *) _lt_dar_can_shared=$GCC ;;
9829   esac
9830   if test "$_lt_dar_can_shared" = "yes"; then
9831     output_verbose_link_cmd=func_echo_all
9832     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9833     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9834     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}"
9835     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}"
9836
9837   else
9838   ld_shlibs=no
9839   fi
9840
9841       ;;
9842
9843     dgux*)
9844       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845       hardcode_libdir_flag_spec='-L$libdir'
9846       hardcode_shlibpath_var=no
9847       ;;
9848
9849     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9850     # support.  Future versions do this automatically, but an explicit c++rt0.o
9851     # does not break anything, and helps significantly (at the cost of a little
9852     # extra space).
9853     freebsd2.2*)
9854       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9855       hardcode_libdir_flag_spec='-R$libdir'
9856       hardcode_direct=yes
9857       hardcode_shlibpath_var=no
9858       ;;
9859
9860     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9861     freebsd2.*)
9862       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9863       hardcode_direct=yes
9864       hardcode_minus_L=yes
9865       hardcode_shlibpath_var=no
9866       ;;
9867
9868     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9869     freebsd* | dragonfly*)
9870       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9871       hardcode_libdir_flag_spec='-R$libdir'
9872       hardcode_direct=yes
9873       hardcode_shlibpath_var=no
9874       ;;
9875
9876     hpux9*)
9877       if test "$GCC" = yes; then
9878         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9879       else
9880         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'
9881       fi
9882       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9883       hardcode_libdir_separator=:
9884       hardcode_direct=yes
9885
9886       # hardcode_minus_L: Not really in the search PATH,
9887       # but as the default location of the library.
9888       hardcode_minus_L=yes
9889       export_dynamic_flag_spec='${wl}-E'
9890       ;;
9891
9892     hpux10*)
9893       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9894         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9895       else
9896         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9897       fi
9898       if test "$with_gnu_ld" = no; then
9899         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9900         hardcode_libdir_flag_spec_ld='+b $libdir'
9901         hardcode_libdir_separator=:
9902         hardcode_direct=yes
9903         hardcode_direct_absolute=yes
9904         export_dynamic_flag_spec='${wl}-E'
9905         # hardcode_minus_L: Not really in the search PATH,
9906         # but as the default location of the library.
9907         hardcode_minus_L=yes
9908       fi
9909       ;;
9910
9911     hpux11*)
9912       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9913         case $host_cpu in
9914         hppa*64*)
9915           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9916           ;;
9917         ia64*)
9918           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9919           ;;
9920         *)
9921           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9922           ;;
9923         esac
9924       else
9925         case $host_cpu in
9926         hppa*64*)
9927           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9928           ;;
9929         ia64*)
9930           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9931           ;;
9932         *)
9933
9934           # Older versions of the 11.00 compiler do not understand -b yet
9935           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9936           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9937 $as_echo_n "checking if $CC understands -b... " >&6; }
9938 if ${lt_cv_prog_compiler__b+:} false; then :
9939   $as_echo_n "(cached) " >&6
9940 else
9941   lt_cv_prog_compiler__b=no
9942    save_LDFLAGS="$LDFLAGS"
9943    LDFLAGS="$LDFLAGS -b"
9944    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9945    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9946      # The linker can only warn and ignore the option if not recognized
9947      # So say no if there are warnings
9948      if test -s conftest.err; then
9949        # Append any errors to the config.log.
9950        cat conftest.err 1>&5
9951        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9952        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9953        if diff conftest.exp conftest.er2 >/dev/null; then
9954          lt_cv_prog_compiler__b=yes
9955        fi
9956      else
9957        lt_cv_prog_compiler__b=yes
9958      fi
9959    fi
9960    $RM -r conftest*
9961    LDFLAGS="$save_LDFLAGS"
9962
9963 fi
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9965 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9966
9967 if test x"$lt_cv_prog_compiler__b" = xyes; then
9968     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9969 else
9970     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9971 fi
9972
9973           ;;
9974         esac
9975       fi
9976       if test "$with_gnu_ld" = no; then
9977         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9978         hardcode_libdir_separator=:
9979
9980         case $host_cpu in
9981         hppa*64*|ia64*)
9982           hardcode_direct=no
9983           hardcode_shlibpath_var=no
9984           ;;
9985         *)
9986           hardcode_direct=yes
9987           hardcode_direct_absolute=yes
9988           export_dynamic_flag_spec='${wl}-E'
9989
9990           # hardcode_minus_L: Not really in the search PATH,
9991           # but as the default location of the library.
9992           hardcode_minus_L=yes
9993           ;;
9994         esac
9995       fi
9996       ;;
9997
9998     irix5* | irix6* | nonstopux*)
9999       if test "$GCC" = yes; then
10000         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10001         # Try to use the -exported_symbol ld option, if it does not
10002         # work, assume that -exports_file does not work either and
10003         # implicitly export all symbols.
10004         save_LDFLAGS="$LDFLAGS"
10005         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10006         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h.  */
10008 int foo(void) {}
10009 _ACEOF
10010 if ac_fn_c_try_link "$LINENO"; then :
10011   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10012
10013 fi
10014 rm -f core conftest.err conftest.$ac_objext \
10015     conftest$ac_exeext conftest.$ac_ext
10016         LDFLAGS="$save_LDFLAGS"
10017       else
10018         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'
10019         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'
10020       fi
10021       archive_cmds_need_lc='no'
10022       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10023       hardcode_libdir_separator=:
10024       inherit_rpath=yes
10025       link_all_deplibs=yes
10026       ;;
10027
10028     netbsd*)
10029       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10030         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10031       else
10032         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10033       fi
10034       hardcode_libdir_flag_spec='-R$libdir'
10035       hardcode_direct=yes
10036       hardcode_shlibpath_var=no
10037       ;;
10038
10039     newsos6)
10040       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10041       hardcode_direct=yes
10042       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043       hardcode_libdir_separator=:
10044       hardcode_shlibpath_var=no
10045       ;;
10046
10047     *nto* | *qnx*)
10048       ;;
10049
10050     openbsd*)
10051       if test -f /usr/libexec/ld.so; then
10052         hardcode_direct=yes
10053         hardcode_shlibpath_var=no
10054         hardcode_direct_absolute=yes
10055         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10056           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10057           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10058           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10059           export_dynamic_flag_spec='${wl}-E'
10060         else
10061           case $host_os in
10062            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10063              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10064              hardcode_libdir_flag_spec='-R$libdir'
10065              ;;
10066            *)
10067              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10068              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10069              ;;
10070           esac
10071         fi
10072       else
10073         ld_shlibs=no
10074       fi
10075       ;;
10076
10077     os2*)
10078       hardcode_libdir_flag_spec='-L$libdir'
10079       hardcode_minus_L=yes
10080       allow_undefined_flag=unsupported
10081       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'
10082       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10083       ;;
10084
10085     osf3*)
10086       if test "$GCC" = yes; then
10087         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10088         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'
10089       else
10090         allow_undefined_flag=' -expect_unresolved \*'
10091         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'
10092       fi
10093       archive_cmds_need_lc='no'
10094       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10095       hardcode_libdir_separator=:
10096       ;;
10097
10098     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10099       if test "$GCC" = yes; then
10100         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10101         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10102         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10103       else
10104         allow_undefined_flag=' -expect_unresolved \*'
10105         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'
10106         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~
10107         $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'
10108
10109         # Both c and cxx compiler support -rpath directly
10110         hardcode_libdir_flag_spec='-rpath $libdir'
10111       fi
10112       archive_cmds_need_lc='no'
10113       hardcode_libdir_separator=:
10114       ;;
10115
10116     solaris*)
10117       no_undefined_flag=' -z defs'
10118       if test "$GCC" = yes; then
10119         wlarc='${wl}'
10120         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10121         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10122           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10123       else
10124         case `$CC -V 2>&1` in
10125         *"Compilers 5.0"*)
10126           wlarc=''
10127           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10128           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10129           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10130           ;;
10131         *)
10132           wlarc='${wl}'
10133           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10134           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10135           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10136           ;;
10137         esac
10138       fi
10139       hardcode_libdir_flag_spec='-R$libdir'
10140       hardcode_shlibpath_var=no
10141       case $host_os in
10142       solaris2.[0-5] | solaris2.[0-5].*) ;;
10143       *)
10144         # The compiler driver will combine and reorder linker options,
10145         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10146         # but is careful enough not to reorder.
10147         # Supported since Solaris 2.6 (maybe 2.5.1?)
10148         if test "$GCC" = yes; then
10149           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10150         else
10151           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10152         fi
10153         ;;
10154       esac
10155       link_all_deplibs=yes
10156       ;;
10157
10158     sunos4*)
10159       if test "x$host_vendor" = xsequent; then
10160         # Use $CC to link under sequent, because it throws in some extra .o
10161         # files that make .init and .fini sections work.
10162         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10163       else
10164         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10165       fi
10166       hardcode_libdir_flag_spec='-L$libdir'
10167       hardcode_direct=yes
10168       hardcode_minus_L=yes
10169       hardcode_shlibpath_var=no
10170       ;;
10171
10172     sysv4)
10173       case $host_vendor in
10174         sni)
10175           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176           hardcode_direct=yes # is this really true???
10177         ;;
10178         siemens)
10179           ## LD is ld it makes a PLAMLIB
10180           ## CC just makes a GrossModule.
10181           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10182           reload_cmds='$CC -r -o $output$reload_objs'
10183           hardcode_direct=no
10184         ;;
10185         motorola)
10186           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10187           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10188         ;;
10189       esac
10190       runpath_var='LD_RUN_PATH'
10191       hardcode_shlibpath_var=no
10192       ;;
10193
10194     sysv4.3*)
10195       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196       hardcode_shlibpath_var=no
10197       export_dynamic_flag_spec='-Bexport'
10198       ;;
10199
10200     sysv4*MP*)
10201       if test -d /usr/nec; then
10202         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203         hardcode_shlibpath_var=no
10204         runpath_var=LD_RUN_PATH
10205         hardcode_runpath_var=yes
10206         ld_shlibs=yes
10207       fi
10208       ;;
10209
10210     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10211       no_undefined_flag='${wl}-z,text'
10212       archive_cmds_need_lc=no
10213       hardcode_shlibpath_var=no
10214       runpath_var='LD_RUN_PATH'
10215
10216       if test "$GCC" = yes; then
10217         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219       else
10220         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222       fi
10223       ;;
10224
10225     sysv5* | sco3.2v5* | sco5v6*)
10226       # Note: We can NOT use -z defs as we might desire, because we do not
10227       # link with -lc, and that would cause any symbols used from libc to
10228       # always be unresolved, which means just about no library would
10229       # ever link correctly.  If we're not using GNU ld we use -z text
10230       # though, which does catch some bad symbols but isn't as heavy-handed
10231       # as -z defs.
10232       no_undefined_flag='${wl}-z,text'
10233       allow_undefined_flag='${wl}-z,nodefs'
10234       archive_cmds_need_lc=no
10235       hardcode_shlibpath_var=no
10236       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10237       hardcode_libdir_separator=':'
10238       link_all_deplibs=yes
10239       export_dynamic_flag_spec='${wl}-Bexport'
10240       runpath_var='LD_RUN_PATH'
10241
10242       if test "$GCC" = yes; then
10243         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10245       else
10246         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248       fi
10249       ;;
10250
10251     uts4*)
10252       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253       hardcode_libdir_flag_spec='-L$libdir'
10254       hardcode_shlibpath_var=no
10255       ;;
10256
10257     *)
10258       ld_shlibs=no
10259       ;;
10260     esac
10261
10262     if test x$host_vendor = xsni; then
10263       case $host in
10264       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10265         export_dynamic_flag_spec='${wl}-Blargedynsym'
10266         ;;
10267       esac
10268     fi
10269   fi
10270
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10272 $as_echo "$ld_shlibs" >&6; }
10273 test "$ld_shlibs" = no && can_build_shared=no
10274
10275 with_gnu_ld=$with_gnu_ld
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291 #
10292 # Do we need to explicitly link libc?
10293 #
10294 case "x$archive_cmds_need_lc" in
10295 x|xyes)
10296   # Assume -lc should be added
10297   archive_cmds_need_lc=yes
10298
10299   if test "$enable_shared" = yes && test "$GCC" = yes; then
10300     case $archive_cmds in
10301     *'~'*)
10302       # FIXME: we may have to deal with multi-command sequences.
10303       ;;
10304     '$CC '*)
10305       # Test whether the compiler implicitly links with -lc since on some
10306       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10307       # to ld, don't add -lc before -lgcc.
10308       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10309 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10310 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10311   $as_echo_n "(cached) " >&6
10312 else
10313   $RM conftest*
10314         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10315
10316         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10317   (eval $ac_compile) 2>&5
10318   ac_status=$?
10319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10320   test $ac_status = 0; } 2>conftest.err; then
10321           soname=conftest
10322           lib=conftest
10323           libobjs=conftest.$ac_objext
10324           deplibs=
10325           wl=$lt_prog_compiler_wl
10326           pic_flag=$lt_prog_compiler_pic
10327           compiler_flags=-v
10328           linker_flags=-v
10329           verstring=
10330           output_objdir=.
10331           libname=conftest
10332           lt_save_allow_undefined_flag=$allow_undefined_flag
10333           allow_undefined_flag=
10334           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10335   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10336   ac_status=$?
10337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10338   test $ac_status = 0; }
10339           then
10340             lt_cv_archive_cmds_need_lc=no
10341           else
10342             lt_cv_archive_cmds_need_lc=yes
10343           fi
10344           allow_undefined_flag=$lt_save_allow_undefined_flag
10345         else
10346           cat conftest.err 1>&5
10347         fi
10348         $RM conftest*
10349
10350 fi
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10352 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10353       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10354       ;;
10355     esac
10356   fi
10357   ;;
10358 esac
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10517 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10518
10519 if test "$GCC" = yes; then
10520   case $host_os in
10521     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10522     *) lt_awk_arg="/^libraries:/" ;;
10523   esac
10524   case $host_os in
10525     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10526     *) lt_sed_strip_eq="s,=/,/,g" ;;
10527   esac
10528   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10529   case $lt_search_path_spec in
10530   *\;*)
10531     # if the path contains ";" then we assume it to be the separator
10532     # otherwise default to the standard path separator (i.e. ":") - it is
10533     # assumed that no part of a normal pathname contains ";" but that should
10534     # okay in the real world where ";" in dirpaths is itself problematic.
10535     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10536     ;;
10537   *)
10538     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10539     ;;
10540   esac
10541   # Ok, now we have the path, separated by spaces, we can step through it
10542   # and add multilib dir if necessary.
10543   lt_tmp_lt_search_path_spec=
10544   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10545   for lt_sys_path in $lt_search_path_spec; do
10546     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10547       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10548     else
10549       test -d "$lt_sys_path" && \
10550         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10551     fi
10552   done
10553   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10554 BEGIN {RS=" "; FS="/|\n";} {
10555   lt_foo="";
10556   lt_count=0;
10557   for (lt_i = NF; lt_i > 0; lt_i--) {
10558     if ($lt_i != "" && $lt_i != ".") {
10559       if ($lt_i == "..") {
10560         lt_count++;
10561       } else {
10562         if (lt_count == 0) {
10563           lt_foo="/" $lt_i lt_foo;
10564         } else {
10565           lt_count--;
10566         }
10567       }
10568     }
10569   }
10570   if (lt_foo != "") { lt_freq[lt_foo]++; }
10571   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10572 }'`
10573   # AWK program above erroneously prepends '/' to C:/dos/paths
10574   # for these hosts.
10575   case $host_os in
10576     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10577       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10578   esac
10579   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10580 else
10581   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10582 fi
10583 library_names_spec=
10584 libname_spec='lib$name'
10585 soname_spec=
10586 shrext_cmds=".so"
10587 postinstall_cmds=
10588 postuninstall_cmds=
10589 finish_cmds=
10590 finish_eval=
10591 shlibpath_var=
10592 shlibpath_overrides_runpath=unknown
10593 version_type=none
10594 dynamic_linker="$host_os ld.so"
10595 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10596 need_lib_prefix=unknown
10597 hardcode_into_libs=no
10598
10599 # when you set need_version to no, make sure it does not cause -set_version
10600 # flags to be left without arguments
10601 need_version=unknown
10602
10603 case $host_os in
10604 aix3*)
10605   version_type=linux
10606   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10607   shlibpath_var=LIBPATH
10608
10609   # AIX 3 has no versioning support, so we append a major version to the name.
10610   soname_spec='${libname}${release}${shared_ext}$major'
10611   ;;
10612
10613 aix[4-9]*)
10614   version_type=linux
10615   need_lib_prefix=no
10616   need_version=no
10617   hardcode_into_libs=yes
10618   if test "$host_cpu" = ia64; then
10619     # AIX 5 supports IA64
10620     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10621     shlibpath_var=LD_LIBRARY_PATH
10622   else
10623     # With GCC up to 2.95.x, collect2 would create an import file
10624     # for dependence libraries.  The import file would start with
10625     # the line `#! .'.  This would cause the generated library to
10626     # depend on `.', always an invalid library.  This was fixed in
10627     # development snapshots of GCC prior to 3.0.
10628     case $host_os in
10629       aix4 | aix4.[01] | aix4.[01].*)
10630       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10631            echo ' yes '
10632            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10633         :
10634       else
10635         can_build_shared=no
10636       fi
10637       ;;
10638     esac
10639     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10640     # soname into executable. Probably we can add versioning support to
10641     # collect2, so additional links can be useful in future.
10642     if test "$aix_use_runtimelinking" = yes; then
10643       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10644       # instead of lib<name>.a to let people know that these are not
10645       # typical AIX shared libraries.
10646       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647     else
10648       # We preserve .a as extension for shared libraries through AIX4.2
10649       # and later when we are not doing run time linking.
10650       library_names_spec='${libname}${release}.a $libname.a'
10651       soname_spec='${libname}${release}${shared_ext}$major'
10652     fi
10653     shlibpath_var=LIBPATH
10654   fi
10655   ;;
10656
10657 amigaos*)
10658   case $host_cpu in
10659   powerpc)
10660     # Since July 2007 AmigaOS4 officially supports .so libraries.
10661     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10662     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10663     ;;
10664   m68k)
10665     library_names_spec='$libname.ixlibrary $libname.a'
10666     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10667     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'
10668     ;;
10669   esac
10670   ;;
10671
10672 beos*)
10673   library_names_spec='${libname}${shared_ext}'
10674   dynamic_linker="$host_os ld.so"
10675   shlibpath_var=LIBRARY_PATH
10676   ;;
10677
10678 bsdi[45]*)
10679   version_type=linux
10680   need_version=no
10681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682   soname_spec='${libname}${release}${shared_ext}$major'
10683   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10684   shlibpath_var=LD_LIBRARY_PATH
10685   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10686   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10687   # the default ld.so.conf also contains /usr/contrib/lib and
10688   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10689   # libtool to hard-code these into programs
10690   ;;
10691
10692 cygwin* | mingw* | pw32* | cegcc*)
10693   version_type=windows
10694   shrext_cmds=".dll"
10695   need_version=no
10696   need_lib_prefix=no
10697
10698   case $GCC,$host_os in
10699   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10700     library_names_spec='$libname.dll.a'
10701     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10702     postinstall_cmds='base_file=`basename \${file}`~
10703       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10704       dldir=$destdir/`dirname \$dlpath`~
10705       test -d \$dldir || mkdir -p \$dldir~
10706       $install_prog $dir/$dlname \$dldir/$dlname~
10707       chmod a+x \$dldir/$dlname~
10708       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10709         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10710       fi'
10711     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10712       dlpath=$dir/\$dldll~
10713        $RM \$dlpath'
10714     shlibpath_overrides_runpath=yes
10715
10716     case $host_os in
10717     cygwin*)
10718       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10719       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10720
10721       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10722       ;;
10723     mingw* | cegcc*)
10724       # MinGW DLLs use traditional 'lib' prefix
10725       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10726       ;;
10727     pw32*)
10728       # pw32 DLLs use 'pw' prefix rather than 'lib'
10729       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10730       ;;
10731     esac
10732     ;;
10733
10734   *)
10735     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10736     ;;
10737   esac
10738   dynamic_linker='Win32 ld.exe'
10739   # FIXME: first we should search . and the directory the executable is in
10740   shlibpath_var=PATH
10741   ;;
10742
10743 darwin* | rhapsody*)
10744   dynamic_linker="$host_os dyld"
10745   version_type=darwin
10746   need_lib_prefix=no
10747   need_version=no
10748   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10749   soname_spec='${libname}${release}${major}$shared_ext'
10750   shlibpath_overrides_runpath=yes
10751   shlibpath_var=DYLD_LIBRARY_PATH
10752   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10753
10754   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10755   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10756   ;;
10757
10758 dgux*)
10759   version_type=linux
10760   need_lib_prefix=no
10761   need_version=no
10762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10763   soname_spec='${libname}${release}${shared_ext}$major'
10764   shlibpath_var=LD_LIBRARY_PATH
10765   ;;
10766
10767 freebsd* | dragonfly*)
10768   # DragonFly does not have aout.  When/if they implement a new
10769   # versioning mechanism, adjust this.
10770   if test -x /usr/bin/objformat; then
10771     objformat=`/usr/bin/objformat`
10772   else
10773     case $host_os in
10774     freebsd[23].*) objformat=aout ;;
10775     *) objformat=elf ;;
10776     esac
10777   fi
10778   version_type=freebsd-$objformat
10779   case $version_type in
10780     freebsd-elf*)
10781       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10782       need_version=no
10783       need_lib_prefix=no
10784       ;;
10785     freebsd-*)
10786       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10787       need_version=yes
10788       ;;
10789   esac
10790   shlibpath_var=LD_LIBRARY_PATH
10791   case $host_os in
10792   freebsd2.*)
10793     shlibpath_overrides_runpath=yes
10794     ;;
10795   freebsd3.[01]* | freebsdelf3.[01]*)
10796     shlibpath_overrides_runpath=yes
10797     hardcode_into_libs=yes
10798     ;;
10799   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10800   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10801     shlibpath_overrides_runpath=no
10802     hardcode_into_libs=yes
10803     ;;
10804   *) # from 4.6 on, and DragonFly
10805     shlibpath_overrides_runpath=yes
10806     hardcode_into_libs=yes
10807     ;;
10808   esac
10809   ;;
10810
10811 gnu*)
10812   version_type=linux
10813   need_lib_prefix=no
10814   need_version=no
10815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10816   soname_spec='${libname}${release}${shared_ext}$major'
10817   shlibpath_var=LD_LIBRARY_PATH
10818   hardcode_into_libs=yes
10819   ;;
10820
10821 haiku*)
10822   version_type=linux
10823   need_lib_prefix=no
10824   need_version=no
10825   dynamic_linker="$host_os runtime_loader"
10826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10827   soname_spec='${libname}${release}${shared_ext}$major'
10828   shlibpath_var=LIBRARY_PATH
10829   shlibpath_overrides_runpath=yes
10830   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10831   hardcode_into_libs=yes
10832   ;;
10833
10834 hpux9* | hpux10* | hpux11*)
10835   # Give a soname corresponding to the major version so that dld.sl refuses to
10836   # link against other versions.
10837   version_type=sunos
10838   need_lib_prefix=no
10839   need_version=no
10840   case $host_cpu in
10841   ia64*)
10842     shrext_cmds='.so'
10843     hardcode_into_libs=yes
10844     dynamic_linker="$host_os dld.so"
10845     shlibpath_var=LD_LIBRARY_PATH
10846     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848     soname_spec='${libname}${release}${shared_ext}$major'
10849     if test "X$HPUX_IA64_MODE" = X32; then
10850       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10851     else
10852       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10853     fi
10854     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10855     ;;
10856   hppa*64*)
10857     shrext_cmds='.sl'
10858     hardcode_into_libs=yes
10859     dynamic_linker="$host_os dld.sl"
10860     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10861     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10862     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863     soname_spec='${libname}${release}${shared_ext}$major'
10864     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10865     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10866     ;;
10867   *)
10868     shrext_cmds='.sl'
10869     dynamic_linker="$host_os dld.sl"
10870     shlibpath_var=SHLIB_PATH
10871     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873     soname_spec='${libname}${release}${shared_ext}$major'
10874     ;;
10875   esac
10876   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10877   postinstall_cmds='chmod 555 $lib'
10878   # or fails outright, so override atomically:
10879   install_override_mode=555
10880   ;;
10881
10882 interix[3-9]*)
10883   version_type=linux
10884   need_lib_prefix=no
10885   need_version=no
10886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10887   soname_spec='${libname}${release}${shared_ext}$major'
10888   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10889   shlibpath_var=LD_LIBRARY_PATH
10890   shlibpath_overrides_runpath=no
10891   hardcode_into_libs=yes
10892   ;;
10893
10894 irix5* | irix6* | nonstopux*)
10895   case $host_os in
10896     nonstopux*) version_type=nonstopux ;;
10897     *)
10898         if test "$lt_cv_prog_gnu_ld" = yes; then
10899                 version_type=linux
10900         else
10901                 version_type=irix
10902         fi ;;
10903   esac
10904   need_lib_prefix=no
10905   need_version=no
10906   soname_spec='${libname}${release}${shared_ext}$major'
10907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10908   case $host_os in
10909   irix5* | nonstopux*)
10910     libsuff= shlibsuff=
10911     ;;
10912   *)
10913     case $LD in # libtool.m4 will add one of these switches to LD
10914     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10915       libsuff= shlibsuff= libmagic=32-bit;;
10916     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10917       libsuff=32 shlibsuff=N32 libmagic=N32;;
10918     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10919       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10920     *) libsuff= shlibsuff= libmagic=never-match;;
10921     esac
10922     ;;
10923   esac
10924   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10925   shlibpath_overrides_runpath=no
10926   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10927   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10928   hardcode_into_libs=yes
10929   ;;
10930
10931 # No shared lib support for Linux oldld, aout, or coff.
10932 linux*oldld* | linux*aout* | linux*coff*)
10933   dynamic_linker=no
10934   ;;
10935
10936 # This must be Linux ELF.
10937 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10938   version_type=linux
10939   need_lib_prefix=no
10940   need_version=no
10941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942   soname_spec='${libname}${release}${shared_ext}$major'
10943   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10944   shlibpath_var=LD_LIBRARY_PATH
10945   shlibpath_overrides_runpath=no
10946
10947   # Some binutils ld are patched to set DT_RUNPATH
10948   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10949   $as_echo_n "(cached) " >&6
10950 else
10951   lt_cv_shlibpath_overrides_runpath=no
10952     save_LDFLAGS=$LDFLAGS
10953     save_libdir=$libdir
10954     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10955          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10956     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10957 /* end confdefs.h.  */
10958
10959 int
10960 main ()
10961 {
10962
10963   ;
10964   return 0;
10965 }
10966 _ACEOF
10967 if ac_fn_c_try_link "$LINENO"; then :
10968   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10969   lt_cv_shlibpath_overrides_runpath=yes
10970 fi
10971 fi
10972 rm -f core conftest.err conftest.$ac_objext \
10973     conftest$ac_exeext conftest.$ac_ext
10974     LDFLAGS=$save_LDFLAGS
10975     libdir=$save_libdir
10976
10977 fi
10978
10979   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10980
10981   # This implies no fast_install, which is unacceptable.
10982   # Some rework will be needed to allow for fast_install
10983   # before this can be enabled.
10984   hardcode_into_libs=yes
10985
10986   # Append ld.so.conf contents to the search path
10987   if test -f /etc/ld.so.conf; then
10988     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' ' '`
10989     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10990   fi
10991
10992   # We used to test for /lib/ld.so.1 and disable shared libraries on
10993   # powerpc, because MkLinux only supported shared libraries with the
10994   # GNU dynamic linker.  Since this was broken with cross compilers,
10995   # most powerpc-linux boxes support dynamic linking these days and
10996   # people can always --disable-shared, the test was removed, and we
10997   # assume the GNU/Linux dynamic linker is in use.
10998   dynamic_linker='GNU/Linux ld.so'
10999   ;;
11000
11001 netbsd*)
11002   version_type=sunos
11003   need_lib_prefix=no
11004   need_version=no
11005   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11007     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11008     dynamic_linker='NetBSD (a.out) ld.so'
11009   else
11010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11011     soname_spec='${libname}${release}${shared_ext}$major'
11012     dynamic_linker='NetBSD ld.elf_so'
11013   fi
11014   shlibpath_var=LD_LIBRARY_PATH
11015   shlibpath_overrides_runpath=yes
11016   hardcode_into_libs=yes
11017   ;;
11018
11019 newsos6)
11020   version_type=linux
11021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022   shlibpath_var=LD_LIBRARY_PATH
11023   shlibpath_overrides_runpath=yes
11024   ;;
11025
11026 *nto* | *qnx*)
11027   version_type=qnx
11028   need_lib_prefix=no
11029   need_version=no
11030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031   soname_spec='${libname}${release}${shared_ext}$major'
11032   shlibpath_var=LD_LIBRARY_PATH
11033   shlibpath_overrides_runpath=no
11034   hardcode_into_libs=yes
11035   dynamic_linker='ldqnx.so'
11036   ;;
11037
11038 openbsd*)
11039   version_type=sunos
11040   sys_lib_dlsearch_path_spec="/usr/lib"
11041   need_lib_prefix=no
11042   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11043   case $host_os in
11044     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11045     *)                          need_version=no  ;;
11046   esac
11047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11048   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11049   shlibpath_var=LD_LIBRARY_PATH
11050   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11051     case $host_os in
11052       openbsd2.[89] | openbsd2.[89].*)
11053         shlibpath_overrides_runpath=no
11054         ;;
11055       *)
11056         shlibpath_overrides_runpath=yes
11057         ;;
11058       esac
11059   else
11060     shlibpath_overrides_runpath=yes
11061   fi
11062   ;;
11063
11064 os2*)
11065   libname_spec='$name'
11066   shrext_cmds=".dll"
11067   need_lib_prefix=no
11068   library_names_spec='$libname${shared_ext} $libname.a'
11069   dynamic_linker='OS/2 ld.exe'
11070   shlibpath_var=LIBPATH
11071   ;;
11072
11073 osf3* | osf4* | osf5*)
11074   version_type=osf
11075   need_lib_prefix=no
11076   need_version=no
11077   soname_spec='${libname}${release}${shared_ext}$major'
11078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079   shlibpath_var=LD_LIBRARY_PATH
11080   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11081   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11082   ;;
11083
11084 rdos*)
11085   dynamic_linker=no
11086   ;;
11087
11088 solaris*)
11089   version_type=linux
11090   need_lib_prefix=no
11091   need_version=no
11092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093   soname_spec='${libname}${release}${shared_ext}$major'
11094   shlibpath_var=LD_LIBRARY_PATH
11095   shlibpath_overrides_runpath=yes
11096   hardcode_into_libs=yes
11097   # ldd complains unless libraries are executable
11098   postinstall_cmds='chmod +x $lib'
11099   ;;
11100
11101 sunos4*)
11102   version_type=sunos
11103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11104   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11105   shlibpath_var=LD_LIBRARY_PATH
11106   shlibpath_overrides_runpath=yes
11107   if test "$with_gnu_ld" = yes; then
11108     need_lib_prefix=no
11109   fi
11110   need_version=yes
11111   ;;
11112
11113 sysv4 | sysv4.3*)
11114   version_type=linux
11115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116   soname_spec='${libname}${release}${shared_ext}$major'
11117   shlibpath_var=LD_LIBRARY_PATH
11118   case $host_vendor in
11119     sni)
11120       shlibpath_overrides_runpath=no
11121       need_lib_prefix=no
11122       runpath_var=LD_RUN_PATH
11123       ;;
11124     siemens)
11125       need_lib_prefix=no
11126       ;;
11127     motorola)
11128       need_lib_prefix=no
11129       need_version=no
11130       shlibpath_overrides_runpath=no
11131       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11132       ;;
11133   esac
11134   ;;
11135
11136 sysv4*MP*)
11137   if test -d /usr/nec ;then
11138     version_type=linux
11139     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11140     soname_spec='$libname${shared_ext}.$major'
11141     shlibpath_var=LD_LIBRARY_PATH
11142   fi
11143   ;;
11144
11145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11146   version_type=freebsd-elf
11147   need_lib_prefix=no
11148   need_version=no
11149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11150   soname_spec='${libname}${release}${shared_ext}$major'
11151   shlibpath_var=LD_LIBRARY_PATH
11152   shlibpath_overrides_runpath=yes
11153   hardcode_into_libs=yes
11154   if test "$with_gnu_ld" = yes; then
11155     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11156   else
11157     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11158     case $host_os in
11159       sco3.2v5*)
11160         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11161         ;;
11162     esac
11163   fi
11164   sys_lib_dlsearch_path_spec='/usr/lib'
11165   ;;
11166
11167 tpf*)
11168   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11169   version_type=linux
11170   need_lib_prefix=no
11171   need_version=no
11172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173   shlibpath_var=LD_LIBRARY_PATH
11174   shlibpath_overrides_runpath=no
11175   hardcode_into_libs=yes
11176   ;;
11177
11178 uts4*)
11179   version_type=linux
11180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11181   soname_spec='${libname}${release}${shared_ext}$major'
11182   shlibpath_var=LD_LIBRARY_PATH
11183   ;;
11184
11185 *)
11186   dynamic_linker=no
11187   ;;
11188 esac
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11190 $as_echo "$dynamic_linker" >&6; }
11191 test "$dynamic_linker" = no && can_build_shared=no
11192
11193 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11194 if test "$GCC" = yes; then
11195   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11196 fi
11197
11198 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11199   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11200 fi
11201 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11202   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11203 fi
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11297 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11298 hardcode_action=
11299 if test -n "$hardcode_libdir_flag_spec" ||
11300    test -n "$runpath_var" ||
11301    test "X$hardcode_automatic" = "Xyes" ; then
11302
11303   # We can hardcode non-existent directories.
11304   if test "$hardcode_direct" != no &&
11305      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11306      # have to relink, otherwise we might link with an installed library
11307      # when we should be linking with a yet-to-be-installed one
11308      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11309      test "$hardcode_minus_L" != no; then
11310     # Linking always hardcodes the temporary library directory.
11311     hardcode_action=relink
11312   else
11313     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11314     hardcode_action=immediate
11315   fi
11316 else
11317   # We cannot hardcode anything, or else we can only hardcode existing
11318   # directories.
11319   hardcode_action=unsupported
11320 fi
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11322 $as_echo "$hardcode_action" >&6; }
11323
11324 if test "$hardcode_action" = relink ||
11325    test "$inherit_rpath" = yes; then
11326   # Fast installation is not supported
11327   enable_fast_install=no
11328 elif test "$shlibpath_overrides_runpath" = yes ||
11329      test "$enable_shared" = no; then
11330   # Fast installation is not necessary
11331   enable_fast_install=needless
11332 fi
11333
11334
11335
11336
11337
11338
11339   if test "x$enable_dlopen" != xyes; then
11340   enable_dlopen=unknown
11341   enable_dlopen_self=unknown
11342   enable_dlopen_self_static=unknown
11343 else
11344   lt_cv_dlopen=no
11345   lt_cv_dlopen_libs=
11346
11347   case $host_os in
11348   beos*)
11349     lt_cv_dlopen="load_add_on"
11350     lt_cv_dlopen_libs=
11351     lt_cv_dlopen_self=yes
11352     ;;
11353
11354   mingw* | pw32* | cegcc*)
11355     lt_cv_dlopen="LoadLibrary"
11356     lt_cv_dlopen_libs=
11357     ;;
11358
11359   cygwin*)
11360     lt_cv_dlopen="dlopen"
11361     lt_cv_dlopen_libs=
11362     ;;
11363
11364   darwin*)
11365   # if libdl is installed we need to link against it
11366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11367 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11368 if ${ac_cv_lib_dl_dlopen+:} false; then :
11369   $as_echo_n "(cached) " >&6
11370 else
11371   ac_check_lib_save_LIBS=$LIBS
11372 LIBS="-ldl  $LIBS"
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h.  */
11375
11376 /* Override any GCC internal prototype to avoid an error.
11377    Use char because int might match the return type of a GCC
11378    builtin and then its argument prototype would still apply.  */
11379 #ifdef __cplusplus
11380 extern "C"
11381 #endif
11382 char dlopen ();
11383 int
11384 main ()
11385 {
11386 return dlopen ();
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 if ac_fn_c_try_link "$LINENO"; then :
11392   ac_cv_lib_dl_dlopen=yes
11393 else
11394   ac_cv_lib_dl_dlopen=no
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext \
11397     conftest$ac_exeext conftest.$ac_ext
11398 LIBS=$ac_check_lib_save_LIBS
11399 fi
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11401 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11402 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11403   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11404 else
11405
11406     lt_cv_dlopen="dyld"
11407     lt_cv_dlopen_libs=
11408     lt_cv_dlopen_self=yes
11409
11410 fi
11411
11412     ;;
11413
11414   *)
11415     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11416 if test "x$ac_cv_func_shl_load" = xyes; then :
11417   lt_cv_dlopen="shl_load"
11418 else
11419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11420 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11421 if ${ac_cv_lib_dld_shl_load+:} false; then :
11422   $as_echo_n "(cached) " >&6
11423 else
11424   ac_check_lib_save_LIBS=$LIBS
11425 LIBS="-ldld  $LIBS"
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h.  */
11428
11429 /* Override any GCC internal prototype to avoid an error.
11430    Use char because int might match the return type of a GCC
11431    builtin and then its argument prototype would still apply.  */
11432 #ifdef __cplusplus
11433 extern "C"
11434 #endif
11435 char shl_load ();
11436 int
11437 main ()
11438 {
11439 return shl_load ();
11440   ;
11441   return 0;
11442 }
11443 _ACEOF
11444 if ac_fn_c_try_link "$LINENO"; then :
11445   ac_cv_lib_dld_shl_load=yes
11446 else
11447   ac_cv_lib_dld_shl_load=no
11448 fi
11449 rm -f core conftest.err conftest.$ac_objext \
11450     conftest$ac_exeext conftest.$ac_ext
11451 LIBS=$ac_check_lib_save_LIBS
11452 fi
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11454 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11455 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11456   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11457 else
11458   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11459 if test "x$ac_cv_func_dlopen" = xyes; then :
11460   lt_cv_dlopen="dlopen"
11461 else
11462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11463 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11464 if ${ac_cv_lib_dl_dlopen+:} false; then :
11465   $as_echo_n "(cached) " >&6
11466 else
11467   ac_check_lib_save_LIBS=$LIBS
11468 LIBS="-ldl  $LIBS"
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h.  */
11471
11472 /* Override any GCC internal prototype to avoid an error.
11473    Use char because int might match the return type of a GCC
11474    builtin and then its argument prototype would still apply.  */
11475 #ifdef __cplusplus
11476 extern "C"
11477 #endif
11478 char dlopen ();
11479 int
11480 main ()
11481 {
11482 return dlopen ();
11483   ;
11484   return 0;
11485 }
11486 _ACEOF
11487 if ac_fn_c_try_link "$LINENO"; then :
11488   ac_cv_lib_dl_dlopen=yes
11489 else
11490   ac_cv_lib_dl_dlopen=no
11491 fi
11492 rm -f core conftest.err conftest.$ac_objext \
11493     conftest$ac_exeext conftest.$ac_ext
11494 LIBS=$ac_check_lib_save_LIBS
11495 fi
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11497 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11498 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11499   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11500 else
11501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11502 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11503 if ${ac_cv_lib_svld_dlopen+:} false; then :
11504   $as_echo_n "(cached) " >&6
11505 else
11506   ac_check_lib_save_LIBS=$LIBS
11507 LIBS="-lsvld  $LIBS"
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h.  */
11510
11511 /* Override any GCC internal prototype to avoid an error.
11512    Use char because int might match the return type of a GCC
11513    builtin and then its argument prototype would still apply.  */
11514 #ifdef __cplusplus
11515 extern "C"
11516 #endif
11517 char dlopen ();
11518 int
11519 main ()
11520 {
11521 return dlopen ();
11522   ;
11523   return 0;
11524 }
11525 _ACEOF
11526 if ac_fn_c_try_link "$LINENO"; then :
11527   ac_cv_lib_svld_dlopen=yes
11528 else
11529   ac_cv_lib_svld_dlopen=no
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext \
11532     conftest$ac_exeext conftest.$ac_ext
11533 LIBS=$ac_check_lib_save_LIBS
11534 fi
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11536 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11537 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11538   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11539 else
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11541 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11542 if ${ac_cv_lib_dld_dld_link+:} false; then :
11543   $as_echo_n "(cached) " >&6
11544 else
11545   ac_check_lib_save_LIBS=$LIBS
11546 LIBS="-ldld  $LIBS"
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h.  */
11549
11550 /* Override any GCC internal prototype to avoid an error.
11551    Use char because int might match the return type of a GCC
11552    builtin and then its argument prototype would still apply.  */
11553 #ifdef __cplusplus
11554 extern "C"
11555 #endif
11556 char dld_link ();
11557 int
11558 main ()
11559 {
11560 return dld_link ();
11561   ;
11562   return 0;
11563 }
11564 _ACEOF
11565 if ac_fn_c_try_link "$LINENO"; then :
11566   ac_cv_lib_dld_dld_link=yes
11567 else
11568   ac_cv_lib_dld_dld_link=no
11569 fi
11570 rm -f core conftest.err conftest.$ac_objext \
11571     conftest$ac_exeext conftest.$ac_ext
11572 LIBS=$ac_check_lib_save_LIBS
11573 fi
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11575 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11576 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11577   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11578 fi
11579
11580
11581 fi
11582
11583
11584 fi
11585
11586
11587 fi
11588
11589
11590 fi
11591
11592
11593 fi
11594
11595     ;;
11596   esac
11597
11598   if test "x$lt_cv_dlopen" != xno; then
11599     enable_dlopen=yes
11600   else
11601     enable_dlopen=no
11602   fi
11603
11604   case $lt_cv_dlopen in
11605   dlopen)
11606     save_CPPFLAGS="$CPPFLAGS"
11607     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11608
11609     save_LDFLAGS="$LDFLAGS"
11610     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11611
11612     save_LIBS="$LIBS"
11613     LIBS="$lt_cv_dlopen_libs $LIBS"
11614
11615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11616 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11617 if ${lt_cv_dlopen_self+:} false; then :
11618   $as_echo_n "(cached) " >&6
11619 else
11620           if test "$cross_compiling" = yes; then :
11621   lt_cv_dlopen_self=cross
11622 else
11623   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11624   lt_status=$lt_dlunknown
11625   cat > conftest.$ac_ext <<_LT_EOF
11626 #line 11626 "configure"
11627 #include "confdefs.h"
11628
11629 #if HAVE_DLFCN_H
11630 #include <dlfcn.h>
11631 #endif
11632
11633 #include <stdio.h>
11634
11635 #ifdef RTLD_GLOBAL
11636 #  define LT_DLGLOBAL           RTLD_GLOBAL
11637 #else
11638 #  ifdef DL_GLOBAL
11639 #    define LT_DLGLOBAL         DL_GLOBAL
11640 #  else
11641 #    define LT_DLGLOBAL         0
11642 #  endif
11643 #endif
11644
11645 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11646    find out it does not work in some platform. */
11647 #ifndef LT_DLLAZY_OR_NOW
11648 #  ifdef RTLD_LAZY
11649 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11650 #  else
11651 #    ifdef DL_LAZY
11652 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11653 #    else
11654 #      ifdef RTLD_NOW
11655 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11656 #      else
11657 #        ifdef DL_NOW
11658 #          define LT_DLLAZY_OR_NOW      DL_NOW
11659 #        else
11660 #          define LT_DLLAZY_OR_NOW      0
11661 #        endif
11662 #      endif
11663 #    endif
11664 #  endif
11665 #endif
11666
11667 /* When -fvisbility=hidden is used, assume the code has been annotated
11668    correspondingly for the symbols needed.  */
11669 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11670 void fnord () __attribute__((visibility("default")));
11671 #endif
11672
11673 void fnord () { int i=42; }
11674 int main ()
11675 {
11676   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11677   int status = $lt_dlunknown;
11678
11679   if (self)
11680     {
11681       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11682       else
11683         {
11684           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11685           else puts (dlerror ());
11686         }
11687       /* dlclose (self); */
11688     }
11689   else
11690     puts (dlerror ());
11691
11692   return status;
11693 }
11694 _LT_EOF
11695   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11696   (eval $ac_link) 2>&5
11697   ac_status=$?
11698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11699   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11700     (./conftest; exit; ) >&5 2>/dev/null
11701     lt_status=$?
11702     case x$lt_status in
11703       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11704       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11705       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11706     esac
11707   else :
11708     # compilation failed
11709     lt_cv_dlopen_self=no
11710   fi
11711 fi
11712 rm -fr conftest*
11713
11714
11715 fi
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11717 $as_echo "$lt_cv_dlopen_self" >&6; }
11718
11719     if test "x$lt_cv_dlopen_self" = xyes; then
11720       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11721       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11722 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11723 if ${lt_cv_dlopen_self_static+:} false; then :
11724   $as_echo_n "(cached) " >&6
11725 else
11726           if test "$cross_compiling" = yes; then :
11727   lt_cv_dlopen_self_static=cross
11728 else
11729   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11730   lt_status=$lt_dlunknown
11731   cat > conftest.$ac_ext <<_LT_EOF
11732 #line 11732 "configure"
11733 #include "confdefs.h"
11734
11735 #if HAVE_DLFCN_H
11736 #include <dlfcn.h>
11737 #endif
11738
11739 #include <stdio.h>
11740
11741 #ifdef RTLD_GLOBAL
11742 #  define LT_DLGLOBAL           RTLD_GLOBAL
11743 #else
11744 #  ifdef DL_GLOBAL
11745 #    define LT_DLGLOBAL         DL_GLOBAL
11746 #  else
11747 #    define LT_DLGLOBAL         0
11748 #  endif
11749 #endif
11750
11751 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11752    find out it does not work in some platform. */
11753 #ifndef LT_DLLAZY_OR_NOW
11754 #  ifdef RTLD_LAZY
11755 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11756 #  else
11757 #    ifdef DL_LAZY
11758 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11759 #    else
11760 #      ifdef RTLD_NOW
11761 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11762 #      else
11763 #        ifdef DL_NOW
11764 #          define LT_DLLAZY_OR_NOW      DL_NOW
11765 #        else
11766 #          define LT_DLLAZY_OR_NOW      0
11767 #        endif
11768 #      endif
11769 #    endif
11770 #  endif
11771 #endif
11772
11773 /* When -fvisbility=hidden is used, assume the code has been annotated
11774    correspondingly for the symbols needed.  */
11775 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11776 void fnord () __attribute__((visibility("default")));
11777 #endif
11778
11779 void fnord () { int i=42; }
11780 int main ()
11781 {
11782   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11783   int status = $lt_dlunknown;
11784
11785   if (self)
11786     {
11787       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11788       else
11789         {
11790           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11791           else puts (dlerror ());
11792         }
11793       /* dlclose (self); */
11794     }
11795   else
11796     puts (dlerror ());
11797
11798   return status;
11799 }
11800 _LT_EOF
11801   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11802   (eval $ac_link) 2>&5
11803   ac_status=$?
11804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11805   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11806     (./conftest; exit; ) >&5 2>/dev/null
11807     lt_status=$?
11808     case x$lt_status in
11809       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11810       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11811       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11812     esac
11813   else :
11814     # compilation failed
11815     lt_cv_dlopen_self_static=no
11816   fi
11817 fi
11818 rm -fr conftest*
11819
11820
11821 fi
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11823 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11824     fi
11825
11826     CPPFLAGS="$save_CPPFLAGS"
11827     LDFLAGS="$save_LDFLAGS"
11828     LIBS="$save_LIBS"
11829     ;;
11830   esac
11831
11832   case $lt_cv_dlopen_self in
11833   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11834   *) enable_dlopen_self=unknown ;;
11835   esac
11836
11837   case $lt_cv_dlopen_self_static in
11838   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11839   *) enable_dlopen_self_static=unknown ;;
11840   esac
11841 fi
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859 striplib=
11860 old_striplib=
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11862 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11863 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11864   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11865   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11867 $as_echo "yes" >&6; }
11868 else
11869 # FIXME - insert some real tests, host_os isn't really good enough
11870   case $host_os in
11871   darwin*)
11872     if test -n "$STRIP" ; then
11873       striplib="$STRIP -x"
11874       old_striplib="$STRIP -S"
11875       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11876 $as_echo "yes" >&6; }
11877     else
11878       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879 $as_echo "no" >&6; }
11880     fi
11881     ;;
11882   *)
11883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11885     ;;
11886   esac
11887 fi
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900   # Report which library types will actually be built
11901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11902 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11904 $as_echo "$can_build_shared" >&6; }
11905
11906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11907 $as_echo_n "checking whether to build shared libraries... " >&6; }
11908   test "$can_build_shared" = "no" && enable_shared=no
11909
11910   # On AIX, shared libraries and static libraries use the same namespace, and
11911   # are all built from PIC.
11912   case $host_os in
11913   aix3*)
11914     test "$enable_shared" = yes && enable_static=no
11915     if test -n "$RANLIB"; then
11916       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11917       postinstall_cmds='$RANLIB $lib'
11918     fi
11919     ;;
11920
11921   aix[4-9]*)
11922     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11923       test "$enable_shared" = yes && enable_static=no
11924     fi
11925     ;;
11926   esac
11927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11928 $as_echo "$enable_shared" >&6; }
11929
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11931 $as_echo_n "checking whether to build static libraries... " >&6; }
11932   # Make sure either enable_shared or enable_static is yes.
11933   test "$enable_shared" = yes || enable_static=yes
11934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11935 $as_echo "$enable_static" >&6; }
11936
11937
11938
11939
11940 fi
11941 ac_ext=c
11942 ac_cpp='$CPP $CPPFLAGS'
11943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11946
11947 CC="$lt_save_CC"
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961         ac_config_commands="$ac_config_commands libtool"
11962
11963
11964
11965
11966 # Only expand once:
11967
11968
11969
11970
11971
11972   gdc_save_DFLAGS=$GDCFLAGS
11973   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
11974
11975
11976 # Source file extension for D test sources.
11977 ac_ext=d
11978
11979 # Object file extension for compiled D test sources.
11980 objext=o
11981 objext_D=$objext
11982
11983 # Code to be used in simple compile tests
11984 lt_simple_compile_test_code="\
11985   module object;
11986   shared int some_variable = 0;
11987 "
11988
11989 # Code to be used in simple link tests
11990 lt_simple_link_test_code="\
11991   module object;
11992   extern(C) int main() { return 0; }
11993 "
11994
11995 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11996
11997
11998
11999
12000
12001
12002 # If no C compiler was specified, use CC.
12003 LTCC=${LTCC-"$CC"}
12004
12005 # If no C compiler flags were specified, use CFLAGS.
12006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12007
12008 # Allow CC to be a program name with arguments.
12009 compiler=$CC
12010
12011
12012 # save warnings/boilerplate of simple test code
12013 ac_outfile=conftest.$ac_objext
12014 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12015 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12016 _lt_compiler_boilerplate=`cat conftest.err`
12017 $RM conftest*
12018
12019 ac_outfile=conftest.$ac_objext
12020 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12021 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12022 _lt_linker_boilerplate=`cat conftest.err`
12023 $RM -r conftest*
12024
12025
12026 # Allow CC to be a program name with arguments.
12027 lt_save_CC=$CC
12028 lt_save_CFLAGS=$CFLAGS
12029 lt_save_GCC=$GCC
12030 GCC=yes
12031 CC=${GDC-"gdc"}
12032 CFLAGS=$GDCFLAGS
12033 compiler=$CC
12034 compiler_D=$CC
12035 LD_D=$CC
12036 for cc_temp in $compiler""; do
12037   case $cc_temp in
12038     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12039     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12040     \-*) ;;
12041     *) break;;
12042   esac
12043 done
12044 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12045
12046
12047 # GDC did not exist at the time GCC didn't implicitly link libc in.
12048 archive_cmds_need_lc_D=no
12049
12050 old_archive_cmds_D=$old_archive_cmds
12051 reload_flag_D=$reload_flag
12052 reload_cmds_D=$reload_cmds
12053
12054 ## CAVEAT EMPTOR:
12055 ## There is no encapsulation within the following macros, do not change
12056 ## the running order or otherwise move them around unless you know exactly
12057 ## what you are doing...
12058 if test -n "$compiler"; then
12059
12060 lt_prog_compiler_no_builtin_flag_D=
12061
12062 if test "$GCC" = yes; then
12063   case $cc_basename in
12064   nvcc*)
12065     lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12066   *)
12067     lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12068   esac
12069
12070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12071 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12072 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12073   $as_echo_n "(cached) " >&6
12074 else
12075   lt_cv_prog_compiler_rtti_exceptions=no
12076    ac_outfile=conftest.$ac_objext
12077    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12078    lt_compiler_flag="-fno-rtti -fno-exceptions"
12079    # Insert the option either (1) after the last *FLAGS variable, or
12080    # (2) before a word containing "conftest.", or (3) at the end.
12081    # Note that $ac_compile itself does not contain backslashes and begins
12082    # with a dollar sign (not a hyphen), so the echo should work correctly.
12083    # The option is referenced via a variable to avoid confusing sed.
12084    lt_compile=`echo "$ac_compile" | $SED \
12085    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12086    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12087    -e 's:$: $lt_compiler_flag:'`
12088    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12089    (eval "$lt_compile" 2>conftest.err)
12090    ac_status=$?
12091    cat conftest.err >&5
12092    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093    if (exit $ac_status) && test -s "$ac_outfile"; then
12094      # The compiler can only warn and ignore the option if not recognized
12095      # So say no if there are warnings other than the usual output.
12096      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12097      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12098      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12099        lt_cv_prog_compiler_rtti_exceptions=yes
12100      fi
12101    fi
12102    $RM conftest*
12103
12104 fi
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12106 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12107
12108 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12109     lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12110 else
12111     :
12112 fi
12113
12114 fi
12115
12116
12117
12118   lt_prog_compiler_wl_D=
12119 lt_prog_compiler_pic_D=
12120 lt_prog_compiler_static_D=
12121
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12123 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12124
12125   if test "$GCC" = yes; then
12126     lt_prog_compiler_wl_D='-Wl,'
12127     lt_prog_compiler_static_D='-static'
12128
12129     case $host_os in
12130       aix*)
12131       # All AIX code is PIC.
12132       if test "$host_cpu" = ia64; then
12133         # AIX 5 now supports IA64 processor
12134         lt_prog_compiler_static_D='-Bstatic'
12135       fi
12136       lt_prog_compiler_pic_D='-fPIC'
12137       ;;
12138
12139     amigaos*)
12140       case $host_cpu in
12141       powerpc)
12142             # see comment about AmigaOS4 .so support
12143             lt_prog_compiler_pic_D='-fPIC'
12144         ;;
12145       m68k)
12146             # FIXME: we need at least 68020 code to build shared libraries, but
12147             # adding the `-m68020' flag to GCC prevents building anything better,
12148             # like `-m68040'.
12149             lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12150         ;;
12151       esac
12152       ;;
12153
12154     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12155       # PIC is the default for these OSes.
12156       ;;
12157
12158     mingw* | cygwin* | pw32* | os2* | cegcc*)
12159       # This hack is so that the source file can tell whether it is being
12160       # built for inclusion in a dll (and should export symbols for example).
12161       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12162       # (--disable-auto-import) libraries
12163       lt_prog_compiler_pic_D='-DDLL_EXPORT'
12164       ;;
12165
12166     darwin* | rhapsody*)
12167       # PIC is the default on this platform
12168       # Common symbols not allowed in MH_DYLIB files
12169       lt_prog_compiler_pic_D='-fno-common'
12170       ;;
12171
12172     haiku*)
12173       # PIC is the default for Haiku.
12174       # The "-static" flag exists, but is broken.
12175       lt_prog_compiler_static_D=
12176       ;;
12177
12178     hpux*)
12179       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12180       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12181       # sets the default TLS model and affects inlining.
12182       case $host_cpu in
12183       hppa*64*)
12184         # +Z the default
12185         ;;
12186       *)
12187         lt_prog_compiler_pic_D='-fPIC'
12188         ;;
12189       esac
12190       ;;
12191
12192     interix[3-9]*)
12193       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12194       # Instead, we relocate shared libraries at runtime.
12195       ;;
12196
12197     msdosdjgpp*)
12198       # Just because we use GCC doesn't mean we suddenly get shared libraries
12199       # on systems that don't support them.
12200       lt_prog_compiler_can_build_shared_D=no
12201       enable_shared=no
12202       ;;
12203
12204     *nto* | *qnx*)
12205       # QNX uses GNU C++, but need to define -shared option too, otherwise
12206       # it will coredump.
12207       lt_prog_compiler_pic_D='-fPIC -shared'
12208       ;;
12209
12210     sysv4*MP*)
12211       if test -d /usr/nec; then
12212         lt_prog_compiler_pic_D=-Kconform_pic
12213       fi
12214       ;;
12215
12216     *)
12217       lt_prog_compiler_pic_D='-fPIC'
12218       ;;
12219     esac
12220
12221     case $cc_basename in
12222     nvcc*) # Cuda Compiler Driver 2.2
12223       lt_prog_compiler_wl_D='-Xlinker '
12224       lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12225       ;;
12226     esac
12227   else
12228     # PORTME Check for flag to pass linker flags through the system compiler.
12229     case $host_os in
12230     aix*)
12231       lt_prog_compiler_wl_D='-Wl,'
12232       if test "$host_cpu" = ia64; then
12233         # AIX 5 now supports IA64 processor
12234         lt_prog_compiler_static_D='-Bstatic'
12235       else
12236         lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12237       fi
12238       ;;
12239
12240     mingw* | cygwin* | pw32* | os2* | cegcc*)
12241       # This hack is so that the source file can tell whether it is being
12242       # built for inclusion in a dll (and should export symbols for example).
12243       lt_prog_compiler_pic_D='-DDLL_EXPORT'
12244       ;;
12245
12246     hpux9* | hpux10* | hpux11*)
12247       lt_prog_compiler_wl_D='-Wl,'
12248       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12249       # not for PA HP-UX.
12250       case $host_cpu in
12251       hppa*64*|ia64*)
12252         # +Z the default
12253         ;;
12254       *)
12255         lt_prog_compiler_pic_D='+Z'
12256         ;;
12257       esac
12258       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12259       lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12260       ;;
12261
12262     irix5* | irix6* | nonstopux*)
12263       lt_prog_compiler_wl_D='-Wl,'
12264       # PIC (with -KPIC) is the default.
12265       lt_prog_compiler_static_D='-non_shared'
12266       ;;
12267
12268     linux* | k*bsd*-gnu | kopensolaris*-gnu)
12269       case $cc_basename in
12270       # old Intel for x86_64 which still supported -KPIC.
12271       ecc*)
12272         lt_prog_compiler_wl_D='-Wl,'
12273         lt_prog_compiler_pic_D='-KPIC'
12274         lt_prog_compiler_static_D='-static'
12275         ;;
12276       # icc used to be incompatible with GCC.
12277       # ICC 10 doesn't accept -KPIC any more.
12278       icc* | ifort*)
12279         lt_prog_compiler_wl_D='-Wl,'
12280         lt_prog_compiler_pic_D='-fPIC'
12281         lt_prog_compiler_static_D='-static'
12282         ;;
12283       # Lahey Fortran 8.1.
12284       lf95*)
12285         lt_prog_compiler_wl_D='-Wl,'
12286         lt_prog_compiler_pic_D='--shared'
12287         lt_prog_compiler_static_D='--static'
12288         ;;
12289       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12290         # Portland Group compilers (*not* the Pentium gcc compiler,
12291         # which looks to be a dead project)
12292         lt_prog_compiler_wl_D='-Wl,'
12293         lt_prog_compiler_pic_D='-fpic'
12294         lt_prog_compiler_static_D='-Bstatic'
12295         ;;
12296       ccc*)
12297         lt_prog_compiler_wl_D='-Wl,'
12298         # All Alpha code is PIC.
12299         lt_prog_compiler_static_D='-non_shared'
12300         ;;
12301       xl* | bgxl* | bgf* | mpixl*)
12302         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12303         lt_prog_compiler_wl_D='-Wl,'
12304         lt_prog_compiler_pic_D='-qpic'
12305         lt_prog_compiler_static_D='-qstaticlink'
12306         ;;
12307       *)
12308         case `$CC -V 2>&1 | sed 5q` in
12309         *Sun\ F* | *Sun*Fortran*)
12310           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12311           lt_prog_compiler_pic_D='-KPIC'
12312           lt_prog_compiler_static_D='-Bstatic'
12313           lt_prog_compiler_wl_D=''
12314           ;;
12315         *Sun\ C*)
12316           # Sun C 5.9
12317           lt_prog_compiler_pic_D='-KPIC'
12318           lt_prog_compiler_static_D='-Bstatic'
12319           lt_prog_compiler_wl_D='-Wl,'
12320           ;;
12321         esac
12322         ;;
12323       esac
12324       ;;
12325
12326     newsos6)
12327       lt_prog_compiler_pic_D='-KPIC'
12328       lt_prog_compiler_static_D='-Bstatic'
12329       ;;
12330
12331     *nto* | *qnx*)
12332       # QNX uses GNU C++, but need to define -shared option too, otherwise
12333       # it will coredump.
12334       lt_prog_compiler_pic_D='-fPIC -shared'
12335       ;;
12336
12337     osf3* | osf4* | osf5*)
12338       lt_prog_compiler_wl_D='-Wl,'
12339       # All OSF/1 code is PIC.
12340       lt_prog_compiler_static_D='-non_shared'
12341       ;;
12342
12343     rdos*)
12344       lt_prog_compiler_static_D='-non_shared'
12345       ;;
12346
12347     solaris*)
12348       lt_prog_compiler_pic_D='-KPIC'
12349       lt_prog_compiler_static_D='-Bstatic'
12350       case $cc_basename in
12351       f77* | f90* | f95*)
12352         lt_prog_compiler_wl_D='-Qoption ld ';;
12353       *)
12354         lt_prog_compiler_wl_D='-Wl,';;
12355       esac
12356       ;;
12357
12358     sunos4*)
12359       lt_prog_compiler_wl_D='-Qoption ld '
12360       lt_prog_compiler_pic_D='-PIC'
12361       lt_prog_compiler_static_D='-Bstatic'
12362       ;;
12363
12364     sysv4 | sysv4.2uw2* | sysv4.3*)
12365       lt_prog_compiler_wl_D='-Wl,'
12366       lt_prog_compiler_pic_D='-KPIC'
12367       lt_prog_compiler_static_D='-Bstatic'
12368       ;;
12369
12370     sysv4*MP*)
12371       if test -d /usr/nec ;then
12372         lt_prog_compiler_pic_D='-Kconform_pic'
12373         lt_prog_compiler_static_D='-Bstatic'
12374       fi
12375       ;;
12376
12377     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12378       lt_prog_compiler_wl_D='-Wl,'
12379       lt_prog_compiler_pic_D='-KPIC'
12380       lt_prog_compiler_static_D='-Bstatic'
12381       ;;
12382
12383     unicos*)
12384       lt_prog_compiler_wl_D='-Wl,'
12385       lt_prog_compiler_can_build_shared_D=no
12386       ;;
12387
12388     uts4*)
12389       lt_prog_compiler_pic_D='-pic'
12390       lt_prog_compiler_static_D='-Bstatic'
12391       ;;
12392
12393     *)
12394       lt_prog_compiler_can_build_shared_D=no
12395       ;;
12396     esac
12397   fi
12398
12399 case $host_os in
12400   # For platforms which do not support PIC, -DPIC is meaningless:
12401   *djgpp*)
12402     lt_prog_compiler_pic_D=
12403     ;;
12404   *)
12405     lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12406     ;;
12407 esac
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12409 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12410
12411
12412
12413 #
12414 # Check to make sure the PIC flag actually works.
12415 #
12416 if test -n "$lt_prog_compiler_pic_D"; then
12417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12418 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12419 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12420   $as_echo_n "(cached) " >&6
12421 else
12422   lt_cv_prog_compiler_pic_works_D=no
12423    ac_outfile=conftest.$ac_objext
12424    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12425    lt_compiler_flag="$lt_prog_compiler_pic_D"
12426    # Insert the option either (1) after the last *FLAGS variable, or
12427    # (2) before a word containing "conftest.", or (3) at the end.
12428    # Note that $ac_compile itself does not contain backslashes and begins
12429    # with a dollar sign (not a hyphen), so the echo should work correctly.
12430    # The option is referenced via a variable to avoid confusing sed.
12431    lt_compile=`echo "$ac_compile" | $SED \
12432    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12433    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12434    -e 's:$: $lt_compiler_flag:'`
12435    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12436    (eval "$lt_compile" 2>conftest.err)
12437    ac_status=$?
12438    cat conftest.err >&5
12439    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440    if (exit $ac_status) && test -s "$ac_outfile"; then
12441      # The compiler can only warn and ignore the option if not recognized
12442      # So say no if there are warnings other than the usual output.
12443      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12444      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12445      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12446        lt_cv_prog_compiler_pic_works_D=yes
12447      fi
12448    fi
12449    $RM conftest*
12450
12451 fi
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12453 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12454
12455 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12456     case $lt_prog_compiler_pic_D in
12457      "" | " "*) ;;
12458      *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12459      esac
12460 else
12461     lt_prog_compiler_pic_D=
12462      lt_prog_compiler_can_build_shared_D=no
12463 fi
12464
12465 fi
12466
12467
12468
12469 #
12470 # Check to make sure the static flag actually works.
12471 #
12472 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12474 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12475 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12476   $as_echo_n "(cached) " >&6
12477 else
12478   lt_cv_prog_compiler_static_works_D=no
12479    save_LDFLAGS="$LDFLAGS"
12480    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12481    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12482    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12483      # The linker can only warn and ignore the option if not recognized
12484      # So say no if there are warnings
12485      if test -s conftest.err; then
12486        # Append any errors to the config.log.
12487        cat conftest.err 1>&5
12488        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12489        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12490        if diff conftest.exp conftest.er2 >/dev/null; then
12491          lt_cv_prog_compiler_static_works_D=yes
12492        fi
12493      else
12494        lt_cv_prog_compiler_static_works_D=yes
12495      fi
12496    fi
12497    $RM -r conftest*
12498    LDFLAGS="$save_LDFLAGS"
12499
12500 fi
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12502 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12503
12504 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12505     :
12506 else
12507     lt_prog_compiler_static_D=
12508 fi
12509
12510
12511
12512
12513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12514 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12515 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12516   $as_echo_n "(cached) " >&6
12517 else
12518   lt_cv_prog_compiler_c_o_D=no
12519    $RM -r conftest 2>/dev/null
12520    mkdir conftest
12521    cd conftest
12522    mkdir out
12523    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12524
12525    lt_compiler_flag="-o out/conftest2.$ac_objext"
12526    # Insert the option either (1) after the last *FLAGS variable, or
12527    # (2) before a word containing "conftest.", or (3) at the end.
12528    # Note that $ac_compile itself does not contain backslashes and begins
12529    # with a dollar sign (not a hyphen), so the echo should work correctly.
12530    lt_compile=`echo "$ac_compile" | $SED \
12531    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12532    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12533    -e 's:$: $lt_compiler_flag:'`
12534    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12535    (eval "$lt_compile" 2>out/conftest.err)
12536    ac_status=$?
12537    cat out/conftest.err >&5
12538    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12540    then
12541      # The compiler can only warn and ignore the option if not recognized
12542      # So say no if there are warnings
12543      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12544      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12545      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12546        lt_cv_prog_compiler_c_o_D=yes
12547      fi
12548    fi
12549    chmod u+w . 2>&5
12550    $RM conftest*
12551    # SGI C++ compiler will create directory out/ii_files/ for
12552    # template instantiation
12553    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12554    $RM out/* && rmdir out
12555    cd ..
12556    $RM -r conftest
12557    $RM conftest*
12558
12559 fi
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12561 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12562
12563
12564
12565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12566 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12567 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12568   $as_echo_n "(cached) " >&6
12569 else
12570   lt_cv_prog_compiler_c_o_D=no
12571    $RM -r conftest 2>/dev/null
12572    mkdir conftest
12573    cd conftest
12574    mkdir out
12575    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12576
12577    lt_compiler_flag="-o out/conftest2.$ac_objext"
12578    # Insert the option either (1) after the last *FLAGS variable, or
12579    # (2) before a word containing "conftest.", or (3) at the end.
12580    # Note that $ac_compile itself does not contain backslashes and begins
12581    # with a dollar sign (not a hyphen), so the echo should work correctly.
12582    lt_compile=`echo "$ac_compile" | $SED \
12583    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12584    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12585    -e 's:$: $lt_compiler_flag:'`
12586    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12587    (eval "$lt_compile" 2>out/conftest.err)
12588    ac_status=$?
12589    cat out/conftest.err >&5
12590    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12592    then
12593      # The compiler can only warn and ignore the option if not recognized
12594      # So say no if there are warnings
12595      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12596      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12597      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12598        lt_cv_prog_compiler_c_o_D=yes
12599      fi
12600    fi
12601    chmod u+w . 2>&5
12602    $RM conftest*
12603    # SGI C++ compiler will create directory out/ii_files/ for
12604    # template instantiation
12605    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12606    $RM out/* && rmdir out
12607    cd ..
12608    $RM -r conftest
12609    $RM conftest*
12610
12611 fi
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12613 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12614
12615
12616
12617
12618 hard_links="nottested"
12619 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12620   # do not overwrite the value of need_locks provided by the user
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12622 $as_echo_n "checking if we can lock with hard links... " >&6; }
12623   hard_links=yes
12624   $RM conftest*
12625   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12626   touch conftest.a
12627   ln conftest.a conftest.b 2>&5 || hard_links=no
12628   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12630 $as_echo "$hard_links" >&6; }
12631   if test "$hard_links" = no; then
12632     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12633 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12634     need_locks=warn
12635   fi
12636 else
12637   need_locks=no
12638 fi
12639
12640
12641
12642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12643 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12644
12645   runpath_var=
12646   allow_undefined_flag_D=
12647   always_export_symbols_D=no
12648   archive_cmds_D=
12649   archive_expsym_cmds_D=
12650   compiler_needs_object_D=no
12651   enable_shared_with_static_runtimes_D=no
12652   export_dynamic_flag_spec_D=
12653   export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12654   hardcode_automatic_D=no
12655   hardcode_direct_D=no
12656   hardcode_direct_absolute_D=no
12657   hardcode_libdir_flag_spec_D=
12658   hardcode_libdir_flag_spec_ld_D=
12659   hardcode_libdir_separator_D=
12660   hardcode_minus_L_D=no
12661   hardcode_shlibpath_var_D=unsupported
12662   inherit_rpath_D=no
12663   link_all_deplibs_D=unknown
12664   module_cmds_D=
12665   module_expsym_cmds_D=
12666   old_archive_from_new_cmds_D=
12667   old_archive_from_expsyms_cmds_D=
12668   thread_safe_flag_spec_D=
12669   whole_archive_flag_spec_D=
12670   # include_expsyms should be a list of space-separated symbols to be *always*
12671   # included in the symbol list
12672   include_expsyms_D=
12673   # exclude_expsyms can be an extended regexp of symbols to exclude
12674   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12675   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12676   # as well as any symbol that contains `d'.
12677   exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12678   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12679   # platforms (ab)use it in PIC code, but their linkers get confused if
12680   # the symbol is explicitly referenced.  Since portable code cannot
12681   # rely on this symbol name, it's probably fine to never include it in
12682   # preloaded symbol tables.
12683   # Exclude shared library initialization/finalization symbols.
12684   extract_expsyms_cmds=
12685
12686   case $host_os in
12687   cygwin* | mingw* | pw32* | cegcc*)
12688     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12689     # When not using gcc, we currently assume that we are using
12690     # Microsoft Visual C++.
12691     if test "$GCC" != yes; then
12692       with_gnu_ld=no
12693     fi
12694     ;;
12695   interix*)
12696     # we just hope/assume this is gcc and not c89 (= MSVC++)
12697     with_gnu_ld=yes
12698     ;;
12699   openbsd*)
12700     with_gnu_ld=no
12701     ;;
12702   esac
12703
12704   ld_shlibs_D=yes
12705
12706   # On some targets, GNU ld is compatible enough with the native linker
12707   # that we're better off using the native interface for both.
12708   lt_use_gnu_ld_interface=no
12709   if test "$with_gnu_ld" = yes; then
12710     case $host_os in
12711       aix*)
12712         # The AIX port of GNU ld has always aspired to compatibility
12713         # with the native linker.  However, as the warning in the GNU ld
12714         # block says, versions before 2.19.5* couldn't really create working
12715         # shared libraries, regardless of the interface used.
12716         case `$LD -v 2>&1` in
12717           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12718           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12719           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12720           *)
12721             lt_use_gnu_ld_interface=yes
12722             ;;
12723         esac
12724         ;;
12725       *)
12726         lt_use_gnu_ld_interface=yes
12727         ;;
12728     esac
12729   fi
12730
12731   if test "$lt_use_gnu_ld_interface" = yes; then
12732     # If archive_cmds runs LD, not CC, wlarc should be empty
12733     wlarc='${wl}'
12734
12735     # Set some defaults for GNU ld with shared library support. These
12736     # are reset later if shared libraries are not supported. Putting them
12737     # here allows them to be overridden if necessary.
12738     runpath_var=LD_RUN_PATH
12739     hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12740     export_dynamic_flag_spec_D='${wl}--export-dynamic'
12741     # ancient GNU ld didn't support --whole-archive et. al.
12742     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12743       whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12744     else
12745       whole_archive_flag_spec_D=
12746     fi
12747     supports_anon_versioning=no
12748     case `$LD -v 2>&1` in
12749       *GNU\ gold*) supports_anon_versioning=yes ;;
12750       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12751       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12752       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12753       *\ 2.11.*) ;; # other 2.11 versions
12754       *) supports_anon_versioning=yes ;;
12755     esac
12756
12757     # See if GNU ld supports shared libraries.
12758     case $host_os in
12759     aix[3-9]*)
12760       # On AIX/PPC, the GNU linker is very broken
12761       if test "$host_cpu" != ia64; then
12762         ld_shlibs_D=no
12763         cat <<_LT_EOF 1>&2
12764
12765 *** Warning: the GNU linker, at least up to release 2.19, is reported
12766 *** to be unable to reliably create shared libraries on AIX.
12767 *** Therefore, libtool is disabling shared libraries support.  If you
12768 *** really care for shared libraries, you may want to install binutils
12769 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12770 *** You will then need to restart the configuration process.
12771
12772 _LT_EOF
12773       fi
12774       ;;
12775
12776     amigaos*)
12777       case $host_cpu in
12778       powerpc)
12779             # see comment about AmigaOS4 .so support
12780             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12781             archive_expsym_cmds_D=''
12782         ;;
12783       m68k)
12784             archive_cmds_D='$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)'
12785             hardcode_libdir_flag_spec_D='-L$libdir'
12786             hardcode_minus_L_D=yes
12787         ;;
12788       esac
12789       ;;
12790
12791     beos*)
12792       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12793         allow_undefined_flag_D=unsupported
12794         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12795         # support --undefined.  This deserves some investigation.  FIXME
12796         archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12797       else
12798         ld_shlibs_D=no
12799       fi
12800       ;;
12801
12802     cygwin* | mingw* | pw32* | cegcc*)
12803       # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12804       # as there is no search path for DLLs.
12805       hardcode_libdir_flag_spec_D='-L$libdir'
12806       export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12807       allow_undefined_flag_D=unsupported
12808       always_export_symbols_D=no
12809       enable_shared_with_static_runtimes_D=yes
12810       export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12811
12812       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12813         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12814         # If the export-symbols file already is a .def file (1st line
12815         # is EXPORTS), use it as is; otherwise, prepend...
12816         archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12817           cp $export_symbols $output_objdir/$soname.def;
12818         else
12819           echo EXPORTS > $output_objdir/$soname.def;
12820           cat $export_symbols >> $output_objdir/$soname.def;
12821         fi~
12822         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12823       else
12824         ld_shlibs_D=no
12825       fi
12826       ;;
12827
12828     haiku*)
12829       archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12830       link_all_deplibs_D=yes
12831       ;;
12832
12833     interix[3-9]*)
12834       hardcode_direct_D=no
12835       hardcode_shlibpath_var_D=no
12836       hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12837       export_dynamic_flag_spec_D='${wl}-E'
12838       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12839       # Instead, shared libraries are loaded at an image base (0x10000000 by
12840       # default) and relocated if they conflict, which is a slow very memory
12841       # consuming and fragmenting process.  To avoid this, we pick a random,
12842       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12843       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12844       archive_cmds_D='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12845       archive_expsym_cmds_D='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'
12846       ;;
12847
12848     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12849       tmp_diet=no
12850       if test "$host_os" = linux-dietlibc; then
12851         case $cc_basename in
12852           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12853         esac
12854       fi
12855       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12856          && test "$tmp_diet" = no
12857       then
12858         tmp_addflag=' $pic_flag'
12859         tmp_sharedflag='-shared'
12860         case $cc_basename,$host_cpu in
12861         pgcc*)                          # Portland Group C compiler
12862           whole_archive_flag_spec_D='${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'
12863           tmp_addflag=' $pic_flag'
12864           ;;
12865         pgf77* | pgf90* | pgf95* | pgfortran*)
12866                                         # Portland Group f77 and f90 compilers
12867           whole_archive_flag_spec_D='${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'
12868           tmp_addflag=' $pic_flag -Mnomain' ;;
12869         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12870           tmp_addflag=' -i_dynamic' ;;
12871         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12872           tmp_addflag=' -i_dynamic -nofor_main' ;;
12873         ifc* | ifort*)                  # Intel Fortran compiler
12874           tmp_addflag=' -nofor_main' ;;
12875         lf95*)                          # Lahey Fortran 8.1
12876           whole_archive_flag_spec_D=
12877           tmp_sharedflag='--shared' ;;
12878         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12879           tmp_sharedflag='-qmkshrobj'
12880           tmp_addflag= ;;
12881         nvcc*)  # Cuda Compiler Driver 2.2
12882           whole_archive_flag_spec_D='${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'
12883           compiler_needs_object_D=yes
12884           ;;
12885         esac
12886         case `$CC -V 2>&1 | sed 5q` in
12887         *Sun\ C*)                       # Sun C 5.9
12888           whole_archive_flag_spec_D='${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'
12889           compiler_needs_object_D=yes
12890           tmp_sharedflag='-G' ;;
12891         *Sun\ F*)                       # Sun Fortran 8.3
12892           tmp_sharedflag='-G' ;;
12893         esac
12894         archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12895
12896         if test "x$supports_anon_versioning" = xyes; then
12897           archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12898             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12899             echo "local: *; };" >> $output_objdir/$libname.ver~
12900             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12901         fi
12902
12903         case $cc_basename in
12904         xlf* | bgf* | bgxlf* | mpixlf*)
12905           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12906           whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12907           hardcode_libdir_flag_spec_D=
12908           hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12909           archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12910           if test "x$supports_anon_versioning" = xyes; then
12911             archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12912               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12913               echo "local: *; };" >> $output_objdir/$libname.ver~
12914               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12915           fi
12916           ;;
12917         esac
12918       else
12919         ld_shlibs_D=no
12920       fi
12921       ;;
12922
12923     netbsd*)
12924       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12925         archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12926         wlarc=
12927       else
12928         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12929         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12930       fi
12931       ;;
12932
12933     solaris*)
12934       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12935         ld_shlibs_D=no
12936         cat <<_LT_EOF 1>&2
12937
12938 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12939 *** create shared libraries on Solaris systems.  Therefore, libtool
12940 *** is disabling shared libraries support.  We urge you to upgrade GNU
12941 *** binutils to release 2.9.1 or newer.  Another option is to modify
12942 *** your PATH or compiler configuration so that the native linker is
12943 *** used, and then restart.
12944
12945 _LT_EOF
12946       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12947         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12948         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12949       else
12950         ld_shlibs_D=no
12951       fi
12952       ;;
12953
12954     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12955       case `$LD -v 2>&1` in
12956         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12957         ld_shlibs_D=no
12958         cat <<_LT_EOF 1>&2
12959
12960 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12961 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12962 *** is disabling shared libraries support.  We urge you to upgrade GNU
12963 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12964 *** your PATH or compiler configuration so that the native linker is
12965 *** used, and then restart.
12966
12967 _LT_EOF
12968         ;;
12969         *)
12970           # For security reasons, it is highly recommended that you always
12971           # use absolute paths for naming shared libraries, and exclude the
12972           # DT_RUNPATH tag from executables and libraries.  But doing so
12973           # requires that you compile everything twice, which is a pain.
12974           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12975             hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12976             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12977             archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12978           else
12979             ld_shlibs_D=no
12980           fi
12981         ;;
12982       esac
12983       ;;
12984
12985     sunos4*)
12986       archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12987       wlarc=
12988       hardcode_direct_D=yes
12989       hardcode_shlibpath_var_D=no
12990       ;;
12991
12992     *)
12993       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12994         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12995         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12996       else
12997         ld_shlibs_D=no
12998       fi
12999       ;;
13000     esac
13001
13002     if test "$ld_shlibs_D" = no; then
13003       runpath_var=
13004       hardcode_libdir_flag_spec_D=
13005       export_dynamic_flag_spec_D=
13006       whole_archive_flag_spec_D=
13007     fi
13008   else
13009     # PORTME fill in a description of your system's linker (not GNU ld)
13010     case $host_os in
13011     aix3*)
13012       allow_undefined_flag_D=unsupported
13013       always_export_symbols_D=yes
13014       archive_expsym_cmds_D='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13015       # Note: this linker hardcodes the directories in LIBPATH if there
13016       # are no directories specified by -L.
13017       hardcode_minus_L_D=yes
13018       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13019         # Neither direct hardcoding nor static linking is supported with a
13020         # broken collect2.
13021         hardcode_direct_D=unsupported
13022       fi
13023       ;;
13024
13025     aix[4-9]*)
13026       if test "$host_cpu" = ia64; then
13027         # On IA64, the linker does run time linking by default, so we don't
13028         # have to do anything special.
13029         aix_use_runtimelinking=no
13030         exp_sym_flag='-Bexport'
13031         no_entry_flag=""
13032       else
13033         # If we're using GNU nm, then we don't want the "-C" option.
13034         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13035         # Also, AIX nm treats weak defined symbols like other global
13036         # defined symbols, whereas GNU nm marks them as "W".
13037         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13038           export_symbols_cmds_D='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13039         else
13040           export_symbols_cmds_D='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13041         fi
13042         aix_use_runtimelinking=no
13043
13044         # Test if we are trying to use run time linking or normal
13045         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13046         # need to do runtime linking.
13047         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13048           for ld_flag in $LDFLAGS; do
13049           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13050             aix_use_runtimelinking=yes
13051             break
13052           fi
13053           done
13054           ;;
13055         esac
13056
13057         exp_sym_flag='-bexport'
13058         no_entry_flag='-bnoentry'
13059       fi
13060
13061       # When large executables or shared objects are built, AIX ld can
13062       # have problems creating the table of contents.  If linking a library
13063       # or program results in "error TOC overflow" add -mminimal-toc to
13064       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13065       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13066
13067       archive_cmds_D=''
13068       hardcode_direct_D=yes
13069       hardcode_direct_absolute_D=yes
13070       hardcode_libdir_separator_D=':'
13071       link_all_deplibs_D=yes
13072       file_list_spec_D='${wl}-f,'
13073
13074       if test "$GCC" = yes; then
13075         case $host_os in aix4.[012]|aix4.[012].*)
13076         # We only want to do this on AIX 4.2 and lower, the check
13077         # below for broken collect2 doesn't work under 4.3+
13078           collect2name=`${CC} -print-prog-name=collect2`
13079           if test -f "$collect2name" &&
13080            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13081           then
13082           # We have reworked collect2
13083           :
13084           else
13085           # We have old collect2
13086           hardcode_direct_D=unsupported
13087           # It fails to find uninstalled libraries when the uninstalled
13088           # path is not listed in the libpath.  Setting hardcode_minus_L
13089           # to unsupported forces relinking
13090           hardcode_minus_L_D=yes
13091           hardcode_libdir_flag_spec_D='-L$libdir'
13092           hardcode_libdir_separator_D=
13093           fi
13094           ;;
13095         esac
13096         shared_flag='-shared'
13097         if test "$aix_use_runtimelinking" = yes; then
13098           shared_flag="$shared_flag "'${wl}-G'
13099         fi
13100       else
13101         # not using gcc
13102         if test "$host_cpu" = ia64; then
13103         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13104         # chokes on -Wl,-G. The following line is correct:
13105           shared_flag='-G'
13106         else
13107           if test "$aix_use_runtimelinking" = yes; then
13108             shared_flag='${wl}-G'
13109           else
13110             shared_flag='${wl}-bM:SRE'
13111           fi
13112         fi
13113       fi
13114
13115       export_dynamic_flag_spec_D='${wl}-bexpall'
13116       # It seems that -bexpall does not export symbols beginning with
13117       # underscore (_), so it is better to generate a list of symbols to export.
13118       always_export_symbols_D=yes
13119       if test "$aix_use_runtimelinking" = yes; then
13120         # Warning - without using the other runtime loading flags (-brtl),
13121         # -berok will link without error, but may produce a broken library.
13122         allow_undefined_flag_D='-berok'
13123         # Determine the default libpath from the value encoded in an
13124         # empty executable.
13125         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h.  */
13127
13128 int
13129 main ()
13130 {
13131
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 if ac_fn_c_try_link "$LINENO"; then :
13137
13138 lt_aix_libpath_sed='
13139     /Import File Strings/,/^$/ {
13140         /^0/ {
13141             s/^0  *\(.*\)$/\1/
13142             p
13143         }
13144     }'
13145 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13146 # Check for a 64-bit object if we didn't find anything.
13147 if test -z "$aix_libpath"; then
13148   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13149 fi
13150 fi
13151 rm -f core conftest.err conftest.$ac_objext \
13152     conftest$ac_exeext conftest.$ac_ext
13153 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13154
13155         hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13156         archive_expsym_cmds_D='$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"
13157       else
13158         if test "$host_cpu" = ia64; then
13159           hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13160           allow_undefined_flag_D="-z nodefs"
13161           archive_expsym_cmds_D="\$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"
13162         else
13163          # Determine the default libpath from the value encoded in an
13164          # empty executable.
13165          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h.  */
13167
13168 int
13169 main ()
13170 {
13171
13172   ;
13173   return 0;
13174 }
13175 _ACEOF
13176 if ac_fn_c_try_link "$LINENO"; then :
13177
13178 lt_aix_libpath_sed='
13179     /Import File Strings/,/^$/ {
13180         /^0/ {
13181             s/^0  *\(.*\)$/\1/
13182             p
13183         }
13184     }'
13185 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13186 # Check for a 64-bit object if we didn't find anything.
13187 if test -z "$aix_libpath"; then
13188   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13189 fi
13190 fi
13191 rm -f core conftest.err conftest.$ac_objext \
13192     conftest$ac_exeext conftest.$ac_ext
13193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13194
13195          hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13196           # Warning - without using the other run time loading flags,
13197           # -berok will link without error, but may produce a broken library.
13198           no_undefined_flag_D=' ${wl}-bernotok'
13199           allow_undefined_flag_D=' ${wl}-berok'
13200           if test "$with_gnu_ld" = yes; then
13201             # We only use this code for GNU lds that support --whole-archive.
13202             whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13203           else
13204             # Exported symbols can be pulled into shared objects from archives
13205             whole_archive_flag_spec_D='$convenience'
13206           fi
13207           archive_cmds_need_lc_D=yes
13208           # This is similar to how AIX traditionally builds its shared libraries.
13209           archive_expsym_cmds_D="\$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'
13210         fi
13211       fi
13212       ;;
13213
13214     amigaos*)
13215       case $host_cpu in
13216       powerpc)
13217             # see comment about AmigaOS4 .so support
13218             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13219             archive_expsym_cmds_D=''
13220         ;;
13221       m68k)
13222             archive_cmds_D='$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)'
13223             hardcode_libdir_flag_spec_D='-L$libdir'
13224             hardcode_minus_L_D=yes
13225         ;;
13226       esac
13227       ;;
13228
13229     bsdi[45]*)
13230       export_dynamic_flag_spec_D=-rdynamic
13231       ;;
13232
13233     cygwin* | mingw* | pw32* | cegcc*)
13234       # When not using gcc, we currently assume that we are using
13235       # Microsoft Visual C++.
13236       # hardcode_libdir_flag_spec is actually meaningless, as there is
13237       # no search path for DLLs.
13238       hardcode_libdir_flag_spec_D=' '
13239       allow_undefined_flag_D=unsupported
13240       # Tell ltmain to make .lib files, not .a files.
13241       libext=lib
13242       # Tell ltmain to make .dll files, not .so files.
13243       shrext_cmds=".dll"
13244       # FIXME: Setting linknames here is a bad hack.
13245       archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13246       # The linker will automatically build a .lib file if we build a DLL.
13247       old_archive_from_new_cmds_D='true'
13248       # FIXME: Should let the user specify the lib program.
13249       old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13250       fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13251       enable_shared_with_static_runtimes_D=yes
13252       ;;
13253
13254     darwin* | rhapsody*)
13255
13256
13257   archive_cmds_need_lc_D=no
13258   hardcode_direct_D=no
13259   hardcode_automatic_D=yes
13260   hardcode_shlibpath_var_D=unsupported
13261   if test "$lt_cv_ld_force_load" = "yes"; then
13262     whole_archive_flag_spec_D='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13263   else
13264     whole_archive_flag_spec_D=''
13265   fi
13266   link_all_deplibs_D=yes
13267   allow_undefined_flag_D="$_lt_dar_allow_undefined"
13268   case $cc_basename in
13269      ifort*) _lt_dar_can_shared=yes ;;
13270      *) _lt_dar_can_shared=$GCC ;;
13271   esac
13272   if test "$_lt_dar_can_shared" = "yes"; then
13273     output_verbose_link_cmd=func_echo_all
13274     archive_cmds_D="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13275     module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13276     archive_expsym_cmds_D="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}"
13277     module_expsym_cmds_D="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}"
13278
13279   else
13280   ld_shlibs_D=no
13281   fi
13282
13283       ;;
13284
13285     dgux*)
13286       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13287       hardcode_libdir_flag_spec_D='-L$libdir'
13288       hardcode_shlibpath_var_D=no
13289       ;;
13290
13291     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13292     # support.  Future versions do this automatically, but an explicit c++rt0.o
13293     # does not break anything, and helps significantly (at the cost of a little
13294     # extra space).
13295     freebsd2.2*)
13296       archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13297       hardcode_libdir_flag_spec_D='-R$libdir'
13298       hardcode_direct_D=yes
13299       hardcode_shlibpath_var_D=no
13300       ;;
13301
13302     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13303     freebsd2.*)
13304       archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13305       hardcode_direct_D=yes
13306       hardcode_minus_L_D=yes
13307       hardcode_shlibpath_var_D=no
13308       ;;
13309
13310     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13311     freebsd* | dragonfly*)
13312       archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13313       hardcode_libdir_flag_spec_D='-R$libdir'
13314       hardcode_direct_D=yes
13315       hardcode_shlibpath_var_D=no
13316       ;;
13317
13318     hpux9*)
13319       if test "$GCC" = yes; then
13320         archive_cmds_D='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13321       else
13322         archive_cmds_D='$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'
13323       fi
13324       hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13325       hardcode_libdir_separator_D=:
13326       hardcode_direct_D=yes
13327
13328       # hardcode_minus_L: Not really in the search PATH,
13329       # but as the default location of the library.
13330       hardcode_minus_L_D=yes
13331       export_dynamic_flag_spec_D='${wl}-E'
13332       ;;
13333
13334     hpux10*)
13335       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13336         archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13337       else
13338         archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13339       fi
13340       if test "$with_gnu_ld" = no; then
13341         hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13342         hardcode_libdir_flag_spec_ld_D='+b $libdir'
13343         hardcode_libdir_separator_D=:
13344         hardcode_direct_D=yes
13345         hardcode_direct_absolute_D=yes
13346         export_dynamic_flag_spec_D='${wl}-E'
13347         # hardcode_minus_L: Not really in the search PATH,
13348         # but as the default location of the library.
13349         hardcode_minus_L_D=yes
13350       fi
13351       ;;
13352
13353     hpux11*)
13354       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13355         case $host_cpu in
13356         hppa*64*)
13357           archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13358           ;;
13359         ia64*)
13360           archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13361           ;;
13362         *)
13363           archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13364           ;;
13365         esac
13366       else
13367         case $host_cpu in
13368         hppa*64*)
13369           archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13370           ;;
13371         ia64*)
13372           archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13373           ;;
13374         *)
13375         archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13376           ;;
13377         esac
13378       fi
13379       if test "$with_gnu_ld" = no; then
13380         hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13381         hardcode_libdir_separator_D=:
13382
13383         case $host_cpu in
13384         hppa*64*|ia64*)
13385           hardcode_direct_D=no
13386           hardcode_shlibpath_var_D=no
13387           ;;
13388         *)
13389           hardcode_direct_D=yes
13390           hardcode_direct_absolute_D=yes
13391           export_dynamic_flag_spec_D='${wl}-E'
13392
13393           # hardcode_minus_L: Not really in the search PATH,
13394           # but as the default location of the library.
13395           hardcode_minus_L_D=yes
13396           ;;
13397         esac
13398       fi
13399       ;;
13400
13401     irix5* | irix6* | nonstopux*)
13402       if test "$GCC" = yes; then
13403         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13404         # Try to use the -exported_symbol ld option, if it does not
13405         # work, assume that -exports_file does not work either and
13406         # implicitly export all symbols.
13407         save_LDFLAGS="$LDFLAGS"
13408         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13409         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 /* end confdefs.h.  */
13411 int foo(void) {}
13412 _ACEOF
13413 if ac_fn_c_try_link "$LINENO"; then :
13414   archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13415
13416 fi
13417 rm -f core conftest.err conftest.$ac_objext \
13418     conftest$ac_exeext conftest.$ac_ext
13419         LDFLAGS="$save_LDFLAGS"
13420       else
13421         archive_cmds_D='$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'
13422         archive_expsym_cmds_D='$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'
13423       fi
13424       archive_cmds_need_lc_D='no'
13425       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13426       hardcode_libdir_separator_D=:
13427       inherit_rpath_D=yes
13428       link_all_deplibs_D=yes
13429       ;;
13430
13431     netbsd*)
13432       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13433         archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13434       else
13435         archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13436       fi
13437       hardcode_libdir_flag_spec_D='-R$libdir'
13438       hardcode_direct_D=yes
13439       hardcode_shlibpath_var_D=no
13440       ;;
13441
13442     newsos6)
13443       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13444       hardcode_direct_D=yes
13445       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13446       hardcode_libdir_separator_D=:
13447       hardcode_shlibpath_var_D=no
13448       ;;
13449
13450     *nto* | *qnx*)
13451       ;;
13452
13453     openbsd*)
13454       if test -f /usr/libexec/ld.so; then
13455         hardcode_direct_D=yes
13456         hardcode_shlibpath_var_D=no
13457         hardcode_direct_absolute_D=yes
13458         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13459           archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13460           archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13461           hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13462           export_dynamic_flag_spec_D='${wl}-E'
13463         else
13464           case $host_os in
13465            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13466              archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13467              hardcode_libdir_flag_spec_D='-R$libdir'
13468              ;;
13469            *)
13470              archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13471              hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13472              ;;
13473           esac
13474         fi
13475       else
13476         ld_shlibs_D=no
13477       fi
13478       ;;
13479
13480     os2*)
13481       hardcode_libdir_flag_spec_D='-L$libdir'
13482       hardcode_minus_L_D=yes
13483       allow_undefined_flag_D=unsupported
13484       archive_cmds_D='$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'
13485       old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13486       ;;
13487
13488     osf3*)
13489       if test "$GCC" = yes; then
13490         allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13491         archive_cmds_D='$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'
13492       else
13493         allow_undefined_flag_D=' -expect_unresolved \*'
13494         archive_cmds_D='$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'
13495       fi
13496       archive_cmds_need_lc_D='no'
13497       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13498       hardcode_libdir_separator_D=:
13499       ;;
13500
13501     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13502       if test "$GCC" = yes; then
13503         allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13504         archive_cmds_D='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13505         hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13506       else
13507         allow_undefined_flag_D=' -expect_unresolved \*'
13508         archive_cmds_D='$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'
13509         archive_expsym_cmds_D='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13510         $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'
13511
13512         # Both c and cxx compiler support -rpath directly
13513         hardcode_libdir_flag_spec_D='-rpath $libdir'
13514       fi
13515       archive_cmds_need_lc_D='no'
13516       hardcode_libdir_separator_D=:
13517       ;;
13518
13519     solaris*)
13520       no_undefined_flag_D=' -z defs'
13521       if test "$GCC" = yes; then
13522         wlarc='${wl}'
13523         archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13524         archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13525           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13526       else
13527         case `$CC -V 2>&1` in
13528         *"Compilers 5.0"*)
13529           wlarc=''
13530           archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13531           archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13532           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13533           ;;
13534         *)
13535           wlarc='${wl}'
13536           archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13537           archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13538           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13539           ;;
13540         esac
13541       fi
13542       hardcode_libdir_flag_spec_D='-R$libdir'
13543       hardcode_shlibpath_var_D=no
13544       case $host_os in
13545       solaris2.[0-5] | solaris2.[0-5].*) ;;
13546       *)
13547         # The compiler driver will combine and reorder linker options,
13548         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13549         # but is careful enough not to reorder.
13550         # Supported since Solaris 2.6 (maybe 2.5.1?)
13551         if test "$GCC" = yes; then
13552           whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13553         else
13554           whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13555         fi
13556         ;;
13557       esac
13558       link_all_deplibs_D=yes
13559       ;;
13560
13561     sunos4*)
13562       if test "x$host_vendor" = xsequent; then
13563         # Use $CC to link under sequent, because it throws in some extra .o
13564         # files that make .init and .fini sections work.
13565         archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13566       else
13567         archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13568       fi
13569       hardcode_libdir_flag_spec_D='-L$libdir'
13570       hardcode_direct_D=yes
13571       hardcode_minus_L_D=yes
13572       hardcode_shlibpath_var_D=no
13573       ;;
13574
13575     sysv4)
13576       case $host_vendor in
13577         sni)
13578           archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13579           hardcode_direct_D=yes # is this really true???
13580         ;;
13581         siemens)
13582           ## LD is ld it makes a PLAMLIB
13583           ## CC just makes a GrossModule.
13584           archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13585           reload_cmds_D='$CC -r -o $output$reload_objs'
13586           hardcode_direct_D=no
13587         ;;
13588         motorola)
13589           archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13590           hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13591         ;;
13592       esac
13593       runpath_var='LD_RUN_PATH'
13594       hardcode_shlibpath_var_D=no
13595       ;;
13596
13597     sysv4.3*)
13598       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13599       hardcode_shlibpath_var_D=no
13600       export_dynamic_flag_spec_D='-Bexport'
13601       ;;
13602
13603     sysv4*MP*)
13604       if test -d /usr/nec; then
13605         archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13606         hardcode_shlibpath_var_D=no
13607         runpath_var=LD_RUN_PATH
13608         hardcode_runpath_var=yes
13609         ld_shlibs_D=yes
13610       fi
13611       ;;
13612
13613     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13614       no_undefined_flag_D='${wl}-z,text'
13615       archive_cmds_need_lc_D=no
13616       hardcode_shlibpath_var_D=no
13617       runpath_var='LD_RUN_PATH'
13618
13619       if test "$GCC" = yes; then
13620         archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13621         archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13622       else
13623         archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13624         archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13625       fi
13626       ;;
13627
13628     sysv5* | sco3.2v5* | sco5v6*)
13629       # Note: We can NOT use -z defs as we might desire, because we do not
13630       # link with -lc, and that would cause any symbols used from libc to
13631       # always be unresolved, which means just about no library would
13632       # ever link correctly.  If we're not using GNU ld we use -z text
13633       # though, which does catch some bad symbols but isn't as heavy-handed
13634       # as -z defs.
13635       no_undefined_flag_D='${wl}-z,text'
13636       allow_undefined_flag_D='${wl}-z,nodefs'
13637       archive_cmds_need_lc_D=no
13638       hardcode_shlibpath_var_D=no
13639       hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13640       hardcode_libdir_separator_D=':'
13641       link_all_deplibs_D=yes
13642       export_dynamic_flag_spec_D='${wl}-Bexport'
13643       runpath_var='LD_RUN_PATH'
13644
13645       if test "$GCC" = yes; then
13646         archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647         archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648       else
13649         archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650         archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651       fi
13652       ;;
13653
13654     uts4*)
13655       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13656       hardcode_libdir_flag_spec_D='-L$libdir'
13657       hardcode_shlibpath_var_D=no
13658       ;;
13659
13660     *)
13661       ld_shlibs_D=no
13662       ;;
13663     esac
13664
13665     if test x$host_vendor = xsni; then
13666       case $host in
13667       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13668         export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13669         ;;
13670       esac
13671     fi
13672   fi
13673
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13675 $as_echo "$ld_shlibs_D" >&6; }
13676 test "$ld_shlibs_D" = no && can_build_shared=no
13677
13678 with_gnu_ld_D=$with_gnu_ld
13679
13680
13681
13682
13683
13684
13685 #
13686 # Do we need to explicitly link libc?
13687 #
13688 case "x$archive_cmds_need_lc_D" in
13689 x|xyes)
13690   # Assume -lc should be added
13691   archive_cmds_need_lc_D=yes
13692
13693   if test "$enable_shared" = yes && test "$GCC" = yes; then
13694     case $archive_cmds_D in
13695     *'~'*)
13696       # FIXME: we may have to deal with multi-command sequences.
13697       ;;
13698     '$CC '*)
13699       # Test whether the compiler implicitly links with -lc since on some
13700       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13701       # to ld, don't add -lc before -lgcc.
13702       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13703 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13704 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13705   $as_echo_n "(cached) " >&6
13706 else
13707   $RM conftest*
13708         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13709
13710         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13711   (eval $ac_compile) 2>&5
13712   ac_status=$?
13713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13714   test $ac_status = 0; } 2>conftest.err; then
13715           soname=conftest
13716           lib=conftest
13717           libobjs=conftest.$ac_objext
13718           deplibs=
13719           wl=$lt_prog_compiler_wl_D
13720           pic_flag=$lt_prog_compiler_pic_D
13721           compiler_flags=-v
13722           linker_flags=-v
13723           verstring=
13724           output_objdir=.
13725           libname=conftest
13726           lt_save_allow_undefined_flag=$allow_undefined_flag_D
13727           allow_undefined_flag_D=
13728           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13729   (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13730   ac_status=$?
13731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13732   test $ac_status = 0; }
13733           then
13734             lt_cv_archive_cmds_need_lc_D=no
13735           else
13736             lt_cv_archive_cmds_need_lc_D=yes
13737           fi
13738           allow_undefined_flag_D=$lt_save_allow_undefined_flag
13739         else
13740           cat conftest.err 1>&5
13741         fi
13742         $RM conftest*
13743
13744 fi
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13746 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13747       archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13748       ;;
13749     esac
13750   fi
13751   ;;
13752 esac
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13818 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13819 hardcode_action_D=
13820 if test -n "$hardcode_libdir_flag_spec_D" ||
13821    test -n "$runpath_var_D" ||
13822    test "X$hardcode_automatic_D" = "Xyes" ; then
13823
13824   # We can hardcode non-existent directories.
13825   if test "$hardcode_direct_D" != no &&
13826      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13827      # have to relink, otherwise we might link with an installed library
13828      # when we should be linking with a yet-to-be-installed one
13829      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13830      test "$hardcode_minus_L_D" != no; then
13831     # Linking always hardcodes the temporary library directory.
13832     hardcode_action_D=relink
13833   else
13834     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13835     hardcode_action_D=immediate
13836   fi
13837 else
13838   # We cannot hardcode anything, or else we can only hardcode existing
13839   # directories.
13840   hardcode_action_D=unsupported
13841 fi
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13843 $as_echo "$hardcode_action_D" >&6; }
13844
13845 if test "$hardcode_action_D" = relink ||
13846    test "$inherit_rpath_D" = yes; then
13847   # Fast installation is not supported
13848   enable_fast_install=no
13849 elif test "$shlibpath_overrides_runpath" = yes ||
13850      test "$enable_shared" = no; then
13851   # Fast installation is not necessary
13852   enable_fast_install=needless
13853 fi
13854
13855
13856
13857
13858
13859
13860
13861 fi
13862
13863 ac_ext=c
13864 ac_cpp='$CPP $CPPFLAGS'
13865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13868
13869
13870 GCC=$lt_save_GCC
13871 CC=$lt_save_CC
13872 CFLAGS=$lt_save_CFLAGS
13873
13874   GDCFLAGS=$gdc_save_DFLAGS
13875
13876
13877 # libtool variables for Phobos shared and position-independent compiles.
13878 #
13879 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13880 # creating shared objects. Default: -fversion=Shared.
13881 #
13882 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13883 # creating position-independent objects. This varies with the target
13884 # hardware and operating system, but is often: -fPIC.
13885 #
13886 # The distinction between pic and shared compilation flags is not present in
13887 # libtool, and so we make it here.  How it is handled is that in shared
13888 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13889 # ensure that conditional compilation of shared runtime code is compiled in.
13890 # The original PIC flags are then used in the compilation of every object.
13891 #
13892 # Why are objects destined for libgphobos.a compiled with -fPIC?
13893 # Because -fPIC is not harmful to use for objects destined for static
13894 # libraries. In addition, using -fPIC will allow the use of static
13895 # libgphobos.a in the creation of other D shared libraries.
13896 if test "$enable_shared" = yes; then
13897   phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13898   phobos_compiler_shared_flag="-fversion=Shared"
13899 else
13900   phobos_compiler_pic_flag=
13901   phobos_compiler_shared_flag=
13902 fi
13903
13904
13905
13906 # Override the libtool's pic_flag and pic_mode.
13907 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13908 # NB: this impacts --with-pic and --without-pic.
13909 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13910 pic_mode='default'
13911
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
13913 $as_echo_n "checking for --enable-libphobos... " >&6; }
13914 # Check whether --enable-libphobos was given.
13915 if test "${enable_libphobos+set}" = set; then :
13916   enableval=$enable_libphobos;
13917 fi
13918
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
13920 $as_echo "$enable_libphobos" >&6; }
13921
13922 # See if supported.
13923 unset LIBPHOBOS_SUPPORTED
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
13925 $as_echo_n "checking for host support for libphobos... " >&6; }
13926 . ${srcdir}/configure.tgt
13927 case ${host} in
13928   x86_64-*-solaris2.* | i?86-*-solaris2.*)
13929     # libphobos doesn't compile with the Solaris/x86 assembler due to a
13930     # relatively low linelength limit.
13931     as_prog=`$CC -print-prog-name=as`
13932     if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
13933       druntime_cv_use_gas=yes;
13934     else
13935       druntime_cv_use_gas=no;
13936     fi
13937     rm -f a.out
13938     if test x$druntime_cv_use_gas = xno; then
13939       LIBPHOBOS_SUPPORTED=no
13940     fi
13941     ;;
13942 esac
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
13944 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
13945
13946 # Decide if it's usable.
13947 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
13948 *:no)  use_libphobos=no  ;;
13949 *:yes) use_libphobos=yes ;;
13950 yes:*) use_libphobos=yes ;;
13951 *:*)   use_libphobos=no  ;;
13952 esac
13953  if test x$use_libphobos = xyes; then
13954   ENABLE_LIBPHOBOS_TRUE=
13955   ENABLE_LIBPHOBOS_FALSE='#'
13956 else
13957   ENABLE_LIBPHOBOS_TRUE='#'
13958   ENABLE_LIBPHOBOS_FALSE=
13959 fi
13960
13961
13962 # Determine what GCC version number to use in filesystem paths.
13963
13964   get_gcc_base_ver="cat"
13965
13966 # Check whether --with-gcc-major-version-only was given.
13967 if test "${with_gcc_major_version_only+set}" = set; then :
13968   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13969         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13970       fi
13971
13972 fi
13973
13974
13975
13976
13977 # libphobos/libdruntime specific options and feature detection
13978
13979   # These need to be absolute paths, yet at the same time need to
13980   # canonicalize only relative paths, because then amd will not unmount
13981   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13982   libphobos_builddir=`${PWDCMD-pwd}`
13983   case $srcdir in
13984     \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13985     *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13986   esac
13987
13988
13989
13990
13991   if test ${multilib} = yes; then
13992     multilib_arg="--enable-multilib"
13993   else
13994     multilib_arg=
13995   fi
13996
13997
13998   # Check whether --enable-werror was given.
13999 if test "${enable_werror+set}" = set; then :
14000   enableval=$enable_werror;
14001 fi
14002
14003   WERROR_FLAG=""
14004   if test "x$enable_werror" = "xyes"; then
14005       WERROR_FLAG="-Werror"
14006   fi
14007
14008
14009     # Check whether --enable-druntime-gc was given.
14010 if test "${enable_druntime_gc+set}" = set; then :
14011   enableval=$enable_druntime_gc; enable_druntime_gc=no
14012 else
14013   enable_druntime_gc=yes
14014 fi
14015
14016
14017    if test "$enable_druntime_gc" = "yes"; then
14018   DRUNTIME_GC_ENABLE_TRUE=
14019   DRUNTIME_GC_ENABLE_FALSE='#'
14020 else
14021   DRUNTIME_GC_ENABLE_TRUE='#'
14022   DRUNTIME_GC_ENABLE_FALSE=
14023 fi
14024
14025
14026
14027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14028 $as_echo_n "checking for target OS... " >&6; }
14029 if ${druntime_cv_target_os+:} false; then :
14030   $as_echo_n "(cached) " >&6
14031 else
14032   druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14033 fi
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14035 $as_echo "$druntime_cv_target_os" >&6; }
14036     if test -z "$druntime_cv_target_os"; then :
14037   as_fn_error $? "can't detect target OS" "$LINENO" 5
14038 fi
14039
14040
14041
14042   # Check whether --enable-unix was given.
14043 if test "${enable_unix+set}" = set; then :
14044   enableval=$enable_unix; :
14045 else
14046   enable_unix=auto
14047 fi
14048
14049
14050   case "$druntime_cv_target_os" in
14051     aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*) d_have_unix=1 ;;
14052   esac
14053   if test -n "$d_have_unix" && test "$enable_unix" = auto ; then
14054     enable_unix=yes
14055   fi
14056    if test "$enable_unix" = "yes"; then
14057   DRUNTIME_OS_UNIX_TRUE=
14058   DRUNTIME_OS_UNIX_FALSE='#'
14059 else
14060   DRUNTIME_OS_UNIX_TRUE='#'
14061   DRUNTIME_OS_UNIX_FALSE=
14062 fi
14063
14064
14065
14066
14067
14068   druntime_target_os_parsed=""
14069   case "$druntime_cv_target_os" in
14070       aix*)    druntime_target_os_parsed="aix"
14071                ;;
14072       *android*)
14073                druntime_target_os_parsed="android"
14074                ;;
14075       darwin*) druntime_target_os_parsed="darwin"
14076                ;;
14077       dragonfly*)
14078                druntime_target_os_parsed="dragonflybsd"
14079                ;;
14080       freebsd*|k*bsd*-gnu)
14081                druntime_target_os_parsed="freebsd"
14082                ;;
14083       openbsd*)
14084                druntime_target_os_parsed="openbsd"
14085                ;;
14086       netbsd*)
14087                druntime_target_os_parsed="netbsd"
14088                ;;
14089       linux*)  druntime_target_os_parsed="linux"
14090                ;;
14091       mingw*)  druntime_target_os_parsed="mingw"
14092              ;;
14093       *solaris*) druntime_target_os_parsed="solaris"
14094   esac
14095    if test "$druntime_target_os_parsed" = "aix"; then
14096   DRUNTIME_OS_AIX_TRUE=
14097   DRUNTIME_OS_AIX_FALSE='#'
14098 else
14099   DRUNTIME_OS_AIX_TRUE='#'
14100   DRUNTIME_OS_AIX_FALSE=
14101 fi
14102
14103    if test "$druntime_target_os_parsed" = "android"; then
14104   DRUNTIME_OS_ANDROID_TRUE=
14105   DRUNTIME_OS_ANDROID_FALSE='#'
14106 else
14107   DRUNTIME_OS_ANDROID_TRUE='#'
14108   DRUNTIME_OS_ANDROID_FALSE=
14109 fi
14110
14111    if test "$druntime_target_os_parsed" = "darwin"; then
14112   DRUNTIME_OS_DARWIN_TRUE=
14113   DRUNTIME_OS_DARWIN_FALSE='#'
14114 else
14115   DRUNTIME_OS_DARWIN_TRUE='#'
14116   DRUNTIME_OS_DARWIN_FALSE=
14117 fi
14118
14119    if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14120   DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14121   DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14122 else
14123   DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14124   DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14125 fi
14126
14127    if test "$druntime_target_os_parsed" = "freebsd"; then
14128   DRUNTIME_OS_FREEBSD_TRUE=
14129   DRUNTIME_OS_FREEBSD_FALSE='#'
14130 else
14131   DRUNTIME_OS_FREEBSD_TRUE='#'
14132   DRUNTIME_OS_FREEBSD_FALSE=
14133 fi
14134
14135    if test "$druntime_target_os_parsed" = "netbsd"; then
14136   DRUNTIME_OS_NETBSD_TRUE=
14137   DRUNTIME_OS_NETBSD_FALSE='#'
14138 else
14139   DRUNTIME_OS_NETBSD_TRUE='#'
14140   DRUNTIME_OS_NETBSD_FALSE=
14141 fi
14142
14143    if test "$druntime_target_os_parsed" = "openbsd"; then
14144   DRUNTIME_OS_OPENBSD_TRUE=
14145   DRUNTIME_OS_OPENBSD_FALSE='#'
14146 else
14147   DRUNTIME_OS_OPENBSD_TRUE='#'
14148   DRUNTIME_OS_OPENBSD_FALSE=
14149 fi
14150
14151    if test "$druntime_target_os_parsed" = "linux"; then
14152   DRUNTIME_OS_LINUX_TRUE=
14153   DRUNTIME_OS_LINUX_FALSE='#'
14154 else
14155   DRUNTIME_OS_LINUX_TRUE='#'
14156   DRUNTIME_OS_LINUX_FALSE=
14157 fi
14158
14159    if test "$druntime_target_os_parsed" = "mingw"; then
14160   DRUNTIME_OS_MINGW_TRUE=
14161   DRUNTIME_OS_MINGW_FALSE='#'
14162 else
14163   DRUNTIME_OS_MINGW_TRUE='#'
14164   DRUNTIME_OS_MINGW_FALSE=
14165 fi
14166
14167    if test "$druntime_target_os_parsed" = "solaris"; then
14168   DRUNTIME_OS_SOLARIS_TRUE=
14169   DRUNTIME_OS_SOLARIS_FALSE='#'
14170 else
14171   DRUNTIME_OS_SOLARIS_TRUE='#'
14172   DRUNTIME_OS_SOLARIS_FALSE=
14173 fi
14174
14175
14176
14177
14178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14179 $as_echo_n "checking for thread model used by GDC... " >&6; }
14180   d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14182 $as_echo "$d_thread_model" >&6; }
14183
14184   # Map from thread model to thread interface.
14185
14186 case $d_thread_model in
14187     aix)    DCFG_THREAD_MODEL="Posix" ;;
14188     lynx)   DCFG_THREAD_MODEL="Posix" ;;
14189     posix)  DCFG_THREAD_MODEL="Posix" ;;
14190     single) DCFG_THREAD_MODEL="Single" ;;
14191     win32)  DCFG_THREAD_MODEL="Win32" ;;
14192     # TODO: These targets need porting.
14193     dce|mipssde|rtems|tpf|vxworks)
14194             DCFG_THREAD_MODEL="Single" ;;
14195     *)      as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14196 esac
14197
14198
14199
14200
14201   ac_ext=c
14202 ac_cpp='$CPP $CPPFLAGS'
14203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14206
14207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14208 $as_echo_n "checking for ARM unwinder... " >&6; }
14209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h.  */
14211 #include <unwind.h>
14212 int
14213 main ()
14214 {
14215
14216   #if __ARM_EABI_UNWINDER__
14217   #error Yes, it is.
14218   #endif
14219
14220   ;
14221   return 0;
14222 }
14223 _ACEOF
14224 if ac_fn_c_try_compile "$LINENO"; then :
14225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226 $as_echo "no" >&6; }
14227      DCFG_ARM_EABI_UNWINDER=false
14228 else
14229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14230 $as_echo "yes" >&6; }
14231      DCFG_ARM_EABI_UNWINDER=true
14232 fi
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234
14235    if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14236   DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14237   DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14238 else
14239   DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14240   DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14241 fi
14242
14243   ac_ext=c
14244 ac_cpp='$CPP $CPPFLAGS'
14245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14248
14249
14250
14251   ac_ext=c
14252 ac_cpp='$CPP $CPPFLAGS'
14253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14256
14257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14258 $as_echo_n "checking for minfo section bracketing... " >&6; }
14259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h.  */
14261
14262     void* module_info_ptr __attribute__((section ("minfo")));
14263     extern void* __start_minfo __attribute__((visibility ("hidden")));
14264     extern void* __stop_minfo __attribute__((visibility ("hidden")));
14265
14266     int main()
14267     {
14268         // Never run, just to prevent compiler from optimizing access
14269         return &__start_minfo == &__stop_minfo;
14270     }
14271
14272 _ACEOF
14273 if ac_fn_c_try_link "$LINENO"; then :
14274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14275 $as_echo "yes" >&6; }
14276      DCFG_MINFO_BRACKETING=true
14277 else
14278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14280      DCFG_MINFO_BRACKETING=false
14281 fi
14282 rm -f core conftest.err conftest.$ac_objext \
14283     conftest$ac_exeext conftest.$ac_ext
14284
14285    if test "$DCFG_MINFO_BRACKETING" = "true"; then
14286   DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14287   DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14288 else
14289   DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14290   DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14291 fi
14292
14293   ac_ext=c
14294 ac_cpp='$CPP $CPPFLAGS'
14295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14298
14299
14300
14301   ac_ext=c
14302 ac_cpp='$CPP $CPPFLAGS'
14303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14306
14307   ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14308 "
14309 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14310   DCFG_DLPI_TLS_MODID=true
14311 else
14312   DCFG_DLPI_TLS_MODID=false
14313 fi
14314
14315
14316   ac_ext=c
14317 ac_cpp='$CPP $CPPFLAGS'
14318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14321
14322
14323
14324   case $target in
14325     i?86-*-solaris2.* | x86_64-*-solaris2.*)
14326       # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14327       # relocs.  Work around by disabling TLS transitions.  Not necessary
14328       # on 32-bit x86, but cannot be distinguished reliably in specs.
14329       druntime_ld_prog=`$CC -print-prog-name=ld`
14330       if test -n "$druntime_ld_prog" \
14331          && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14332         :
14333       else
14334         OS_LINK_SPEC='-z relax=transtls'
14335       fi
14336       ;;
14337   esac
14338
14339
14340
14341   ac_ext=c
14342 ac_cpp='$CPP $CPPFLAGS'
14343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14346
14347   DCFG_HAVE_QSORT_R=false
14348   ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14349 if test "x$ac_cv_func_qsort_r" = xyes; then :
14350   DCFG_HAVE_QSORT_R=true
14351 fi
14352
14353
14354   ac_ext=c
14355 ac_cpp='$CPP $CPPFLAGS'
14356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14359
14360
14361
14362
14363
14364   gdc_save_DFLAGS=$GDCFLAGS
14365   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14366
14367   ac_ext=d
14368 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14369 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14370 ac_compiler_gnu=yes
14371
14372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14373 $as_echo_n "checking for library containing malloc... " >&6; }
14374 if ${ac_cv_search_malloc+:} false; then :
14375   $as_echo_n "(cached) " >&6
14376 else
14377   ac_func_search_save_LIBS=$LIBS
14378 cat > conftest.$ac_ext <<_ACEOF
14379 module mod;
14380  extern(C) int malloc();
14381
14382 extern(C) int main() {
14383   malloc(); return 0;
14384 }
14385 _ACEOF
14386 for ac_lib in '' c; do
14387   if test -z "$ac_lib"; then
14388     ac_res="none required"
14389   else
14390     ac_res=-l$ac_lib
14391     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14392   fi
14393   if ac_fn_d_try_link "$LINENO"; then :
14394   ac_cv_search_malloc=$ac_res
14395 fi
14396 rm -f core conftest.err conftest.$ac_objext \
14397     conftest$ac_exeext
14398   if ${ac_cv_search_malloc+:} false; then :
14399   break
14400 fi
14401 done
14402 if ${ac_cv_search_malloc+:} false; then :
14403
14404 else
14405   ac_cv_search_malloc=no
14406 fi
14407 rm conftest.$ac_ext
14408 LIBS=$ac_func_search_save_LIBS
14409 fi
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14411 $as_echo "$ac_cv_search_malloc" >&6; }
14412 ac_res=$ac_cv_search_malloc
14413 if test "$ac_res" != no; then :
14414   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14415
14416 fi
14417
14418
14419   enable_thread_lib=yes
14420   # Check whether --enable-thread-lib was given.
14421 if test "${enable_thread_lib+set}" = set; then :
14422   enableval=$enable_thread_lib;
14423 fi
14424
14425
14426   if test "x$enable_thread_lib" = "xyes"; then :
14427
14428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14429 $as_echo_n "checking for library containing pthread_create... " >&6; }
14430 if ${ac_cv_search_pthread_create+:} false; then :
14431   $as_echo_n "(cached) " >&6
14432 else
14433   ac_func_search_save_LIBS=$LIBS
14434 cat > conftest.$ac_ext <<_ACEOF
14435 module mod;
14436  extern(C) int pthread_create();
14437
14438 extern(C) int main() {
14439   pthread_create(); return 0;
14440 }
14441 _ACEOF
14442 for ac_lib in '' pthread; do
14443   if test -z "$ac_lib"; then
14444     ac_res="none required"
14445   else
14446     ac_res=-l$ac_lib
14447     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14448   fi
14449   if ac_fn_d_try_link "$LINENO"; then :
14450   ac_cv_search_pthread_create=$ac_res
14451 fi
14452 rm -f core conftest.err conftest.$ac_objext \
14453     conftest$ac_exeext
14454   if ${ac_cv_search_pthread_create+:} false; then :
14455   break
14456 fi
14457 done
14458 if ${ac_cv_search_pthread_create+:} false; then :
14459
14460 else
14461   ac_cv_search_pthread_create=no
14462 fi
14463 rm conftest.$ac_ext
14464 LIBS=$ac_func_search_save_LIBS
14465 fi
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14467 $as_echo "$ac_cv_search_pthread_create" >&6; }
14468 ac_res=$ac_cv_search_pthread_create
14469 if test "$ac_res" != no; then :
14470   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14471
14472 fi
14473
14474
14475 else
14476
14477     if test "x$enable_thread_lib" = "xno"; then :
14478
14479       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread library" >&5
14480 $as_echo_n "checking for thread library... " >&6; }
14481       { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14482 $as_echo "disabled" >&6; }
14483
14484 else
14485
14486       as_ac_Lib=`$as_echo "ac_cv_lib_$enable_thread_lib''_pthread_create" | $as_tr_sh`
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$enable_thread_lib" >&5
14488 $as_echo_n "checking for pthread_create in -l$enable_thread_lib... " >&6; }
14489 if eval \${$as_ac_Lib+:} false; then :
14490   $as_echo_n "(cached) " >&6
14491 else
14492   ac_check_lib_save_LIBS=$LIBS
14493 LIBS="-l$enable_thread_lib  $LIBS"
14494 cat > conftest.$ac_ext <<_ACEOF
14495 module mod;
14496  extern(C) int pthread_create();
14497
14498 extern(C) int main() {
14499   pthread_create(); return 0;
14500 }
14501 _ACEOF
14502 if ac_fn_d_try_link "$LINENO"; then :
14503   eval "$as_ac_Lib=yes"
14504 else
14505   eval "$as_ac_Lib=no"
14506 fi
14507 rm -f core conftest.err conftest.$ac_objext \
14508     conftest$ac_exeext conftest.$ac_ext
14509 LIBS=$ac_check_lib_save_LIBS
14510 fi
14511 eval ac_res=\$$as_ac_Lib
14512                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14513 $as_echo "$ac_res" >&6; }
14514 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
14515   cat >>confdefs.h <<_ACEOF
14516 #define `$as_echo "HAVE_LIB$enable_thread_lib" | $as_tr_cpp` 1
14517 _ACEOF
14518
14519   LIBS="-l$enable_thread_lib $LIBS"
14520
14521 else
14522
14523         as_fn_error $? "Thread library not found" "$LINENO" 5
14524
14525 fi
14526
14527
14528 fi
14529
14530 fi
14531
14532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14533 $as_echo_n "checking for library containing cosf... " >&6; }
14534 if ${ac_cv_search_cosf+:} false; then :
14535   $as_echo_n "(cached) " >&6
14536 else
14537   ac_func_search_save_LIBS=$LIBS
14538 cat > conftest.$ac_ext <<_ACEOF
14539 module mod;
14540  extern(C) int cosf();
14541
14542 extern(C) int main() {
14543   cosf(); return 0;
14544 }
14545 _ACEOF
14546 for ac_lib in '' m; do
14547   if test -z "$ac_lib"; then
14548     ac_res="none required"
14549   else
14550     ac_res=-l$ac_lib
14551     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14552   fi
14553   if ac_fn_d_try_link "$LINENO"; then :
14554   ac_cv_search_cosf=$ac_res
14555 fi
14556 rm -f core conftest.err conftest.$ac_objext \
14557     conftest$ac_exeext
14558   if ${ac_cv_search_cosf+:} false; then :
14559   break
14560 fi
14561 done
14562 if ${ac_cv_search_cosf+:} false; then :
14563
14564 else
14565   ac_cv_search_cosf=no
14566 fi
14567 rm conftest.$ac_ext
14568 LIBS=$ac_func_search_save_LIBS
14569 fi
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14571 $as_echo "$ac_cv_search_cosf" >&6; }
14572 ac_res=$ac_cv_search_cosf
14573 if test "$ac_res" != no; then :
14574   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14575
14576 fi
14577
14578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14579 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14580 if ${ac_cv_search_clock_gettime+:} false; then :
14581   $as_echo_n "(cached) " >&6
14582 else
14583   ac_func_search_save_LIBS=$LIBS
14584 cat > conftest.$ac_ext <<_ACEOF
14585 module mod;
14586  extern(C) int clock_gettime();
14587
14588 extern(C) int main() {
14589   clock_gettime(); return 0;
14590 }
14591 _ACEOF
14592 for ac_lib in '' rt; do
14593   if test -z "$ac_lib"; then
14594     ac_res="none required"
14595   else
14596     ac_res=-l$ac_lib
14597     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14598   fi
14599   if ac_fn_d_try_link "$LINENO"; then :
14600   ac_cv_search_clock_gettime=$ac_res
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext \
14603     conftest$ac_exeext
14604   if ${ac_cv_search_clock_gettime+:} false; then :
14605   break
14606 fi
14607 done
14608 if ${ac_cv_search_clock_gettime+:} false; then :
14609
14610 else
14611   ac_cv_search_clock_gettime=no
14612 fi
14613 rm conftest.$ac_ext
14614 LIBS=$ac_func_search_save_LIBS
14615 fi
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14617 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14618 ac_res=$ac_cv_search_clock_gettime
14619 if test "$ac_res" != no; then :
14620   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14621
14622 fi
14623
14624
14625   # This checks to see if the host supports the compiler-generated builtins
14626   # for atomic operations for various integral sizes. Note, this is intended
14627   # to be an all-or-nothing switch, so all the atomic operations that are
14628   # used should be checked.
14629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14630 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14631   if ${druntime_cv_atomic_byte+:} false; then :
14632   $as_echo_n "(cached) " >&6
14633 else
14634
14635     cat > conftest.$ac_ext <<_ACEOF
14636 module mod;
14637 import gcc.builtins;
14638
14639 extern(C) int main() {
14640
14641       shared(byte) c1;
14642        byte c2, c3;
14643        __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14644        __atomic_load_1(&c1, 5);
14645        __atomic_store_1(&c1, c2, 5);
14646        return 0;
14647
14648 }
14649 _ACEOF
14650 if ac_fn_d_try_link "$LINENO"; then :
14651   druntime_cv_atomic_byte=yes
14652 else
14653   druntime_cv_atomic_byte=no
14654 fi
14655 rm -f core conftest.err conftest.$ac_objext \
14656     conftest$ac_exeext conftest.$ac_ext
14657
14658 fi
14659
14660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14661 $as_echo "$druntime_cv_atomic_byte" >&6; }
14662
14663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14664 $as_echo_n "checking for atomic builtins for short... " >&6; }
14665   if ${druntime_cv_atomic_short+:} false; then :
14666   $as_echo_n "(cached) " >&6
14667 else
14668
14669     cat > conftest.$ac_ext <<_ACEOF
14670 module mod;
14671 import gcc.builtins;
14672
14673 extern(C) int main() {
14674
14675       shared(short) c1;
14676        short c2, c3;
14677        __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14678        __atomic_load_2(&c1, 5);
14679        __atomic_store_2(&c1, c2, 5);
14680        return 0;
14681
14682 }
14683 _ACEOF
14684 if ac_fn_d_try_link "$LINENO"; then :
14685   druntime_cv_atomic_short=yes
14686 else
14687   druntime_cv_atomic_short=no
14688 fi
14689 rm -f core conftest.err conftest.$ac_objext \
14690     conftest$ac_exeext conftest.$ac_ext
14691
14692 fi
14693
14694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14695 $as_echo "$druntime_cv_atomic_short" >&6; }
14696
14697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14698 $as_echo_n "checking for atomic builtins for int... " >&6; }
14699   if ${druntime_cv_atomic_int+:} false; then :
14700   $as_echo_n "(cached) " >&6
14701 else
14702
14703     cat > conftest.$ac_ext <<_ACEOF
14704 module mod;
14705 import gcc.builtins;
14706
14707 extern(C) int main() {
14708
14709       shared(int) c1;
14710        int c2, c3;
14711        __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14712        __atomic_load_4(&c1, 5);
14713        __atomic_store_4(&c1, c2, 5);
14714        return 0;
14715
14716 }
14717 _ACEOF
14718 if ac_fn_d_try_link "$LINENO"; then :
14719   druntime_cv_atomic_int=yes
14720 else
14721   druntime_cv_atomic_int=no
14722 fi
14723 rm -f core conftest.err conftest.$ac_objext \
14724     conftest$ac_exeext conftest.$ac_ext
14725
14726 fi
14727
14728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14729 $as_echo "$druntime_cv_atomic_int" >&6; }
14730
14731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14732 $as_echo_n "checking for atomic builtins for long... " >&6; }
14733   if ${druntime_cv_atomic_long+:} false; then :
14734   $as_echo_n "(cached) " >&6
14735 else
14736
14737     cat > conftest.$ac_ext <<_ACEOF
14738 module mod;
14739 import gcc.builtins;
14740
14741 extern(C) int main() {
14742
14743        shared(long) c1;
14744        long c2, c3;
14745        __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14746        __atomic_load_8(&c1, 5);
14747        __atomic_store_8(&c1, c2, 5);
14748        return 0;
14749
14750 }
14751 _ACEOF
14752 if ac_fn_d_try_link "$LINENO"; then :
14753   druntime_cv_atomic_long=yes
14754 else
14755   druntime_cv_atomic_long=no
14756 fi
14757 rm -f core conftest.err conftest.$ac_objext \
14758     conftest$ac_exeext conftest.$ac_ext
14759
14760 fi
14761
14762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14763 $as_echo "$druntime_cv_atomic_long" >&6; }
14764
14765   # Have atomic builtin support if all but the long test above passes.
14766   DCFG_HAVE_ATOMIC_BUILTINS=false
14767   if test "$druntime_cv_atomic_byte" = yes \
14768      && test "$druntime_cv_atomic_short" = yes \
14769      && test "$druntime_cv_atomic_int" = yes; then \
14770     DCFG_HAVE_ATOMIC_BUILTINS=true
14771   fi
14772
14773   # Have 64-bit atomic support if the long test above passes.
14774   DCFG_HAVE_64BIT_ATOMICS=false
14775   if test "$druntime_cv_atomic_long" = yes; then
14776     DCFG_HAVE_64BIT_ATOMICS=true
14777   fi
14778
14779
14780
14781
14782   ac_ext=c
14783 ac_cpp='$CPP $CPPFLAGS'
14784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14787
14788
14789   GDCFLAGS=$gdc_save_DFLAGS
14790
14791
14792
14793
14794 # Check whether --with-libatomic was given.
14795 if test "${with_libatomic+set}" = set; then :
14796   withval=$with_libatomic;
14797 fi
14798
14799
14800   DCFG_HAVE_LIBATOMIC=false
14801   LIBATOMIC=
14802   if test "x$with_libatomic" != "xno"; then :
14803
14804     DCFG_HAVE_LIBATOMIC=true
14805     LIBATOMIC=../../libatomic/libatomic_convenience.la
14806
14807 else
14808
14809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14810 $as_echo_n "checking for libatomic... " >&6; }
14811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14812 $as_echo "disabled" >&6; }
14813
14814 fi
14815
14816
14817
14818
14819
14820   ac_ext=c
14821 ac_cpp='$CPP $CPPFLAGS'
14822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14825
14826   BACKTRACE_SUPPORTED=false
14827   BACKTRACE_USES_MALLOC=false
14828   BACKTRACE_SUPPORTS_THREADS=false
14829   LIBBACKTRACE=""
14830
14831
14832 # Check whether --with-libbacktrace was given.
14833 if test "${with_libbacktrace+set}" = set; then :
14834   withval=$with_libbacktrace;
14835 fi
14836
14837
14838   if test "x$with_libbacktrace" != "xno"; then :
14839
14840     LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14841
14842     gdc_save_CPPFLAGS=$CPPFLAGS
14843     CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14844
14845     ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14846 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14847   have_libbacktrace_h=true
14848 else
14849   have_libbacktrace_h=false
14850 fi
14851
14852
14853
14854     if $have_libbacktrace_h; then
14855       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14856 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14857       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h.  */
14859
14860       #include <backtrace-supported.h>
14861       #if BACKTRACE_SUPPORTED
14862         FOUND_LIBBACKTRACE_RESULT_GDC
14863       #endif
14864
14865 _ACEOF
14866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14867   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14868   BACKTRACE_SUPPORTED=true
14869 else
14870   BACKTRACE_SUPPORTED=false
14871 fi
14872 rm -f conftest*
14873
14874       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14875 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14876
14877       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14878 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14879       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h.  */
14881
14882       #include <backtrace-supported.h>
14883       #if BACKTRACE_USES_MALLOC
14884         FOUND_LIBBACKTRACE_RESULT_GDC
14885       #endif
14886
14887 _ACEOF
14888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14889   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14890   BACKTRACE_USES_MALLOC=true
14891 else
14892   BACKTRACE_USES_MALLOC=false
14893 fi
14894 rm -f conftest*
14895
14896       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14897 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14898
14899       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14900 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14901       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h.  */
14903
14904       #include <backtrace-supported.h>
14905       #if BACKTRACE_SUPPORTS_THREADS
14906         FOUND_LIBBACKTRACE_RESULT_GDC
14907       #endif
14908
14909 _ACEOF
14910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14911   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14912   BACKTRACE_SUPPORTS_THREADS=true
14913 else
14914   BACKTRACE_SUPPORTS_THREADS=false
14915 fi
14916 rm -f conftest*
14917
14918       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14919 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14920     fi
14921     CPPFLAGS=$gdc_save_CPPFLAGS
14922
14923 else
14924
14925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14926 $as_echo_n "checking for libbacktrace... " >&6; }
14927     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14928 $as_echo "disabled" >&6; }
14929
14930 fi
14931
14932
14933
14934
14935
14936   ac_ext=c
14937 ac_cpp='$CPP $CPPFLAGS'
14938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14941
14942
14943
14944   # Libtool has already checked this, so re-use the inferred dlopen lib.
14945   if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14946
14947     LIBS="$LIBS $lt_cv_dlopen_libs"
14948
14949 fi
14950
14951
14952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14953 $as_echo_n "checking for socket libraries... " >&6; }
14954 if ${druntime_cv_lib_sockets+:} false; then :
14955   $as_echo_n "(cached) " >&6
14956 else
14957   druntime_cv_lib_sockets=
14958      druntime_check_both=no
14959      ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14960 if test "x$ac_cv_func_connect" = xyes; then :
14961   druntime_check_socket=no
14962 else
14963   druntime_check_socket=yes
14964 fi
14965
14966      if test "$druntime_check_socket" = "yes"; then
14967        unset ac_cv_func_connect
14968        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14969 $as_echo_n "checking for main in -lsocket... " >&6; }
14970 if ${ac_cv_lib_socket_main+:} false; then :
14971   $as_echo_n "(cached) " >&6
14972 else
14973   ac_check_lib_save_LIBS=$LIBS
14974 LIBS="-lsocket  $LIBS"
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h.  */
14977
14978
14979 int
14980 main ()
14981 {
14982 return main ();
14983   ;
14984   return 0;
14985 }
14986 _ACEOF
14987 if ac_fn_c_try_link "$LINENO"; then :
14988   ac_cv_lib_socket_main=yes
14989 else
14990   ac_cv_lib_socket_main=no
14991 fi
14992 rm -f core conftest.err conftest.$ac_objext \
14993     conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14995 fi
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14997 $as_echo "$ac_cv_lib_socket_main" >&6; }
14998 if test "x$ac_cv_lib_socket_main" = xyes; then :
14999   druntime_cv_lib_sockets="-lsocket"
15000 else
15001   druntime_check_both=yes
15002 fi
15003
15004      fi
15005      if test "$druntime_check_both" = "yes"; then
15006        druntime_old_libs=$LIBS
15007        LIBS="$LIBS -lsocket -lnsl"
15008        unset ac_cv_func_accept
15009        ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15010 if test "x$ac_cv_func_accept" = xyes; then :
15011   druntime_check_nsl=no
15012                       druntime_cv_lib_sockets="-lsocket -lnsl"
15013 fi
15014
15015        unset ac_cv_func_accept
15016        LIBS=$druntime_old_libs
15017      fi
15018      unset ac_cv_func_gethostbyname
15019      druntime_old_libs="$LIBS"
15020      ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15021 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15022
15023 else
15024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15025 $as_echo_n "checking for main in -lnsl... " >&6; }
15026 if ${ac_cv_lib_nsl_main+:} false; then :
15027   $as_echo_n "(cached) " >&6
15028 else
15029   ac_check_lib_save_LIBS=$LIBS
15030 LIBS="-lnsl  $LIBS"
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h.  */
15033
15034
15035 int
15036 main ()
15037 {
15038 return main ();
15039   ;
15040   return 0;
15041 }
15042 _ACEOF
15043 if ac_fn_c_try_link "$LINENO"; then :
15044   ac_cv_lib_nsl_main=yes
15045 else
15046   ac_cv_lib_nsl_main=no
15047 fi
15048 rm -f core conftest.err conftest.$ac_objext \
15049     conftest$ac_exeext conftest.$ac_ext
15050 LIBS=$ac_check_lib_save_LIBS
15051 fi
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15053 $as_echo "$ac_cv_lib_nsl_main" >&6; }
15054 if test "x$ac_cv_lib_nsl_main" = xyes; then :
15055   druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15056 fi
15057
15058 fi
15059
15060
15061 fi
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15063 $as_echo "$druntime_cv_lib_sockets" >&6; }
15064   LIBS="$LIBS $druntime_cv_lib_sockets"
15065
15066
15067   ac_ext=c
15068 ac_cpp='$CPP $CPPFLAGS'
15069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15072
15073   LIBZ=""
15074
15075
15076 # Check whether --with-target-system-zlib was given.
15077 if test "${with_target_system_zlib+set}" = set; then :
15078   withval=$with_target_system_zlib;
15079 else
15080   with_target_system_zlib=no
15081 fi
15082
15083
15084   case "$with_target_system_zlib" in
15085     yes|no|auto) ;;
15086     *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15087   esac
15088
15089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15090 $as_echo_n "checking for system zlib... " >&6; }
15091   save_LIBS=$LIBS
15092   LIBS="$LIBS -lz"
15093       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h.  */
15095 #include <zlib.h>
15096 int
15097 main ()
15098 {
15099 gzopen("none", "rb")
15100   ;
15101   return 0;
15102 }
15103 _ACEOF
15104 if ac_fn_c_try_link "$LINENO"; then :
15105
15106       if test "$cross_compiling" = yes; then :
15107           system_zlib_found=no
15108
15109 else
15110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h.  */
15112
15113         #include <zlib.h>
15114         int main() {
15115           gzFile file = gzopen("none", "rb");
15116           return 0;
15117         }
15118
15119 _ACEOF
15120 if ac_fn_c_try_run "$LINENO"; then :
15121   system_zlib_found=yes
15122 else
15123   system_zlib_found=no
15124 fi
15125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15126   conftest.$ac_objext conftest.beam conftest.$ac_ext
15127 fi
15128
15129
15130 else
15131   system_zlib_found=no
15132 fi
15133 rm -f core conftest.err conftest.$ac_objext \
15134     conftest$ac_exeext conftest.$ac_ext
15135   LIBS=$save_LIBS
15136
15137   if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15139 $as_echo "found" >&6; }
15140     LIBS="$LIBS -lz"
15141   elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15142     as_fn_error $? "system zlib required but not found" "$LINENO" 5
15143   else
15144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15145 $as_echo "just compiled" >&6; }
15146     LIBZ=../../zlib/libz_convenience.la
15147   fi
15148
15149
15150   ac_ext=c
15151 ac_cpp='$CPP $CPPFLAGS'
15152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15155
15156
15157
15158
15159
15160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15161 $as_echo_n "checking D GCC version... " >&6; }
15162   gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15164 $as_echo "$gcc_version" >&6; }
15165
15166
15167
15168 # Check whether --with-cross-host was given.
15169 if test "${with_cross_host+set}" = set; then :
15170   withval=$with_cross_host;
15171 fi
15172
15173
15174   libphobos_toolexecdir=no
15175   libphobos_toolexeclibdir=no
15176
15177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15178 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15179   # Check whether --enable-version-specific-runtime-libs was given.
15180 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15181   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15182       yes) version_specific_libs=yes ;;
15183       no)  version_specific_libs=no ;;
15184       *)   as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15185      esac
15186 else
15187   version_specific_libs=no
15188 fi
15189
15190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15191 $as_echo "$version_specific_libs" >&6; }
15192
15193   # Version-specific runtime libs processing.
15194   if test $version_specific_libs = yes; then
15195     libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15196     libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15197   else
15198     # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15199     # Install a library built with a cross compiler in tooldir, not libdir.
15200     if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15201       libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15202       libphobos_toolexeclibdir='${toolexecdir}/lib'
15203     else
15204       libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15205       libphobos_toolexeclibdir='${libdir}'
15206     fi
15207     multi_os_directory=`$GDC -print-multi-os-directory`
15208     case $multi_os_directory in
15209       .) ;; # Avoid trailing /.
15210       *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15211     esac
15212   fi
15213
15214
15215
15216   # Default case for install directory for D sources files.
15217   gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15218
15219
15220
15221 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15222 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15223     DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15224 else
15225     DRTSTUFF_SPEC=/dev/null
15226 fi
15227
15228
15229 # Add dependencies for libgphobos.spec file
15230 SPEC_PHOBOS_DEPS="$LIBS"
15231
15232
15233 # Libdruntime / phobos soname version
15234 libtool_VERSION=76:3:0
15235
15236
15237 # Set default flags (after DRUNTIME_WERROR!)
15238 if test -z "$GDCFLAGS"; then
15239     GDCFLAGS="-Wall $WERROR_FLAG -g -frelease -O2"
15240 fi
15241
15242
15243 if test -z "$GDCFLAGSX"; then
15244     GDCFLAGSX="-Wall $WERROR_FLAG -g -fno-release -funittest"
15245 fi
15246
15247
15248 # Sanity check for the cross-compilation case:
15249 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15250 if test "x$ac_cv_header_stdio_h" = xyes; then :
15251   :
15252 else
15253   as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15254 fi
15255
15256
15257
15258 ac_config_files="$ac_config_files Makefile"
15259
15260
15261 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15262
15263 ac_config_files="$ac_config_files src/libgphobos.spec"
15264
15265 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15266
15267
15268 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15269 # that multilib installs will end up installed in the correct place.
15270 # The testsuite needs it for multilib-aware ABI baseline files.
15271 # To work around this not being passed down from config-ml.in ->
15272 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15273 # append it here.  Only modify Makefiles that have just been created.
15274 #
15275 # Also, get rid of this simulated-VPATH thing that automake does.
15276 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15277
15278
15279 cat >confcache <<\_ACEOF
15280 # This file is a shell script that caches the results of configure
15281 # tests run on this system so they can be shared between configure
15282 # scripts and configure runs, see configure's option --config-cache.
15283 # It is not useful on other systems.  If it contains results you don't
15284 # want to keep, you may remove or edit it.
15285 #
15286 # config.status only pays attention to the cache file if you give it
15287 # the --recheck option to rerun configure.
15288 #
15289 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15290 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15291 # following values.
15292
15293 _ACEOF
15294
15295 # The following way of writing the cache mishandles newlines in values,
15296 # but we know of no workaround that is simple, portable, and efficient.
15297 # So, we kill variables containing newlines.
15298 # Ultrix sh set writes to stderr and can't be redirected directly,
15299 # and sets the high bit in the cache file unless we assign to the vars.
15300 (
15301   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15302     eval ac_val=\$$ac_var
15303     case $ac_val in #(
15304     *${as_nl}*)
15305       case $ac_var in #(
15306       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15307 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15308       esac
15309       case $ac_var in #(
15310       _ | IFS | as_nl) ;; #(
15311       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15312       *) { eval $ac_var=; unset $ac_var;} ;;
15313       esac ;;
15314     esac
15315   done
15316
15317   (set) 2>&1 |
15318     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15319     *${as_nl}ac_space=\ *)
15320       # `set' does not quote correctly, so add quotes: double-quote
15321       # substitution turns \\\\ into \\, and sed turns \\ into \.
15322       sed -n \
15323         "s/'/'\\\\''/g;
15324           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15325       ;; #(
15326     *)
15327       # `set' quotes correctly as required by POSIX, so do not add quotes.
15328       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15329       ;;
15330     esac |
15331     sort
15332 ) |
15333   sed '
15334      /^ac_cv_env_/b end
15335      t clear
15336      :clear
15337      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15338      t end
15339      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15340      :end' >>confcache
15341 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15342   if test -w "$cache_file"; then
15343     if test "x$cache_file" != "x/dev/null"; then
15344       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15345 $as_echo "$as_me: updating cache $cache_file" >&6;}
15346       if test ! -f "$cache_file" || test -h "$cache_file"; then
15347         cat confcache >"$cache_file"
15348       else
15349         case $cache_file in #(
15350         */* | ?:*)
15351           mv -f confcache "$cache_file"$$ &&
15352           mv -f "$cache_file"$$ "$cache_file" ;; #(
15353         *)
15354           mv -f confcache "$cache_file" ;;
15355         esac
15356       fi
15357     fi
15358   else
15359     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15360 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15361   fi
15362 fi
15363 rm -f confcache
15364
15365 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15366 # Let make expand exec_prefix.
15367 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15368
15369 DEFS=-DHAVE_CONFIG_H
15370
15371 ac_libobjs=
15372 ac_ltlibobjs=
15373 U=
15374 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15375   # 1. Remove the extension, and $U if already installed.
15376   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15377   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15378   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15379   #    will be set to the directory where LIBOBJS objects are built.
15380   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15381   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15382 done
15383 LIBOBJS=$ac_libobjs
15384
15385 LTLIBOBJS=$ac_ltlibobjs
15386
15387
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15389 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15390    if test -n "$am_sleep_pid"; then
15391      # Hide warnings about reused PIDs.
15392      wait $am_sleep_pid 2>/dev/null
15393    fi
15394    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15395 $as_echo "done" >&6; }
15396  if test -n "$EXEEXT"; then
15397   am__EXEEXT_TRUE=
15398   am__EXEEXT_FALSE='#'
15399 else
15400   am__EXEEXT_TRUE='#'
15401   am__EXEEXT_FALSE=
15402 fi
15403
15404 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15405   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15407 fi
15408 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15409   as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15411 fi
15412 if test -z "${DRUNTIME_GC_ENABLE_TRUE}" && test -z "${DRUNTIME_GC_ENABLE_FALSE}"; then
15413   as_fn_error $? "conditional \"DRUNTIME_GC_ENABLE\" was never defined.
15414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15415 fi
15416 if test -z "${DRUNTIME_OS_UNIX_TRUE}" && test -z "${DRUNTIME_OS_UNIX_FALSE}"; then
15417   as_fn_error $? "conditional \"DRUNTIME_OS_UNIX\" was never defined.
15418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15419 fi
15420 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15421   as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15423 fi
15424 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15425   as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15427 fi
15428 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15429   as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15431 fi
15432 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15433   as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15435 fi
15436 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15437   as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15439 fi
15440 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15441   as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15443 fi
15444 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15445   as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15447 fi
15448 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15449   as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15451 fi
15452 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15453   as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15455 fi
15456 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15457   as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15459 fi
15460 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15461   as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15463 fi
15464 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15465   as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15467 fi
15468
15469 : "${CONFIG_STATUS=./config.status}"
15470 ac_write_fail=0
15471 ac_clean_files_save=$ac_clean_files
15472 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15474 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15475 as_write_fail=0
15476 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15477 #! $SHELL
15478 # Generated by $as_me.
15479 # Run this file to recreate the current configuration.
15480 # Compiler output produced by configure, useful for debugging
15481 # configure, is in config.log if it exists.
15482
15483 debug=false
15484 ac_cs_recheck=false
15485 ac_cs_silent=false
15486
15487 SHELL=\${CONFIG_SHELL-$SHELL}
15488 export SHELL
15489 _ASEOF
15490 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15491 ## -------------------- ##
15492 ## M4sh Initialization. ##
15493 ## -------------------- ##
15494
15495 # Be more Bourne compatible
15496 DUALCASE=1; export DUALCASE # for MKS sh
15497 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15498   emulate sh
15499   NULLCMD=:
15500   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15501   # is contrary to our usage.  Disable this feature.
15502   alias -g '${1+"$@"}'='"$@"'
15503   setopt NO_GLOB_SUBST
15504 else
15505   case `(set -o) 2>/dev/null` in #(
15506   *posix*) :
15507     set -o posix ;; #(
15508   *) :
15509      ;;
15510 esac
15511 fi
15512
15513
15514 as_nl='
15515 '
15516 export as_nl
15517 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15518 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15519 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15520 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15521 # Prefer a ksh shell builtin over an external printf program on Solaris,
15522 # but without wasting forks for bash or zsh.
15523 if test -z "$BASH_VERSION$ZSH_VERSION" \
15524     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15525   as_echo='print -r --'
15526   as_echo_n='print -rn --'
15527 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15528   as_echo='printf %s\n'
15529   as_echo_n='printf %s'
15530 else
15531   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15532     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15533     as_echo_n='/usr/ucb/echo -n'
15534   else
15535     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15536     as_echo_n_body='eval
15537       arg=$1;
15538       case $arg in #(
15539       *"$as_nl"*)
15540         expr "X$arg" : "X\\(.*\\)$as_nl";
15541         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15542       esac;
15543       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15544     '
15545     export as_echo_n_body
15546     as_echo_n='sh -c $as_echo_n_body as_echo'
15547   fi
15548   export as_echo_body
15549   as_echo='sh -c $as_echo_body as_echo'
15550 fi
15551
15552 # The user is always right.
15553 if test "${PATH_SEPARATOR+set}" != set; then
15554   PATH_SEPARATOR=:
15555   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15556     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15557       PATH_SEPARATOR=';'
15558   }
15559 fi
15560
15561
15562 # IFS
15563 # We need space, tab and new line, in precisely that order.  Quoting is
15564 # there to prevent editors from complaining about space-tab.
15565 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15566 # splitting by setting IFS to empty value.)
15567 IFS=" ""        $as_nl"
15568
15569 # Find who we are.  Look in the path if we contain no directory separator.
15570 as_myself=
15571 case $0 in #((
15572   *[\\/]* ) as_myself=$0 ;;
15573   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15574 for as_dir in $PATH
15575 do
15576   IFS=$as_save_IFS
15577   test -z "$as_dir" && as_dir=.
15578     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15579   done
15580 IFS=$as_save_IFS
15581
15582      ;;
15583 esac
15584 # We did not find ourselves, most probably we were run as `sh COMMAND'
15585 # in which case we are not to be found in the path.
15586 if test "x$as_myself" = x; then
15587   as_myself=$0
15588 fi
15589 if test ! -f "$as_myself"; then
15590   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15591   exit 1
15592 fi
15593
15594 # Unset variables that we do not need and which cause bugs (e.g. in
15595 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15596 # suppresses any "Segmentation fault" message there.  '((' could
15597 # trigger a bug in pdksh 5.2.14.
15598 for as_var in BASH_ENV ENV MAIL MAILPATH
15599 do eval test x\${$as_var+set} = xset \
15600   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15601 done
15602 PS1='$ '
15603 PS2='> '
15604 PS4='+ '
15605
15606 # NLS nuisances.
15607 LC_ALL=C
15608 export LC_ALL
15609 LANGUAGE=C
15610 export LANGUAGE
15611
15612 # CDPATH.
15613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15614
15615
15616 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15617 # ----------------------------------------
15618 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15619 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15620 # script with STATUS, using 1 if that was 0.
15621 as_fn_error ()
15622 {
15623   as_status=$1; test $as_status -eq 0 && as_status=1
15624   if test "$4"; then
15625     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15626     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15627   fi
15628   $as_echo "$as_me: error: $2" >&2
15629   as_fn_exit $as_status
15630 } # as_fn_error
15631
15632
15633 # as_fn_set_status STATUS
15634 # -----------------------
15635 # Set $? to STATUS, without forking.
15636 as_fn_set_status ()
15637 {
15638   return $1
15639 } # as_fn_set_status
15640
15641 # as_fn_exit STATUS
15642 # -----------------
15643 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15644 as_fn_exit ()
15645 {
15646   set +e
15647   as_fn_set_status $1
15648   exit $1
15649 } # as_fn_exit
15650
15651 # as_fn_unset VAR
15652 # ---------------
15653 # Portably unset VAR.
15654 as_fn_unset ()
15655 {
15656   { eval $1=; unset $1;}
15657 }
15658 as_unset=as_fn_unset
15659 # as_fn_append VAR VALUE
15660 # ----------------------
15661 # Append the text in VALUE to the end of the definition contained in VAR. Take
15662 # advantage of any shell optimizations that allow amortized linear growth over
15663 # repeated appends, instead of the typical quadratic growth present in naive
15664 # implementations.
15665 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15666   eval 'as_fn_append ()
15667   {
15668     eval $1+=\$2
15669   }'
15670 else
15671   as_fn_append ()
15672   {
15673     eval $1=\$$1\$2
15674   }
15675 fi # as_fn_append
15676
15677 # as_fn_arith ARG...
15678 # ------------------
15679 # Perform arithmetic evaluation on the ARGs, and store the result in the
15680 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15681 # must be portable across $(()) and expr.
15682 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15683   eval 'as_fn_arith ()
15684   {
15685     as_val=$(( $* ))
15686   }'
15687 else
15688   as_fn_arith ()
15689   {
15690     as_val=`expr "$@" || test $? -eq 1`
15691   }
15692 fi # as_fn_arith
15693
15694
15695 if expr a : '\(a\)' >/dev/null 2>&1 &&
15696    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15697   as_expr=expr
15698 else
15699   as_expr=false
15700 fi
15701
15702 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15703   as_basename=basename
15704 else
15705   as_basename=false
15706 fi
15707
15708 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15709   as_dirname=dirname
15710 else
15711   as_dirname=false
15712 fi
15713
15714 as_me=`$as_basename -- "$0" ||
15715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15716          X"$0" : 'X\(//\)$' \| \
15717          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15718 $as_echo X/"$0" |
15719     sed '/^.*\/\([^/][^/]*\)\/*$/{
15720             s//\1/
15721             q
15722           }
15723           /^X\/\(\/\/\)$/{
15724             s//\1/
15725             q
15726           }
15727           /^X\/\(\/\).*/{
15728             s//\1/
15729             q
15730           }
15731           s/.*/./; q'`
15732
15733 # Avoid depending upon Character Ranges.
15734 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15735 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15736 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15737 as_cr_digits='0123456789'
15738 as_cr_alnum=$as_cr_Letters$as_cr_digits
15739
15740 ECHO_C= ECHO_N= ECHO_T=
15741 case `echo -n x` in #(((((
15742 -n*)
15743   case `echo 'xy\c'` in
15744   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15745   xy)  ECHO_C='\c';;
15746   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15747        ECHO_T=' ';;
15748   esac;;
15749 *)
15750   ECHO_N='-n';;
15751 esac
15752
15753 rm -f conf$$ conf$$.exe conf$$.file
15754 if test -d conf$$.dir; then
15755   rm -f conf$$.dir/conf$$.file
15756 else
15757   rm -f conf$$.dir
15758   mkdir conf$$.dir 2>/dev/null
15759 fi
15760 if (echo >conf$$.file) 2>/dev/null; then
15761   if ln -s conf$$.file conf$$ 2>/dev/null; then
15762     as_ln_s='ln -s'
15763     # ... but there are two gotchas:
15764     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15765     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15766     # In both cases, we have to default to `cp -pR'.
15767     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15768       as_ln_s='cp -pR'
15769   elif ln conf$$.file conf$$ 2>/dev/null; then
15770     as_ln_s=ln
15771   else
15772     as_ln_s='cp -pR'
15773   fi
15774 else
15775   as_ln_s='cp -pR'
15776 fi
15777 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15778 rmdir conf$$.dir 2>/dev/null
15779
15780
15781 # as_fn_mkdir_p
15782 # -------------
15783 # Create "$as_dir" as a directory, including parents if necessary.
15784 as_fn_mkdir_p ()
15785 {
15786
15787   case $as_dir in #(
15788   -*) as_dir=./$as_dir;;
15789   esac
15790   test -d "$as_dir" || eval $as_mkdir_p || {
15791     as_dirs=
15792     while :; do
15793       case $as_dir in #(
15794       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15795       *) as_qdir=$as_dir;;
15796       esac
15797       as_dirs="'$as_qdir' $as_dirs"
15798       as_dir=`$as_dirname -- "$as_dir" ||
15799 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15800          X"$as_dir" : 'X\(//\)[^/]' \| \
15801          X"$as_dir" : 'X\(//\)$' \| \
15802          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15803 $as_echo X"$as_dir" |
15804     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15805             s//\1/
15806             q
15807           }
15808           /^X\(\/\/\)[^/].*/{
15809             s//\1/
15810             q
15811           }
15812           /^X\(\/\/\)$/{
15813             s//\1/
15814             q
15815           }
15816           /^X\(\/\).*/{
15817             s//\1/
15818             q
15819           }
15820           s/.*/./; q'`
15821       test -d "$as_dir" && break
15822     done
15823     test -z "$as_dirs" || eval "mkdir $as_dirs"
15824   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15825
15826
15827 } # as_fn_mkdir_p
15828 if mkdir -p . 2>/dev/null; then
15829   as_mkdir_p='mkdir -p "$as_dir"'
15830 else
15831   test -d ./-p && rmdir ./-p
15832   as_mkdir_p=false
15833 fi
15834
15835
15836 # as_fn_executable_p FILE
15837 # -----------------------
15838 # Test if FILE is an executable regular file.
15839 as_fn_executable_p ()
15840 {
15841   test -f "$1" && test -x "$1"
15842 } # as_fn_executable_p
15843 as_test_x='test -x'
15844 as_executable_p=as_fn_executable_p
15845
15846 # Sed expression to map a string onto a valid CPP name.
15847 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15848
15849 # Sed expression to map a string onto a valid variable name.
15850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15851
15852
15853 exec 6>&1
15854 ## ----------------------------------- ##
15855 ## Main body of $CONFIG_STATUS script. ##
15856 ## ----------------------------------- ##
15857 _ASEOF
15858 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15859
15860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15861 # Save the log message, to keep $0 and so on meaningful, and to
15862 # report actual input values of CONFIG_FILES etc. instead of their
15863 # values after options handling.
15864 ac_log="
15865 This file was extended by package-unused $as_me version-unused, which was
15866 generated by GNU Autoconf 2.69.  Invocation command line was
15867
15868   CONFIG_FILES    = $CONFIG_FILES
15869   CONFIG_HEADERS  = $CONFIG_HEADERS
15870   CONFIG_LINKS    = $CONFIG_LINKS
15871   CONFIG_COMMANDS = $CONFIG_COMMANDS
15872   $ $0 $@
15873
15874 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15875 "
15876
15877 _ACEOF
15878
15879 case $ac_config_files in *"
15880 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15881 esac
15882
15883 case $ac_config_headers in *"
15884 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15885 esac
15886
15887
15888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15889 # Files that config.status was made for.
15890 config_files="$ac_config_files"
15891 config_headers="$ac_config_headers"
15892 config_commands="$ac_config_commands"
15893
15894 _ACEOF
15895
15896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15897 ac_cs_usage="\
15898 \`$as_me' instantiates files and other configuration actions
15899 from templates according to the current configuration.  Unless the files
15900 and actions are specified as TAGs, all are instantiated by default.
15901
15902 Usage: $0 [OPTION]... [TAG]...
15903
15904   -h, --help       print this help, then exit
15905   -V, --version    print version number and configuration settings, then exit
15906       --config     print configuration, then exit
15907   -q, --quiet, --silent
15908                    do not print progress messages
15909   -d, --debug      don't remove temporary files
15910       --recheck    update $as_me by reconfiguring in the same conditions
15911       --file=FILE[:TEMPLATE]
15912                    instantiate the configuration file FILE
15913       --header=FILE[:TEMPLATE]
15914                    instantiate the configuration header FILE
15915
15916 Configuration files:
15917 $config_files
15918
15919 Configuration headers:
15920 $config_headers
15921
15922 Configuration commands:
15923 $config_commands
15924
15925 Report bugs to the package provider."
15926
15927 _ACEOF
15928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15929 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15930 ac_cs_version="\\
15931 package-unused config.status version-unused
15932 configured by $0, generated by GNU Autoconf 2.69,
15933   with options \\"\$ac_cs_config\\"
15934
15935 Copyright (C) 2012 Free Software Foundation, Inc.
15936 This config.status script is free software; the Free Software Foundation
15937 gives unlimited permission to copy, distribute and modify it."
15938
15939 ac_pwd='$ac_pwd'
15940 srcdir='$srcdir'
15941 INSTALL='$INSTALL'
15942 MKDIR_P='$MKDIR_P'
15943 AWK='$AWK'
15944 test -n "\$AWK" || AWK=awk
15945 _ACEOF
15946
15947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15948 # The default lists apply if the user does not specify any file.
15949 ac_need_defaults=:
15950 while test $# != 0
15951 do
15952   case $1 in
15953   --*=?*)
15954     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15955     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15956     ac_shift=:
15957     ;;
15958   --*=)
15959     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15960     ac_optarg=
15961     ac_shift=:
15962     ;;
15963   *)
15964     ac_option=$1
15965     ac_optarg=$2
15966     ac_shift=shift
15967     ;;
15968   esac
15969
15970   case $ac_option in
15971   # Handling of the options.
15972   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15973     ac_cs_recheck=: ;;
15974   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15975     $as_echo "$ac_cs_version"; exit ;;
15976   --config | --confi | --conf | --con | --co | --c )
15977     $as_echo "$ac_cs_config"; exit ;;
15978   --debug | --debu | --deb | --de | --d | -d )
15979     debug=: ;;
15980   --file | --fil | --fi | --f )
15981     $ac_shift
15982     case $ac_optarg in
15983     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15984     '') as_fn_error $? "missing file argument" ;;
15985     esac
15986     as_fn_append CONFIG_FILES " '$ac_optarg'"
15987     ac_need_defaults=false;;
15988   --header | --heade | --head | --hea )
15989     $ac_shift
15990     case $ac_optarg in
15991     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15992     esac
15993     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15994     ac_need_defaults=false;;
15995   --he | --h)
15996     # Conflict between --help and --header
15997     as_fn_error $? "ambiguous option: \`$1'
15998 Try \`$0 --help' for more information.";;
15999   --help | --hel | -h )
16000     $as_echo "$ac_cs_usage"; exit ;;
16001   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16002   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16003     ac_cs_silent=: ;;
16004
16005   # This is an error.
16006   -*) as_fn_error $? "unrecognized option: \`$1'
16007 Try \`$0 --help' for more information." ;;
16008
16009   *) as_fn_append ac_config_targets " $1"
16010      ac_need_defaults=false ;;
16011
16012   esac
16013   shift
16014 done
16015
16016 ac_configure_extra_args=
16017
16018 if $ac_cs_silent; then
16019   exec 6>/dev/null
16020   ac_configure_extra_args="$ac_configure_extra_args --silent"
16021 fi
16022
16023 _ACEOF
16024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16025 if \$ac_cs_recheck; then
16026   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16027   shift
16028   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16029   CONFIG_SHELL='$SHELL'
16030   export CONFIG_SHELL
16031   exec "\$@"
16032 fi
16033
16034 _ACEOF
16035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16036 exec 5>>config.log
16037 {
16038   echo
16039   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16040 ## Running $as_me. ##
16041 _ASBOX
16042   $as_echo "$ac_log"
16043 } >&5
16044
16045 _ACEOF
16046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16047 #
16048 # INIT-COMMANDS
16049 #
16050
16051 srcdir="$srcdir"
16052 host="$host"
16053 target="$target"
16054 with_multisubdir="$with_multisubdir"
16055 with_multisrctop="$with_multisrctop"
16056 with_target_subdir="$with_target_subdir"
16057 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16058 multi_basedir="$multi_basedir"
16059 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16060 CC="$CC"
16061 CXX="$CXX"
16062 GFORTRAN="$GFORTRAN"
16063 GDC="$GDC"
16064
16065
16066 # The HP-UX ksh and POSIX shell print the target directory to stdout
16067 # if CDPATH is set.
16068 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16069
16070 sed_quote_subst='$sed_quote_subst'
16071 double_quote_subst='$double_quote_subst'
16072 delay_variable_subst='$delay_variable_subst'
16073 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16074 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16075 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16076 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16077 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16078 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16079 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16080 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16081 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16082 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16083 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16084 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16085 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16086 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16087 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16088 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16089 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16090 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16091 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16092 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16093 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16094 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16095 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16096 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16097 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16098 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16099 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16100 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16101 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16102 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16103 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16104 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16105 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16106 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16107 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16108 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16109 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16110 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16111 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16112 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16113 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16114 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16115 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16116 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16117 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16118 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16119 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16120 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16121 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"`'
16122 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16123 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16124 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16125 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16126 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16127 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16128 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16129 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16130 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16131 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16132 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16133 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16134 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16135 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16136 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16137 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16138 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16139 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16140 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16141 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16142 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16143 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16144 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16145 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16146 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16147 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16148 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16149 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16150 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16151 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16152 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16153 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16154 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16155 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16156 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16157 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16158 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16159 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16160 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16161 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16162 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16163 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16164 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16165 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16166 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16167 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16168 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16169 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16170 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16171 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16172 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16173 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16174 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16175 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16176 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16177 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16178 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16179 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16180 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16181 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16182 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16183 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16184 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16185 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16186 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16187 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16188 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16189 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16190 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16191 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16192 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16193 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16194 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16195 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16196 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16197 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16198 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16199 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16200 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16201 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16202 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16203 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16204 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16205 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16206 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16207 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16208 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16209 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16210 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16211 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16212 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16213 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16214 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16215 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16216 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16217 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16218 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16219 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16220 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16221 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16222 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16223 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16224 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16225 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16226 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16227 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16228 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16229 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16230 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16231 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16232 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16233 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16234 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16235 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16236
16237 LTCC='$LTCC'
16238 LTCFLAGS='$LTCFLAGS'
16239 compiler='$compiler_DEFAULT'
16240
16241 # A function that is used when there is no print builtin or printf.
16242 func_fallback_echo ()
16243 {
16244   eval 'cat <<_LTECHO_EOF
16245 \$1
16246 _LTECHO_EOF'
16247 }
16248
16249 # Quote evaled strings.
16250 for var in SHELL \
16251 ECHO \
16252 SED \
16253 GREP \
16254 EGREP \
16255 FGREP \
16256 LD \
16257 NM \
16258 LN_S \
16259 lt_SP2NL \
16260 lt_NL2SP \
16261 reload_flag \
16262 OBJDUMP \
16263 deplibs_check_method \
16264 file_magic_cmd \
16265 AR \
16266 AR_FLAGS \
16267 STRIP \
16268 RANLIB \
16269 CC \
16270 CFLAGS \
16271 compiler \
16272 lt_cv_sys_global_symbol_pipe \
16273 lt_cv_sys_global_symbol_to_cdecl \
16274 lt_cv_sys_global_symbol_to_c_name_address \
16275 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16276 lt_prog_compiler_no_builtin_flag \
16277 lt_prog_compiler_wl \
16278 lt_prog_compiler_pic \
16279 lt_prog_compiler_static \
16280 lt_cv_prog_compiler_c_o \
16281 need_locks \
16282 DSYMUTIL \
16283 NMEDIT \
16284 LIPO \
16285 OTOOL \
16286 OTOOL64 \
16287 shrext_cmds \
16288 export_dynamic_flag_spec \
16289 whole_archive_flag_spec \
16290 compiler_needs_object \
16291 with_gnu_ld \
16292 allow_undefined_flag \
16293 no_undefined_flag \
16294 hardcode_libdir_flag_spec \
16295 hardcode_libdir_flag_spec_ld \
16296 hardcode_libdir_separator \
16297 fix_srcfile_path \
16298 exclude_expsyms \
16299 include_expsyms \
16300 file_list_spec \
16301 variables_saved_for_relink \
16302 libname_spec \
16303 library_names_spec \
16304 soname_spec \
16305 install_override_mode \
16306 finish_eval \
16307 old_striplib \
16308 striplib \
16309 LD_D \
16310 reload_flag_D \
16311 compiler_D \
16312 lt_prog_compiler_no_builtin_flag_D \
16313 lt_prog_compiler_wl_D \
16314 lt_prog_compiler_pic_D \
16315 lt_prog_compiler_static_D \
16316 lt_cv_prog_compiler_c_o_D \
16317 export_dynamic_flag_spec_D \
16318 whole_archive_flag_spec_D \
16319 compiler_needs_object_D \
16320 with_gnu_ld_D \
16321 allow_undefined_flag_D \
16322 no_undefined_flag_D \
16323 hardcode_libdir_flag_spec_D \
16324 hardcode_libdir_flag_spec_ld_D \
16325 hardcode_libdir_separator_D \
16326 fix_srcfile_path_D \
16327 exclude_expsyms_D \
16328 include_expsyms_D \
16329 file_list_spec_D; do
16330     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16331     *[\\\\\\\`\\"\\\$]*)
16332       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16333       ;;
16334     *)
16335       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16336       ;;
16337     esac
16338 done
16339
16340 # Double-quote double-evaled strings.
16341 for var in reload_cmds \
16342 old_postinstall_cmds \
16343 old_postuninstall_cmds \
16344 old_archive_cmds \
16345 extract_expsyms_cmds \
16346 old_archive_from_new_cmds \
16347 old_archive_from_expsyms_cmds \
16348 archive_cmds \
16349 archive_expsym_cmds \
16350 module_cmds \
16351 module_expsym_cmds \
16352 export_symbols_cmds \
16353 prelink_cmds \
16354 postinstall_cmds \
16355 postuninstall_cmds \
16356 finish_cmds \
16357 sys_lib_search_path_spec \
16358 sys_lib_dlsearch_path_spec \
16359 reload_cmds_D \
16360 old_archive_cmds_D \
16361 old_archive_from_new_cmds_D \
16362 old_archive_from_expsyms_cmds_D \
16363 archive_cmds_D \
16364 archive_expsym_cmds_D \
16365 module_cmds_D \
16366 module_expsym_cmds_D \
16367 export_symbols_cmds_D \
16368 prelink_cmds_D; do
16369     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16370     *[\\\\\\\`\\"\\\$]*)
16371       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16372       ;;
16373     *)
16374       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16375       ;;
16376     esac
16377 done
16378
16379 ac_aux_dir='$ac_aux_dir'
16380 xsi_shell='$xsi_shell'
16381 lt_shell_append='$lt_shell_append'
16382
16383 # See if we are running on zsh, and set the options which allow our
16384 # commands through without removal of \ escapes INIT.
16385 if test -n "\${ZSH_VERSION+set}" ; then
16386    setopt NO_GLOB_SUBST
16387 fi
16388
16389
16390     PACKAGE='$PACKAGE'
16391     VERSION='$VERSION'
16392     TIMESTAMP='$TIMESTAMP'
16393     RM='$RM'
16394     ofile='$ofile'
16395
16396
16397
16398
16399
16400
16401 _ACEOF
16402
16403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16404
16405 # Handling of arguments.
16406 for ac_config_target in $ac_config_targets
16407 do
16408   case $ac_config_target in
16409     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16410     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16411     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16412     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16413     "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16414     "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16415     "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16416     "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16417     "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16418     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16419     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16420
16421   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16422   esac
16423 done
16424
16425
16426 # If the user did not use the arguments to specify the items to instantiate,
16427 # then the envvar interface is used.  Set only those that are not.
16428 # We use the long form for the default assignment because of an extremely
16429 # bizarre bug on SunOS 4.1.3.
16430 if $ac_need_defaults; then
16431   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16432   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16433   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16434 fi
16435
16436 # Have a temporary directory for convenience.  Make it in the build tree
16437 # simply because there is no reason against having it here, and in addition,
16438 # creating and moving files from /tmp can sometimes cause problems.
16439 # Hook for its removal unless debugging.
16440 # Note that there is a small window in which the directory will not be cleaned:
16441 # after its creation but before its name has been assigned to `$tmp'.
16442 $debug ||
16443 {
16444   tmp= ac_tmp=
16445   trap 'exit_status=$?
16446   : "${ac_tmp:=$tmp}"
16447   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16448 ' 0
16449   trap 'as_fn_exit 1' 1 2 13 15
16450 }
16451 # Create a (secure) tmp directory for tmp files.
16452
16453 {
16454   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16455   test -d "$tmp"
16456 }  ||
16457 {
16458   tmp=./conf$$-$RANDOM
16459   (umask 077 && mkdir "$tmp")
16460 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16461 ac_tmp=$tmp
16462
16463 # Set up the scripts for CONFIG_FILES section.
16464 # No need to generate them if there are no CONFIG_FILES.
16465 # This happens for instance with `./config.status config.h'.
16466 if test -n "$CONFIG_FILES"; then
16467
16468 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16469   ac_cs_awk_getline=:
16470   ac_cs_awk_pipe_init=
16471   ac_cs_awk_read_file='
16472       while ((getline aline < (F[key])) > 0)
16473         print(aline)
16474       close(F[key])'
16475   ac_cs_awk_pipe_fini=
16476 else
16477   ac_cs_awk_getline=false
16478   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16479   ac_cs_awk_read_file='
16480       print "|#_!!_#|"
16481       print "cat " F[key] " &&"
16482       '$ac_cs_awk_pipe_init
16483   # The final `:' finishes the AND list.
16484   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16485 fi
16486 ac_cr=`echo X | tr X '\015'`
16487 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16488 # But we know of no other shell where ac_cr would be empty at this
16489 # point, so we can use a bashism as a fallback.
16490 if test "x$ac_cr" = x; then
16491   eval ac_cr=\$\'\\r\'
16492 fi
16493 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16494 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16495   ac_cs_awk_cr='\\r'
16496 else
16497   ac_cs_awk_cr=$ac_cr
16498 fi
16499
16500 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16501 _ACEOF
16502
16503 # Create commands to substitute file output variables.
16504 {
16505   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16506   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16507   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16508   echo "_ACAWK" &&
16509   echo "_ACEOF"
16510 } >conf$$files.sh &&
16511 . ./conf$$files.sh ||
16512   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16513 rm -f conf$$files.sh
16514
16515 {
16516   echo "cat >conf$$subs.awk <<_ACEOF" &&
16517   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16518   echo "_ACEOF"
16519 } >conf$$subs.sh ||
16520   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16521 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16522 ac_delim='%!_!# '
16523 for ac_last_try in false false false false false :; do
16524   . ./conf$$subs.sh ||
16525     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16526
16527   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16528   if test $ac_delim_n = $ac_delim_num; then
16529     break
16530   elif $ac_last_try; then
16531     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16532   else
16533     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16534   fi
16535 done
16536 rm -f conf$$subs.sh
16537
16538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16539 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16540 _ACEOF
16541 sed -n '
16542 h
16543 s/^/S["/; s/!.*/"]=/
16544 p
16545 g
16546 s/^[^!]*!//
16547 :repl
16548 t repl
16549 s/'"$ac_delim"'$//
16550 t delim
16551 :nl
16552 h
16553 s/\(.\{148\}\)..*/\1/
16554 t more1
16555 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16556 p
16557 n
16558 b repl
16559 :more1
16560 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16561 p
16562 g
16563 s/.\{148\}//
16564 t nl
16565 :delim
16566 h
16567 s/\(.\{148\}\)..*/\1/
16568 t more2
16569 s/["\\]/\\&/g; s/^/"/; s/$/"/
16570 p
16571 b
16572 :more2
16573 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16574 p
16575 g
16576 s/.\{148\}//
16577 t delim
16578 ' <conf$$subs.awk | sed '
16579 /^[^""]/{
16580   N
16581   s/\n//
16582 }
16583 ' >>$CONFIG_STATUS || ac_write_fail=1
16584 rm -f conf$$subs.awk
16585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16586 _ACAWK
16587 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16588   for (key in S) S_is_set[key] = 1
16589   FS = "\a"
16590   \$ac_cs_awk_pipe_init
16591 }
16592 {
16593   line = $ 0
16594   nfields = split(line, field, "@")
16595   substed = 0
16596   len = length(field[1])
16597   for (i = 2; i < nfields; i++) {
16598     key = field[i]
16599     keylen = length(key)
16600     if (S_is_set[key]) {
16601       value = S[key]
16602       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16603       len += length(value) + length(field[++i])
16604       substed = 1
16605     } else
16606       len += 1 + keylen
16607   }
16608   if (nfields == 3 && !substed) {
16609     key = field[2]
16610     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16611       \$ac_cs_awk_read_file
16612       next
16613     }
16614   }
16615   print line
16616 }
16617 \$ac_cs_awk_pipe_fini
16618 _ACAWK
16619 _ACEOF
16620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16621 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16622   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16623 else
16624   cat
16625 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16626   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16627 _ACEOF
16628
16629 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16630 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16631 # trailing colons and then remove the whole line if VPATH becomes empty
16632 # (actually we leave an empty line to preserve line numbers).
16633 if test "x$srcdir" = x.; then
16634   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16635 h
16636 s///
16637 s/^/:/
16638 s/[      ]*$/:/
16639 s/:\$(srcdir):/:/g
16640 s/:\${srcdir}:/:/g
16641 s/:@srcdir@:/:/g
16642 s/^:*//
16643 s/:*$//
16644 x
16645 s/\(=[   ]*\).*/\1/
16646 G
16647 s/\n//
16648 s/^[^=]*=[       ]*$//
16649 }'
16650 fi
16651
16652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16653 fi # test -n "$CONFIG_FILES"
16654
16655 # Set up the scripts for CONFIG_HEADERS section.
16656 # No need to generate them if there are no CONFIG_HEADERS.
16657 # This happens for instance with `./config.status Makefile'.
16658 if test -n "$CONFIG_HEADERS"; then
16659 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16660 BEGIN {
16661 _ACEOF
16662
16663 # Transform confdefs.h into an awk script `defines.awk', embedded as
16664 # here-document in config.status, that substitutes the proper values into
16665 # config.h.in to produce config.h.
16666
16667 # Create a delimiter string that does not exist in confdefs.h, to ease
16668 # handling of long lines.
16669 ac_delim='%!_!# '
16670 for ac_last_try in false false :; do
16671   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16672   if test -z "$ac_tt"; then
16673     break
16674   elif $ac_last_try; then
16675     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16676   else
16677     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16678   fi
16679 done
16680
16681 # For the awk script, D is an array of macro values keyed by name,
16682 # likewise P contains macro parameters if any.  Preserve backslash
16683 # newline sequences.
16684
16685 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16686 sed -n '
16687 s/.\{148\}/&'"$ac_delim"'/g
16688 t rset
16689 :rset
16690 s/^[     ]*#[    ]*define[       ][      ]*/ /
16691 t def
16692 d
16693 :def
16694 s/\\$//
16695 t bsnl
16696 s/["\\]/\\&/g
16697 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16698 D["\1"]=" \3"/p
16699 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16700 d
16701 :bsnl
16702 s/["\\]/\\&/g
16703 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16704 D["\1"]=" \3\\\\\\n"\\/p
16705 t cont
16706 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16707 t cont
16708 d
16709 :cont
16710 n
16711 s/.\{148\}/&'"$ac_delim"'/g
16712 t clear
16713 :clear
16714 s/\\$//
16715 t bsnlc
16716 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16717 d
16718 :bsnlc
16719 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16720 b cont
16721 ' <confdefs.h | sed '
16722 s/'"$ac_delim"'/"\\\
16723 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16724
16725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16726   for (key in D) D_is_set[key] = 1
16727   FS = "\a"
16728 }
16729 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16730   line = \$ 0
16731   split(line, arg, " ")
16732   if (arg[1] == "#") {
16733     defundef = arg[2]
16734     mac1 = arg[3]
16735   } else {
16736     defundef = substr(arg[1], 2)
16737     mac1 = arg[2]
16738   }
16739   split(mac1, mac2, "(") #)
16740   macro = mac2[1]
16741   prefix = substr(line, 1, index(line, defundef) - 1)
16742   if (D_is_set[macro]) {
16743     # Preserve the white space surrounding the "#".
16744     print prefix "define", macro P[macro] D[macro]
16745     next
16746   } else {
16747     # Replace #undef with comments.  This is necessary, for example,
16748     # in the case of _POSIX_SOURCE, which is predefined and required
16749     # on some systems where configure will not decide to define it.
16750     if (defundef == "undef") {
16751       print "/*", prefix defundef, macro, "*/"
16752       next
16753     }
16754   }
16755 }
16756 { print }
16757 _ACAWK
16758 _ACEOF
16759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16760   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16761 fi # test -n "$CONFIG_HEADERS"
16762
16763
16764 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16765 shift
16766 for ac_tag
16767 do
16768   case $ac_tag in
16769   :[FHLC]) ac_mode=$ac_tag; continue;;
16770   esac
16771   case $ac_mode$ac_tag in
16772   :[FHL]*:*);;
16773   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16774   :[FH]-) ac_tag=-:-;;
16775   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16776   esac
16777   ac_save_IFS=$IFS
16778   IFS=:
16779   set x $ac_tag
16780   IFS=$ac_save_IFS
16781   shift
16782   ac_file=$1
16783   shift
16784
16785   case $ac_mode in
16786   :L) ac_source=$1;;
16787   :[FH])
16788     ac_file_inputs=
16789     for ac_f
16790     do
16791       case $ac_f in
16792       -) ac_f="$ac_tmp/stdin";;
16793       *) # Look for the file first in the build tree, then in the source tree
16794          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16795          # because $ac_f cannot contain `:'.
16796          test -f "$ac_f" ||
16797            case $ac_f in
16798            [\\/$]*) false;;
16799            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16800            esac ||
16801            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16802       esac
16803       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16804       as_fn_append ac_file_inputs " '$ac_f'"
16805     done
16806
16807     # Let's still pretend it is `configure' which instantiates (i.e., don't
16808     # use $as_me), people would be surprised to read:
16809     #    /* config.h.  Generated by config.status.  */
16810     configure_input='Generated from '`
16811           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16812         `' by configure.'
16813     if test x"$ac_file" != x-; then
16814       configure_input="$ac_file.  $configure_input"
16815       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16816 $as_echo "$as_me: creating $ac_file" >&6;}
16817     fi
16818     # Neutralize special characters interpreted by sed in replacement strings.
16819     case $configure_input in #(
16820     *\&* | *\|* | *\\* )
16821        ac_sed_conf_input=`$as_echo "$configure_input" |
16822        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16823     *) ac_sed_conf_input=$configure_input;;
16824     esac
16825
16826     case $ac_tag in
16827     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16828       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16829     esac
16830     ;;
16831   esac
16832
16833   ac_dir=`$as_dirname -- "$ac_file" ||
16834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16835          X"$ac_file" : 'X\(//\)[^/]' \| \
16836          X"$ac_file" : 'X\(//\)$' \| \
16837          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16838 $as_echo X"$ac_file" |
16839     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16840             s//\1/
16841             q
16842           }
16843           /^X\(\/\/\)[^/].*/{
16844             s//\1/
16845             q
16846           }
16847           /^X\(\/\/\)$/{
16848             s//\1/
16849             q
16850           }
16851           /^X\(\/\).*/{
16852             s//\1/
16853             q
16854           }
16855           s/.*/./; q'`
16856   as_dir="$ac_dir"; as_fn_mkdir_p
16857   ac_builddir=.
16858
16859 case "$ac_dir" in
16860 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16861 *)
16862   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16863   # A ".." for each directory in $ac_dir_suffix.
16864   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16865   case $ac_top_builddir_sub in
16866   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16867   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16868   esac ;;
16869 esac
16870 ac_abs_top_builddir=$ac_pwd
16871 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16872 # for backward compatibility:
16873 ac_top_builddir=$ac_top_build_prefix
16874
16875 case $srcdir in
16876   .)  # We are building in place.
16877     ac_srcdir=.
16878     ac_top_srcdir=$ac_top_builddir_sub
16879     ac_abs_top_srcdir=$ac_pwd ;;
16880   [\\/]* | ?:[\\/]* )  # Absolute name.
16881     ac_srcdir=$srcdir$ac_dir_suffix;
16882     ac_top_srcdir=$srcdir
16883     ac_abs_top_srcdir=$srcdir ;;
16884   *) # Relative name.
16885     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16886     ac_top_srcdir=$ac_top_build_prefix$srcdir
16887     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16888 esac
16889 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16890
16891
16892   case $ac_mode in
16893   :F)
16894   #
16895   # CONFIG_FILE
16896   #
16897
16898   case $INSTALL in
16899   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16900   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16901   esac
16902   ac_MKDIR_P=$MKDIR_P
16903   case $MKDIR_P in
16904   [\\/$]* | ?:[\\/]* ) ;;
16905   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16906   esac
16907 _ACEOF
16908
16909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16910 # If the template does not know about datarootdir, expand it.
16911 # FIXME: This hack should be removed a few years after 2.60.
16912 ac_datarootdir_hack=; ac_datarootdir_seen=
16913 ac_sed_dataroot='
16914 /datarootdir/ {
16915   p
16916   q
16917 }
16918 /@datadir@/p
16919 /@docdir@/p
16920 /@infodir@/p
16921 /@localedir@/p
16922 /@mandir@/p'
16923 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16924 *datarootdir*) ac_datarootdir_seen=yes;;
16925 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16926   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16927 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16928 _ACEOF
16929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16930   ac_datarootdir_hack='
16931   s&@datadir@&$datadir&g
16932   s&@docdir@&$docdir&g
16933   s&@infodir@&$infodir&g
16934   s&@localedir@&$localedir&g
16935   s&@mandir@&$mandir&g
16936   s&\\\${datarootdir}&$datarootdir&g' ;;
16937 esac
16938 _ACEOF
16939
16940 # Neutralize VPATH when `$srcdir' = `.'.
16941 # Shell code in configure.ac might set extrasub.
16942 # FIXME: do we really want to maintain this feature?
16943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16944 ac_sed_extra="$ac_vpsub
16945 $extrasub
16946 _ACEOF
16947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16948 :t
16949 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16950 s|@configure_input@|$ac_sed_conf_input|;t t
16951 s&@top_builddir@&$ac_top_builddir_sub&;t t
16952 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16953 s&@srcdir@&$ac_srcdir&;t t
16954 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16955 s&@top_srcdir@&$ac_top_srcdir&;t t
16956 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16957 s&@builddir@&$ac_builddir&;t t
16958 s&@abs_builddir@&$ac_abs_builddir&;t t
16959 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16960 s&@INSTALL@&$ac_INSTALL&;t t
16961 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16962 $ac_datarootdir_hack
16963 "
16964 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16965 if $ac_cs_awk_getline; then
16966   $AWK -f "$ac_tmp/subs.awk"
16967 else
16968   $AWK -f "$ac_tmp/subs.awk" | $SHELL
16969 fi \
16970   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16971
16972 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16973   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16974   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16975       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16976   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16977 which seems to be undefined.  Please make sure it is defined" >&5
16978 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16979 which seems to be undefined.  Please make sure it is defined" >&2;}
16980
16981   rm -f "$ac_tmp/stdin"
16982   case $ac_file in
16983   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16984   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16985   esac \
16986   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16987  ;;
16988   :H)
16989   #
16990   # CONFIG_HEADER
16991   #
16992   if test x"$ac_file" != x-; then
16993     {
16994       $as_echo "/* $configure_input  */" \
16995       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16996     } >"$ac_tmp/config.h" \
16997       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16998     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16999       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17000 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17001     else
17002       rm -f "$ac_file"
17003       mv "$ac_tmp/config.h" "$ac_file" \
17004         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17005     fi
17006   else
17007     $as_echo "/* $configure_input  */" \
17008       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17009       || as_fn_error $? "could not create -" "$LINENO" 5
17010   fi
17011 # Compute "$ac_file"'s index in $config_headers.
17012 _am_arg="$ac_file"
17013 _am_stamp_count=1
17014 for _am_header in $config_headers :; do
17015   case $_am_header in
17016     $_am_arg | $_am_arg:* )
17017       break ;;
17018     * )
17019       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17020   esac
17021 done
17022 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17023 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17024          X"$_am_arg" : 'X\(//\)[^/]' \| \
17025          X"$_am_arg" : 'X\(//\)$' \| \
17026          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17027 $as_echo X"$_am_arg" |
17028     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17029             s//\1/
17030             q
17031           }
17032           /^X\(\/\/\)[^/].*/{
17033             s//\1/
17034             q
17035           }
17036           /^X\(\/\/\)$/{
17037             s//\1/
17038             q
17039           }
17040           /^X\(\/\).*/{
17041             s//\1/
17042             q
17043           }
17044           s/.*/./; q'`/stamp-h$_am_stamp_count
17045  ;;
17046
17047   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17048 $as_echo "$as_me: executing $ac_file commands" >&6;}
17049  ;;
17050   esac
17051
17052
17053   case $ac_file$ac_mode in
17054     "default-1":C)
17055 # Only add multilib support code if we just rebuilt the top-level
17056 # Makefile.
17057 case " $CONFIG_FILES " in
17058  *" Makefile "*)
17059    ac_file=Makefile . ${multi_basedir}/config-ml.in
17060    ;;
17061 esac ;;
17062     "libtool":C)
17063
17064     # See if we are running on zsh, and set the options which allow our
17065     # commands through without removal of \ escapes.
17066     if test -n "${ZSH_VERSION+set}" ; then
17067       setopt NO_GLOB_SUBST
17068     fi
17069
17070     cfgfile="${ofile}T"
17071     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17072     $RM "$cfgfile"
17073
17074     cat <<_LT_EOF >> "$cfgfile"
17075 #! $SHELL
17076
17077 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17078 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17080 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17081 #
17082 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17083 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17084 #   Written by Gordon Matzigkeit, 1996
17085 #
17086 #   This file is part of GNU Libtool.
17087 #
17088 # GNU Libtool is free software; you can redistribute it and/or
17089 # modify it under the terms of the GNU General Public License as
17090 # published by the Free Software Foundation; either version 2 of
17091 # the License, or (at your option) any later version.
17092 #
17093 # As a special exception to the GNU General Public License,
17094 # if you distribute this file as part of a program or library that
17095 # is built using GNU Libtool, you may include this file under the
17096 # same distribution terms that you use for the rest of that program.
17097 #
17098 # GNU Libtool is distributed in the hope that it will be useful,
17099 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17100 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17101 # GNU General Public License for more details.
17102 #
17103 # You should have received a copy of the GNU General Public License
17104 # along with GNU Libtool; see the file COPYING.  If not, a copy
17105 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17106 # obtained by writing to the Free Software Foundation, Inc.,
17107 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17108
17109
17110 # The names of the tagged configurations supported by this script.
17111 available_tags="D "
17112
17113 # ### BEGIN LIBTOOL CONFIG
17114
17115 # Which release of libtool.m4 was used?
17116 macro_version=$macro_version
17117 macro_revision=$macro_revision
17118
17119 # Whether or not to build shared libraries.
17120 build_libtool_libs=$enable_shared
17121
17122 # Whether or not to build static libraries.
17123 build_old_libs=$enable_static
17124
17125 # What type of objects to build.
17126 pic_mode=$pic_mode
17127
17128 # Whether or not to optimize for fast installation.
17129 fast_install=$enable_fast_install
17130
17131 # Shell to use when invoking shell scripts.
17132 SHELL=$lt_SHELL
17133
17134 # An echo program that protects backslashes.
17135 ECHO=$lt_ECHO
17136
17137 # The host system.
17138 host_alias=$host_alias
17139 host=$host
17140 host_os=$host_os
17141
17142 # The build system.
17143 build_alias=$build_alias
17144 build=$build
17145 build_os=$build_os
17146
17147 # A sed program that does not truncate output.
17148 SED=$lt_SED
17149
17150 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17151 Xsed="\$SED -e 1s/^X//"
17152
17153 # A grep program that handles long lines.
17154 GREP=$lt_GREP
17155
17156 # An ERE matcher.
17157 EGREP=$lt_EGREP
17158
17159 # A literal string matcher.
17160 FGREP=$lt_FGREP
17161
17162 # A BSD- or MS-compatible name lister.
17163 NM=$lt_NM
17164
17165 # Whether we need soft or hard links.
17166 LN_S=$lt_LN_S
17167
17168 # What is the maximum length of a command?
17169 max_cmd_len=$max_cmd_len
17170
17171 # Object file suffix (normally "o").
17172 objext=$ac_objext
17173
17174 # Executable file suffix (normally "").
17175 exeext=$exeext
17176
17177 # whether the shell understands "unset".
17178 lt_unset=$lt_unset
17179
17180 # turn spaces into newlines.
17181 SP2NL=$lt_lt_SP2NL
17182
17183 # turn newlines into spaces.
17184 NL2SP=$lt_lt_NL2SP
17185
17186 # An object symbol dumper.
17187 OBJDUMP=$lt_OBJDUMP
17188
17189 # Method to check whether dependent libraries are shared objects.
17190 deplibs_check_method=$lt_deplibs_check_method
17191
17192 # Command to use when deplibs_check_method == "file_magic".
17193 file_magic_cmd=$lt_file_magic_cmd
17194
17195 # The archiver.
17196 AR=$lt_AR
17197 AR_FLAGS=$lt_AR_FLAGS
17198
17199 # A symbol stripping program.
17200 STRIP=$lt_STRIP
17201
17202 # Commands used to install an old-style archive.
17203 RANLIB=$lt_RANLIB
17204 old_postinstall_cmds=$lt_old_postinstall_cmds
17205 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17206
17207 # Whether to use a lock for old archive extraction.
17208 lock_old_archive_extraction=$lock_old_archive_extraction
17209
17210 # A C compiler.
17211 LTCC=$lt_CC
17212
17213 # LTCC compiler flags.
17214 LTCFLAGS=$lt_CFLAGS
17215
17216 # Take the output of nm and produce a listing of raw symbols and C names.
17217 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17218
17219 # Transform the output of nm in a proper C declaration.
17220 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17221
17222 # Transform the output of nm in a C name address pair.
17223 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17224
17225 # Transform the output of nm in a C name address pair when lib prefix is needed.
17226 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17227
17228 # The name of the directory that contains temporary libtool files.
17229 objdir=$objdir
17230
17231 # Used to examine libraries when file_magic_cmd begins with "file".
17232 MAGIC_CMD=$MAGIC_CMD
17233
17234 # Must we lock files when doing compilation?
17235 need_locks=$lt_need_locks
17236
17237 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17238 DSYMUTIL=$lt_DSYMUTIL
17239
17240 # Tool to change global to local symbols on Mac OS X.
17241 NMEDIT=$lt_NMEDIT
17242
17243 # Tool to manipulate fat objects and archives on Mac OS X.
17244 LIPO=$lt_LIPO
17245
17246 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17247 OTOOL=$lt_OTOOL
17248
17249 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17250 OTOOL64=$lt_OTOOL64
17251
17252 # Old archive suffix (normally "a").
17253 libext=$libext
17254
17255 # Shared library suffix (normally ".so").
17256 shrext_cmds=$lt_shrext_cmds
17257
17258 # The commands to extract the exported symbol list from a shared archive.
17259 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17260
17261 # Variables whose values should be saved in libtool wrapper scripts and
17262 # restored at link time.
17263 variables_saved_for_relink=$lt_variables_saved_for_relink
17264
17265 # Do we need the "lib" prefix for modules?
17266 need_lib_prefix=$need_lib_prefix
17267
17268 # Do we need a version for libraries?
17269 need_version=$need_version
17270
17271 # Library versioning type.
17272 version_type=$version_type
17273
17274 # Shared library runtime path variable.
17275 runpath_var=$runpath_var
17276
17277 # Shared library path variable.
17278 shlibpath_var=$shlibpath_var
17279
17280 # Is shlibpath searched before the hard-coded library search path?
17281 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17282
17283 # Format of library name prefix.
17284 libname_spec=$lt_libname_spec
17285
17286 # List of archive names.  First name is the real one, the rest are links.
17287 # The last name is the one that the linker finds with -lNAME
17288 library_names_spec=$lt_library_names_spec
17289
17290 # The coded name of the library, if different from the real name.
17291 soname_spec=$lt_soname_spec
17292
17293 # Permission mode override for installation of shared libraries.
17294 install_override_mode=$lt_install_override_mode
17295
17296 # Command to use after installation of a shared archive.
17297 postinstall_cmds=$lt_postinstall_cmds
17298
17299 # Command to use after uninstallation of a shared archive.
17300 postuninstall_cmds=$lt_postuninstall_cmds
17301
17302 # Commands used to finish a libtool library installation in a directory.
17303 finish_cmds=$lt_finish_cmds
17304
17305 # As "finish_cmds", except a single script fragment to be evaled but
17306 # not shown.
17307 finish_eval=$lt_finish_eval
17308
17309 # Whether we should hardcode library paths into libraries.
17310 hardcode_into_libs=$hardcode_into_libs
17311
17312 # Compile-time system search path for libraries.
17313 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17314
17315 # Run-time system search path for libraries.
17316 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17317
17318 # Whether dlopen is supported.
17319 dlopen_support=$enable_dlopen
17320
17321 # Whether dlopen of programs is supported.
17322 dlopen_self=$enable_dlopen_self
17323
17324 # Whether dlopen of statically linked programs is supported.
17325 dlopen_self_static=$enable_dlopen_self_static
17326
17327 # Commands to strip libraries.
17328 old_striplib=$lt_old_striplib
17329 striplib=$lt_striplib
17330
17331
17332 # The linker used to build libraries.
17333 LD=$lt_LD
17334
17335 # How to create reloadable object files.
17336 reload_flag=$lt_reload_flag
17337 reload_cmds=$lt_reload_cmds
17338
17339 # Commands used to build an old-style archive.
17340 old_archive_cmds=$lt_old_archive_cmds
17341
17342 # A language specific compiler.
17343 CC=$lt_compiler
17344
17345 # Is the compiler the GNU compiler?
17346 with_gcc=$GCC
17347
17348 # Compiler flag to turn off builtin functions.
17349 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17350
17351 # How to pass a linker flag through the compiler.
17352 wl=$lt_lt_prog_compiler_wl
17353
17354 # Additional compiler flags for building library objects.
17355 pic_flag=$lt_lt_prog_compiler_pic
17356
17357 # Compiler flag to prevent dynamic linking.
17358 link_static_flag=$lt_lt_prog_compiler_static
17359
17360 # Does compiler simultaneously support -c and -o options?
17361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17362
17363 # Whether or not to add -lc for building shared libraries.
17364 build_libtool_need_lc=$archive_cmds_need_lc
17365
17366 # Whether or not to disallow shared libs when runtime libs are static.
17367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17368
17369 # Compiler flag to allow reflexive dlopens.
17370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17371
17372 # Compiler flag to generate shared objects directly from archives.
17373 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17374
17375 # Whether the compiler copes with passing no objects directly.
17376 compiler_needs_object=$lt_compiler_needs_object
17377
17378 # Create an old-style archive from a shared archive.
17379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17380
17381 # Create a temporary old-style archive to link instead of a shared archive.
17382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17383
17384 # Commands used to build a shared archive.
17385 archive_cmds=$lt_archive_cmds
17386 archive_expsym_cmds=$lt_archive_expsym_cmds
17387
17388 # Commands used to build a loadable module if different from building
17389 # a shared archive.
17390 module_cmds=$lt_module_cmds
17391 module_expsym_cmds=$lt_module_expsym_cmds
17392
17393 # Whether we are building with GNU ld or not.
17394 with_gnu_ld=$lt_with_gnu_ld
17395
17396 # Flag that allows shared libraries with undefined symbols to be built.
17397 allow_undefined_flag=$lt_allow_undefined_flag
17398
17399 # Flag that enforces no undefined symbols.
17400 no_undefined_flag=$lt_no_undefined_flag
17401
17402 # Flag to hardcode \$libdir into a binary during linking.
17403 # This must work even if \$libdir does not exist
17404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17405
17406 # If ld is used when linking, flag to hardcode \$libdir into a binary
17407 # during linking.  This must work even if \$libdir does not exist.
17408 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17409
17410 # Whether we need a single "-rpath" flag with a separated argument.
17411 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17412
17413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17414 # DIR into the resulting binary.
17415 hardcode_direct=$hardcode_direct
17416
17417 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17418 # DIR into the resulting binary and the resulting library dependency is
17419 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17420 # library is relocated.
17421 hardcode_direct_absolute=$hardcode_direct_absolute
17422
17423 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17424 # into the resulting binary.
17425 hardcode_minus_L=$hardcode_minus_L
17426
17427 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17428 # into the resulting binary.
17429 hardcode_shlibpath_var=$hardcode_shlibpath_var
17430
17431 # Set to "yes" if building a shared library automatically hardcodes DIR
17432 # into the library and all subsequent libraries and executables linked
17433 # against it.
17434 hardcode_automatic=$hardcode_automatic
17435
17436 # Set to yes if linker adds runtime paths of dependent libraries
17437 # to runtime path list.
17438 inherit_rpath=$inherit_rpath
17439
17440 # Whether libtool must link a program against all its dependency libraries.
17441 link_all_deplibs=$link_all_deplibs
17442
17443 # Fix the shell variable \$srcfile for the compiler.
17444 fix_srcfile_path=$lt_fix_srcfile_path
17445
17446 # Set to "yes" if exported symbols are required.
17447 always_export_symbols=$always_export_symbols
17448
17449 # The commands to list exported symbols.
17450 export_symbols_cmds=$lt_export_symbols_cmds
17451
17452 # Symbols that should not be listed in the preloaded symbols.
17453 exclude_expsyms=$lt_exclude_expsyms
17454
17455 # Symbols that must always be exported.
17456 include_expsyms=$lt_include_expsyms
17457
17458 # Commands necessary for linking programs (against libraries) with templates.
17459 prelink_cmds=$lt_prelink_cmds
17460
17461 # Specify filename containing input files.
17462 file_list_spec=$lt_file_list_spec
17463
17464 # How to hardcode a shared library path into an executable.
17465 hardcode_action=$hardcode_action
17466
17467 # ### END LIBTOOL CONFIG
17468
17469 _LT_EOF
17470
17471   case $host_os in
17472   aix3*)
17473     cat <<\_LT_EOF >> "$cfgfile"
17474 # AIX sometimes has problems with the GCC collect2 program.  For some
17475 # reason, if we set the COLLECT_NAMES environment variable, the problems
17476 # vanish in a puff of smoke.
17477 if test "X${COLLECT_NAMES+set}" != Xset; then
17478   COLLECT_NAMES=
17479   export COLLECT_NAMES
17480 fi
17481 _LT_EOF
17482     ;;
17483   esac
17484
17485
17486 ltmain="$ac_aux_dir/ltmain.sh"
17487
17488
17489   # We use sed instead of cat because bash on DJGPP gets confused if
17490   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17491   # text mode, it properly converts lines to CR/LF.  This bash problem
17492   # is reportedly fixed, but why not run on old versions too?
17493   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17494     || (rm -f "$cfgfile"; exit 1)
17495
17496   case $xsi_shell in
17497   yes)
17498     cat << \_LT_EOF >> "$cfgfile"
17499
17500 # func_dirname file append nondir_replacement
17501 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17502 # otherwise set result to NONDIR_REPLACEMENT.
17503 func_dirname ()
17504 {
17505   case ${1} in
17506     */*) func_dirname_result="${1%/*}${2}" ;;
17507     *  ) func_dirname_result="${3}" ;;
17508   esac
17509 }
17510
17511 # func_basename file
17512 func_basename ()
17513 {
17514   func_basename_result="${1##*/}"
17515 }
17516
17517 # func_dirname_and_basename file append nondir_replacement
17518 # perform func_basename and func_dirname in a single function
17519 # call:
17520 #   dirname:  Compute the dirname of FILE.  If nonempty,
17521 #             add APPEND to the result, otherwise set result
17522 #             to NONDIR_REPLACEMENT.
17523 #             value returned in "$func_dirname_result"
17524 #   basename: Compute filename of FILE.
17525 #             value retuned in "$func_basename_result"
17526 # Implementation must be kept synchronized with func_dirname
17527 # and func_basename. For efficiency, we do not delegate to
17528 # those functions but instead duplicate the functionality here.
17529 func_dirname_and_basename ()
17530 {
17531   case ${1} in
17532     */*) func_dirname_result="${1%/*}${2}" ;;
17533     *  ) func_dirname_result="${3}" ;;
17534   esac
17535   func_basename_result="${1##*/}"
17536 }
17537
17538 # func_stripname prefix suffix name
17539 # strip PREFIX and SUFFIX off of NAME.
17540 # PREFIX and SUFFIX must not contain globbing or regex special
17541 # characters, hashes, percent signs, but SUFFIX may contain a leading
17542 # dot (in which case that matches only a dot).
17543 func_stripname ()
17544 {
17545   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17546   # positional parameters, so assign one to ordinary parameter first.
17547   func_stripname_result=${3}
17548   func_stripname_result=${func_stripname_result#"${1}"}
17549   func_stripname_result=${func_stripname_result%"${2}"}
17550 }
17551
17552 # func_opt_split
17553 func_opt_split ()
17554 {
17555   func_opt_split_opt=${1%%=*}
17556   func_opt_split_arg=${1#*=}
17557 }
17558
17559 # func_lo2o object
17560 func_lo2o ()
17561 {
17562   case ${1} in
17563     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17564     *)    func_lo2o_result=${1} ;;
17565   esac
17566 }
17567
17568 # func_xform libobj-or-source
17569 func_xform ()
17570 {
17571   func_xform_result=${1%.*}.lo
17572 }
17573
17574 # func_arith arithmetic-term...
17575 func_arith ()
17576 {
17577   func_arith_result=$(( $* ))
17578 }
17579
17580 # func_len string
17581 # STRING may not start with a hyphen.
17582 func_len ()
17583 {
17584   func_len_result=${#1}
17585 }
17586
17587 _LT_EOF
17588     ;;
17589   *) # Bourne compatible functions.
17590     cat << \_LT_EOF >> "$cfgfile"
17591
17592 # func_dirname file append nondir_replacement
17593 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17594 # otherwise set result to NONDIR_REPLACEMENT.
17595 func_dirname ()
17596 {
17597   # Extract subdirectory from the argument.
17598   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17599   if test "X$func_dirname_result" = "X${1}"; then
17600     func_dirname_result="${3}"
17601   else
17602     func_dirname_result="$func_dirname_result${2}"
17603   fi
17604 }
17605
17606 # func_basename file
17607 func_basename ()
17608 {
17609   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17610 }
17611
17612
17613 # func_stripname prefix suffix name
17614 # strip PREFIX and SUFFIX off of NAME.
17615 # PREFIX and SUFFIX must not contain globbing or regex special
17616 # characters, hashes, percent signs, but SUFFIX may contain a leading
17617 # dot (in which case that matches only a dot).
17618 # func_strip_suffix prefix name
17619 func_stripname ()
17620 {
17621   case ${2} in
17622     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17623     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17624   esac
17625 }
17626
17627 # sed scripts:
17628 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17629 my_sed_long_arg='1s/^-[^=]*=//'
17630
17631 # func_opt_split
17632 func_opt_split ()
17633 {
17634   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17635   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17636 }
17637
17638 # func_lo2o object
17639 func_lo2o ()
17640 {
17641   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17642 }
17643
17644 # func_xform libobj-or-source
17645 func_xform ()
17646 {
17647   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17648 }
17649
17650 # func_arith arithmetic-term...
17651 func_arith ()
17652 {
17653   func_arith_result=`expr "$@"`
17654 }
17655
17656 # func_len string
17657 # STRING may not start with a hyphen.
17658 func_len ()
17659 {
17660   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17661 }
17662
17663 _LT_EOF
17664 esac
17665
17666 case $lt_shell_append in
17667   yes)
17668     cat << \_LT_EOF >> "$cfgfile"
17669
17670 # func_append var value
17671 # Append VALUE to the end of shell variable VAR.
17672 func_append ()
17673 {
17674   eval "$1+=\$2"
17675 }
17676 _LT_EOF
17677     ;;
17678   *)
17679     cat << \_LT_EOF >> "$cfgfile"
17680
17681 # func_append var value
17682 # Append VALUE to the end of shell variable VAR.
17683 func_append ()
17684 {
17685   eval "$1=\$$1\$2"
17686 }
17687
17688 _LT_EOF
17689     ;;
17690   esac
17691
17692
17693   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17694     || (rm -f "$cfgfile"; exit 1)
17695
17696   mv -f "$cfgfile" "$ofile" ||
17697     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17698   chmod +x "$ofile"
17699
17700
17701     cat <<_LT_EOF >> "$ofile"
17702
17703 # ### BEGIN LIBTOOL TAG CONFIG: D
17704
17705 # The linker used to build libraries.
17706 LD=$lt_LD_D
17707
17708 # How to create reloadable object files.
17709 reload_flag=$lt_reload_flag_D
17710 reload_cmds=$lt_reload_cmds_D
17711
17712 # Commands used to build an old-style archive.
17713 old_archive_cmds=$lt_old_archive_cmds_D
17714
17715 # A language specific compiler.
17716 CC=$lt_compiler_D
17717
17718 # Is the compiler the GNU compiler?
17719 with_gcc=$GCC_D
17720
17721 # Compiler flag to turn off builtin functions.
17722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17723
17724 # How to pass a linker flag through the compiler.
17725 wl=$lt_lt_prog_compiler_wl_D
17726
17727 # Additional compiler flags for building library objects.
17728 pic_flag=$lt_lt_prog_compiler_pic_D
17729
17730 # Compiler flag to prevent dynamic linking.
17731 link_static_flag=$lt_lt_prog_compiler_static_D
17732
17733 # Does compiler simultaneously support -c and -o options?
17734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17735
17736 # Whether or not to add -lc for building shared libraries.
17737 build_libtool_need_lc=$archive_cmds_need_lc_D
17738
17739 # Whether or not to disallow shared libs when runtime libs are static.
17740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17741
17742 # Compiler flag to allow reflexive dlopens.
17743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17744
17745 # Compiler flag to generate shared objects directly from archives.
17746 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17747
17748 # Whether the compiler copes with passing no objects directly.
17749 compiler_needs_object=$lt_compiler_needs_object_D
17750
17751 # Create an old-style archive from a shared archive.
17752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17753
17754 # Create a temporary old-style archive to link instead of a shared archive.
17755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17756
17757 # Commands used to build a shared archive.
17758 archive_cmds=$lt_archive_cmds_D
17759 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17760
17761 # Commands used to build a loadable module if different from building
17762 # a shared archive.
17763 module_cmds=$lt_module_cmds_D
17764 module_expsym_cmds=$lt_module_expsym_cmds_D
17765
17766 # Whether we are building with GNU ld or not.
17767 with_gnu_ld=$lt_with_gnu_ld_D
17768
17769 # Flag that allows shared libraries with undefined symbols to be built.
17770 allow_undefined_flag=$lt_allow_undefined_flag_D
17771
17772 # Flag that enforces no undefined symbols.
17773 no_undefined_flag=$lt_no_undefined_flag_D
17774
17775 # Flag to hardcode \$libdir into a binary during linking.
17776 # This must work even if \$libdir does not exist
17777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17778
17779 # If ld is used when linking, flag to hardcode \$libdir into a binary
17780 # during linking.  This must work even if \$libdir does not exist.
17781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17782
17783 # Whether we need a single "-rpath" flag with a separated argument.
17784 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17785
17786 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17787 # DIR into the resulting binary.
17788 hardcode_direct=$hardcode_direct_D
17789
17790 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17791 # DIR into the resulting binary and the resulting library dependency is
17792 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17793 # library is relocated.
17794 hardcode_direct_absolute=$hardcode_direct_absolute_D
17795
17796 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17797 # into the resulting binary.
17798 hardcode_minus_L=$hardcode_minus_L_D
17799
17800 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17801 # into the resulting binary.
17802 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17803
17804 # Set to "yes" if building a shared library automatically hardcodes DIR
17805 # into the library and all subsequent libraries and executables linked
17806 # against it.
17807 hardcode_automatic=$hardcode_automatic_D
17808
17809 # Set to yes if linker adds runtime paths of dependent libraries
17810 # to runtime path list.
17811 inherit_rpath=$inherit_rpath_D
17812
17813 # Whether libtool must link a program against all its dependency libraries.
17814 link_all_deplibs=$link_all_deplibs_D
17815
17816 # Fix the shell variable \$srcfile for the compiler.
17817 fix_srcfile_path=$lt_fix_srcfile_path_D
17818
17819 # Set to "yes" if exported symbols are required.
17820 always_export_symbols=$always_export_symbols_D
17821
17822 # The commands to list exported symbols.
17823 export_symbols_cmds=$lt_export_symbols_cmds_D
17824
17825 # Symbols that should not be listed in the preloaded symbols.
17826 exclude_expsyms=$lt_exclude_expsyms_D
17827
17828 # Symbols that must always be exported.
17829 include_expsyms=$lt_include_expsyms_D
17830
17831 # Commands necessary for linking programs (against libraries) with templates.
17832 prelink_cmds=$lt_prelink_cmds_D
17833
17834 # Specify filename containing input files.
17835 file_list_spec=$lt_file_list_spec_D
17836
17837 # How to hardcode a shared library path into an executable.
17838 hardcode_action=$hardcode_action_D
17839
17840 # ### END LIBTOOL TAG CONFIG: D
17841 _LT_EOF
17842
17843  ;;
17844     "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17845     "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17846 s!`test -f '$<' || echo '$(srcdir)/'`!!
17847 _EOF
17848    sed -f vpsed$$ $ac_file > tmp$$
17849    mv tmp$$ $ac_file
17850    rm vpsed$$
17851    echo 'MULTISUBDIR =' >> $ac_file
17852    ml_norecursion=yes
17853    . ${multi_basedir}/config-ml.in
17854    { ml_norecursion=; unset ml_norecursion;}
17855  ;;
17856     "src/Makefile":F) cat > vpsed$$ << \_EOF
17857 s!`test -f '$<' || echo '$(srcdir)/'`!!
17858 _EOF
17859    sed -f vpsed$$ $ac_file > tmp$$
17860    mv tmp$$ $ac_file
17861    rm vpsed$$
17862    echo 'MULTISUBDIR =' >> $ac_file
17863    ml_norecursion=yes
17864    . ${multi_basedir}/config-ml.in
17865    { ml_norecursion=; unset ml_norecursion;}
17866  ;;
17867     "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17868 s!`test -f '$<' || echo '$(srcdir)/'`!!
17869 _EOF
17870    sed -f vpsed$$ $ac_file > tmp$$
17871    mv tmp$$ $ac_file
17872    rm vpsed$$
17873    echo 'MULTISUBDIR =' >> $ac_file
17874    ml_norecursion=yes
17875    . ${multi_basedir}/config-ml.in
17876    { ml_norecursion=; unset ml_norecursion;}
17877  ;;
17878
17879   esac
17880 done # for ac_tag
17881
17882
17883 as_fn_exit 0
17884 _ACEOF
17885 ac_clean_files=$ac_clean_files_save
17886
17887 test $ac_write_fail = 0 ||
17888   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17889
17890
17891 # configure is writing to config.log, and then calls config.status.
17892 # config.status does its own redirection, appending to config.log.
17893 # Unfortunately, on DOS this fails, as config.log is still kept open
17894 # by configure, so config.status won't be able to write to it; its
17895 # output is simply discarded.  So we exec the FD to /dev/null,
17896 # effectively closing config.log, so it can be properly (re)opened and
17897 # appended to by config.status.  When coming back to configure, we
17898 # need to make the FD available again.
17899 if test "$no_create" != yes; then
17900   ac_cs_success=:
17901   ac_config_status_args=
17902   test "$silent" = yes &&
17903     ac_config_status_args="$ac_config_status_args --quiet"
17904   exec 5>/dev/null
17905   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17906   exec 5>>config.log
17907   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17908   # would make configure fail if this is the last instruction.
17909   $ac_cs_success || as_fn_exit 1
17910 fi
17911 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17912   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17913 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17914 fi
17915