libphobos: libdruntime doesn't support shadow stack (PR95680)
[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 WARN_DFLAGS
637 libtool_VERSION
638 SPEC_PHOBOS_DEPS
639 CHECKING_DFLAGS
640 ENABLE_LIBDRUNTIME_ONLY_FALSE
641 ENABLE_LIBDRUNTIME_ONLY_TRUE
642 ENABLE_LIBPHOBOS_FALSE
643 ENABLE_LIBPHOBOS_TRUE
644 gdc_include_dir
645 libphobos_toolexeclibdir
646 libphobos_toolexecdir
647 gcc_version
648 LIBZ
649 BACKTRACE_SUPPORTS_THREADS
650 BACKTRACE_USES_MALLOC
651 BACKTRACE_SUPPORTED
652 LIBBACKTRACE
653 LIBATOMIC
654 DCFG_HAVE_LIBATOMIC
655 DCFG_HAVE_64BIT_ATOMICS
656 DCFG_HAVE_ATOMIC_BUILTINS
657 DCFG_HAVE_QSORT_R
658 OS_LINK_SPEC
659 DCFG_DLPI_TLS_MODID
660 DRUNTIME_OS_MINFO_BRACKETING_FALSE
661 DRUNTIME_OS_MINFO_BRACKETING_TRUE
662 DCFG_MINFO_BRACKETING
663 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665 DCFG_ARM_EABI_UNWINDER
666 DCFG_THREAD_MODEL
667 DRUNTIME_OS_POSIX_FALSE
668 DRUNTIME_OS_POSIX_TRUE
669 DRUNTIME_OS_SOLARIS_FALSE
670 DRUNTIME_OS_SOLARIS_TRUE
671 DRUNTIME_OS_MINGW_FALSE
672 DRUNTIME_OS_MINGW_TRUE
673 DRUNTIME_OS_LINUX_FALSE
674 DRUNTIME_OS_LINUX_TRUE
675 DRUNTIME_OS_OPENBSD_FALSE
676 DRUNTIME_OS_OPENBSD_TRUE
677 DRUNTIME_OS_NETBSD_FALSE
678 DRUNTIME_OS_NETBSD_TRUE
679 DRUNTIME_OS_FREEBSD_FALSE
680 DRUNTIME_OS_FREEBSD_TRUE
681 DRUNTIME_OS_DRAGONFLYBSD_FALSE
682 DRUNTIME_OS_DRAGONFLYBSD_TRUE
683 DRUNTIME_OS_DARWIN_FALSE
684 DRUNTIME_OS_DARWIN_TRUE
685 DRUNTIME_OS_ANDROID_FALSE
686 DRUNTIME_OS_ANDROID_TRUE
687 DRUNTIME_OS_AIX_FALSE
688 DRUNTIME_OS_AIX_TRUE
689 DRUNTIME_CPU_S390_FALSE
690 DRUNTIME_CPU_S390_TRUE
691 DRUNTIME_CPU_SYSTEMZ_FALSE
692 DRUNTIME_CPU_SYSTEMZ_TRUE
693 DRUNTIME_CPU_X86_FALSE
694 DRUNTIME_CPU_X86_TRUE
695 DRUNTIME_CPU_POWERPC_FALSE
696 DRUNTIME_CPU_POWERPC_TRUE
697 DRUNTIME_CPU_MIPS_FALSE
698 DRUNTIME_CPU_MIPS_TRUE
699 DRUNTIME_CPU_ARM_FALSE
700 DRUNTIME_CPU_ARM_TRUE
701 DRUNTIME_CPU_AARCH64_FALSE
702 DRUNTIME_CPU_AARCH64_TRUE
703 libphobos_srcdir
704 libphobos_builddir
705 get_gcc_base_ver
706 phobos_compiler_shared_flag
707 phobos_compiler_pic_flag
708 OTOOL64
709 OTOOL
710 LIPO
711 NMEDIT
712 DSYMUTIL
713 OBJDUMP
714 LN_S
715 NM
716 ac_ct_DUMPBIN
717 DUMPBIN
718 LD
719 FGREP
720 SED
721 LIBTOOL
722 CFLAGS_FOR_BUILD
723 CC_FOR_BUILD
724 AR
725 CET_DFLAGS
726 CET_FLAGS
727 RANLIB
728 MAINT
729 MAINTAINER_MODE_FALSE
730 MAINTAINER_MODE_TRUE
731 GDCFLAGS
732 GDC
733 CCASFLAGS
734 CCAS
735 AM_BACKSLASH
736 AM_DEFAULT_VERBOSITY
737 AM_DEFAULT_V
738 AM_V
739 am__untar
740 am__tar
741 AMTAR
742 am__leading_dot
743 SET_MAKE
744 AWK
745 mkdir_p
746 MKDIR_P
747 INSTALL_STRIP_PROGRAM
748 STRIP
749 install_sh
750 MAKEINFO
751 AUTOHEADER
752 AUTOMAKE
753 AUTOCONF
754 ACLOCAL
755 VERSION
756 PACKAGE
757 CYGPATH_W
758 am__isrc
759 INSTALL_DATA
760 INSTALL_SCRIPT
761 INSTALL_PROGRAM
762 EGREP
763 GREP
764 CPP
765 OBJEXT
766 EXEEXT
767 ac_ct_CC
768 CPPFLAGS
769 LDFLAGS
770 CFLAGS
771 CC
772 target_os
773 target_vendor
774 target_cpu
775 target
776 host_os
777 host_vendor
778 host_cpu
779 host
780 build_os
781 build_vendor
782 build_cpu
783 build
784 multi_basedir
785 target_alias
786 host_alias
787 build_alias
788 LIBS
789 ECHO_T
790 ECHO_N
791 ECHO_C
792 DEFS
793 mandir
794 localedir
795 libdir
796 psdir
797 pdfdir
798 dvidir
799 htmldir
800 infodir
801 docdir
802 oldincludedir
803 includedir
804 localstatedir
805 sharedstatedir
806 sysconfdir
807 datadir
808 datarootdir
809 libexecdir
810 sbindir
811 bindir
812 program_transform_name
813 prefix
814 exec_prefix
815 PACKAGE_URL
816 PACKAGE_BUGREPORT
817 PACKAGE_STRING
818 PACKAGE_VERSION
819 PACKAGE_TARNAME
820 PACKAGE_NAME
821 PATH_SEPARATOR
822 SHELL'
823 ac_subst_files='DRTSTUFF_SPEC'
824 ac_user_opts='
825 enable_option_checking
826 enable_multilib
827 enable_silent_rules
828 enable_maintainer_mode
829 enable_cet
830 enable_shared
831 enable_static
832 with_pic
833 enable_fast_install
834 with_gnu_ld
835 enable_libtool_lock
836 with_gcc_major_version_only
837 enable_werror
838 with_libatomic
839 with_libbacktrace
840 with_target_system_zlib
841 with_cross_host
842 enable_version_specific_runtime_libs
843 with_toolexeclibdir
844 enable_libphobos
845 with_libphobos_druntime_only
846 enable_libphobos_checking
847 '
848       ac_precious_vars='build_alias
849 host_alias
850 target_alias
851 CC
852 CFLAGS
853 LDFLAGS
854 LIBS
855 CPPFLAGS
856 CPP'
857
858
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 ac_unrecognized_opts=
863 ac_unrecognized_sep=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
866 cache_file=/dev/null
867 exec_prefix=NONE
868 no_create=
869 no_recursion=
870 prefix=NONE
871 program_prefix=NONE
872 program_suffix=NONE
873 program_transform_name=s,x,x,
874 silent=
875 site=
876 srcdir=
877 verbose=
878 x_includes=NONE
879 x_libraries=NONE
880
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 includedir='${prefix}/include'
896 oldincludedir='/usr/include'
897 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898 infodir='${datarootdir}/info'
899 htmldir='${docdir}'
900 dvidir='${docdir}'
901 pdfdir='${docdir}'
902 psdir='${docdir}'
903 libdir='${exec_prefix}/lib'
904 localedir='${datarootdir}/locale'
905 mandir='${datarootdir}/man'
906
907 ac_prev=
908 ac_dashdash=
909 for ac_option
910 do
911   # If the previous option needs an argument, assign it.
912   if test -n "$ac_prev"; then
913     eval $ac_prev=\$ac_option
914     ac_prev=
915     continue
916   fi
917
918   case $ac_option in
919   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920   *=)   ac_optarg= ;;
921   *)    ac_optarg=yes ;;
922   esac
923
924   # Accept the important Cygnus configure options, so we can diagnose typos.
925
926   case $ac_dashdash$ac_option in
927   --)
928     ac_dashdash=yes ;;
929
930   -bindir | --bindir | --bindi | --bind | --bin | --bi)
931     ac_prev=bindir ;;
932   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933     bindir=$ac_optarg ;;
934
935   -build | --build | --buil | --bui | --bu)
936     ac_prev=build_alias ;;
937   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938     build_alias=$ac_optarg ;;
939
940   -cache-file | --cache-file | --cache-fil | --cache-fi \
941   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942     ac_prev=cache_file ;;
943   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945     cache_file=$ac_optarg ;;
946
947   --config-cache | -C)
948     cache_file=config.cache ;;
949
950   -datadir | --datadir | --datadi | --datad)
951     ac_prev=datadir ;;
952   -datadir=* | --datadir=* | --datadi=* | --datad=*)
953     datadir=$ac_optarg ;;
954
955   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956   | --dataroo | --dataro | --datar)
957     ac_prev=datarootdir ;;
958   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960     datarootdir=$ac_optarg ;;
961
962   -disable-* | --disable-*)
963     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964     # Reject names that are not valid shell variable names.
965     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966       as_fn_error $? "invalid feature name: $ac_useropt"
967     ac_useropt_orig=$ac_useropt
968     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969     case $ac_user_opts in
970       *"
971 "enable_$ac_useropt"
972 "*) ;;
973       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974          ac_unrecognized_sep=', ';;
975     esac
976     eval enable_$ac_useropt=no ;;
977
978   -docdir | --docdir | --docdi | --doc | --do)
979     ac_prev=docdir ;;
980   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981     docdir=$ac_optarg ;;
982
983   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984     ac_prev=dvidir ;;
985   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986     dvidir=$ac_optarg ;;
987
988   -enable-* | --enable-*)
989     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990     # Reject names that are not valid shell variable names.
991     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992       as_fn_error $? "invalid feature name: $ac_useropt"
993     ac_useropt_orig=$ac_useropt
994     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995     case $ac_user_opts in
996       *"
997 "enable_$ac_useropt"
998 "*) ;;
999       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000          ac_unrecognized_sep=', ';;
1001     esac
1002     eval enable_$ac_useropt=\$ac_optarg ;;
1003
1004   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006   | --exec | --exe | --ex)
1007     ac_prev=exec_prefix ;;
1008   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010   | --exec=* | --exe=* | --ex=*)
1011     exec_prefix=$ac_optarg ;;
1012
1013   -gas | --gas | --ga | --g)
1014     # Obsolete; use --with-gas.
1015     with_gas=yes ;;
1016
1017   -help | --help | --hel | --he | -h)
1018     ac_init_help=long ;;
1019   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020     ac_init_help=recursive ;;
1021   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022     ac_init_help=short ;;
1023
1024   -host | --host | --hos | --ho)
1025     ac_prev=host_alias ;;
1026   -host=* | --host=* | --hos=* | --ho=*)
1027     host_alias=$ac_optarg ;;
1028
1029   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030     ac_prev=htmldir ;;
1031   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032   | --ht=*)
1033     htmldir=$ac_optarg ;;
1034
1035   -includedir | --includedir | --includedi | --included | --include \
1036   | --includ | --inclu | --incl | --inc)
1037     ac_prev=includedir ;;
1038   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039   | --includ=* | --inclu=* | --incl=* | --inc=*)
1040     includedir=$ac_optarg ;;
1041
1042   -infodir | --infodir | --infodi | --infod | --info | --inf)
1043     ac_prev=infodir ;;
1044   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045     infodir=$ac_optarg ;;
1046
1047   -libdir | --libdir | --libdi | --libd)
1048     ac_prev=libdir ;;
1049   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050     libdir=$ac_optarg ;;
1051
1052   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053   | --libexe | --libex | --libe)
1054     ac_prev=libexecdir ;;
1055   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056   | --libexe=* | --libex=* | --libe=*)
1057     libexecdir=$ac_optarg ;;
1058
1059   -localedir | --localedir | --localedi | --localed | --locale)
1060     ac_prev=localedir ;;
1061   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062     localedir=$ac_optarg ;;
1063
1064   -localstatedir | --localstatedir | --localstatedi | --localstated \
1065   | --localstate | --localstat | --localsta | --localst | --locals)
1066     ac_prev=localstatedir ;;
1067   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069     localstatedir=$ac_optarg ;;
1070
1071   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072     ac_prev=mandir ;;
1073   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074     mandir=$ac_optarg ;;
1075
1076   -nfp | --nfp | --nf)
1077     # Obsolete; use --without-fp.
1078     with_fp=no ;;
1079
1080   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081   | --no-cr | --no-c | -n)
1082     no_create=yes ;;
1083
1084   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086     no_recursion=yes ;;
1087
1088   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090   | --oldin | --oldi | --old | --ol | --o)
1091     ac_prev=oldincludedir ;;
1092   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095     oldincludedir=$ac_optarg ;;
1096
1097   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098     ac_prev=prefix ;;
1099   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100     prefix=$ac_optarg ;;
1101
1102   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103   | --program-pre | --program-pr | --program-p)
1104     ac_prev=program_prefix ;;
1105   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107     program_prefix=$ac_optarg ;;
1108
1109   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110   | --program-suf | --program-su | --program-s)
1111     ac_prev=program_suffix ;;
1112   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114     program_suffix=$ac_optarg ;;
1115
1116   -program-transform-name | --program-transform-name \
1117   | --program-transform-nam | --program-transform-na \
1118   | --program-transform-n | --program-transform- \
1119   | --program-transform | --program-transfor \
1120   | --program-transfo | --program-transf \
1121   | --program-trans | --program-tran \
1122   | --progr-tra | --program-tr | --program-t)
1123     ac_prev=program_transform_name ;;
1124   -program-transform-name=* | --program-transform-name=* \
1125   | --program-transform-nam=* | --program-transform-na=* \
1126   | --program-transform-n=* | --program-transform-=* \
1127   | --program-transform=* | --program-transfor=* \
1128   | --program-transfo=* | --program-transf=* \
1129   | --program-trans=* | --program-tran=* \
1130   | --progr-tra=* | --program-tr=* | --program-t=*)
1131     program_transform_name=$ac_optarg ;;
1132
1133   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134     ac_prev=pdfdir ;;
1135   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136     pdfdir=$ac_optarg ;;
1137
1138   -psdir | --psdir | --psdi | --psd | --ps)
1139     ac_prev=psdir ;;
1140   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141     psdir=$ac_optarg ;;
1142
1143   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144   | -silent | --silent | --silen | --sile | --sil)
1145     silent=yes ;;
1146
1147   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148     ac_prev=sbindir ;;
1149   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150   | --sbi=* | --sb=*)
1151     sbindir=$ac_optarg ;;
1152
1153   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155   | --sharedst | --shareds | --shared | --share | --shar \
1156   | --sha | --sh)
1157     ac_prev=sharedstatedir ;;
1158   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161   | --sha=* | --sh=*)
1162     sharedstatedir=$ac_optarg ;;
1163
1164   -site | --site | --sit)
1165     ac_prev=site ;;
1166   -site=* | --site=* | --sit=*)
1167     site=$ac_optarg ;;
1168
1169   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170     ac_prev=srcdir ;;
1171   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172     srcdir=$ac_optarg ;;
1173
1174   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175   | --syscon | --sysco | --sysc | --sys | --sy)
1176     ac_prev=sysconfdir ;;
1177   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179     sysconfdir=$ac_optarg ;;
1180
1181   -target | --target | --targe | --targ | --tar | --ta | --t)
1182     ac_prev=target_alias ;;
1183   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184     target_alias=$ac_optarg ;;
1185
1186   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187     verbose=yes ;;
1188
1189   -version | --version | --versio | --versi | --vers | -V)
1190     ac_init_version=: ;;
1191
1192   -with-* | --with-*)
1193     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194     # Reject names that are not valid shell variable names.
1195     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196       as_fn_error $? "invalid package name: $ac_useropt"
1197     ac_useropt_orig=$ac_useropt
1198     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199     case $ac_user_opts in
1200       *"
1201 "with_$ac_useropt"
1202 "*) ;;
1203       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204          ac_unrecognized_sep=', ';;
1205     esac
1206     eval with_$ac_useropt=\$ac_optarg ;;
1207
1208   -without-* | --without-*)
1209     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212       as_fn_error $? "invalid package name: $ac_useropt"
1213     ac_useropt_orig=$ac_useropt
1214     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215     case $ac_user_opts in
1216       *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220          ac_unrecognized_sep=', ';;
1221     esac
1222     eval with_$ac_useropt=no ;;
1223
1224   --x)
1225     # Obsolete; use --with-x.
1226     with_x=yes ;;
1227
1228   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229   | --x-incl | --x-inc | --x-in | --x-i)
1230     ac_prev=x_includes ;;
1231   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233     x_includes=$ac_optarg ;;
1234
1235   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237     ac_prev=x_libraries ;;
1238   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240     x_libraries=$ac_optarg ;;
1241
1242   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1244     ;;
1245
1246   *=*)
1247     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248     # Reject names that are not valid shell variable names.
1249     case $ac_envvar in #(
1250       '' | [0-9]* | *[!_$as_cr_alnum]* )
1251       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252     esac
1253     eval $ac_envvar=\$ac_optarg
1254     export $ac_envvar ;;
1255
1256   *)
1257     # FIXME: should be removed in autoconf 3.0.
1258     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262     ;;
1263
1264   esac
1265 done
1266
1267 if test -n "$ac_prev"; then
1268   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269   as_fn_error $? "missing argument to $ac_option"
1270 fi
1271
1272 if test -n "$ac_unrecognized_opts"; then
1273   case $enable_option_checking in
1274     no) ;;
1275     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277   esac
1278 fi
1279
1280 # Check all directory arguments for consistency.
1281 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282                 datadir sysconfdir sharedstatedir localstatedir includedir \
1283                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284                 libdir localedir mandir
1285 do
1286   eval ac_val=\$$ac_var
1287   # Remove trailing slashes.
1288   case $ac_val in
1289     */ )
1290       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291       eval $ac_var=\$ac_val;;
1292   esac
1293   # Be sure to have absolute directory names.
1294   case $ac_val in
1295     [\\/$]* | ?:[\\/]* )  continue;;
1296     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297   esac
1298   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310   if test "x$build_alias" = x; then
1311     cross_compiling=maybe
1312   elif test "x$build_alias" != "x$host_alias"; then
1313     cross_compiling=yes
1314   fi
1315 fi
1316
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320 test "$silent" = yes && exec 6>/dev/null
1321
1322
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326   as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328   as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333   ac_srcdir_defaulted=yes
1334   # Try the directory containing this script, then the parent directory.
1335   ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337          X"$as_myself" : 'X\(//\)[^/]' \| \
1338          X"$as_myself" : 'X\(//\)$' \| \
1339          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\/\)[^/].*/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\/\)$/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\).*/{
1354             s//\1/
1355             q
1356           }
1357           s/.*/./; q'`
1358   srcdir=$ac_confdir
1359   if test ! -r "$srcdir/$ac_unique_file"; then
1360     srcdir=..
1361   fi
1362 else
1363   ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372         pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375   srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_env_${ac_var}_value=\$${ac_var}
1386   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394   # Omit some internal or obsolete options to make the list less imposing.
1395   # This message is too long to be a string in the A/UX 3.1 sh.
1396   cat <<_ACEOF
1397 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407   -h, --help              display this help and exit
1408       --help=short        display options specific to this package
1409       --help=recursive    display the short help of all the included packages
1410   -V, --version           display version information and exit
1411   -q, --quiet, --silent   do not print \`checking ...' messages
1412       --cache-file=FILE   cache test results in FILE [disabled]
1413   -C, --config-cache      alias for \`--cache-file=config.cache'
1414   -n, --no-create         do not create output files
1415       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418   --prefix=PREFIX         install architecture-independent files in PREFIX
1419                           [$ac_default_prefix]
1420   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                           [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431   --bindir=DIR            user executables [EPREFIX/bin]
1432   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1433   --libexecdir=DIR        program executables [EPREFIX/libexec]
1434   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1435   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1436   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1437   --libdir=DIR            object code libraries [EPREFIX/lib]
1438   --includedir=DIR        C header files [PREFIX/include]
1439   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1440   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1441   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1442   --infodir=DIR           info documentation [DATAROOTDIR/info]
1443   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1444   --mandir=DIR            man documentation [DATAROOTDIR/man]
1445   --docdir=DIR            documentation root [DATAROOTDIR/doc/libphobos]
1446   --htmldir=DIR           html documentation [DOCDIR]
1447   --dvidir=DIR            dvi documentation [DOCDIR]
1448   --pdfdir=DIR            pdf documentation [DOCDIR]
1449   --psdir=DIR             ps documentation [DOCDIR]
1450 _ACEOF
1451
1452   cat <<\_ACEOF
1453
1454 Program names:
1455   --program-prefix=PREFIX            prepend PREFIX to installed program names
1456   --program-suffix=SUFFIX            append SUFFIX to installed program names
1457   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1458
1459 System types:
1460   --build=BUILD     configure for building on BUILD [guessed]
1461   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1462   --target=TARGET   configure for building compilers for TARGET [HOST]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467   case $ac_init_help in
1468      short | recursive ) echo "Configuration of package-unused version-unused:";;
1469    esac
1470   cat <<\_ACEOF
1471
1472 Optional Features:
1473   --disable-option-checking  ignore unrecognized --enable/--with options
1474   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1475   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1476   --enable-multilib       build many library versions (default)
1477   --enable-silent-rules   less verbose build output (undo: "make V=1")
1478   --disable-silent-rules  verbose build output (undo: "make V=0")
1479   --enable-maintainer-mode
1480                           enable make rules and dependencies not useful (and
1481                           sometimes confusing) to the casual installer
1482   --enable-cet            enable Intel CET in target libraries [default=auto]
1483   --enable-shared[=PKGS]  build shared libraries [default=yes]
1484   --enable-static[=PKGS]  build static libraries [default=yes]
1485   --enable-fast-install[=PKGS]
1486                           optimize for fast installation [default=yes]
1487   --disable-libtool-lock  avoid locking (might break parallel builds)
1488   --enable-werror         turns on -Werror [default=no]
1489   --enable-version-specific-runtime-libs
1490                           Specify that runtime libraries should be installed
1491                           in a compiler-specific directory
1492   --enable-libphobos      Enable libphobos
1493   --enable-libphobos-checking[=LIST]
1494                           enable expensive run-time checks. With LIST, enable
1495                           only specific categories of checks. Categories are:
1496                           yes,no,all,none,release. Flags are: assert or other
1497                           strings
1498
1499 Optional Packages:
1500   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1501   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1502   --with-pic              try to use only PIC/non-PIC objects [default=use
1503                           both]
1504   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1505   --with-gcc-major-version-only
1506                           use only GCC major number in filesystem paths
1507   --without-libatomic     Do not use libatomic in core.atomic (default: auto)
1508   --without-libbacktrace  Do not use libbacktrace in core.runtime (default:
1509                           auto)
1510   --with-target-system-zlib={yes,no,auto}
1511                           use installed libz (default: no)
1512   --with-cross-host=HOST  configuring with a cross compiler
1513   --with-toolexeclibdir=DIR
1514                           install libraries built with a cross compiler within
1515                           DIR
1516   --with-libphobos-druntime-only={yes,no,auto}
1517                           build only the druntime library (default: auto)
1518
1519 Some influential environment variables:
1520   CC          C compiler command
1521   CFLAGS      C compiler flags
1522   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523               nonstandard directory <lib dir>
1524   LIBS        libraries to pass to the linker, e.g. -l<library>
1525   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526               you have headers in a nonstandard directory <include dir>
1527   CPP         C preprocessor
1528   CCAS        assembler compiler command (defaults to CC)
1529   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1530   GDC         D compiler command
1531   GDCFLAGS    D compiler flags
1532
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1535
1536 Report bugs to the package provider.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542   # If there are subdirs, report their specific --help.
1543   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544     test -d "$ac_dir" ||
1545       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546       continue
1547     ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553   # A ".." for each directory in $ac_dir_suffix.
1554   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555   case $ac_top_builddir_sub in
1556   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558   esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566   .)  # We are building in place.
1567     ac_srcdir=.
1568     ac_top_srcdir=$ac_top_builddir_sub
1569     ac_abs_top_srcdir=$ac_pwd ;;
1570   [\\/]* | ?:[\\/]* )  # Absolute name.
1571     ac_srcdir=$srcdir$ac_dir_suffix;
1572     ac_top_srcdir=$srcdir
1573     ac_abs_top_srcdir=$srcdir ;;
1574   *) # Relative name.
1575     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576     ac_top_srcdir=$ac_top_build_prefix$srcdir
1577     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581     cd "$ac_dir" || { ac_status=$?; continue; }
1582     # Check for guested configure.
1583     if test -f "$ac_srcdir/configure.gnu"; then
1584       echo &&
1585       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586     elif test -f "$ac_srcdir/configure"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure" --help=recursive
1589     else
1590       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591     fi || ac_status=$?
1592     cd "$ac_pwd" || { ac_status=$?; break; }
1593   done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598   cat <<\_ACEOF
1599 package-unused configure version-unused
1600 generated by GNU Autoconf 2.69
1601
1602 Copyright (C) 2012 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606   exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619   rm -f conftest.$ac_objext
1620   if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623   *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627   (eval "$ac_compile") 2>conftest.err
1628   ac_status=$?
1629   if test -s conftest.err; then
1630     grep -v '^ *+' conftest.err >conftest.er1
1631     cat conftest.er1 >&5
1632     mv -f conftest.er1 conftest.err
1633   fi
1634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635   test $ac_status = 0; } && {
1636          test -z "$ac_c_werror_flag" ||
1637          test ! -s conftest.err
1638        } && test -s conftest.$ac_objext; then :
1639   ac_retval=0
1640 else
1641   $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644         ac_retval=1
1645 fi
1646   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647   as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_compile
1650
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_cpp ()
1655 {
1656   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657   if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 case "(($ac_try" in
1659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660   *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665   ac_status=$?
1666   if test -s conftest.err; then
1667     grep -v '^ *+' conftest.err >conftest.er1
1668     cat conftest.er1 >&5
1669     mv -f conftest.er1 conftest.err
1670   fi
1671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672   test $ac_status = 0; } > conftest.i && {
1673          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674          test ! -s conftest.err
1675        }; then :
1676   ac_retval=0
1677 else
1678   $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681     ac_retval=1
1682 fi
1683   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684   as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_cpp
1687
1688 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1691 # the include files in INCLUDES and setting the cache variable VAR
1692 # accordingly.
1693 ac_fn_c_check_header_mongrel ()
1694 {
1695   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696   if eval \${$3+:} false; then :
1697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval \${$3+:} false; then :
1700   $as_echo_n "(cached) " >&6
1701 fi
1702 eval ac_res=\$$3
1703                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 else
1706   # Is the header compilable?
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1708 $as_echo_n "checking $2 usability... " >&6; }
1709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h.  */
1711 $4
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715   ac_header_compiler=yes
1716 else
1717   ac_header_compiler=no
1718 fi
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1721 $as_echo "$ac_header_compiler" >&6; }
1722
1723 # Is the header present?
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1725 $as_echo_n "checking $2 presence... " >&6; }
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h.  */
1728 #include <$2>
1729 _ACEOF
1730 if ac_fn_c_try_cpp "$LINENO"; then :
1731   ac_header_preproc=yes
1732 else
1733   ac_header_preproc=no
1734 fi
1735 rm -f conftest.err conftest.i conftest.$ac_ext
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1737 $as_echo "$ac_header_preproc" >&6; }
1738
1739 # So?  What about this header?
1740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1741   yes:no: )
1742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1743 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1744     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1745 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746     ;;
1747   no:yes:* )
1748     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1749 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1750     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1751 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1752     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1753 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1754     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1755 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1756     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1757 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1758     ;;
1759 esac
1760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \${$3+:} false; then :
1763   $as_echo_n "(cached) " >&6
1764 else
1765   eval "$3=\$ac_header_compiler"
1766 fi
1767 eval ac_res=\$$3
1768                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 fi
1771   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772
1773 } # ac_fn_c_check_header_mongrel
1774
1775 # ac_fn_c_try_run LINENO
1776 # ----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1778 # that executables *can* be run.
1779 ac_fn_c_try_run ()
1780 {
1781   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782   if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789   (eval "$ac_link") 2>&5
1790   ac_status=$?
1791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1793   { { case "(($ac_try" in
1794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795   *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799   (eval "$ac_try") 2>&5
1800   ac_status=$?
1801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802   test $ac_status = 0; }; }; then :
1803   ac_retval=0
1804 else
1805   $as_echo "$as_me: program exited with status $ac_status" >&5
1806        $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809        ac_retval=$ac_status
1810 fi
1811   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813   as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_run
1816
1817 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1818 # -------------------------------------------------------
1819 # Tests whether HEADER exists and can be compiled using the include files in
1820 # INCLUDES, setting the cache variable VAR accordingly.
1821 ac_fn_c_check_header_compile ()
1822 {
1823   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825 $as_echo_n "checking for $2... " >&6; }
1826 if eval \${$3+:} false; then :
1827   $as_echo_n "(cached) " >&6
1828 else
1829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h.  */
1831 $4
1832 #include <$2>
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"; then :
1835   eval "$3=yes"
1836 else
1837   eval "$3=no"
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 fi
1841 eval ac_res=\$$3
1842                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846 } # ac_fn_c_check_header_compile
1847
1848 # ac_fn_d_try_compile LINENO
1849 # --------------------------
1850 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_d_try_compile ()
1852 {
1853   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854   rm -f conftest.$ac_objext
1855   if { { ac_try="$ac_compile"
1856 case "(($ac_try" in
1857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858   *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862   (eval "$ac_compile") 2>conftest.err
1863   ac_status=$?
1864   if test -s conftest.err; then
1865     grep -v '^ *+' conftest.err >conftest.er1
1866     cat conftest.er1 >&5
1867     mv -f conftest.er1 conftest.err
1868   fi
1869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870   test $ac_status = 0; } && {
1871          test -z "$ac_d_werror_flag" ||
1872          test ! -s conftest.err
1873        } && test -s conftest.$ac_objext; then :
1874   ac_retval=0
1875 else
1876   $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879         ac_retval=1
1880 fi
1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882   as_fn_set_status $ac_retval
1883
1884 } # ac_fn_d_try_compile
1885
1886 # ac_fn_c_try_link LINENO
1887 # -----------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_c_try_link ()
1890 {
1891   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892   rm -f conftest.$ac_objext conftest$ac_exeext
1893   if { { ac_try="$ac_link"
1894 case "(($ac_try" in
1895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896   *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900   (eval "$ac_link") 2>conftest.err
1901   ac_status=$?
1902   if test -s conftest.err; then
1903     grep -v '^ *+' conftest.err >conftest.er1
1904     cat conftest.er1 >&5
1905     mv -f conftest.er1 conftest.err
1906   fi
1907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908   test $ac_status = 0; } && {
1909          test -z "$ac_c_werror_flag" ||
1910          test ! -s conftest.err
1911        } && test -s conftest$ac_exeext && {
1912          test "$cross_compiling" = yes ||
1913          test -x conftest$ac_exeext
1914        }; then :
1915   ac_retval=0
1916 else
1917   $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920         ac_retval=1
1921 fi
1922   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1923   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1924   # interfere with the next link command; also delete a directory that is
1925   # left behind by Apple's compiler.  We do this before executing the actions.
1926   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1927   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928   as_fn_set_status $ac_retval
1929
1930 } # ac_fn_c_try_link
1931
1932 # ac_fn_c_check_func LINENO FUNC VAR
1933 # ----------------------------------
1934 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1935 ac_fn_c_check_func ()
1936 {
1937   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941   $as_echo_n "(cached) " >&6
1942 else
1943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h.  */
1945 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1947 #define $2 innocuous_$2
1948
1949 /* System header to define __stub macros and hopefully few prototypes,
1950     which can conflict with char $2 (); below.
1951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1952     <limits.h> exists even on freestanding compilers.  */
1953
1954 #ifdef __STDC__
1955 # include <limits.h>
1956 #else
1957 # include <assert.h>
1958 #endif
1959
1960 #undef $2
1961
1962 /* Override any GCC internal prototype to avoid an error.
1963    Use char because int might match the return type of a GCC
1964    builtin and then its argument prototype would still apply.  */
1965 #ifdef __cplusplus
1966 extern "C"
1967 #endif
1968 char $2 ();
1969 /* The GNU C library defines this for functions which it implements
1970     to always fail with ENOSYS.  Some functions are actually named
1971     something starting with __ and the normal name is an alias.  */
1972 #if defined __stub_$2 || defined __stub___$2
1973 choke me
1974 #endif
1975
1976 int
1977 main ()
1978 {
1979 return $2 ();
1980   ;
1981   return 0;
1982 }
1983 _ACEOF
1984 if ac_fn_c_try_link "$LINENO"; then :
1985   eval "$3=yes"
1986 else
1987   eval "$3=no"
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext \
1990     conftest$ac_exeext conftest.$ac_ext
1991 fi
1992 eval ac_res=\$$3
1993                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994 $as_echo "$ac_res" >&6; }
1995   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996
1997 } # ac_fn_c_check_func
1998
1999 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2000 # ----------------------------------------------------
2001 # Tries to find if the field MEMBER exists in type AGGR, after including
2002 # INCLUDES, setting cache variable VAR accordingly.
2003 ac_fn_c_check_member ()
2004 {
2005   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2007 $as_echo_n "checking for $2.$3... " >&6; }
2008 if eval \${$4+:} false; then :
2009   $as_echo_n "(cached) " >&6
2010 else
2011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h.  */
2013 $5
2014 int
2015 main ()
2016 {
2017 static $2 ac_aggr;
2018 if (ac_aggr.$3)
2019 return 0;
2020   ;
2021   return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025   eval "$4=yes"
2026 else
2027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $5
2030 int
2031 main ()
2032 {
2033 static $2 ac_aggr;
2034 if (sizeof ac_aggr.$3)
2035 return 0;
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041   eval "$4=yes"
2042 else
2043   eval "$4=no"
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 fi
2049 eval ac_res=\$$4
2050                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054 } # ac_fn_c_check_member
2055
2056 # ac_fn_d_try_link LINENO
2057 # -----------------------
2058 # Try to link conftest.$ac_ext, and return whether this succeeded.
2059 ac_fn_d_try_link ()
2060 {
2061   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062   rm -f conftest.$ac_objext conftest$ac_exeext
2063   if { { ac_try="$ac_link"
2064 case "(($ac_try" in
2065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066   *) ac_try_echo=$ac_try;;
2067 esac
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 $as_echo "$ac_try_echo"; } >&5
2070   (eval "$ac_link") 2>conftest.err
2071   ac_status=$?
2072   if test -s conftest.err; then
2073     grep -v '^ *+' conftest.err >conftest.er1
2074     cat conftest.er1 >&5
2075     mv -f conftest.er1 conftest.err
2076   fi
2077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078   test $ac_status = 0; } && {
2079          test -z "$ac_d_werror_flag" ||
2080          test ! -s conftest.err
2081        } && test -s conftest$ac_exeext && {
2082          test "$cross_compiling" = yes ||
2083          test -x conftest$ac_exeext
2084        }; then :
2085   ac_retval=0
2086 else
2087   $as_echo "$as_me: failed program was:" >&5
2088 sed 's/^/| /' conftest.$ac_ext >&5
2089
2090         ac_retval=1
2091 fi
2092   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2093   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2094   # interfere with the next link command; also delete a directory that is
2095   # left behind by Apple's compiler.  We do this before executing the actions.
2096   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2097   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098   as_fn_set_status $ac_retval
2099
2100 } # ac_fn_d_try_link
2101 cat >config.log <<_ACEOF
2102 This file contains any messages produced by compilers while
2103 running configure, to aid debugging if configure makes a mistake.
2104
2105 It was created by package-unused $as_me version-unused, which was
2106 generated by GNU Autoconf 2.69.  Invocation command line was
2107
2108   $ $0 $@
2109
2110 _ACEOF
2111 exec 5>>config.log
2112 {
2113 cat <<_ASUNAME
2114 ## --------- ##
2115 ## Platform. ##
2116 ## --------- ##
2117
2118 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2119 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2120 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2121 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2122 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2123
2124 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2125 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2126
2127 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2128 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2129 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2130 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2131 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2132 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2133 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2134
2135 _ASUNAME
2136
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140   IFS=$as_save_IFS
2141   test -z "$as_dir" && as_dir=.
2142     $as_echo "PATH: $as_dir"
2143   done
2144 IFS=$as_save_IFS
2145
2146 } >&5
2147
2148 cat >&5 <<_ACEOF
2149
2150
2151 ## ----------- ##
2152 ## Core tests. ##
2153 ## ----------- ##
2154
2155 _ACEOF
2156
2157
2158 # Keep a trace of the command line.
2159 # Strip out --no-create and --no-recursion so they do not pile up.
2160 # Strip out --silent because we don't want to record it for future runs.
2161 # Also quote any args containing shell meta-characters.
2162 # Make two passes to allow for proper duplicate-argument suppression.
2163 ac_configure_args=
2164 ac_configure_args0=
2165 ac_configure_args1=
2166 ac_must_keep_next=false
2167 for ac_pass in 1 2
2168 do
2169   for ac_arg
2170   do
2171     case $ac_arg in
2172     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2173     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2174     | -silent | --silent | --silen | --sile | --sil)
2175       continue ;;
2176     *\'*)
2177       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2178     esac
2179     case $ac_pass in
2180     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2181     2)
2182       as_fn_append ac_configure_args1 " '$ac_arg'"
2183       if test $ac_must_keep_next = true; then
2184         ac_must_keep_next=false # Got value, back to normal.
2185       else
2186         case $ac_arg in
2187           *=* | --config-cache | -C | -disable-* | --disable-* \
2188           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2189           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2190           | -with-* | --with-* | -without-* | --without-* | --x)
2191             case "$ac_configure_args0 " in
2192               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2193             esac
2194             ;;
2195           -* ) ac_must_keep_next=true ;;
2196         esac
2197       fi
2198       as_fn_append ac_configure_args " '$ac_arg'"
2199       ;;
2200     esac
2201   done
2202 done
2203 { ac_configure_args0=; unset ac_configure_args0;}
2204 { ac_configure_args1=; unset ac_configure_args1;}
2205
2206 # When interrupted or exit'd, cleanup temporary files, and complete
2207 # config.log.  We remove comments because anyway the quotes in there
2208 # would cause problems or look ugly.
2209 # WARNING: Use '\'' to represent an apostrophe within the trap.
2210 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2211 trap 'exit_status=$?
2212   # Save into config.log some information that might help in debugging.
2213   {
2214     echo
2215
2216     $as_echo "## ---------------- ##
2217 ## Cache variables. ##
2218 ## ---------------- ##"
2219     echo
2220     # The following way of writing the cache mishandles newlines in values,
2221 (
2222   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2223     eval ac_val=\$$ac_var
2224     case $ac_val in #(
2225     *${as_nl}*)
2226       case $ac_var in #(
2227       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2229       esac
2230       case $ac_var in #(
2231       _ | IFS | as_nl) ;; #(
2232       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2233       *) { eval $ac_var=; unset $ac_var;} ;;
2234       esac ;;
2235     esac
2236   done
2237   (set) 2>&1 |
2238     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2239     *${as_nl}ac_space=\ *)
2240       sed -n \
2241         "s/'\''/'\''\\\\'\'''\''/g;
2242           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2243       ;; #(
2244     *)
2245       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2246       ;;
2247     esac |
2248     sort
2249 )
2250     echo
2251
2252     $as_echo "## ----------------- ##
2253 ## Output variables. ##
2254 ## ----------------- ##"
2255     echo
2256     for ac_var in $ac_subst_vars
2257     do
2258       eval ac_val=\$$ac_var
2259       case $ac_val in
2260       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261       esac
2262       $as_echo "$ac_var='\''$ac_val'\''"
2263     done | sort
2264     echo
2265
2266     if test -n "$ac_subst_files"; then
2267       $as_echo "## ------------------- ##
2268 ## File substitutions. ##
2269 ## ------------------- ##"
2270       echo
2271       for ac_var in $ac_subst_files
2272       do
2273         eval ac_val=\$$ac_var
2274         case $ac_val in
2275         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276         esac
2277         $as_echo "$ac_var='\''$ac_val'\''"
2278       done | sort
2279       echo
2280     fi
2281
2282     if test -s confdefs.h; then
2283       $as_echo "## ----------- ##
2284 ## confdefs.h. ##
2285 ## ----------- ##"
2286       echo
2287       cat confdefs.h
2288       echo
2289     fi
2290     test "$ac_signal" != 0 &&
2291       $as_echo "$as_me: caught signal $ac_signal"
2292     $as_echo "$as_me: exit $exit_status"
2293   } >&5
2294   rm -f core *.core core.conftest.* &&
2295     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2296     exit $exit_status
2297 ' 0
2298 for ac_signal in 1 2 13 15; do
2299   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300 done
2301 ac_signal=0
2302
2303 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2304 rm -f -r conftest* confdefs.h
2305
2306 $as_echo "/* confdefs.h */" > confdefs.h
2307
2308 # Predefined preprocessor variables.
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_NAME "$PACKAGE_NAME"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_STRING "$PACKAGE_STRING"
2324 _ACEOF
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2328 _ACEOF
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_URL "$PACKAGE_URL"
2332 _ACEOF
2333
2334
2335 # Let the site file select an alternate cache file if it wants to.
2336 # Prefer an explicitly selected file to automatically selected ones.
2337 ac_site_file1=NONE
2338 ac_site_file2=NONE
2339 if test -n "$CONFIG_SITE"; then
2340   # We do not want a PATH search for config.site.
2341   case $CONFIG_SITE in #((
2342     -*)  ac_site_file1=./$CONFIG_SITE;;
2343     */*) ac_site_file1=$CONFIG_SITE;;
2344     *)   ac_site_file1=./$CONFIG_SITE;;
2345   esac
2346 elif test "x$prefix" != xNONE; then
2347   ac_site_file1=$prefix/share/config.site
2348   ac_site_file2=$prefix/etc/config.site
2349 else
2350   ac_site_file1=$ac_default_prefix/share/config.site
2351   ac_site_file2=$ac_default_prefix/etc/config.site
2352 fi
2353 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2354 do
2355   test "x$ac_site_file" = xNONE && continue
2356   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2357     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2358 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2359     sed 's/^/| /' "$ac_site_file" >&5
2360     . "$ac_site_file" \
2361       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2363 as_fn_error $? "failed to load site script $ac_site_file
2364 See \`config.log' for more details" "$LINENO" 5; }
2365   fi
2366 done
2367
2368 if test -r "$cache_file"; then
2369   # Some versions of bash will fail to source /dev/null (special files
2370   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2371   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2372     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2373 $as_echo "$as_me: loading cache $cache_file" >&6;}
2374     case $cache_file in
2375       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2376       *)                      . "./$cache_file";;
2377     esac
2378   fi
2379 else
2380   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2381 $as_echo "$as_me: creating cache $cache_file" >&6;}
2382   >$cache_file
2383 fi
2384
2385 # Check that the precious variables saved in the cache have kept the same
2386 # value.
2387 ac_cache_corrupted=false
2388 for ac_var in $ac_precious_vars; do
2389   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2390   eval ac_new_set=\$ac_env_${ac_var}_set
2391   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2392   eval ac_new_val=\$ac_env_${ac_var}_value
2393   case $ac_old_set,$ac_new_set in
2394     set,)
2395       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2396 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2397       ac_cache_corrupted=: ;;
2398     ,set)
2399       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2401       ac_cache_corrupted=: ;;
2402     ,);;
2403     *)
2404       if test "x$ac_old_val" != "x$ac_new_val"; then
2405         # differences in whitespace do not lead to failure.
2406         ac_old_val_w=`echo x $ac_old_val`
2407         ac_new_val_w=`echo x $ac_new_val`
2408         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2409           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2410 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2411           ac_cache_corrupted=:
2412         else
2413           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2414 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2415           eval $ac_var=\$ac_old_val
2416         fi
2417         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2418 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2419         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2420 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2421       fi;;
2422   esac
2423   # Pass precious variables to config.status.
2424   if test "$ac_new_set" = set; then
2425     case $ac_new_val in
2426     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2427     *) ac_arg=$ac_var=$ac_new_val ;;
2428     esac
2429     case " $ac_configure_args " in
2430       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2431       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2432     esac
2433   fi
2434 done
2435 if $ac_cache_corrupted; then
2436   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2438   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2439 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2440   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2441 fi
2442 ## -------------------- ##
2443 ## Main body of script. ##
2444 ## -------------------- ##
2445
2446 ac_ext=c
2447 ac_cpp='$CPP $CPPFLAGS'
2448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451
2452
2453
2454
2455
2456
2457 ac_config_headers="$ac_config_headers config.h"
2458
2459
2460 # Default to --enable-multilib
2461 # Check whether --enable-multilib was given.
2462 if test "${enable_multilib+set}" = set; then :
2463   enableval=$enable_multilib; case "$enableval" in
2464   yes) multilib=yes ;;
2465   no)  multilib=no ;;
2466   *)   as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2467  esac
2468 else
2469   multilib=yes
2470 fi
2471
2472
2473 # We may get other options which we leave undocumented:
2474 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2475 # See config-ml.in if you want the gory details.
2476
2477 if test "$srcdir" = "."; then
2478   if test "$with_target_subdir" != "."; then
2479     multi_basedir="$srcdir/$with_multisrctop../.."
2480   else
2481     multi_basedir="$srcdir/$with_multisrctop.."
2482   fi
2483 else
2484   multi_basedir="$srcdir/.."
2485 fi
2486
2487
2488 # Even if the default multilib is not a cross compilation,
2489 # it may be that some of the other multilibs are.
2490 if test $cross_compiling = no && test $multilib = yes \
2491    && test "x${with_multisubdir}" != x ; then
2492    cross_compiling=maybe
2493 fi
2494
2495 ac_config_commands="$ac_config_commands default-1"
2496
2497 ac_aux_dir=
2498 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2499   if test -f "$ac_dir/install-sh"; then
2500     ac_aux_dir=$ac_dir
2501     ac_install_sh="$ac_aux_dir/install-sh -c"
2502     break
2503   elif test -f "$ac_dir/install.sh"; then
2504     ac_aux_dir=$ac_dir
2505     ac_install_sh="$ac_aux_dir/install.sh -c"
2506     break
2507   elif test -f "$ac_dir/shtool"; then
2508     ac_aux_dir=$ac_dir
2509     ac_install_sh="$ac_aux_dir/shtool install -c"
2510     break
2511   fi
2512 done
2513 if test -z "$ac_aux_dir"; then
2514   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2515 fi
2516
2517 # These three variables are undocumented and unsupported,
2518 # and are intended to be withdrawn in a future Autoconf release.
2519 # They can cause serious problems if a builder's source tree is in a directory
2520 # whose full name contains unusual characters.
2521 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2522 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2523 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2524
2525
2526 # Make sure we can run config.sub.
2527 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2528   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2529
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2531 $as_echo_n "checking build system type... " >&6; }
2532 if ${ac_cv_build+:} false; then :
2533   $as_echo_n "(cached) " >&6
2534 else
2535   ac_build_alias=$build_alias
2536 test "x$ac_build_alias" = x &&
2537   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2538 test "x$ac_build_alias" = x &&
2539   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2540 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2541   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2542
2543 fi
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2545 $as_echo "$ac_cv_build" >&6; }
2546 case $ac_cv_build in
2547 *-*-*) ;;
2548 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2549 esac
2550 build=$ac_cv_build
2551 ac_save_IFS=$IFS; IFS='-'
2552 set x $ac_cv_build
2553 shift
2554 build_cpu=$1
2555 build_vendor=$2
2556 shift; shift
2557 # Remember, the first character of IFS is used to create $*,
2558 # except with old shells:
2559 build_os=$*
2560 IFS=$ac_save_IFS
2561 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2562
2563
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2565 $as_echo_n "checking host system type... " >&6; }
2566 if ${ac_cv_host+:} false; then :
2567   $as_echo_n "(cached) " >&6
2568 else
2569   if test "x$host_alias" = x; then
2570   ac_cv_host=$ac_cv_build
2571 else
2572   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2573     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2574 fi
2575
2576 fi
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2578 $as_echo "$ac_cv_host" >&6; }
2579 case $ac_cv_host in
2580 *-*-*) ;;
2581 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2582 esac
2583 host=$ac_cv_host
2584 ac_save_IFS=$IFS; IFS='-'
2585 set x $ac_cv_host
2586 shift
2587 host_cpu=$1
2588 host_vendor=$2
2589 shift; shift
2590 # Remember, the first character of IFS is used to create $*,
2591 # except with old shells:
2592 host_os=$*
2593 IFS=$ac_save_IFS
2594 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2595
2596
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2598 $as_echo_n "checking target system type... " >&6; }
2599 if ${ac_cv_target+:} false; then :
2600   $as_echo_n "(cached) " >&6
2601 else
2602   if test "x$target_alias" = x; then
2603   ac_cv_target=$ac_cv_host
2604 else
2605   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2606     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2607 fi
2608
2609 fi
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2611 $as_echo "$ac_cv_target" >&6; }
2612 case $ac_cv_target in
2613 *-*-*) ;;
2614 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2615 esac
2616 target=$ac_cv_target
2617 ac_save_IFS=$IFS; IFS='-'
2618 set x $ac_cv_target
2619 shift
2620 target_cpu=$1
2621 target_vendor=$2
2622 shift; shift
2623 # Remember, the first character of IFS is used to create $*,
2624 # except with old shells:
2625 target_os=$*
2626 IFS=$ac_save_IFS
2627 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2628
2629
2630 # The aliases save the names the user supplied, while $host etc.
2631 # will get canonicalized.
2632 test -n "$target_alias" &&
2633   test "$program_prefix$program_suffix$program_transform_name" = \
2634     NONENONEs,x,x, &&
2635   program_prefix=${target_alias}-
2636
2637 # Expand $ac_aux_dir to an absolute path.
2638 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2639
2640 ac_ext=c
2641 ac_cpp='$CPP $CPPFLAGS'
2642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645 if test -n "$ac_tool_prefix"; then
2646   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if ${ac_cv_prog_CC+:} false; then :
2651   $as_echo_n "(cached) " >&6
2652 else
2653   if test -n "$CC"; then
2654   ac_cv_prog_CC="$CC" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661     for ac_exec_ext in '' $ac_executable_extensions; do
2662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665     break 2
2666   fi
2667 done
2668   done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 CC=$ac_cv_prog_CC
2674 if test -n "$CC"; then
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2676 $as_echo "$CC" >&6; }
2677 else
2678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2680 fi
2681
2682
2683 fi
2684 if test -z "$ac_cv_prog_CC"; then
2685   ac_ct_CC=$CC
2686   # Extract the first word of "gcc", so it can be a program name with args.
2687 set dummy gcc; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2691   $as_echo_n "(cached) " >&6
2692 else
2693   if test -n "$ac_ct_CC"; then
2694   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2698 do
2699   IFS=$as_save_IFS
2700   test -z "$as_dir" && as_dir=.
2701     for ac_exec_ext in '' $ac_executable_extensions; do
2702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703     ac_cv_prog_ac_ct_CC="gcc"
2704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705     break 2
2706   fi
2707 done
2708   done
2709 IFS=$as_save_IFS
2710
2711 fi
2712 fi
2713 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2714 if test -n "$ac_ct_CC"; then
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2716 $as_echo "$ac_ct_CC" >&6; }
2717 else
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2720 fi
2721
2722   if test "x$ac_ct_CC" = x; then
2723     CC=""
2724   else
2725     case $cross_compiling:$ac_tool_warned in
2726 yes:)
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729 ac_tool_warned=yes ;;
2730 esac
2731     CC=$ac_ct_CC
2732   fi
2733 else
2734   CC="$ac_cv_prog_CC"
2735 fi
2736
2737 if test -z "$CC"; then
2738           if test -n "$ac_tool_prefix"; then
2739     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}cc; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if ${ac_cv_prog_CC+:} false; then :
2744   $as_echo_n "(cached) " >&6
2745 else
2746   if test -n "$CC"; then
2747   ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752   IFS=$as_save_IFS
2753   test -z "$as_dir" && as_dir=.
2754     for ac_exec_ext in '' $ac_executable_extensions; do
2755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756     ac_cv_prog_CC="${ac_tool_prefix}cc"
2757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758     break 2
2759   fi
2760 done
2761   done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2769 $as_echo "$CC" >&6; }
2770 else
2771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2773 fi
2774
2775
2776   fi
2777 fi
2778 if test -z "$CC"; then
2779   # Extract the first word of "cc", so it can be a program name with args.
2780 set dummy cc; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if ${ac_cv_prog_CC+:} false; then :
2784   $as_echo_n "(cached) " >&6
2785 else
2786   if test -n "$CC"; then
2787   ac_cv_prog_CC="$CC" # Let the user override the test.
2788 else
2789   ac_prog_rejected=no
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793   IFS=$as_save_IFS
2794   test -z "$as_dir" && as_dir=.
2795     for ac_exec_ext in '' $ac_executable_extensions; do
2796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2798        ac_prog_rejected=yes
2799        continue
2800      fi
2801     ac_cv_prog_CC="cc"
2802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803     break 2
2804   fi
2805 done
2806   done
2807 IFS=$as_save_IFS
2808
2809 if test $ac_prog_rejected = yes; then
2810   # We found a bogon in the path, so make sure we never use it.
2811   set dummy $ac_cv_prog_CC
2812   shift
2813   if test $# != 0; then
2814     # We chose a different compiler from the bogus one.
2815     # However, it has the same basename, so the bogon will be chosen
2816     # first if we set CC to just the basename; use the full file name.
2817     shift
2818     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2819   fi
2820 fi
2821 fi
2822 fi
2823 CC=$ac_cv_prog_CC
2824 if test -n "$CC"; then
2825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2826 $as_echo "$CC" >&6; }
2827 else
2828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2830 fi
2831
2832
2833 fi
2834 if test -z "$CC"; then
2835   if test -n "$ac_tool_prefix"; then
2836   for ac_prog in cl.exe
2837   do
2838     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if ${ac_cv_prog_CC+:} false; then :
2843   $as_echo_n "(cached) " >&6
2844 else
2845   if test -n "$CC"; then
2846   ac_cv_prog_CC="$CC" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851   IFS=$as_save_IFS
2852   test -z "$as_dir" && as_dir=.
2853     for ac_exec_ext in '' $ac_executable_extensions; do
2854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857     break 2
2858   fi
2859 done
2860   done
2861 IFS=$as_save_IFS
2862
2863 fi
2864 fi
2865 CC=$ac_cv_prog_CC
2866 if test -n "$CC"; then
2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2869 else
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2872 fi
2873
2874
2875     test -n "$CC" && break
2876   done
2877 fi
2878 if test -z "$CC"; then
2879   ac_ct_CC=$CC
2880   for ac_prog in cl.exe
2881 do
2882   # Extract the first word of "$ac_prog", so it can be a program name with args.
2883 set dummy $ac_prog; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2887   $as_echo_n "(cached) " >&6
2888 else
2889   if test -n "$ac_ct_CC"; then
2890   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895   IFS=$as_save_IFS
2896   test -z "$as_dir" && as_dir=.
2897     for ac_exec_ext in '' $ac_executable_extensions; do
2898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899     ac_cv_prog_ac_ct_CC="$ac_prog"
2900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901     break 2
2902   fi
2903 done
2904   done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910 if test -n "$ac_ct_CC"; then
2911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2912 $as_echo "$ac_ct_CC" >&6; }
2913 else
2914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918
2919   test -n "$ac_ct_CC" && break
2920 done
2921
2922   if test "x$ac_ct_CC" = x; then
2923     CC=""
2924   else
2925     case $cross_compiling:$ac_tool_warned in
2926 yes:)
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929 ac_tool_warned=yes ;;
2930 esac
2931     CC=$ac_ct_CC
2932   fi
2933 fi
2934
2935 fi
2936
2937
2938 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940 as_fn_error $? "no acceptable C compiler found in \$PATH
2941 See \`config.log' for more details" "$LINENO" 5; }
2942
2943 # Provide some information about the compiler.
2944 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2945 set X $ac_compile
2946 ac_compiler=$2
2947 for ac_option in --version -v -V -qversion; do
2948   { { ac_try="$ac_compiler $ac_option >&5"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954 $as_echo "$ac_try_echo"; } >&5
2955   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2956   ac_status=$?
2957   if test -s conftest.err; then
2958     sed '10a\
2959 ... rest of stderr output deleted ...
2960          10q' conftest.err >conftest.er1
2961     cat conftest.er1 >&5
2962   fi
2963   rm -f conftest.er1 conftest.err
2964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2965   test $ac_status = 0; }
2966 done
2967
2968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969 /* end confdefs.h.  */
2970
2971 int
2972 main ()
2973 {
2974
2975   ;
2976   return 0;
2977 }
2978 _ACEOF
2979 ac_clean_files_save=$ac_clean_files
2980 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2981 # Try to create an executable without -o first, disregard a.out.
2982 # It will help us diagnose broken compilers, and finding out an intuition
2983 # of exeext.
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2985 $as_echo_n "checking whether the C compiler works... " >&6; }
2986 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2987
2988 # The possible output files:
2989 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2990
2991 ac_rmfiles=
2992 for ac_file in $ac_files
2993 do
2994   case $ac_file in
2995     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2996     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2997   esac
2998 done
2999 rm -f $ac_rmfiles
3000
3001 if { { ac_try="$ac_link_default"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008   (eval "$ac_link_default") 2>&5
3009   ac_status=$?
3010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011   test $ac_status = 0; }; then :
3012   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3013 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3014 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3015 # so that the user can short-circuit this test for compilers unknown to
3016 # Autoconf.
3017 for ac_file in $ac_files ''
3018 do
3019   test -f "$ac_file" || continue
3020   case $ac_file in
3021     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3022         ;;
3023     [ab].out )
3024         # We found the default executable, but exeext='' is most
3025         # certainly right.
3026         break;;
3027     *.* )
3028         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3029         then :; else
3030            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031         fi
3032         # We set ac_cv_exeext here because the later test for it is not
3033         # safe: cross compilers may not add the suffix if given an `-o'
3034         # argument, so we may need to know it at that point already.
3035         # Even if this section looks crufty: it has the advantage of
3036         # actually working.
3037         break;;
3038     * )
3039         break;;
3040   esac
3041 done
3042 test "$ac_cv_exeext" = no && ac_cv_exeext=
3043
3044 else
3045   ac_file=''
3046 fi
3047 if test -z "$ac_file"; then :
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3050 $as_echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055 as_fn_error 77 "C compiler cannot create executables
3056 See \`config.log' for more details" "$LINENO" 5; }
3057 else
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3059 $as_echo "yes" >&6; }
3060 fi
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3062 $as_echo_n "checking for C compiler default output file name... " >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3064 $as_echo "$ac_file" >&6; }
3065 ac_exeext=$ac_cv_exeext
3066
3067 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3068 ac_clean_files=$ac_clean_files_save
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3070 $as_echo_n "checking for suffix of executables... " >&6; }
3071 if { { ac_try="$ac_link"
3072 case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077 $as_echo "$ac_try_echo"; } >&5
3078   (eval "$ac_link") 2>&5
3079   ac_status=$?
3080   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081   test $ac_status = 0; }; then :
3082   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3083 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3084 # work properly (i.e., refer to `conftest.exe'), while it won't with
3085 # `rm'.
3086 for ac_file in conftest.exe conftest conftest.*; do
3087   test -f "$ac_file" || continue
3088   case $ac_file in
3089     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3090     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091           break;;
3092     * ) break;;
3093   esac
3094 done
3095 else
3096   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3099 See \`config.log' for more details" "$LINENO" 5; }
3100 fi
3101 rm -f conftest conftest$ac_cv_exeext
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3103 $as_echo "$ac_cv_exeext" >&6; }
3104
3105 rm -f conftest.$ac_ext
3106 EXEEXT=$ac_cv_exeext
3107 ac_exeext=$EXEEXT
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h.  */
3110 #include <stdio.h>
3111 int
3112 main ()
3113 {
3114 FILE *f = fopen ("conftest.out", "w");
3115  return ferror (f) || fclose (f) != 0;
3116
3117   ;
3118   return 0;
3119 }
3120 _ACEOF
3121 ac_clean_files="$ac_clean_files conftest.out"
3122 # Check that the compiler produces executables we can run.  If not, either
3123 # the compiler is broken, or we cross compile.
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3125 $as_echo_n "checking whether we are cross compiling... " >&6; }
3126 if test "$cross_compiling" != yes; then
3127   { { ac_try="$ac_link"
3128 case "(($ac_try" in
3129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130   *) ac_try_echo=$ac_try;;
3131 esac
3132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133 $as_echo "$ac_try_echo"; } >&5
3134   (eval "$ac_link") 2>&5
3135   ac_status=$?
3136   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137   test $ac_status = 0; }
3138   if { ac_try='./conftest$ac_cv_exeext'
3139   { { case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145   (eval "$ac_try") 2>&5
3146   ac_status=$?
3147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148   test $ac_status = 0; }; }; then
3149     cross_compiling=no
3150   else
3151     if test "$cross_compiling" = maybe; then
3152         cross_compiling=yes
3153     else
3154         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error $? "cannot run C compiled programs.
3157 If you meant to cross compile, use \`--host'.
3158 See \`config.log' for more details" "$LINENO" 5; }
3159     fi
3160   fi
3161 fi
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3163 $as_echo "$cross_compiling" >&6; }
3164
3165 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3166 ac_clean_files=$ac_clean_files_save
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3168 $as_echo_n "checking for suffix of object files... " >&6; }
3169 if ${ac_cv_objext+:} false; then :
3170   $as_echo_n "(cached) " >&6
3171 else
3172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h.  */
3174
3175 int
3176 main ()
3177 {
3178
3179   ;
3180   return 0;
3181 }
3182 _ACEOF
3183 rm -f conftest.o conftest.obj
3184 if { { ac_try="$ac_compile"
3185 case "(($ac_try" in
3186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187   *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191   (eval "$ac_compile") 2>&5
3192   ac_status=$?
3193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194   test $ac_status = 0; }; then :
3195   for ac_file in conftest.o conftest.obj conftest.*; do
3196   test -f "$ac_file" || continue;
3197   case $ac_file in
3198     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3199     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3200        break;;
3201   esac
3202 done
3203 else
3204   $as_echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3206
3207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3209 as_fn_error $? "cannot compute suffix of object files: cannot compile
3210 See \`config.log' for more details" "$LINENO" 5; }
3211 fi
3212 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3213 fi
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3215 $as_echo "$ac_cv_objext" >&6; }
3216 OBJEXT=$ac_cv_objext
3217 ac_objext=$OBJEXT
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3219 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3220 if ${ac_cv_c_compiler_gnu+:} false; then :
3221   $as_echo_n "(cached) " >&6
3222 else
3223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h.  */
3225
3226 int
3227 main ()
3228 {
3229 #ifndef __GNUC__
3230        choke me
3231 #endif
3232
3233   ;
3234   return 0;
3235 }
3236 _ACEOF
3237 if ac_fn_c_try_compile "$LINENO"; then :
3238   ac_compiler_gnu=yes
3239 else
3240   ac_compiler_gnu=no
3241 fi
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3244
3245 fi
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3247 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3248 if test $ac_compiler_gnu = yes; then
3249   GCC=yes
3250 else
3251   GCC=
3252 fi
3253 ac_test_CFLAGS=${CFLAGS+set}
3254 ac_save_CFLAGS=$CFLAGS
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3256 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3257 if ${ac_cv_prog_cc_g+:} false; then :
3258   $as_echo_n "(cached) " >&6
3259 else
3260   ac_save_c_werror_flag=$ac_c_werror_flag
3261    ac_c_werror_flag=yes
3262    ac_cv_prog_cc_g=no
3263    CFLAGS="-g"
3264    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h.  */
3266
3267 int
3268 main ()
3269 {
3270
3271   ;
3272   return 0;
3273 }
3274 _ACEOF
3275 if ac_fn_c_try_compile "$LINENO"; then :
3276   ac_cv_prog_cc_g=yes
3277 else
3278   CFLAGS=""
3279       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h.  */
3281
3282 int
3283 main ()
3284 {
3285
3286   ;
3287   return 0;
3288 }
3289 _ACEOF
3290 if ac_fn_c_try_compile "$LINENO"; then :
3291
3292 else
3293   ac_c_werror_flag=$ac_save_c_werror_flag
3294          CFLAGS="-g"
3295          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h.  */
3297
3298 int
3299 main ()
3300 {
3301
3302   ;
3303   return 0;
3304 }
3305 _ACEOF
3306 if ac_fn_c_try_compile "$LINENO"; then :
3307   ac_cv_prog_cc_g=yes
3308 fi
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 fi
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312 fi
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314    ac_c_werror_flag=$ac_save_c_werror_flag
3315 fi
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3317 $as_echo "$ac_cv_prog_cc_g" >&6; }
3318 if test "$ac_test_CFLAGS" = set; then
3319   CFLAGS=$ac_save_CFLAGS
3320 elif test $ac_cv_prog_cc_g = yes; then
3321   if test "$GCC" = yes; then
3322     CFLAGS="-g -O2"
3323   else
3324     CFLAGS="-g"
3325   fi
3326 else
3327   if test "$GCC" = yes; then
3328     CFLAGS="-O2"
3329   else
3330     CFLAGS=
3331   fi
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3334 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3335 if ${ac_cv_prog_cc_c89+:} false; then :
3336   $as_echo_n "(cached) " >&6
3337 else
3338   ac_cv_prog_cc_c89=no
3339 ac_save_CC=$CC
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h.  */
3342 #include <stdarg.h>
3343 #include <stdio.h>
3344 struct stat;
3345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3346 struct buf { int x; };
3347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3348 static char *e (p, i)
3349      char **p;
3350      int i;
3351 {
3352   return p[i];
3353 }
3354 static char *f (char * (*g) (char **, int), char **p, ...)
3355 {
3356   char *s;
3357   va_list v;
3358   va_start (v,p);
3359   s = g (p, va_arg (v,int));
3360   va_end (v);
3361   return s;
3362 }
3363
3364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3365    function prototypes and stuff, but not '\xHH' hex character constants.
3366    These don't provoke an error unfortunately, instead are silently treated
3367    as 'x'.  The following induces an error, until -std is added to get
3368    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3369    array size at least.  It's necessary to write '\x00'==0 to get something
3370    that's true only with -std.  */
3371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3372
3373 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3374    inside strings and character constants.  */
3375 #define FOO(x) 'x'
3376 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3377
3378 int test (int i, double x);
3379 struct s1 {int (*f) (int a);};
3380 struct s2 {int (*f) (double a);};
3381 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3382 int argc;
3383 char **argv;
3384 int
3385 main ()
3386 {
3387 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3388   ;
3389   return 0;
3390 }
3391 _ACEOF
3392 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3393         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3394 do
3395   CC="$ac_save_CC $ac_arg"
3396   if ac_fn_c_try_compile "$LINENO"; then :
3397   ac_cv_prog_cc_c89=$ac_arg
3398 fi
3399 rm -f core conftest.err conftest.$ac_objext
3400   test "x$ac_cv_prog_cc_c89" != "xno" && break
3401 done
3402 rm -f conftest.$ac_ext
3403 CC=$ac_save_CC
3404
3405 fi
3406 # AC_CACHE_VAL
3407 case "x$ac_cv_prog_cc_c89" in
3408   x)
3409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3410 $as_echo "none needed" >&6; } ;;
3411   xno)
3412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3413 $as_echo "unsupported" >&6; } ;;
3414   *)
3415     CC="$CC $ac_cv_prog_cc_c89"
3416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3417 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3418 esac
3419 if test "x$ac_cv_prog_cc_c89" != xno; then :
3420
3421 fi
3422
3423 ac_ext=c
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428
3429 ac_ext=c
3430 ac_cpp='$CPP $CPPFLAGS'
3431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3435 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3436 if ${am_cv_prog_cc_c_o+:} false; then :
3437   $as_echo_n "(cached) " >&6
3438 else
3439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h.  */
3441
3442 int
3443 main ()
3444 {
3445
3446   ;
3447   return 0;
3448 }
3449 _ACEOF
3450   # Make sure it works both with $CC and with simple cc.
3451   # Following AC_PROG_CC_C_O, we do the test twice because some
3452   # compilers refuse to overwrite an existing .o file with -o,
3453   # though they will create one.
3454   am_cv_prog_cc_c_o=yes
3455   for am_i in 1 2; do
3456     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3457    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3458    ac_status=$?
3459    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460    (exit $ac_status); } \
3461          && test -f conftest2.$ac_objext; then
3462       : OK
3463     else
3464       am_cv_prog_cc_c_o=no
3465       break
3466     fi
3467   done
3468   rm -f core conftest*
3469   unset am_i
3470 fi
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3472 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3473 if test "$am_cv_prog_cc_c_o" != yes; then
3474    # Losing compiler, so override with the script.
3475    # FIXME: It is wrong to rewrite CC.
3476    # But if we don't then we get into trouble of one sort or another.
3477    # A longer-term fix would be to have automake use am__CC in this case,
3478    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3479    CC="$am_aux_dir/compile $CC"
3480 fi
3481 ac_ext=c
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486
3487
3488
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3495 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3496 # On Suns, sometimes $CPP names a directory.
3497 if test -n "$CPP" && test -d "$CPP"; then
3498   CPP=
3499 fi
3500 if test -z "$CPP"; then
3501   if ${ac_cv_prog_CPP+:} false; then :
3502   $as_echo_n "(cached) " >&6
3503 else
3504       # Double quotes because CPP needs to be expanded
3505     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3506     do
3507       ac_preproc_ok=false
3508 for ac_c_preproc_warn_flag in '' yes
3509 do
3510   # Use a header file that comes with gcc, so configuring glibc
3511   # with a fresh cross-compiler works.
3512   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513   # <limits.h> exists even on freestanding compilers.
3514   # On the NeXT, cc -E runs the code through the compiler's parser,
3515   # not just through cpp. "Syntax error" is here to catch this case.
3516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h.  */
3518 #ifdef __STDC__
3519 # include <limits.h>
3520 #else
3521 # include <assert.h>
3522 #endif
3523                      Syntax error
3524 _ACEOF
3525 if ac_fn_c_try_cpp "$LINENO"; then :
3526
3527 else
3528   # Broken: fails on valid input.
3529 continue
3530 fi
3531 rm -f conftest.err conftest.i conftest.$ac_ext
3532
3533   # OK, works on sane cases.  Now check whether nonexistent headers
3534   # can be detected and how.
3535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h.  */
3537 #include <ac_nonexistent.h>
3538 _ACEOF
3539 if ac_fn_c_try_cpp "$LINENO"; then :
3540   # Broken: success on invalid input.
3541 continue
3542 else
3543   # Passes both tests.
3544 ac_preproc_ok=:
3545 break
3546 fi
3547 rm -f conftest.err conftest.i conftest.$ac_ext
3548
3549 done
3550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3551 rm -f conftest.i conftest.err conftest.$ac_ext
3552 if $ac_preproc_ok; then :
3553   break
3554 fi
3555
3556     done
3557     ac_cv_prog_CPP=$CPP
3558
3559 fi
3560   CPP=$ac_cv_prog_CPP
3561 else
3562   ac_cv_prog_CPP=$CPP
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3565 $as_echo "$CPP" >&6; }
3566 ac_preproc_ok=false
3567 for ac_c_preproc_warn_flag in '' yes
3568 do
3569   # Use a header file that comes with gcc, so configuring glibc
3570   # with a fresh cross-compiler works.
3571   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3572   # <limits.h> exists even on freestanding compilers.
3573   # On the NeXT, cc -E runs the code through the compiler's parser,
3574   # not just through cpp. "Syntax error" is here to catch this case.
3575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h.  */
3577 #ifdef __STDC__
3578 # include <limits.h>
3579 #else
3580 # include <assert.h>
3581 #endif
3582                      Syntax error
3583 _ACEOF
3584 if ac_fn_c_try_cpp "$LINENO"; then :
3585
3586 else
3587   # Broken: fails on valid input.
3588 continue
3589 fi
3590 rm -f conftest.err conftest.i conftest.$ac_ext
3591
3592   # OK, works on sane cases.  Now check whether nonexistent headers
3593   # can be detected and how.
3594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h.  */
3596 #include <ac_nonexistent.h>
3597 _ACEOF
3598 if ac_fn_c_try_cpp "$LINENO"; then :
3599   # Broken: success on invalid input.
3600 continue
3601 else
3602   # Passes both tests.
3603 ac_preproc_ok=:
3604 break
3605 fi
3606 rm -f conftest.err conftest.i conftest.$ac_ext
3607
3608 done
3609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3610 rm -f conftest.i conftest.err conftest.$ac_ext
3611 if $ac_preproc_ok; then :
3612
3613 else
3614   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3617 See \`config.log' for more details" "$LINENO" 5; }
3618 fi
3619
3620 ac_ext=c
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625
3626
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3628 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3629 if ${ac_cv_path_GREP+:} false; then :
3630   $as_echo_n "(cached) " >&6
3631 else
3632   if test -z "$GREP"; then
3633   ac_path_GREP_found=false
3634   # Loop through the user's path and test for each of PROGNAME-LIST
3635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3637 do
3638   IFS=$as_save_IFS
3639   test -z "$as_dir" && as_dir=.
3640     for ac_prog in grep ggrep; do
3641     for ac_exec_ext in '' $ac_executable_extensions; do
3642       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3643       as_fn_executable_p "$ac_path_GREP" || continue
3644 # Check for GNU ac_path_GREP and select it if it is found.
3645   # Check for GNU $ac_path_GREP
3646 case `"$ac_path_GREP" --version 2>&1` in
3647 *GNU*)
3648   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3649 *)
3650   ac_count=0
3651   $as_echo_n 0123456789 >"conftest.in"
3652   while :
3653   do
3654     cat "conftest.in" "conftest.in" >"conftest.tmp"
3655     mv "conftest.tmp" "conftest.in"
3656     cp "conftest.in" "conftest.nl"
3657     $as_echo 'GREP' >> "conftest.nl"
3658     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3659     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3660     as_fn_arith $ac_count + 1 && ac_count=$as_val
3661     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3662       # Best one so far, save it but keep looking for a better one
3663       ac_cv_path_GREP="$ac_path_GREP"
3664       ac_path_GREP_max=$ac_count
3665     fi
3666     # 10*(2^10) chars as input seems more than enough
3667     test $ac_count -gt 10 && break
3668   done
3669   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3670 esac
3671
3672       $ac_path_GREP_found && break 3
3673     done
3674   done
3675   done
3676 IFS=$as_save_IFS
3677   if test -z "$ac_cv_path_GREP"; then
3678     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3679   fi
3680 else
3681   ac_cv_path_GREP=$GREP
3682 fi
3683
3684 fi
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3686 $as_echo "$ac_cv_path_GREP" >&6; }
3687  GREP="$ac_cv_path_GREP"
3688
3689
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3691 $as_echo_n "checking for egrep... " >&6; }
3692 if ${ac_cv_path_EGREP+:} false; then :
3693   $as_echo_n "(cached) " >&6
3694 else
3695   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3696    then ac_cv_path_EGREP="$GREP -E"
3697    else
3698      if test -z "$EGREP"; then
3699   ac_path_EGREP_found=false
3700   # Loop through the user's path and test for each of PROGNAME-LIST
3701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3703 do
3704   IFS=$as_save_IFS
3705   test -z "$as_dir" && as_dir=.
3706     for ac_prog in egrep; do
3707     for ac_exec_ext in '' $ac_executable_extensions; do
3708       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3709       as_fn_executable_p "$ac_path_EGREP" || continue
3710 # Check for GNU ac_path_EGREP and select it if it is found.
3711   # Check for GNU $ac_path_EGREP
3712 case `"$ac_path_EGREP" --version 2>&1` in
3713 *GNU*)
3714   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3715 *)
3716   ac_count=0
3717   $as_echo_n 0123456789 >"conftest.in"
3718   while :
3719   do
3720     cat "conftest.in" "conftest.in" >"conftest.tmp"
3721     mv "conftest.tmp" "conftest.in"
3722     cp "conftest.in" "conftest.nl"
3723     $as_echo 'EGREP' >> "conftest.nl"
3724     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3725     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3726     as_fn_arith $ac_count + 1 && ac_count=$as_val
3727     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3728       # Best one so far, save it but keep looking for a better one
3729       ac_cv_path_EGREP="$ac_path_EGREP"
3730       ac_path_EGREP_max=$ac_count
3731     fi
3732     # 10*(2^10) chars as input seems more than enough
3733     test $ac_count -gt 10 && break
3734   done
3735   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3736 esac
3737
3738       $ac_path_EGREP_found && break 3
3739     done
3740   done
3741   done
3742 IFS=$as_save_IFS
3743   if test -z "$ac_cv_path_EGREP"; then
3744     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3745   fi
3746 else
3747   ac_cv_path_EGREP=$EGREP
3748 fi
3749
3750    fi
3751 fi
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3753 $as_echo "$ac_cv_path_EGREP" >&6; }
3754  EGREP="$ac_cv_path_EGREP"
3755
3756
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3758 $as_echo_n "checking for ANSI C header files... " >&6; }
3759 if ${ac_cv_header_stdc+:} false; then :
3760   $as_echo_n "(cached) " >&6
3761 else
3762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h.  */
3764 #include <stdlib.h>
3765 #include <stdarg.h>
3766 #include <string.h>
3767 #include <float.h>
3768
3769 int
3770 main ()
3771 {
3772
3773   ;
3774   return 0;
3775 }
3776 _ACEOF
3777 if ac_fn_c_try_compile "$LINENO"; then :
3778   ac_cv_header_stdc=yes
3779 else
3780   ac_cv_header_stdc=no
3781 fi
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783
3784 if test $ac_cv_header_stdc = yes; then
3785   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h.  */
3788 #include <string.h>
3789
3790 _ACEOF
3791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3792   $EGREP "memchr" >/dev/null 2>&1; then :
3793
3794 else
3795   ac_cv_header_stdc=no
3796 fi
3797 rm -f conftest*
3798
3799 fi
3800
3801 if test $ac_cv_header_stdc = yes; then
3802   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h.  */
3805 #include <stdlib.h>
3806
3807 _ACEOF
3808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3809   $EGREP "free" >/dev/null 2>&1; then :
3810
3811 else
3812   ac_cv_header_stdc=no
3813 fi
3814 rm -f conftest*
3815
3816 fi
3817
3818 if test $ac_cv_header_stdc = yes; then
3819   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3820   if test "$cross_compiling" = yes; then :
3821   :
3822 else
3823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h.  */
3825 #include <ctype.h>
3826 #include <stdlib.h>
3827 #if ((' ' & 0x0FF) == 0x020)
3828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3830 #else
3831 # define ISLOWER(c) \
3832                    (('a' <= (c) && (c) <= 'i') \
3833                      || ('j' <= (c) && (c) <= 'r') \
3834                      || ('s' <= (c) && (c) <= 'z'))
3835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3836 #endif
3837
3838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3839 int
3840 main ()
3841 {
3842   int i;
3843   for (i = 0; i < 256; i++)
3844     if (XOR (islower (i), ISLOWER (i))
3845         || toupper (i) != TOUPPER (i))
3846       return 2;
3847   return 0;
3848 }
3849 _ACEOF
3850 if ac_fn_c_try_run "$LINENO"; then :
3851
3852 else
3853   ac_cv_header_stdc=no
3854 fi
3855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3856   conftest.$ac_objext conftest.beam conftest.$ac_ext
3857 fi
3858
3859 fi
3860 fi
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3862 $as_echo "$ac_cv_header_stdc" >&6; }
3863 if test $ac_cv_header_stdc = yes; then
3864
3865 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3866
3867 fi
3868
3869 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3870 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3871                   inttypes.h stdint.h unistd.h
3872 do :
3873   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3874 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3875 "
3876 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3877   cat >>confdefs.h <<_ACEOF
3878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3879 _ACEOF
3880
3881 fi
3882
3883 done
3884
3885
3886
3887   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3888 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3889   MINIX=yes
3890 else
3891   MINIX=
3892 fi
3893
3894
3895   if test "$MINIX" = yes; then
3896
3897 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3898
3899
3900 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3901
3902
3903 $as_echo "#define _MINIX 1" >>confdefs.h
3904
3905   fi
3906
3907
3908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3909 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3910 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3911   $as_echo_n "(cached) " >&6
3912 else
3913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h.  */
3915
3916 #         define __EXTENSIONS__ 1
3917           $ac_includes_default
3918 int
3919 main ()
3920 {
3921
3922   ;
3923   return 0;
3924 }
3925 _ACEOF
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927   ac_cv_safe_to_define___extensions__=yes
3928 else
3929   ac_cv_safe_to_define___extensions__=no
3930 fi
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3934 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3935   test $ac_cv_safe_to_define___extensions__ = yes &&
3936     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3937
3938   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3939
3940   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3941
3942   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3943
3944   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3945
3946
3947
3948 target_alias=${target_alias-$target}
3949
3950
3951 # 1.11.1: Require that version of automake.
3952 # foreign: Don't require README, INSTALL, NEWS, etc.
3953 # no-define: Don't define PACKAGE and VERSION.
3954 # no-dependencies: Don't generate automatic dependencies.
3955 #    (because it breaks when using bootstrap-lean, since some of the
3956 #    headers are gone at "make install" time).
3957 # subdir-objects: Build objects in sub-directories.
3958 # -Wall: Issue all automake warnings.
3959 # -Wno-portability: Don't warn about constructs supported by GNU make.
3960 #    (because GCC requires GNU make anyhow).
3961 #  -Wno-override: Overrides used in testsuite.
3962 am__api_version='1.15'
3963
3964 # Find a good install program.  We prefer a C program (faster),
3965 # so one script is as good as another.  But avoid the broken or
3966 # incompatible versions:
3967 # SysV /etc/install, /usr/sbin/install
3968 # SunOS /usr/etc/install
3969 # IRIX /sbin/install
3970 # AIX /bin/install
3971 # AmigaOS /C/install, which installs bootblocks on floppy discs
3972 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3973 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3974 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3975 # OS/2's system install, which has a completely different semantic
3976 # ./install, which can be erroneously created by make from ./install.sh.
3977 # Reject install programs that cannot install multiple files.
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3979 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3980 if test -z "$INSTALL"; then
3981 if ${ac_cv_path_install+:} false; then :
3982   $as_echo_n "(cached) " >&6
3983 else
3984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987   IFS=$as_save_IFS
3988   test -z "$as_dir" && as_dir=.
3989     # Account for people who put trailing slashes in PATH elements.
3990 case $as_dir/ in #((
3991   ./ | .// | /[cC]/* | \
3992   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3993   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3994   /usr/ucb/* ) ;;
3995   *)
3996     # OSF1 and SCO ODT 3.0 have their own names for install.
3997     # Don't use installbsd from OSF since it installs stuff as root
3998     # by default.
3999     for ac_prog in ginstall scoinst install; do
4000       for ac_exec_ext in '' $ac_executable_extensions; do
4001         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4002           if test $ac_prog = install &&
4003             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4004             # AIX install.  It has an incompatible calling convention.
4005             :
4006           elif test $ac_prog = install &&
4007             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4008             # program-specific install script used by HP pwplus--don't use.
4009             :
4010           else
4011             rm -rf conftest.one conftest.two conftest.dir
4012             echo one > conftest.one
4013             echo two > conftest.two
4014             mkdir conftest.dir
4015             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4016               test -s conftest.one && test -s conftest.two &&
4017               test -s conftest.dir/conftest.one &&
4018               test -s conftest.dir/conftest.two
4019             then
4020               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4021               break 3
4022             fi
4023           fi
4024         fi
4025       done
4026     done
4027     ;;
4028 esac
4029
4030   done
4031 IFS=$as_save_IFS
4032
4033 rm -rf conftest.one conftest.two conftest.dir
4034
4035 fi
4036   if test "${ac_cv_path_install+set}" = set; then
4037     INSTALL=$ac_cv_path_install
4038   else
4039     # As a last resort, use the slow shell script.  Don't cache a
4040     # value for INSTALL within a source directory, because that will
4041     # break other packages using the cache if that directory is
4042     # removed, or if the value is a relative name.
4043     INSTALL=$ac_install_sh
4044   fi
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4047 $as_echo "$INSTALL" >&6; }
4048
4049 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4050 # It thinks the first close brace ends the variable substitution.
4051 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4052
4053 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4054
4055 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4056
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4058 $as_echo_n "checking whether build environment is sane... " >&6; }
4059 # Reject unsafe characters in $srcdir or the absolute working directory
4060 # name.  Accept space and tab only in the latter.
4061 am_lf='
4062 '
4063 case `pwd` in
4064   *[\\\"\#\$\&\'\`$am_lf]*)
4065     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4066 esac
4067 case $srcdir in
4068   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4069     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4070 esac
4071
4072 # Do 'set' in a subshell so we don't clobber the current shell's
4073 # arguments.  Must try -L first in case configure is actually a
4074 # symlink; some systems play weird games with the mod time of symlinks
4075 # (eg FreeBSD returns the mod time of the symlink's containing
4076 # directory).
4077 if (
4078    am_has_slept=no
4079    for am_try in 1 2; do
4080      echo "timestamp, slept: $am_has_slept" > conftest.file
4081      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4082      if test "$*" = "X"; then
4083         # -L didn't work.
4084         set X `ls -t "$srcdir/configure" conftest.file`
4085      fi
4086      if test "$*" != "X $srcdir/configure conftest.file" \
4087         && test "$*" != "X conftest.file $srcdir/configure"; then
4088
4089         # If neither matched, then we have a broken ls.  This can happen
4090         # if, for instance, CONFIG_SHELL is bash and it inherits a
4091         # broken ls alias from the environment.  This has actually
4092         # happened.  Such a system could not be considered "sane".
4093         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4094   alias in your environment" "$LINENO" 5
4095      fi
4096      if test "$2" = conftest.file || test $am_try -eq 2; then
4097        break
4098      fi
4099      # Just in case.
4100      sleep 1
4101      am_has_slept=yes
4102    done
4103    test "$2" = conftest.file
4104    )
4105 then
4106    # Ok.
4107    :
4108 else
4109    as_fn_error $? "newly created file is older than distributed files!
4110 Check your system clock" "$LINENO" 5
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4113 $as_echo "yes" >&6; }
4114 # If we didn't sleep, we still need to ensure time stamps of config.status and
4115 # generated files are strictly newer.
4116 am_sleep_pid=
4117 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4118   ( sleep 1 ) &
4119   am_sleep_pid=$!
4120 fi
4121
4122 rm -f conftest.file
4123
4124 test "$program_prefix" != NONE &&
4125   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4126 # Use a double $ so make ignores it.
4127 test "$program_suffix" != NONE &&
4128   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4129 # Double any \ or $.
4130 # By default was `s,x,x', remove it if useless.
4131 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4132 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4133
4134 if test x"${MISSING+set}" != xset; then
4135   case $am_aux_dir in
4136   *\ * | *\     *)
4137     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4138   *)
4139     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4140   esac
4141 fi
4142 # Use eval to expand $SHELL
4143 if eval "$MISSING --is-lightweight"; then
4144   am_missing_run="$MISSING "
4145 else
4146   am_missing_run=
4147   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4148 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4149 fi
4150
4151 if test x"${install_sh+set}" != xset; then
4152   case $am_aux_dir in
4153   *\ * | *\     *)
4154     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4155   *)
4156     install_sh="\${SHELL} $am_aux_dir/install-sh"
4157   esac
4158 fi
4159
4160 # Installed binaries are usually stripped using 'strip' when the user
4161 # run "make install-strip".  However 'strip' might not be the right
4162 # tool to use in cross-compilation environments, therefore Automake
4163 # will honor the 'STRIP' environment variable to overrule this program.
4164 if test "$cross_compiling" != no; then
4165   if test -n "$ac_tool_prefix"; then
4166   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4167 set dummy ${ac_tool_prefix}strip; ac_word=$2
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169 $as_echo_n "checking for $ac_word... " >&6; }
4170 if ${ac_cv_prog_STRIP+:} false; then :
4171   $as_echo_n "(cached) " >&6
4172 else
4173   if test -n "$STRIP"; then
4174   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179   IFS=$as_save_IFS
4180   test -z "$as_dir" && as_dir=.
4181     for ac_exec_ext in '' $ac_executable_extensions; do
4182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185     break 2
4186   fi
4187 done
4188   done
4189 IFS=$as_save_IFS
4190
4191 fi
4192 fi
4193 STRIP=$ac_cv_prog_STRIP
4194 if test -n "$STRIP"; then
4195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4196 $as_echo "$STRIP" >&6; }
4197 else
4198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4200 fi
4201
4202
4203 fi
4204 if test -z "$ac_cv_prog_STRIP"; then
4205   ac_ct_STRIP=$STRIP
4206   # Extract the first word of "strip", so it can be a program name with args.
4207 set dummy strip; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4211   $as_echo_n "(cached) " >&6
4212 else
4213   if test -n "$ac_ct_STRIP"; then
4214   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4218 do
4219   IFS=$as_save_IFS
4220   test -z "$as_dir" && as_dir=.
4221     for ac_exec_ext in '' $ac_executable_extensions; do
4222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223     ac_cv_prog_ac_ct_STRIP="strip"
4224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225     break 2
4226   fi
4227 done
4228   done
4229 IFS=$as_save_IFS
4230
4231 fi
4232 fi
4233 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4234 if test -n "$ac_ct_STRIP"; then
4235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4236 $as_echo "$ac_ct_STRIP" >&6; }
4237 else
4238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4240 fi
4241
4242   if test "x$ac_ct_STRIP" = x; then
4243     STRIP=":"
4244   else
4245     case $cross_compiling:$ac_tool_warned in
4246 yes:)
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4249 ac_tool_warned=yes ;;
4250 esac
4251     STRIP=$ac_ct_STRIP
4252   fi
4253 else
4254   STRIP="$ac_cv_prog_STRIP"
4255 fi
4256
4257 fi
4258 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4259
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4261 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4262 if test -z "$MKDIR_P"; then
4263   if ${ac_cv_path_mkdir+:} false; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271     for ac_prog in mkdir gmkdir; do
4272          for ac_exec_ext in '' $ac_executable_extensions; do
4273            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4274            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4275              'mkdir (GNU coreutils) '* | \
4276              'mkdir (coreutils) '* | \
4277              'mkdir (fileutils) '4.1*)
4278                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4279                break 3;;
4280            esac
4281          done
4282        done
4283   done
4284 IFS=$as_save_IFS
4285
4286 fi
4287
4288   test -d ./--version && rmdir ./--version
4289   if test "${ac_cv_path_mkdir+set}" = set; then
4290     MKDIR_P="$ac_cv_path_mkdir -p"
4291   else
4292     # As a last resort, use the slow shell script.  Don't cache a
4293     # value for MKDIR_P within a source directory, because that will
4294     # break other packages using the cache if that directory is
4295     # removed, or if the value is a relative name.
4296     MKDIR_P="$ac_install_sh -d"
4297   fi
4298 fi
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4300 $as_echo "$MKDIR_P" >&6; }
4301
4302 for ac_prog in gawk mawk nawk awk
4303 do
4304   # Extract the first word of "$ac_prog", so it can be a program name with args.
4305 set dummy $ac_prog; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if ${ac_cv_prog_AWK+:} false; then :
4309   $as_echo_n "(cached) " >&6
4310 else
4311   if test -n "$AWK"; then
4312   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4316 do
4317   IFS=$as_save_IFS
4318   test -z "$as_dir" && as_dir=.
4319     for ac_exec_ext in '' $ac_executable_extensions; do
4320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4321     ac_cv_prog_AWK="$ac_prog"
4322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323     break 2
4324   fi
4325 done
4326   done
4327 IFS=$as_save_IFS
4328
4329 fi
4330 fi
4331 AWK=$ac_cv_prog_AWK
4332 if test -n "$AWK"; then
4333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4334 $as_echo "$AWK" >&6; }
4335 else
4336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4338 fi
4339
4340
4341   test -n "$AWK" && break
4342 done
4343
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4345 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4346 set x ${MAKE-make}
4347 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4348 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4349   $as_echo_n "(cached) " >&6
4350 else
4351   cat >conftest.make <<\_ACEOF
4352 SHELL = /bin/sh
4353 all:
4354         @echo '@@@%%%=$(MAKE)=@@@%%%'
4355 _ACEOF
4356 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4357 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4358   *@@@%%%=?*=@@@%%%*)
4359     eval ac_cv_prog_make_${ac_make}_set=yes;;
4360   *)
4361     eval ac_cv_prog_make_${ac_make}_set=no;;
4362 esac
4363 rm -f conftest.make
4364 fi
4365 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367 $as_echo "yes" >&6; }
4368   SET_MAKE=
4369 else
4370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4372   SET_MAKE="MAKE=${MAKE-make}"
4373 fi
4374
4375 rm -rf .tst 2>/dev/null
4376 mkdir .tst 2>/dev/null
4377 if test -d .tst; then
4378   am__leading_dot=.
4379 else
4380   am__leading_dot=_
4381 fi
4382 rmdir .tst 2>/dev/null
4383
4384 # Check whether --enable-silent-rules was given.
4385 if test "${enable_silent_rules+set}" = set; then :
4386   enableval=$enable_silent_rules;
4387 fi
4388
4389 case $enable_silent_rules in # (((
4390   yes) AM_DEFAULT_VERBOSITY=0;;
4391    no) AM_DEFAULT_VERBOSITY=1;;
4392     *) AM_DEFAULT_VERBOSITY=1;;
4393 esac
4394 am_make=${MAKE-make}
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4396 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4397 if ${am_cv_make_support_nested_variables+:} false; then :
4398   $as_echo_n "(cached) " >&6
4399 else
4400   if $as_echo 'TRUE=$(BAR$(V))
4401 BAR0=false
4402 BAR1=true
4403 V=1
4404 am__doit:
4405         @$(TRUE)
4406 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4407   am_cv_make_support_nested_variables=yes
4408 else
4409   am_cv_make_support_nested_variables=no
4410 fi
4411 fi
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4413 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4414 if test $am_cv_make_support_nested_variables = yes; then
4415     AM_V='$(V)'
4416   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4417 else
4418   AM_V=$AM_DEFAULT_VERBOSITY
4419   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4420 fi
4421 AM_BACKSLASH='\'
4422
4423 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4424   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4425   # is not polluted with repeated "-I."
4426   am__isrc=' -I$(srcdir)'
4427   # test to see if srcdir already configured
4428   if test -f $srcdir/config.status; then
4429     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4430   fi
4431 fi
4432
4433 # test whether we have cygpath
4434 if test -z "$CYGPATH_W"; then
4435   if (cygpath --version) >/dev/null 2>/dev/null; then
4436     CYGPATH_W='cygpath -w'
4437   else
4438     CYGPATH_W=echo
4439   fi
4440 fi
4441
4442
4443 # Define the identity of the package.
4444  PACKAGE='libphobos'
4445  VERSION='version-unused'
4446
4447
4448 # Some tools Automake needs.
4449
4450 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4451
4452
4453 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4454
4455
4456 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4457
4458
4459 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4460
4461
4462 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4463
4464 # For better backward compatibility.  To be removed once Automake 1.9.x
4465 # dies out for good.  For more background, see:
4466 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4467 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4468 mkdir_p='$(MKDIR_P)'
4469
4470 # We need awk for the "check" target (and possibly the TAP driver).  The
4471 # system "awk" is bad on some platforms.
4472 # Always define AMTAR for backward compatibility.  Yes, it's still used
4473 # in the wild :-(  We should find a proper way to deprecate it ...
4474 AMTAR='$${TAR-tar}'
4475
4476
4477 # We'll loop over all known methods to create a tar archive until one works.
4478 _am_tools='gnutar  pax cpio none'
4479
4480 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4481
4482
4483
4484
4485
4486
4487 # POSIX will say in a future version that running "rm -f" with no argument
4488 # is OK; and we want to be able to make that assumption in our Makefile
4489 # recipes.  So use an aggressive probe to check that the usage we want is
4490 # actually supported "in the wild" to an acceptable degree.
4491 # See automake bug#10828.
4492 # To make any issue more visible, cause the running configure to be aborted
4493 # by default if the 'rm' program in use doesn't match our expectations; the
4494 # user can still override this though.
4495 if rm -f && rm -fr && rm -rf; then : OK; else
4496   cat >&2 <<'END'
4497 Oops!
4498
4499 Your 'rm' program seems unable to run without file operands specified
4500 on the command line, even when the '-f' option is present.  This is contrary
4501 to the behaviour of most rm programs out there, and not conforming with
4502 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4503
4504 Please tell bug-automake@gnu.org about your system, including the value
4505 of your $PATH and any error possibly output before this message.  This
4506 can help us improve future automake versions.
4507
4508 END
4509   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4510     echo 'Configuration will proceed anyway, since you have set the' >&2
4511     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4512     echo >&2
4513   else
4514     cat >&2 <<'END'
4515 Aborting the configuration process, to ensure you take notice of the issue.
4516
4517 You can download and install GNU coreutils to get an 'rm' implementation
4518 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4519
4520 If you want to complete the configuration process using your problematic
4521 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4522 to "yes", and re-run configure.
4523
4524 END
4525     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4526   fi
4527 fi
4528
4529
4530
4531
4532 # By default we simply use the C compiler to build assembly code.
4533
4534 test "${CCAS+set}" = set || CCAS=$CC
4535 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4536
4537
4538
4539 ac_ext=c
4540 ac_cpp='$CPP $CPPFLAGS'
4541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544 if test -n "$ac_tool_prefix"; then
4545   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4546 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if ${ac_cv_prog_CC+:} false; then :
4550   $as_echo_n "(cached) " >&6
4551 else
4552   if test -n "$CC"; then
4553   ac_cv_prog_CC="$CC" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560     for ac_exec_ext in '' $ac_executable_extensions; do
4561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564     break 2
4565   fi
4566 done
4567   done
4568 IFS=$as_save_IFS
4569
4570 fi
4571 fi
4572 CC=$ac_cv_prog_CC
4573 if test -n "$CC"; then
4574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4575 $as_echo "$CC" >&6; }
4576 else
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4579 fi
4580
4581
4582 fi
4583 if test -z "$ac_cv_prog_CC"; then
4584   ac_ct_CC=$CC
4585   # Extract the first word of "gcc", so it can be a program name with args.
4586 set dummy gcc; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4590   $as_echo_n "(cached) " >&6
4591 else
4592   if test -n "$ac_ct_CC"; then
4593   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600     for ac_exec_ext in '' $ac_executable_extensions; do
4601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602     ac_cv_prog_ac_ct_CC="gcc"
4603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604     break 2
4605   fi
4606 done
4607   done
4608 IFS=$as_save_IFS
4609
4610 fi
4611 fi
4612 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4613 if test -n "$ac_ct_CC"; then
4614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4615 $as_echo "$ac_ct_CC" >&6; }
4616 else
4617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4619 fi
4620
4621   if test "x$ac_ct_CC" = x; then
4622     CC=""
4623   else
4624     case $cross_compiling:$ac_tool_warned in
4625 yes:)
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628 ac_tool_warned=yes ;;
4629 esac
4630     CC=$ac_ct_CC
4631   fi
4632 else
4633   CC="$ac_cv_prog_CC"
4634 fi
4635
4636 if test -z "$CC"; then
4637           if test -n "$ac_tool_prefix"; then
4638     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4639 set dummy ${ac_tool_prefix}cc; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if ${ac_cv_prog_CC+:} false; then :
4643   $as_echo_n "(cached) " >&6
4644 else
4645   if test -n "$CC"; then
4646   ac_cv_prog_CC="$CC" # Let the user override the test.
4647 else
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH
4650 do
4651   IFS=$as_save_IFS
4652   test -z "$as_dir" && as_dir=.
4653     for ac_exec_ext in '' $ac_executable_extensions; do
4654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4655     ac_cv_prog_CC="${ac_tool_prefix}cc"
4656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657     break 2
4658   fi
4659 done
4660   done
4661 IFS=$as_save_IFS
4662
4663 fi
4664 fi
4665 CC=$ac_cv_prog_CC
4666 if test -n "$CC"; then
4667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4668 $as_echo "$CC" >&6; }
4669 else
4670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671 $as_echo "no" >&6; }
4672 fi
4673
4674
4675   fi
4676 fi
4677 if test -z "$CC"; then
4678   # Extract the first word of "cc", so it can be a program name with args.
4679 set dummy cc; ac_word=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if ${ac_cv_prog_CC+:} false; then :
4683   $as_echo_n "(cached) " >&6
4684 else
4685   if test -n "$CC"; then
4686   ac_cv_prog_CC="$CC" # Let the user override the test.
4687 else
4688   ac_prog_rejected=no
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692   IFS=$as_save_IFS
4693   test -z "$as_dir" && as_dir=.
4694     for ac_exec_ext in '' $ac_executable_extensions; do
4695   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4697        ac_prog_rejected=yes
4698        continue
4699      fi
4700     ac_cv_prog_CC="cc"
4701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705   done
4706 IFS=$as_save_IFS
4707
4708 if test $ac_prog_rejected = yes; then
4709   # We found a bogon in the path, so make sure we never use it.
4710   set dummy $ac_cv_prog_CC
4711   shift
4712   if test $# != 0; then
4713     # We chose a different compiler from the bogus one.
4714     # However, it has the same basename, so the bogon will be chosen
4715     # first if we set CC to just the basename; use the full file name.
4716     shift
4717     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4718   fi
4719 fi
4720 fi
4721 fi
4722 CC=$ac_cv_prog_CC
4723 if test -n "$CC"; then
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4725 $as_echo "$CC" >&6; }
4726 else
4727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4729 fi
4730
4731
4732 fi
4733 if test -z "$CC"; then
4734   if test -n "$ac_tool_prefix"; then
4735   for ac_prog in cl.exe
4736   do
4737     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if ${ac_cv_prog_CC+:} false; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   if test -n "$CC"; then
4745   ac_cv_prog_CC="$CC" # Let the user override the test.
4746 else
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748 for as_dir in $PATH
4749 do
4750   IFS=$as_save_IFS
4751   test -z "$as_dir" && as_dir=.
4752     for ac_exec_ext in '' $ac_executable_extensions; do
4753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756     break 2
4757   fi
4758 done
4759   done
4760 IFS=$as_save_IFS
4761
4762 fi
4763 fi
4764 CC=$ac_cv_prog_CC
4765 if test -n "$CC"; then
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4767 $as_echo "$CC" >&6; }
4768 else
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4771 fi
4772
4773
4774     test -n "$CC" && break
4775   done
4776 fi
4777 if test -z "$CC"; then
4778   ac_ct_CC=$CC
4779   for ac_prog in cl.exe
4780 do
4781   # Extract the first word of "$ac_prog", so it can be a program name with args.
4782 set dummy $ac_prog; ac_word=$2
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784 $as_echo_n "checking for $ac_word... " >&6; }
4785 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4786   $as_echo_n "(cached) " >&6
4787 else
4788   if test -n "$ac_ct_CC"; then
4789   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4790 else
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796     for ac_exec_ext in '' $ac_executable_extensions; do
4797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4798     ac_cv_prog_ac_ct_CC="$ac_prog"
4799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800     break 2
4801   fi
4802 done
4803   done
4804 IFS=$as_save_IFS
4805
4806 fi
4807 fi
4808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4809 if test -n "$ac_ct_CC"; then
4810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4811 $as_echo "$ac_ct_CC" >&6; }
4812 else
4813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4814 $as_echo "no" >&6; }
4815 fi
4816
4817
4818   test -n "$ac_ct_CC" && break
4819 done
4820
4821   if test "x$ac_ct_CC" = x; then
4822     CC=""
4823   else
4824     case $cross_compiling:$ac_tool_warned in
4825 yes:)
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4828 ac_tool_warned=yes ;;
4829 esac
4830     CC=$ac_ct_CC
4831   fi
4832 fi
4833
4834 fi
4835
4836
4837 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4839 as_fn_error $? "no acceptable C compiler found in \$PATH
4840 See \`config.log' for more details" "$LINENO" 5; }
4841
4842 # Provide some information about the compiler.
4843 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4844 set X $ac_compile
4845 ac_compiler=$2
4846 for ac_option in --version -v -V -qversion; do
4847   { { ac_try="$ac_compiler $ac_option >&5"
4848 case "(($ac_try" in
4849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850   *) ac_try_echo=$ac_try;;
4851 esac
4852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853 $as_echo "$ac_try_echo"; } >&5
4854   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4855   ac_status=$?
4856   if test -s conftest.err; then
4857     sed '10a\
4858 ... rest of stderr output deleted ...
4859          10q' conftest.err >conftest.er1
4860     cat conftest.er1 >&5
4861   fi
4862   rm -f conftest.er1 conftest.err
4863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864   test $ac_status = 0; }
4865 done
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4868 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4869 if ${ac_cv_c_compiler_gnu+:} false; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874
4875 int
4876 main ()
4877 {
4878 #ifndef __GNUC__
4879        choke me
4880 #endif
4881
4882   ;
4883   return 0;
4884 }
4885 _ACEOF
4886 if ac_fn_c_try_compile "$LINENO"; then :
4887   ac_compiler_gnu=yes
4888 else
4889   ac_compiler_gnu=no
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4893
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4896 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4897 if test $ac_compiler_gnu = yes; then
4898   GCC=yes
4899 else
4900   GCC=
4901 fi
4902 ac_test_CFLAGS=${CFLAGS+set}
4903 ac_save_CFLAGS=$CFLAGS
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4905 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4906 if ${ac_cv_prog_cc_g+:} false; then :
4907   $as_echo_n "(cached) " >&6
4908 else
4909   ac_save_c_werror_flag=$ac_c_werror_flag
4910    ac_c_werror_flag=yes
4911    ac_cv_prog_cc_g=no
4912    CFLAGS="-g"
4913    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h.  */
4915
4916 int
4917 main ()
4918 {
4919
4920   ;
4921   return 0;
4922 }
4923 _ACEOF
4924 if ac_fn_c_try_compile "$LINENO"; then :
4925   ac_cv_prog_cc_g=yes
4926 else
4927   CFLAGS=""
4928       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h.  */
4930
4931 int
4932 main ()
4933 {
4934
4935   ;
4936   return 0;
4937 }
4938 _ACEOF
4939 if ac_fn_c_try_compile "$LINENO"; then :
4940
4941 else
4942   ac_c_werror_flag=$ac_save_c_werror_flag
4943          CFLAGS="-g"
4944          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h.  */
4946
4947 int
4948 main ()
4949 {
4950
4951   ;
4952   return 0;
4953 }
4954 _ACEOF
4955 if ac_fn_c_try_compile "$LINENO"; then :
4956   ac_cv_prog_cc_g=yes
4957 fi
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 fi
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963    ac_c_werror_flag=$ac_save_c_werror_flag
4964 fi
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4966 $as_echo "$ac_cv_prog_cc_g" >&6; }
4967 if test "$ac_test_CFLAGS" = set; then
4968   CFLAGS=$ac_save_CFLAGS
4969 elif test $ac_cv_prog_cc_g = yes; then
4970   if test "$GCC" = yes; then
4971     CFLAGS="-g -O2"
4972   else
4973     CFLAGS="-g"
4974   fi
4975 else
4976   if test "$GCC" = yes; then
4977     CFLAGS="-O2"
4978   else
4979     CFLAGS=
4980   fi
4981 fi
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4983 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4984 if ${ac_cv_prog_cc_c89+:} false; then :
4985   $as_echo_n "(cached) " >&6
4986 else
4987   ac_cv_prog_cc_c89=no
4988 ac_save_CC=$CC
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h.  */
4991 #include <stdarg.h>
4992 #include <stdio.h>
4993 struct stat;
4994 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4995 struct buf { int x; };
4996 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4997 static char *e (p, i)
4998      char **p;
4999      int i;
5000 {
5001   return p[i];
5002 }
5003 static char *f (char * (*g) (char **, int), char **p, ...)
5004 {
5005   char *s;
5006   va_list v;
5007   va_start (v,p);
5008   s = g (p, va_arg (v,int));
5009   va_end (v);
5010   return s;
5011 }
5012
5013 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5014    function prototypes and stuff, but not '\xHH' hex character constants.
5015    These don't provoke an error unfortunately, instead are silently treated
5016    as 'x'.  The following induces an error, until -std is added to get
5017    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5018    array size at least.  It's necessary to write '\x00'==0 to get something
5019    that's true only with -std.  */
5020 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5021
5022 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5023    inside strings and character constants.  */
5024 #define FOO(x) 'x'
5025 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5026
5027 int test (int i, double x);
5028 struct s1 {int (*f) (int a);};
5029 struct s2 {int (*f) (double a);};
5030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5031 int argc;
5032 char **argv;
5033 int
5034 main ()
5035 {
5036 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5037   ;
5038   return 0;
5039 }
5040 _ACEOF
5041 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5042         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5043 do
5044   CC="$ac_save_CC $ac_arg"
5045   if ac_fn_c_try_compile "$LINENO"; then :
5046   ac_cv_prog_cc_c89=$ac_arg
5047 fi
5048 rm -f core conftest.err conftest.$ac_objext
5049   test "x$ac_cv_prog_cc_c89" != "xno" && break
5050 done
5051 rm -f conftest.$ac_ext
5052 CC=$ac_save_CC
5053
5054 fi
5055 # AC_CACHE_VAL
5056 case "x$ac_cv_prog_cc_c89" in
5057   x)
5058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5059 $as_echo "none needed" >&6; } ;;
5060   xno)
5061     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5062 $as_echo "unsupported" >&6; } ;;
5063   *)
5064     CC="$CC $ac_cv_prog_cc_c89"
5065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5066 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5067 esac
5068 if test "x$ac_cv_prog_cc_c89" != xno; then :
5069
5070 fi
5071
5072 ac_ext=c
5073 ac_cpp='$CPP $CPPFLAGS'
5074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077
5078 ac_ext=c
5079 ac_cpp='$CPP $CPPFLAGS'
5080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5084 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5085 if ${am_cv_prog_cc_c_o+:} false; then :
5086   $as_echo_n "(cached) " >&6
5087 else
5088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h.  */
5090
5091 int
5092 main ()
5093 {
5094
5095   ;
5096   return 0;
5097 }
5098 _ACEOF
5099   # Make sure it works both with $CC and with simple cc.
5100   # Following AC_PROG_CC_C_O, we do the test twice because some
5101   # compilers refuse to overwrite an existing .o file with -o,
5102   # though they will create one.
5103   am_cv_prog_cc_c_o=yes
5104   for am_i in 1 2; do
5105     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5106    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5107    ac_status=$?
5108    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109    (exit $ac_status); } \
5110          && test -f conftest2.$ac_objext; then
5111       : OK
5112     else
5113       am_cv_prog_cc_c_o=no
5114       break
5115     fi
5116   done
5117   rm -f core conftest*
5118   unset am_i
5119 fi
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5121 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5122 if test "$am_cv_prog_cc_c_o" != yes; then
5123    # Losing compiler, so override with the script.
5124    # FIXME: It is wrong to rewrite CC.
5125    # But if we don't then we get into trouble of one sort or another.
5126    # A longer-term fix would be to have automake use am__CC in this case,
5127    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5128    CC="$am_aux_dir/compile $CC"
5129 fi
5130 ac_ext=c
5131 ac_cpp='$CPP $CPPFLAGS'
5132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135
5136
5137 ac_ext=d
5138 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5139 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140 ac_compiler_gnu=yes
5141 if test -n "$ac_tool_prefix"; then
5142   # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5143 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_prog_GDC+:} false; then :
5147   $as_echo_n "(cached) " >&6
5148 else
5149   if test -n "$GDC"; then
5150   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5151 else
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in $PATH
5154 do
5155   IFS=$as_save_IFS
5156   test -z "$as_dir" && as_dir=.
5157     for ac_exec_ext in '' $ac_executable_extensions; do
5158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5159     ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5161     break 2
5162   fi
5163 done
5164   done
5165 IFS=$as_save_IFS
5166
5167 fi
5168 fi
5169 GDC=$ac_cv_prog_GDC
5170 if test -n "$GDC"; then
5171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5172 $as_echo "$GDC" >&6; }
5173 else
5174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5175 $as_echo "no" >&6; }
5176 fi
5177
5178
5179 fi
5180 if test -z "$ac_cv_prog_GDC"; then
5181   ac_ct_GDC=$GDC
5182   # Extract the first word of "gdc", so it can be a program name with args.
5183 set dummy gdc; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5187   $as_echo_n "(cached) " >&6
5188 else
5189   if test -n "$ac_ct_GDC"; then
5190   ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5191 else
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197     for ac_exec_ext in '' $ac_executable_extensions; do
5198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199     ac_cv_prog_ac_ct_GDC="gdc"
5200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204   done
5205 IFS=$as_save_IFS
5206
5207 fi
5208 fi
5209 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5210 if test -n "$ac_ct_GDC"; then
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5212 $as_echo "$ac_ct_GDC" >&6; }
5213 else
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217
5218   if test "x$ac_ct_GDC" = x; then
5219     GDC=""
5220   else
5221     case $cross_compiling:$ac_tool_warned in
5222 yes:)
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned=yes ;;
5226 esac
5227     GDC=$ac_ct_GDC
5228   fi
5229 else
5230   GDC="$ac_cv_prog_GDC"
5231 fi
5232
5233 if test -z "$GDC"; then
5234   if test -n "$ac_tool_prefix"; then
5235     # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5236 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if ${ac_cv_prog_GDC+:} false; then :
5240   $as_echo_n "(cached) " >&6
5241 else
5242   if test -n "$GDC"; then
5243   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248   IFS=$as_save_IFS
5249   test -z "$as_dir" && as_dir=.
5250     for ac_exec_ext in '' $ac_executable_extensions; do
5251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252     ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254     break 2
5255   fi
5256 done
5257   done
5258 IFS=$as_save_IFS
5259
5260 fi
5261 fi
5262 GDC=$ac_cv_prog_GDC
5263 if test -n "$GDC"; then
5264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5265 $as_echo "$GDC" >&6; }
5266 else
5267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5269 fi
5270
5271
5272   fi
5273 fi
5274 if test -z "$GDC"; then
5275   # Extract the first word of "gdc", so it can be a program name with args.
5276 set dummy gdc; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_prog_GDC+:} false; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   if test -n "$GDC"; then
5283   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5284 else
5285   ac_prog_rejected=no
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5288 do
5289   IFS=$as_save_IFS
5290   test -z "$as_dir" && as_dir=.
5291     for ac_exec_ext in '' $ac_executable_extensions; do
5292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5293     if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5294        ac_prog_rejected=yes
5295        continue
5296      fi
5297     ac_cv_prog_GDC="gdc"
5298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299     break 2
5300   fi
5301 done
5302   done
5303 IFS=$as_save_IFS
5304
5305 if test $ac_prog_rejected = yes; then
5306   # We found a bogon in the path, so make sure we never use it.
5307   set dummy $ac_cv_prog_GDC
5308   shift
5309   if test $# != 0; then
5310     # We chose a different compiler from the bogus one.
5311     # However, it has the same basename, so the bogon will be chosen
5312     # first if we set GDC to just the basename; use the full file name.
5313     shift
5314     ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5315   fi
5316 fi
5317 fi
5318 fi
5319 GDC=$ac_cv_prog_GDC
5320 if test -n "$GDC"; then
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5322 $as_echo "$GDC" >&6; }
5323 else
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5326 fi
5327
5328
5329 fi
5330
5331
5332 # Provide some information about the compiler.
5333 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5334 set X $ac_compile
5335 ac_compiler=$2
5336 { { ac_try="$ac_compiler --version >&5"
5337 case "(($ac_try" in
5338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339   *) ac_try_echo=$ac_try;;
5340 esac
5341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5342 $as_echo "$ac_try_echo"; } >&5
5343   (eval "$ac_compiler --version >&5") 2>conftest.err
5344   ac_status=$?
5345   if test -s conftest.err; then
5346     sed '10a\
5347 ... rest of stderr output deleted ...
5348          10q' conftest.err >conftest.er1
5349     cat conftest.er1 >&5
5350   fi
5351   rm -f conftest.er1 conftest.err
5352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5353   test $ac_status = 0; }
5354 ac_ext=c
5355 ac_cpp='$CPP $CPPFLAGS'
5356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359
5360
5361       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5362 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5363 if ${phobos_cv_abs_srcdir+:} false; then :
5364   $as_echo_n "(cached) " >&6
5365 else
5366   phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5367 fi
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5369 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5370     if test -d "$phobos_cv_abs_srcdir"; then :
5371
5372 else
5373   as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5374 fi
5375
5376
5377
5378
5379   gdc_save_DFLAGS=$GDCFLAGS
5380   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
5381
5382   ac_ext=d
5383 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5384 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=yes
5386
5387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5388 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5389     cat > conftest.$ac_ext <<_ACEOF
5390 module mod;
5391
5392
5393 extern(C) int main() {
5394   return 0;
5395 }
5396 _ACEOF
5397 if ac_fn_d_try_compile "$LINENO"; then :
5398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5399 $as_echo "yes" >&6; }
5400 else
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 $as_echo "no" >&6; }
5403        as_fn_error $? "can't compile D sources!" "$LINENO" 5
5404 fi
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5406   ac_ext=c
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5411
5412
5413   GDCFLAGS=$gdc_save_DFLAGS
5414
5415
5416
5417
5418
5419
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5421 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5422     # Check whether --enable-maintainer-mode was given.
5423 if test "${enable_maintainer_mode+set}" = set; then :
5424   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5425 else
5426   USE_MAINTAINER_MODE=no
5427 fi
5428
5429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5430 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5431    if test $USE_MAINTAINER_MODE = yes; then
5432   MAINTAINER_MODE_TRUE=
5433   MAINTAINER_MODE_FALSE='#'
5434 else
5435   MAINTAINER_MODE_TRUE='#'
5436   MAINTAINER_MODE_FALSE=
5437 fi
5438
5439   MAINT=$MAINTAINER_MODE_TRUE
5440
5441
5442 if test -n "$ac_tool_prefix"; then
5443   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5444 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if ${ac_cv_prog_RANLIB+:} false; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450   if test -n "$RANLIB"; then
5451   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5452 else
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5455 do
5456   IFS=$as_save_IFS
5457   test -z "$as_dir" && as_dir=.
5458     for ac_exec_ext in '' $ac_executable_extensions; do
5459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5460     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462     break 2
5463   fi
5464 done
5465   done
5466 IFS=$as_save_IFS
5467
5468 fi
5469 fi
5470 RANLIB=$ac_cv_prog_RANLIB
5471 if test -n "$RANLIB"; then
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5473 $as_echo "$RANLIB" >&6; }
5474 else
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5477 fi
5478
5479
5480 fi
5481 if test -z "$ac_cv_prog_RANLIB"; then
5482   ac_ct_RANLIB=$RANLIB
5483   # Extract the first word of "ranlib", so it can be a program name with args.
5484 set dummy ranlib; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5488   $as_echo_n "(cached) " >&6
5489 else
5490   if test -n "$ac_ct_RANLIB"; then
5491   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498     for ac_exec_ext in '' $ac_executable_extensions; do
5499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500     ac_cv_prog_ac_ct_RANLIB="ranlib"
5501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502     break 2
5503   fi
5504 done
5505   done
5506 IFS=$as_save_IFS
5507
5508 fi
5509 fi
5510 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5511 if test -n "$ac_ct_RANLIB"; then
5512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5513 $as_echo "$ac_ct_RANLIB" >&6; }
5514 else
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5517 fi
5518
5519   if test "x$ac_ct_RANLIB" = x; then
5520     RANLIB=":"
5521   else
5522     case $cross_compiling:$ac_tool_warned in
5523 yes:)
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526 ac_tool_warned=yes ;;
5527 esac
5528     RANLIB=$ac_ct_RANLIB
5529   fi
5530 else
5531   RANLIB="$ac_cv_prog_RANLIB"
5532 fi
5533
5534
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5536 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5537 set x ${MAKE-make}
5538 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5539 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5540   $as_echo_n "(cached) " >&6
5541 else
5542   cat >conftest.make <<\_ACEOF
5543 SHELL = /bin/sh
5544 all:
5545         @echo '@@@%%%=$(MAKE)=@@@%%%'
5546 _ACEOF
5547 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5548 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5549   *@@@%%%=?*=@@@%%%*)
5550     eval ac_cv_prog_make_${ac_make}_set=yes;;
5551   *)
5552     eval ac_cv_prog_make_${ac_make}_set=no;;
5553 esac
5554 rm -f conftest.make
5555 fi
5556 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5558 $as_echo "yes" >&6; }
5559   SET_MAKE=
5560 else
5561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5562 $as_echo "no" >&6; }
5563   SET_MAKE="MAKE=${MAKE-make}"
5564 fi
5565
5566
5567 # Add CET specific flags if CET is enabled
5568  # Check whether --enable-cet was given.
5569 if test "${enable_cet+set}" = set; then :
5570   enableval=$enable_cet;
5571       case "$enableval" in
5572        yes|no|auto) ;;
5573        *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5574                           esac
5575
5576 else
5577   enable_cet=auto
5578 fi
5579
5580
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5582 $as_echo_n "checking for CET support... " >&6; }
5583
5584 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
5585 case "$host" in
5586   i[34567]86-*-linux* | x86_64-*-linux*)
5587     case "$enable_cet" in
5588       auto)
5589         # Check if target supports multi-byte NOPs
5590         # and if compiler and assembler support CET insn.
5591         cet_save_CFLAGS="$CFLAGS"
5592         CFLAGS="$CFLAGS -fcf-protection"
5593         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h.  */
5595
5596 int
5597 main ()
5598 {
5599
5600 #if !defined(__SSE2__)
5601 #error target does not support multi-byte NOPs
5602 #else
5603 asm ("setssbsy");
5604 #endif
5605
5606   ;
5607   return 0;
5608 }
5609 _ACEOF
5610 if ac_fn_c_try_compile "$LINENO"; then :
5611   enable_cet=yes
5612 else
5613   enable_cet=no
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616         CFLAGS="$cet_save_CFLAGS"
5617         ;;
5618       yes)
5619         # Check if assembler supports CET.
5620         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h.  */
5622
5623 int
5624 main ()
5625 {
5626 asm ("setssbsy");
5627   ;
5628   return 0;
5629 }
5630 _ACEOF
5631 if ac_fn_c_try_compile "$LINENO"; then :
5632
5633 else
5634   as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
5635 fi
5636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5637         ;;
5638     esac
5639     ;;
5640   *)
5641     enable_cet=no
5642     ;;
5643 esac
5644 if test x$enable_cet = xyes; then
5645   CET_FLAGS="-fcf-protection -mshstk"
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5647 $as_echo "yes" >&6; }
5648 else
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652
5653
5654 # To ensure that runtime code for CET is compiled in, add in D version flags.
5655 if test "$enable_cet" = yes; then
5656   CET_DFLAGS="$CET_FLAGS -fversion=CET"
5657
5658 fi
5659
5660 # This should be inherited in the recursive make, but ensure it is defined.
5661 test "$AR" || AR=ar
5662
5663
5664 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5665
5666
5667
5668 # Enable libtool
5669 case `pwd` in
5670   *\ * | *\     *)
5671     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5672 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5673 esac
5674
5675
5676
5677 macro_version='2.2.7a'
5678 macro_revision='1.3134'
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 ltmain="$ac_aux_dir/ltmain.sh"
5693
5694 # Backslashify metacharacters that are still active within
5695 # double-quoted strings.
5696 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5697
5698 # Same as above, but do not quote variable references.
5699 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5700
5701 # Sed substitution to delay expansion of an escaped shell variable in a
5702 # double_quote_subst'ed string.
5703 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5704
5705 # Sed substitution to delay expansion of an escaped single quote.
5706 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5707
5708 # Sed substitution to avoid accidental globbing in evaled expressions
5709 no_glob_subst='s/\*/\\\*/g'
5710
5711 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5712 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5713 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5714
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5716 $as_echo_n "checking how to print strings... " >&6; }
5717 # Test print first, because it will be a builtin if present.
5718 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5719    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5720   ECHO='print -r --'
5721 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5722   ECHO='printf %s\n'
5723 else
5724   # Use this function as a fallback that always works.
5725   func_fallback_echo ()
5726   {
5727     eval 'cat <<_LTECHO_EOF
5728 $1
5729 _LTECHO_EOF'
5730   }
5731   ECHO='func_fallback_echo'
5732 fi
5733
5734 # func_echo_all arg...
5735 # Invoke $ECHO with all args, space-separated.
5736 func_echo_all ()
5737 {
5738     $ECHO ""
5739 }
5740
5741 case "$ECHO" in
5742   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5743 $as_echo "printf" >&6; } ;;
5744   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5745 $as_echo "print -r" >&6; } ;;
5746   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5747 $as_echo "cat" >&6; } ;;
5748 esac
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5764 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5765 if ${ac_cv_path_SED+:} false; then :
5766   $as_echo_n "(cached) " >&6
5767 else
5768             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5769      for ac_i in 1 2 3 4 5 6 7; do
5770        ac_script="$ac_script$as_nl$ac_script"
5771      done
5772      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5773      { ac_script=; unset ac_script;}
5774      if test -z "$SED"; then
5775   ac_path_SED_found=false
5776   # Loop through the user's path and test for each of PROGNAME-LIST
5777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782     for ac_prog in sed gsed; do
5783     for ac_exec_ext in '' $ac_executable_extensions; do
5784       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5785       as_fn_executable_p "$ac_path_SED" || continue
5786 # Check for GNU ac_path_SED and select it if it is found.
5787   # Check for GNU $ac_path_SED
5788 case `"$ac_path_SED" --version 2>&1` in
5789 *GNU*)
5790   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5791 *)
5792   ac_count=0
5793   $as_echo_n 0123456789 >"conftest.in"
5794   while :
5795   do
5796     cat "conftest.in" "conftest.in" >"conftest.tmp"
5797     mv "conftest.tmp" "conftest.in"
5798     cp "conftest.in" "conftest.nl"
5799     $as_echo '' >> "conftest.nl"
5800     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5801     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5802     as_fn_arith $ac_count + 1 && ac_count=$as_val
5803     if test $ac_count -gt ${ac_path_SED_max-0}; then
5804       # Best one so far, save it but keep looking for a better one
5805       ac_cv_path_SED="$ac_path_SED"
5806       ac_path_SED_max=$ac_count
5807     fi
5808     # 10*(2^10) chars as input seems more than enough
5809     test $ac_count -gt 10 && break
5810   done
5811   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5812 esac
5813
5814       $ac_path_SED_found && break 3
5815     done
5816   done
5817   done
5818 IFS=$as_save_IFS
5819   if test -z "$ac_cv_path_SED"; then
5820     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5821   fi
5822 else
5823   ac_cv_path_SED=$SED
5824 fi
5825
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5828 $as_echo "$ac_cv_path_SED" >&6; }
5829  SED="$ac_cv_path_SED"
5830   rm -f conftest.sed
5831
5832 test -z "$SED" && SED=sed
5833 Xsed="$SED -e 1s/^X//"
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5846 $as_echo_n "checking for fgrep... " >&6; }
5847 if ${ac_cv_path_FGREP+:} false; then :
5848   $as_echo_n "(cached) " >&6
5849 else
5850   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5851    then ac_cv_path_FGREP="$GREP -F"
5852    else
5853      if test -z "$FGREP"; then
5854   ac_path_FGREP_found=false
5855   # Loop through the user's path and test for each of PROGNAME-LIST
5856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861     for ac_prog in fgrep; do
5862     for ac_exec_ext in '' $ac_executable_extensions; do
5863       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5864       as_fn_executable_p "$ac_path_FGREP" || continue
5865 # Check for GNU ac_path_FGREP and select it if it is found.
5866   # Check for GNU $ac_path_FGREP
5867 case `"$ac_path_FGREP" --version 2>&1` in
5868 *GNU*)
5869   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5870 *)
5871   ac_count=0
5872   $as_echo_n 0123456789 >"conftest.in"
5873   while :
5874   do
5875     cat "conftest.in" "conftest.in" >"conftest.tmp"
5876     mv "conftest.tmp" "conftest.in"
5877     cp "conftest.in" "conftest.nl"
5878     $as_echo 'FGREP' >> "conftest.nl"
5879     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5880     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5881     as_fn_arith $ac_count + 1 && ac_count=$as_val
5882     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5883       # Best one so far, save it but keep looking for a better one
5884       ac_cv_path_FGREP="$ac_path_FGREP"
5885       ac_path_FGREP_max=$ac_count
5886     fi
5887     # 10*(2^10) chars as input seems more than enough
5888     test $ac_count -gt 10 && break
5889   done
5890   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5891 esac
5892
5893       $ac_path_FGREP_found && break 3
5894     done
5895   done
5896   done
5897 IFS=$as_save_IFS
5898   if test -z "$ac_cv_path_FGREP"; then
5899     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5900   fi
5901 else
5902   ac_cv_path_FGREP=$FGREP
5903 fi
5904
5905    fi
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5908 $as_echo "$ac_cv_path_FGREP" >&6; }
5909  FGREP="$ac_cv_path_FGREP"
5910
5911
5912 test -z "$GREP" && GREP=grep
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932 # Check whether --with-gnu-ld was given.
5933 if test "${with_gnu_ld+set}" = set; then :
5934   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5935 else
5936   with_gnu_ld=no
5937 fi
5938
5939 ac_prog=ld
5940 if test "$GCC" = yes; then
5941   # Check if gcc -print-prog-name=ld gives a path.
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5943 $as_echo_n "checking for ld used by $CC... " >&6; }
5944   case $host in
5945   *-*-mingw*)
5946     # gcc leaves a trailing carriage return which upsets mingw
5947     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5948   *)
5949     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5950   esac
5951   case $ac_prog in
5952     # Accept absolute paths.
5953     [\\/]* | ?:[\\/]*)
5954       re_direlt='/[^/][^/]*/\.\./'
5955       # Canonicalize the pathname of ld
5956       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5957       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5958         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5959       done
5960       test -z "$LD" && LD="$ac_prog"
5961       ;;
5962   "")
5963     # If it fails, then pretend we aren't using GCC.
5964     ac_prog=ld
5965     ;;
5966   *)
5967     # If it is relative, then search for the first ld in PATH.
5968     with_gnu_ld=unknown
5969     ;;
5970   esac
5971 elif test "$with_gnu_ld" = yes; then
5972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5973 $as_echo_n "checking for GNU ld... " >&6; }
5974 else
5975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5976 $as_echo_n "checking for non-GNU ld... " >&6; }
5977 fi
5978 if ${lt_cv_path_LD+:} false; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981   if test -z "$LD"; then
5982   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5983   for ac_dir in $PATH; do
5984     IFS="$lt_save_ifs"
5985     test -z "$ac_dir" && ac_dir=.
5986     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5987       lt_cv_path_LD="$ac_dir/$ac_prog"
5988       # Check to see if the program is GNU ld.  I'd rather use --version,
5989       # but apparently some variants of GNU ld only accept -v.
5990       # Break only if it was the GNU/non-GNU ld that we prefer.
5991       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5992       *GNU* | *'with BFD'*)
5993         test "$with_gnu_ld" != no && break
5994         ;;
5995       *)
5996         test "$with_gnu_ld" != yes && break
5997         ;;
5998       esac
5999     fi
6000   done
6001   IFS="$lt_save_ifs"
6002 else
6003   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6004 fi
6005 fi
6006
6007 LD="$lt_cv_path_LD"
6008 if test -n "$LD"; then
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6010 $as_echo "$LD" >&6; }
6011 else
6012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6013 $as_echo "no" >&6; }
6014 fi
6015 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6017 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6018 if ${lt_cv_prog_gnu_ld+:} false; then :
6019   $as_echo_n "(cached) " >&6
6020 else
6021   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6022 case `$LD -v 2>&1 </dev/null` in
6023 *GNU* | *'with BFD'*)
6024   lt_cv_prog_gnu_ld=yes
6025   ;;
6026 *)
6027   lt_cv_prog_gnu_ld=no
6028   ;;
6029 esac
6030 fi
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6032 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6033 with_gnu_ld=$lt_cv_prog_gnu_ld
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6044 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6045 if ${lt_cv_path_NM+:} false; then :
6046   $as_echo_n "(cached) " >&6
6047 else
6048   if test -n "$NM"; then
6049   # Let the user override the test.
6050   lt_cv_path_NM="$NM"
6051 else
6052   lt_nm_to_check="${ac_tool_prefix}nm"
6053   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6054     lt_nm_to_check="$lt_nm_to_check nm"
6055   fi
6056   for lt_tmp_nm in $lt_nm_to_check; do
6057     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6058     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6059       IFS="$lt_save_ifs"
6060       test -z "$ac_dir" && ac_dir=.
6061       tmp_nm="$ac_dir/$lt_tmp_nm"
6062       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6063         # Check to see if the nm accepts a BSD-compat flag.
6064         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6065         #   nm: unknown option "B" ignored
6066         # Tru64's nm complains that /dev/null is an invalid object file
6067         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6068         */dev/null* | *'Invalid file or object type'*)
6069           lt_cv_path_NM="$tmp_nm -B"
6070           break
6071           ;;
6072         *)
6073           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6074           */dev/null*)
6075             lt_cv_path_NM="$tmp_nm -p"
6076             break
6077             ;;
6078           *)
6079             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6080             continue # so that we can try to find one that supports BSD flags
6081             ;;
6082           esac
6083           ;;
6084         esac
6085       fi
6086     done
6087     IFS="$lt_save_ifs"
6088   done
6089   : ${lt_cv_path_NM=no}
6090 fi
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6093 $as_echo "$lt_cv_path_NM" >&6; }
6094 if test "$lt_cv_path_NM" != "no"; then
6095   NM="$lt_cv_path_NM"
6096 else
6097   # Didn't find any BSD compatible name lister, look for dumpbin.
6098   if test -n "$DUMPBIN"; then :
6099     # Let the user override the test.
6100   else
6101     if test -n "$ac_tool_prefix"; then
6102   for ac_prog in dumpbin "link -dump"
6103   do
6104     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6105 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_DUMPBIN+:} false; then :
6109   $as_echo_n "(cached) " >&6
6110 else
6111   if test -n "$DUMPBIN"; then
6112   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119     for ac_exec_ext in '' $ac_executable_extensions; do
6120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126   done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 DUMPBIN=$ac_cv_prog_DUMPBIN
6132 if test -n "$DUMPBIN"; then
6133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6134 $as_echo "$DUMPBIN" >&6; }
6135 else
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140
6141     test -n "$DUMPBIN" && break
6142   done
6143 fi
6144 if test -z "$DUMPBIN"; then
6145   ac_ct_DUMPBIN=$DUMPBIN
6146   for ac_prog in dumpbin "link -dump"
6147 do
6148   # Extract the first word of "$ac_prog", so it can be a program name with args.
6149 set dummy $ac_prog; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6153   $as_echo_n "(cached) " >&6
6154 else
6155   if test -n "$ac_ct_DUMPBIN"; then
6156   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6157 else
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163     for ac_exec_ext in '' $ac_executable_extensions; do
6164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170   done
6171 IFS=$as_save_IFS
6172
6173 fi
6174 fi
6175 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6176 if test -n "$ac_ct_DUMPBIN"; then
6177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6178 $as_echo "$ac_ct_DUMPBIN" >&6; }
6179 else
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6182 fi
6183
6184
6185   test -n "$ac_ct_DUMPBIN" && break
6186 done
6187
6188   if test "x$ac_ct_DUMPBIN" = x; then
6189     DUMPBIN=":"
6190   else
6191     case $cross_compiling:$ac_tool_warned in
6192 yes:)
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6195 ac_tool_warned=yes ;;
6196 esac
6197     DUMPBIN=$ac_ct_DUMPBIN
6198   fi
6199 fi
6200
6201     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6202     *COFF*)
6203       DUMPBIN="$DUMPBIN -symbols"
6204       ;;
6205     *)
6206       DUMPBIN=:
6207       ;;
6208     esac
6209   fi
6210
6211   if test "$DUMPBIN" != ":"; then
6212     NM="$DUMPBIN"
6213   fi
6214 fi
6215 test -z "$NM" && NM=nm
6216
6217
6218
6219
6220
6221
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6223 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6224 if ${lt_cv_nm_interface+:} false; then :
6225   $as_echo_n "(cached) " >&6
6226 else
6227   lt_cv_nm_interface="BSD nm"
6228   echo "int some_variable = 0;" > conftest.$ac_ext
6229   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6230   (eval "$ac_compile" 2>conftest.err)
6231   cat conftest.err >&5
6232   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6233   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6234   cat conftest.err >&5
6235   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6236   cat conftest.out >&5
6237   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6238     lt_cv_nm_interface="MS dumpbin"
6239   fi
6240   rm -f conftest*
6241 fi
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6243 $as_echo "$lt_cv_nm_interface" >&6; }
6244
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6246 $as_echo_n "checking whether ln -s works... " >&6; }
6247 LN_S=$as_ln_s
6248 if test "$LN_S" = "ln -s"; then
6249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6250 $as_echo "yes" >&6; }
6251 else
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6253 $as_echo "no, using $LN_S" >&6; }
6254 fi
6255
6256 # find the maximum length of command line arguments
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6258 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6259 if ${lt_cv_sys_max_cmd_len+:} false; then :
6260   $as_echo_n "(cached) " >&6
6261 else
6262     i=0
6263   teststring="ABCD"
6264
6265   case $build_os in
6266   msdosdjgpp*)
6267     # On DJGPP, this test can blow up pretty badly due to problems in libc
6268     # (any single argument exceeding 2000 bytes causes a buffer overrun
6269     # during glob expansion).  Even if it were fixed, the result of this
6270     # check would be larger than it should be.
6271     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6272     ;;
6273
6274   gnu*)
6275     # Under GNU Hurd, this test is not required because there is
6276     # no limit to the length of command line arguments.
6277     # Libtool will interpret -1 as no limit whatsoever
6278     lt_cv_sys_max_cmd_len=-1;
6279     ;;
6280
6281   cygwin* | mingw* | cegcc*)
6282     # On Win9x/ME, this test blows up -- it succeeds, but takes
6283     # about 5 minutes as the teststring grows exponentially.
6284     # Worse, since 9x/ME are not pre-emptively multitasking,
6285     # you end up with a "frozen" computer, even though with patience
6286     # the test eventually succeeds (with a max line length of 256k).
6287     # Instead, let's just punt: use the minimum linelength reported by
6288     # all of the supported platforms: 8192 (on NT/2K/XP).
6289     lt_cv_sys_max_cmd_len=8192;
6290     ;;
6291
6292   mint*)
6293     # On MiNT this can take a long time and run out of memory.
6294     lt_cv_sys_max_cmd_len=8192;
6295     ;;
6296
6297   amigaos*)
6298     # On AmigaOS with pdksh, this test takes hours, literally.
6299     # So we just punt and use a minimum line length of 8192.
6300     lt_cv_sys_max_cmd_len=8192;
6301     ;;
6302
6303   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6304     # This has been around since 386BSD, at least.  Likely further.
6305     if test -x /sbin/sysctl; then
6306       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6307     elif test -x /usr/sbin/sysctl; then
6308       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6309     else
6310       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6311     fi
6312     # And add a safety zone
6313     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6314     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6315     ;;
6316
6317   interix*)
6318     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6319     lt_cv_sys_max_cmd_len=196608
6320     ;;
6321
6322   osf*)
6323     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6324     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6325     # nice to cause kernel panics so lets avoid the loop below.
6326     # First set a reasonable default.
6327     lt_cv_sys_max_cmd_len=16384
6328     #
6329     if test -x /sbin/sysconfig; then
6330       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6331         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6332       esac
6333     fi
6334     ;;
6335   sco3.2v5*)
6336     lt_cv_sys_max_cmd_len=102400
6337     ;;
6338   sysv5* | sco5v6* | sysv4.2uw2*)
6339     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6340     if test -n "$kargmax"; then
6341       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6342     else
6343       lt_cv_sys_max_cmd_len=32768
6344     fi
6345     ;;
6346   *)
6347     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6348     if test -n "$lt_cv_sys_max_cmd_len"; then
6349       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6350       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6351     else
6352       # Make teststring a little bigger before we do anything with it.
6353       # a 1K string should be a reasonable start.
6354       for i in 1 2 3 4 5 6 7 8 ; do
6355         teststring=$teststring$teststring
6356       done
6357       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6358       # If test is not a shell built-in, we'll probably end up computing a
6359       # maximum length that is only half of the actual maximum length, but
6360       # we can't tell.
6361       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6362                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6363               test $i != 17 # 1/2 MB should be enough
6364       do
6365         i=`expr $i + 1`
6366         teststring=$teststring$teststring
6367       done
6368       # Only check the string length outside the loop.
6369       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6370       teststring=
6371       # Add a significant safety factor because C++ compilers can tack on
6372       # massive amounts of additional arguments before passing them to the
6373       # linker.  It appears as though 1/2 is a usable value.
6374       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6375     fi
6376     ;;
6377   esac
6378
6379 fi
6380
6381 if test -n $lt_cv_sys_max_cmd_len ; then
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6383 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6384 else
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6386 $as_echo "none" >&6; }
6387 fi
6388 max_cmd_len=$lt_cv_sys_max_cmd_len
6389
6390
6391
6392
6393
6394
6395 : ${CP="cp -f"}
6396 : ${MV="mv -f"}
6397 : ${RM="rm -f"}
6398
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6400 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6401 # Try some XSI features
6402 xsi_shell=no
6403 ( _lt_dummy="a/b/c"
6404   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6405       = c,a/b,, \
6406     && eval 'test $(( 1 + 1 )) -eq 2 \
6407     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6408   && xsi_shell=yes
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6410 $as_echo "$xsi_shell" >&6; }
6411
6412
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6414 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6415 lt_shell_append=no
6416 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6417     >/dev/null 2>&1 \
6418   && lt_shell_append=yes
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6420 $as_echo "$lt_shell_append" >&6; }
6421
6422
6423 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6424   lt_unset=unset
6425 else
6426   lt_unset=false
6427 fi
6428
6429
6430
6431
6432
6433 # test EBCDIC or ASCII
6434 case `echo X|tr X '\101'` in
6435  A) # ASCII based system
6436     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6437   lt_SP2NL='tr \040 \012'
6438   lt_NL2SP='tr \015\012 \040\040'
6439   ;;
6440  *) # EBCDIC based system
6441   lt_SP2NL='tr \100 \n'
6442   lt_NL2SP='tr \r\n \100\100'
6443   ;;
6444 esac
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6455 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6456 if ${lt_cv_ld_reload_flag+:} false; then :
6457   $as_echo_n "(cached) " >&6
6458 else
6459   lt_cv_ld_reload_flag='-r'
6460 fi
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6462 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6463 reload_flag=$lt_cv_ld_reload_flag
6464 case $reload_flag in
6465 "" | " "*) ;;
6466 *) reload_flag=" $reload_flag" ;;
6467 esac
6468 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6469 case $host_os in
6470   darwin*)
6471     if test "$GCC" = yes; then
6472       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6473     else
6474       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6475     fi
6476     ;;
6477 esac
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487 if test -n "$ac_tool_prefix"; then
6488   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6489 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_OBJDUMP+:} false; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   if test -n "$OBJDUMP"; then
6496   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503     for ac_exec_ext in '' $ac_executable_extensions; do
6504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510   done
6511 IFS=$as_save_IFS
6512
6513 fi
6514 fi
6515 OBJDUMP=$ac_cv_prog_OBJDUMP
6516 if test -n "$OBJDUMP"; then
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6518 $as_echo "$OBJDUMP" >&6; }
6519 else
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523
6524
6525 fi
6526 if test -z "$ac_cv_prog_OBJDUMP"; then
6527   ac_ct_OBJDUMP=$OBJDUMP
6528   # Extract the first word of "objdump", so it can be a program name with args.
6529 set dummy objdump; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6533   $as_echo_n "(cached) " >&6
6534 else
6535   if test -n "$ac_ct_OBJDUMP"; then
6536   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541   IFS=$as_save_IFS
6542   test -z "$as_dir" && as_dir=.
6543     for ac_exec_ext in '' $ac_executable_extensions; do
6544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6545     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547     break 2
6548   fi
6549 done
6550   done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6556 if test -n "$ac_ct_OBJDUMP"; then
6557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6558 $as_echo "$ac_ct_OBJDUMP" >&6; }
6559 else
6560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563
6564   if test "x$ac_ct_OBJDUMP" = x; then
6565     OBJDUMP="false"
6566   else
6567     case $cross_compiling:$ac_tool_warned in
6568 yes:)
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6571 ac_tool_warned=yes ;;
6572 esac
6573     OBJDUMP=$ac_ct_OBJDUMP
6574   fi
6575 else
6576   OBJDUMP="$ac_cv_prog_OBJDUMP"
6577 fi
6578
6579 test -z "$OBJDUMP" && OBJDUMP=objdump
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6590 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6591 if ${lt_cv_deplibs_check_method+:} false; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   lt_cv_file_magic_cmd='$MAGIC_CMD'
6595 lt_cv_file_magic_test_file=
6596 lt_cv_deplibs_check_method='unknown'
6597 # Need to set the preceding variable on all platforms that support
6598 # interlibrary dependencies.
6599 # 'none' -- dependencies not supported.
6600 # `unknown' -- same as none, but documents that we really don't know.
6601 # 'pass_all' -- all dependencies passed with no checks.
6602 # 'test_compile' -- check by making test program.
6603 # 'file_magic [[regex]]' -- check by looking for files in library path
6604 # which responds to the $file_magic_cmd with a given extended regex.
6605 # If you have `file' or equivalent on your system and you're not sure
6606 # whether `pass_all' will *always* work, you probably want this one.
6607
6608 case $host_os in
6609 aix[4-9]*)
6610   lt_cv_deplibs_check_method=pass_all
6611   ;;
6612
6613 beos*)
6614   lt_cv_deplibs_check_method=pass_all
6615   ;;
6616
6617 bsdi[45]*)
6618   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6619   lt_cv_file_magic_cmd='/usr/bin/file -L'
6620   lt_cv_file_magic_test_file=/shlib/libc.so
6621   ;;
6622
6623 cygwin*)
6624   # func_win32_libid is a shell function defined in ltmain.sh
6625   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6626   lt_cv_file_magic_cmd='func_win32_libid'
6627   ;;
6628
6629 mingw* | pw32*)
6630   # Base MSYS/MinGW do not provide the 'file' command needed by
6631   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6632   # unless we find 'file', for example because we are cross-compiling.
6633   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6634   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6635     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6636     lt_cv_file_magic_cmd='func_win32_libid'
6637   else
6638     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6639     lt_cv_file_magic_cmd='$OBJDUMP -f'
6640   fi
6641   ;;
6642
6643 cegcc*)
6644   # use the weaker test based on 'objdump'. See mingw*.
6645   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6646   lt_cv_file_magic_cmd='$OBJDUMP -f'
6647   ;;
6648
6649 darwin* | rhapsody*)
6650   lt_cv_deplibs_check_method=pass_all
6651   ;;
6652
6653 freebsd* | dragonfly*)
6654   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6655     case $host_cpu in
6656     i*86 )
6657       # Not sure whether the presence of OpenBSD here was a mistake.
6658       # Let's accept both of them until this is cleared up.
6659       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6660       lt_cv_file_magic_cmd=/usr/bin/file
6661       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6662       ;;
6663     esac
6664   else
6665     lt_cv_deplibs_check_method=pass_all
6666   fi
6667   ;;
6668
6669 gnu*)
6670   lt_cv_deplibs_check_method=pass_all
6671   ;;
6672
6673 haiku*)
6674   lt_cv_deplibs_check_method=pass_all
6675   ;;
6676
6677 hpux10.20* | hpux11*)
6678   lt_cv_file_magic_cmd=/usr/bin/file
6679   case $host_cpu in
6680   ia64*)
6681     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6682     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6683     ;;
6684   hppa*64*)
6685     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]'
6686     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6687     ;;
6688   *)
6689     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6690     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6691     ;;
6692   esac
6693   ;;
6694
6695 interix[3-9]*)
6696   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6697   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6698   ;;
6699
6700 irix5* | irix6* | nonstopux*)
6701   case $LD in
6702   *-32|*"-32 ") libmagic=32-bit;;
6703   *-n32|*"-n32 ") libmagic=N32;;
6704   *-64|*"-64 ") libmagic=64-bit;;
6705   *) libmagic=never-match;;
6706   esac
6707   lt_cv_deplibs_check_method=pass_all
6708   ;;
6709
6710 # This must be Linux ELF.
6711 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6712   lt_cv_deplibs_check_method=pass_all
6713   ;;
6714
6715 netbsd*)
6716   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6717     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6718   else
6719     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6720   fi
6721   ;;
6722
6723 newos6*)
6724   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6725   lt_cv_file_magic_cmd=/usr/bin/file
6726   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6727   ;;
6728
6729 *nto* | *qnx*)
6730   lt_cv_deplibs_check_method=pass_all
6731   ;;
6732
6733 openbsd*)
6734   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6735     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6736   else
6737     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6738   fi
6739   ;;
6740
6741 osf3* | osf4* | osf5*)
6742   lt_cv_deplibs_check_method=pass_all
6743   ;;
6744
6745 rdos*)
6746   lt_cv_deplibs_check_method=pass_all
6747   ;;
6748
6749 solaris*)
6750   lt_cv_deplibs_check_method=pass_all
6751   ;;
6752
6753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6754   lt_cv_deplibs_check_method=pass_all
6755   ;;
6756
6757 sysv4 | sysv4.3*)
6758   case $host_vendor in
6759   motorola)
6760     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]'
6761     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6762     ;;
6763   ncr)
6764     lt_cv_deplibs_check_method=pass_all
6765     ;;
6766   sequent)
6767     lt_cv_file_magic_cmd='/bin/file'
6768     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6769     ;;
6770   sni)
6771     lt_cv_file_magic_cmd='/bin/file'
6772     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6773     lt_cv_file_magic_test_file=/lib/libc.so
6774     ;;
6775   siemens)
6776     lt_cv_deplibs_check_method=pass_all
6777     ;;
6778   pc)
6779     lt_cv_deplibs_check_method=pass_all
6780     ;;
6781   esac
6782   ;;
6783
6784 tpf*)
6785   lt_cv_deplibs_check_method=pass_all
6786   ;;
6787 esac
6788
6789 fi
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6791 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6792 file_magic_cmd=$lt_cv_file_magic_cmd
6793 deplibs_check_method=$lt_cv_deplibs_check_method
6794 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807 if test -n "$ac_tool_prefix"; then
6808   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6809 set dummy ${ac_tool_prefix}ar; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_AR+:} false; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   if test -n "$AR"; then
6816   ac_cv_prog_AR="$AR" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6820 do
6821   IFS=$as_save_IFS
6822   test -z "$as_dir" && as_dir=.
6823     for ac_exec_ext in '' $ac_executable_extensions; do
6824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825     ac_cv_prog_AR="${ac_tool_prefix}ar"
6826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830   done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 AR=$ac_cv_prog_AR
6836 if test -n "$AR"; then
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6838 $as_echo "$AR" >&6; }
6839 else
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6842 fi
6843
6844
6845 fi
6846 if test -z "$ac_cv_prog_AR"; then
6847   ac_ct_AR=$AR
6848   # Extract the first word of "ar", so it can be a program name with args.
6849 set dummy ar; ac_word=$2
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 $as_echo_n "checking for $ac_word... " >&6; }
6852 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6853   $as_echo_n "(cached) " >&6
6854 else
6855   if test -n "$ac_ct_AR"; then
6856   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6857 else
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859 for as_dir in $PATH
6860 do
6861   IFS=$as_save_IFS
6862   test -z "$as_dir" && as_dir=.
6863     for ac_exec_ext in '' $ac_executable_extensions; do
6864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6865     ac_cv_prog_ac_ct_AR="ar"
6866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6867     break 2
6868   fi
6869 done
6870   done
6871 IFS=$as_save_IFS
6872
6873 fi
6874 fi
6875 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6876 if test -n "$ac_ct_AR"; then
6877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6878 $as_echo "$ac_ct_AR" >&6; }
6879 else
6880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 $as_echo "no" >&6; }
6882 fi
6883
6884   if test "x$ac_ct_AR" = x; then
6885     AR="false"
6886   else
6887     case $cross_compiling:$ac_tool_warned in
6888 yes:)
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6891 ac_tool_warned=yes ;;
6892 esac
6893     AR=$ac_ct_AR
6894   fi
6895 else
6896   AR="$ac_cv_prog_AR"
6897 fi
6898
6899 test -z "$AR" && AR=ar
6900 test -z "$AR_FLAGS" && AR_FLAGS=cru
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912 if test -n "$ac_tool_prefix"; then
6913   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}strip; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_STRIP+:} false; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   if test -n "$STRIP"; then
6921   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928     for ac_exec_ext in '' $ac_executable_extensions; do
6929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935   done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 STRIP=$ac_cv_prog_STRIP
6941 if test -n "$STRIP"; then
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6943 $as_echo "$STRIP" >&6; }
6944 else
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_STRIP"; then
6952   ac_ct_STRIP=$STRIP
6953   # Extract the first word of "strip", so it can be a program name with args.
6954 set dummy strip; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6958   $as_echo_n "(cached) " >&6
6959 else
6960   if test -n "$ac_ct_STRIP"; then
6961   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966   IFS=$as_save_IFS
6967   test -z "$as_dir" && as_dir=.
6968     for ac_exec_ext in '' $ac_executable_extensions; do
6969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970     ac_cv_prog_ac_ct_STRIP="strip"
6971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972     break 2
6973   fi
6974 done
6975   done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6981 if test -n "$ac_ct_STRIP"; then
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6983 $as_echo "$ac_ct_STRIP" >&6; }
6984 else
6985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989   if test "x$ac_ct_STRIP" = x; then
6990     STRIP=":"
6991   else
6992     case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998     STRIP=$ac_ct_STRIP
6999   fi
7000 else
7001   STRIP="$ac_cv_prog_STRIP"
7002 fi
7003
7004 test -z "$STRIP" && STRIP=:
7005
7006
7007
7008
7009
7010
7011 if test -n "$ac_tool_prefix"; then
7012   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if ${ac_cv_prog_RANLIB+:} false; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   if test -n "$RANLIB"; then
7020   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025   IFS=$as_save_IFS
7026   test -z "$as_dir" && as_dir=.
7027     for ac_exec_ext in '' $ac_executable_extensions; do
7028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7029     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031     break 2
7032   fi
7033 done
7034   done
7035 IFS=$as_save_IFS
7036
7037 fi
7038 fi
7039 RANLIB=$ac_cv_prog_RANLIB
7040 if test -n "$RANLIB"; then
7041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7042 $as_echo "$RANLIB" >&6; }
7043 else
7044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7047
7048
7049 fi
7050 if test -z "$ac_cv_prog_RANLIB"; then
7051   ac_ct_RANLIB=$RANLIB
7052   # Extract the first word of "ranlib", so it can be a program name with args.
7053 set dummy ranlib; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7057   $as_echo_n "(cached) " >&6
7058 else
7059   if test -n "$ac_ct_RANLIB"; then
7060   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065   IFS=$as_save_IFS
7066   test -z "$as_dir" && as_dir=.
7067     for ac_exec_ext in '' $ac_executable_extensions; do
7068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069     ac_cv_prog_ac_ct_RANLIB="ranlib"
7070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071     break 2
7072   fi
7073 done
7074   done
7075 IFS=$as_save_IFS
7076
7077 fi
7078 fi
7079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7080 if test -n "$ac_ct_RANLIB"; then
7081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7082 $as_echo "$ac_ct_RANLIB" >&6; }
7083 else
7084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7086 fi
7087
7088   if test "x$ac_ct_RANLIB" = x; then
7089     RANLIB=":"
7090   else
7091     case $cross_compiling:$ac_tool_warned in
7092 yes:)
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7095 ac_tool_warned=yes ;;
7096 esac
7097     RANLIB=$ac_ct_RANLIB
7098   fi
7099 else
7100   RANLIB="$ac_cv_prog_RANLIB"
7101 fi
7102
7103 test -z "$RANLIB" && RANLIB=:
7104
7105
7106
7107
7108
7109
7110 # Determine commands to create old-style static archives.
7111 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7112 old_postinstall_cmds='chmod 644 $oldlib'
7113 old_postuninstall_cmds=
7114
7115 if test -n "$RANLIB"; then
7116   case $host_os in
7117   openbsd*)
7118     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7119     ;;
7120   *)
7121     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7122     ;;
7123   esac
7124   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7125 fi
7126
7127 case $host_os in
7128   darwin*)
7129     lock_old_archive_extraction=yes ;;
7130   *)
7131     lock_old_archive_extraction=no ;;
7132 esac
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172 # If no C compiler was specified, use CC.
7173 LTCC=${LTCC-"$CC"}
7174
7175 # If no C compiler flags were specified, use CFLAGS.
7176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7177
7178 # Allow CC to be a program name with arguments.
7179 compiler=$CC
7180
7181
7182 # Check for command to grab the raw symbol name followed by C symbol from nm.
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7184 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7185 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7186   $as_echo_n "(cached) " >&6
7187 else
7188
7189 # These are sane defaults that work on at least a few old systems.
7190 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7191
7192 # Character class describing NM global symbol codes.
7193 symcode='[BCDEGRST]'
7194
7195 # Regexp to match symbols that can be accessed directly from C.
7196 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7197
7198 # Define system-specific variables.
7199 case $host_os in
7200 aix*)
7201   symcode='[BCDT]'
7202   ;;
7203 cygwin* | mingw* | pw32* | cegcc*)
7204   symcode='[ABCDGISTW]'
7205   ;;
7206 hpux*)
7207   if test "$host_cpu" = ia64; then
7208     symcode='[ABCDEGRST]'
7209   fi
7210   ;;
7211 irix* | nonstopux*)
7212   symcode='[BCDEGRST]'
7213   ;;
7214 osf*)
7215   symcode='[BCDEGQRST]'
7216   ;;
7217 solaris*)
7218   symcode='[BDRT]'
7219   ;;
7220 sco3.2v5*)
7221   symcode='[DT]'
7222   ;;
7223 sysv4.2uw2*)
7224   symcode='[DT]'
7225   ;;
7226 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7227   symcode='[ABDT]'
7228   ;;
7229 sysv4)
7230   symcode='[DFNSTU]'
7231   ;;
7232 esac
7233
7234 # If we're using GNU nm, then use its standard symbol codes.
7235 case `$NM -V 2>&1` in
7236 *GNU* | *'with BFD'*)
7237   symcode='[ABCDGIRSTW]' ;;
7238 esac
7239
7240 # Transform an extracted symbol line into a proper C declaration.
7241 # Some systems (esp. on ia64) link data and code symbols differently,
7242 # so use this general approach.
7243 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7244
7245 # Transform an extracted symbol line into symbol name and symbol address
7246 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7247 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'"
7248
7249 # Handle CRLF in mingw tool chain
7250 opt_cr=
7251 case $build_os in
7252 mingw*)
7253   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7254   ;;
7255 esac
7256
7257 # Try without a prefix underscore, then with it.
7258 for ac_symprfx in "" "_"; do
7259
7260   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7261   symxfrm="\\1 $ac_symprfx\\2 \\2"
7262
7263   # Write the raw and C identifiers.
7264   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7265     # Fake it for dumpbin and say T for any non-static function
7266     # and D for any global variable.
7267     # Also find C++ and __fastcall symbols from MSVC++,
7268     # which start with @ or ?.
7269     lt_cv_sys_global_symbol_pipe="$AWK '"\
7270 "     {last_section=section; section=\$ 3};"\
7271 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7272 "     \$ 0!~/External *\|/{next};"\
7273 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7274 "     {if(hide[section]) next};"\
7275 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7276 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7277 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7278 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7279 "     ' prfx=^$ac_symprfx"
7280   else
7281     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7282   fi
7283
7284   # Check to see that the pipe works correctly.
7285   pipe_works=no
7286
7287   rm -f conftest*
7288   cat > conftest.$ac_ext <<_LT_EOF
7289 #ifdef __cplusplus
7290 extern "C" {
7291 #endif
7292 char nm_test_var;
7293 void nm_test_func(void);
7294 void nm_test_func(void){}
7295 #ifdef __cplusplus
7296 }
7297 #endif
7298 int main(){nm_test_var='a';nm_test_func();return(0);}
7299 _LT_EOF
7300
7301   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7302   (eval $ac_compile) 2>&5
7303   ac_status=$?
7304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7305   test $ac_status = 0; }; then
7306     # Now try to grab the symbols.
7307     nlist=conftest.nm
7308     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7309   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7310   ac_status=$?
7311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312   test $ac_status = 0; } && test -s "$nlist"; then
7313       # Try sorting and uniquifying the output.
7314       if sort "$nlist" | uniq > "$nlist"T; then
7315         mv -f "$nlist"T "$nlist"
7316       else
7317         rm -f "$nlist"T
7318       fi
7319
7320       # Make sure that we snagged all the symbols we need.
7321       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7322         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7323           cat <<_LT_EOF > conftest.$ac_ext
7324 #ifdef __cplusplus
7325 extern "C" {
7326 #endif
7327
7328 _LT_EOF
7329           # Now generate the symbol file.
7330           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7331
7332           cat <<_LT_EOF >> conftest.$ac_ext
7333
7334 /* The mapping between symbol names and symbols.  */
7335 const struct {
7336   const char *name;
7337   void       *address;
7338 }
7339 lt__PROGRAM__LTX_preloaded_symbols[] =
7340 {
7341   { "@PROGRAM@", (void *) 0 },
7342 _LT_EOF
7343           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7344           cat <<\_LT_EOF >> conftest.$ac_ext
7345   {0, (void *) 0}
7346 };
7347
7348 /* This works around a problem in FreeBSD linker */
7349 #ifdef FREEBSD_WORKAROUND
7350 static const void *lt_preloaded_setup() {
7351   return lt__PROGRAM__LTX_preloaded_symbols;
7352 }
7353 #endif
7354
7355 #ifdef __cplusplus
7356 }
7357 #endif
7358 _LT_EOF
7359           # Now try linking the two files.
7360           mv conftest.$ac_objext conftstm.$ac_objext
7361           lt_save_LIBS="$LIBS"
7362           lt_save_CFLAGS="$CFLAGS"
7363           LIBS="conftstm.$ac_objext"
7364           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7365           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7366   (eval $ac_link) 2>&5
7367   ac_status=$?
7368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7370             pipe_works=yes
7371           fi
7372           LIBS="$lt_save_LIBS"
7373           CFLAGS="$lt_save_CFLAGS"
7374         else
7375           echo "cannot find nm_test_func in $nlist" >&5
7376         fi
7377       else
7378         echo "cannot find nm_test_var in $nlist" >&5
7379       fi
7380     else
7381       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7382     fi
7383   else
7384     echo "$progname: failed program was:" >&5
7385     cat conftest.$ac_ext >&5
7386   fi
7387   rm -rf conftest* conftst*
7388
7389   # Do not use the global_symbol_pipe unless it works.
7390   if test "$pipe_works" = yes; then
7391     break
7392   else
7393     lt_cv_sys_global_symbol_pipe=
7394   fi
7395 done
7396
7397 fi
7398
7399 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7400   lt_cv_sys_global_symbol_to_cdecl=
7401 fi
7402 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7404 $as_echo "failed" >&6; }
7405 else
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7407 $as_echo "ok" >&6; }
7408 fi
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431 # Check whether --enable-libtool-lock was given.
7432 if test "${enable_libtool_lock+set}" = set; then :
7433   enableval=$enable_libtool_lock;
7434 fi
7435
7436 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7437
7438 # Some flags need to be propagated to the compiler or linker for good
7439 # libtool support.
7440 case $host in
7441 ia64-*-hpux*)
7442   # Find out which ABI we are using.
7443   echo 'int i;' > conftest.$ac_ext
7444   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445   (eval $ac_compile) 2>&5
7446   ac_status=$?
7447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448   test $ac_status = 0; }; then
7449     case `/usr/bin/file conftest.$ac_objext` in
7450       *ELF-32*)
7451         HPUX_IA64_MODE="32"
7452         ;;
7453       *ELF-64*)
7454         HPUX_IA64_MODE="64"
7455         ;;
7456     esac
7457   fi
7458   rm -rf conftest*
7459   ;;
7460 *-*-irix6*)
7461   # Find out which ABI we are using.
7462   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7463   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7464   (eval $ac_compile) 2>&5
7465   ac_status=$?
7466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7467   test $ac_status = 0; }; then
7468     if test "$lt_cv_prog_gnu_ld" = yes; then
7469       case `/usr/bin/file conftest.$ac_objext` in
7470         *32-bit*)
7471           LD="${LD-ld} -melf32bsmip"
7472           ;;
7473         *N32*)
7474           LD="${LD-ld} -melf32bmipn32"
7475           ;;
7476         *64-bit*)
7477           LD="${LD-ld} -melf64bmip"
7478         ;;
7479       esac
7480     else
7481       case `/usr/bin/file conftest.$ac_objext` in
7482         *32-bit*)
7483           LD="${LD-ld} -32"
7484           ;;
7485         *N32*)
7486           LD="${LD-ld} -n32"
7487           ;;
7488         *64-bit*)
7489           LD="${LD-ld} -64"
7490           ;;
7491       esac
7492     fi
7493   fi
7494   rm -rf conftest*
7495   ;;
7496
7497 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7498 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7499   # Find out which ABI we are using.
7500   echo 'int i;' > conftest.$ac_ext
7501   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7502   (eval $ac_compile) 2>&5
7503   ac_status=$?
7504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505   test $ac_status = 0; }; then
7506     case `/usr/bin/file conftest.o` in
7507       *32-bit*)
7508         case $host in
7509           x86_64-*kfreebsd*-gnu)
7510             LD="${LD-ld} -m elf_i386_fbsd"
7511             ;;
7512           x86_64-*linux*)
7513             case `/usr/bin/file conftest.o` in
7514               *x86-64*)
7515                 LD="${LD-ld} -m elf32_x86_64"
7516                 ;;
7517               *)
7518                 LD="${LD-ld} -m elf_i386"
7519                 ;;
7520             esac
7521             ;;
7522           powerpc64le-*linux*)
7523             LD="${LD-ld} -m elf32lppclinux"
7524             ;;
7525           powerpc64-*linux*)
7526             LD="${LD-ld} -m elf32ppclinux"
7527             ;;
7528           s390x-*linux*)
7529             LD="${LD-ld} -m elf_s390"
7530             ;;
7531           sparc64-*linux*)
7532             LD="${LD-ld} -m elf32_sparc"
7533             ;;
7534         esac
7535         ;;
7536       *64-bit*)
7537         case $host in
7538           x86_64-*kfreebsd*-gnu)
7539             LD="${LD-ld} -m elf_x86_64_fbsd"
7540             ;;
7541           x86_64-*linux*)
7542             LD="${LD-ld} -m elf_x86_64"
7543             ;;
7544           powerpcle-*linux*)
7545             LD="${LD-ld} -m elf64lppc"
7546             ;;
7547           powerpc-*linux*)
7548             LD="${LD-ld} -m elf64ppc"
7549             ;;
7550           s390*-*linux*|s390*-*tpf*)
7551             LD="${LD-ld} -m elf64_s390"
7552             ;;
7553           sparc*-*linux*)
7554             LD="${LD-ld} -m elf64_sparc"
7555             ;;
7556         esac
7557         ;;
7558     esac
7559   fi
7560   rm -rf conftest*
7561   ;;
7562
7563 *-*-sco3.2v5*)
7564   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7565   SAVE_CFLAGS="$CFLAGS"
7566   CFLAGS="$CFLAGS -belf"
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7568 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7569 if ${lt_cv_cc_needs_belf+:} false; then :
7570   $as_echo_n "(cached) " >&6
7571 else
7572   ac_ext=c
7573 ac_cpp='$CPP $CPPFLAGS'
7574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7577
7578      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579 /* end confdefs.h.  */
7580
7581 int
7582 main ()
7583 {
7584
7585   ;
7586   return 0;
7587 }
7588 _ACEOF
7589 if ac_fn_c_try_link "$LINENO"; then :
7590   lt_cv_cc_needs_belf=yes
7591 else
7592   lt_cv_cc_needs_belf=no
7593 fi
7594 rm -f core conftest.err conftest.$ac_objext \
7595     conftest$ac_exeext conftest.$ac_ext
7596      ac_ext=c
7597 ac_cpp='$CPP $CPPFLAGS'
7598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7601
7602 fi
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7604 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7605   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7606     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7607     CFLAGS="$SAVE_CFLAGS"
7608   fi
7609   ;;
7610 sparc*-*solaris*)
7611   # Find out which ABI we are using.
7612   echo 'int i;' > conftest.$ac_ext
7613   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7614   (eval $ac_compile) 2>&5
7615   ac_status=$?
7616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7617   test $ac_status = 0; }; then
7618     case `/usr/bin/file conftest.o` in
7619     *64-bit*)
7620       case $lt_cv_prog_gnu_ld in
7621       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7622       *)
7623         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7624           LD="${LD-ld} -64"
7625         fi
7626         ;;
7627       esac
7628       ;;
7629     esac
7630   fi
7631   rm -rf conftest*
7632   ;;
7633 esac
7634
7635 need_locks="$enable_libtool_lock"
7636
7637
7638   case $host_os in
7639     rhapsody* | darwin*)
7640     if test -n "$ac_tool_prefix"; then
7641   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7642 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644 $as_echo_n "checking for $ac_word... " >&6; }
7645 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648   if test -n "$DSYMUTIL"; then
7649   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7650 else
7651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652 for as_dir in $PATH
7653 do
7654   IFS=$as_save_IFS
7655   test -z "$as_dir" && as_dir=.
7656     for ac_exec_ext in '' $ac_executable_extensions; do
7657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7658     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660     break 2
7661   fi
7662 done
7663   done
7664 IFS=$as_save_IFS
7665
7666 fi
7667 fi
7668 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7669 if test -n "$DSYMUTIL"; then
7670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7671 $as_echo "$DSYMUTIL" >&6; }
7672 else
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7675 fi
7676
7677
7678 fi
7679 if test -z "$ac_cv_prog_DSYMUTIL"; then
7680   ac_ct_DSYMUTIL=$DSYMUTIL
7681   # Extract the first word of "dsymutil", so it can be a program name with args.
7682 set dummy dsymutil; ac_word=$2
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7684 $as_echo_n "checking for $ac_word... " >&6; }
7685 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7686   $as_echo_n "(cached) " >&6
7687 else
7688   if test -n "$ac_ct_DSYMUTIL"; then
7689   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7690 else
7691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 for as_dir in $PATH
7693 do
7694   IFS=$as_save_IFS
7695   test -z "$as_dir" && as_dir=.
7696     for ac_exec_ext in '' $ac_executable_extensions; do
7697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7698     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700     break 2
7701   fi
7702 done
7703   done
7704 IFS=$as_save_IFS
7705
7706 fi
7707 fi
7708 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7709 if test -n "$ac_ct_DSYMUTIL"; then
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7711 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7712 else
7713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714 $as_echo "no" >&6; }
7715 fi
7716
7717   if test "x$ac_ct_DSYMUTIL" = x; then
7718     DSYMUTIL=":"
7719   else
7720     case $cross_compiling:$ac_tool_warned in
7721 yes:)
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7724 ac_tool_warned=yes ;;
7725 esac
7726     DSYMUTIL=$ac_ct_DSYMUTIL
7727   fi
7728 else
7729   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7730 fi
7731
7732     if test -n "$ac_tool_prefix"; then
7733   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7734 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7736 $as_echo_n "checking for $ac_word... " >&6; }
7737 if ${ac_cv_prog_NMEDIT+:} false; then :
7738   $as_echo_n "(cached) " >&6
7739 else
7740   if test -n "$NMEDIT"; then
7741   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7742 else
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746   IFS=$as_save_IFS
7747   test -z "$as_dir" && as_dir=.
7748     for ac_exec_ext in '' $ac_executable_extensions; do
7749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7750     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752     break 2
7753   fi
7754 done
7755   done
7756 IFS=$as_save_IFS
7757
7758 fi
7759 fi
7760 NMEDIT=$ac_cv_prog_NMEDIT
7761 if test -n "$NMEDIT"; then
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7763 $as_echo "$NMEDIT" >&6; }
7764 else
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768
7769
7770 fi
7771 if test -z "$ac_cv_prog_NMEDIT"; then
7772   ac_ct_NMEDIT=$NMEDIT
7773   # Extract the first word of "nmedit", so it can be a program name with args.
7774 set dummy nmedit; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7778   $as_echo_n "(cached) " >&6
7779 else
7780   if test -n "$ac_ct_NMEDIT"; then
7781   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7782 else
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $PATH
7785 do
7786   IFS=$as_save_IFS
7787   test -z "$as_dir" && as_dir=.
7788     for ac_exec_ext in '' $ac_executable_extensions; do
7789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792     break 2
7793   fi
7794 done
7795   done
7796 IFS=$as_save_IFS
7797
7798 fi
7799 fi
7800 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7801 if test -n "$ac_ct_NMEDIT"; then
7802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7803 $as_echo "$ac_ct_NMEDIT" >&6; }
7804 else
7805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806 $as_echo "no" >&6; }
7807 fi
7808
7809   if test "x$ac_ct_NMEDIT" = x; then
7810     NMEDIT=":"
7811   else
7812     case $cross_compiling:$ac_tool_warned in
7813 yes:)
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7816 ac_tool_warned=yes ;;
7817 esac
7818     NMEDIT=$ac_ct_NMEDIT
7819   fi
7820 else
7821   NMEDIT="$ac_cv_prog_NMEDIT"
7822 fi
7823
7824     if test -n "$ac_tool_prefix"; then
7825   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7826 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_prog_LIPO+:} false; then :
7830   $as_echo_n "(cached) " >&6
7831 else
7832   if test -n "$LIPO"; then
7833   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7834 else
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 for as_dir in $PATH
7837 do
7838   IFS=$as_save_IFS
7839   test -z "$as_dir" && as_dir=.
7840     for ac_exec_ext in '' $ac_executable_extensions; do
7841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7842     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844     break 2
7845   fi
7846 done
7847   done
7848 IFS=$as_save_IFS
7849
7850 fi
7851 fi
7852 LIPO=$ac_cv_prog_LIPO
7853 if test -n "$LIPO"; then
7854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7855 $as_echo "$LIPO" >&6; }
7856 else
7857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7859 fi
7860
7861
7862 fi
7863 if test -z "$ac_cv_prog_LIPO"; then
7864   ac_ct_LIPO=$LIPO
7865   # Extract the first word of "lipo", so it can be a program name with args.
7866 set dummy lipo; ac_word=$2
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7868 $as_echo_n "checking for $ac_word... " >&6; }
7869 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7870   $as_echo_n "(cached) " >&6
7871 else
7872   if test -n "$ac_ct_LIPO"; then
7873   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7874 else
7875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876 for as_dir in $PATH
7877 do
7878   IFS=$as_save_IFS
7879   test -z "$as_dir" && as_dir=.
7880     for ac_exec_ext in '' $ac_executable_extensions; do
7881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7882     ac_cv_prog_ac_ct_LIPO="lipo"
7883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884     break 2
7885   fi
7886 done
7887   done
7888 IFS=$as_save_IFS
7889
7890 fi
7891 fi
7892 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7893 if test -n "$ac_ct_LIPO"; then
7894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7895 $as_echo "$ac_ct_LIPO" >&6; }
7896 else
7897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7898 $as_echo "no" >&6; }
7899 fi
7900
7901   if test "x$ac_ct_LIPO" = x; then
7902     LIPO=":"
7903   else
7904     case $cross_compiling:$ac_tool_warned in
7905 yes:)
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7908 ac_tool_warned=yes ;;
7909 esac
7910     LIPO=$ac_ct_LIPO
7911   fi
7912 else
7913   LIPO="$ac_cv_prog_LIPO"
7914 fi
7915
7916     if test -n "$ac_tool_prefix"; then
7917   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7918 set dummy ${ac_tool_prefix}otool; ac_word=$2
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7920 $as_echo_n "checking for $ac_word... " >&6; }
7921 if ${ac_cv_prog_OTOOL+:} false; then :
7922   $as_echo_n "(cached) " >&6
7923 else
7924   if test -n "$OTOOL"; then
7925   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7926 else
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928 for as_dir in $PATH
7929 do
7930   IFS=$as_save_IFS
7931   test -z "$as_dir" && as_dir=.
7932     for ac_exec_ext in '' $ac_executable_extensions; do
7933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7934     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7936     break 2
7937   fi
7938 done
7939   done
7940 IFS=$as_save_IFS
7941
7942 fi
7943 fi
7944 OTOOL=$ac_cv_prog_OTOOL
7945 if test -n "$OTOOL"; then
7946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7947 $as_echo "$OTOOL" >&6; }
7948 else
7949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7951 fi
7952
7953
7954 fi
7955 if test -z "$ac_cv_prog_OTOOL"; then
7956   ac_ct_OTOOL=$OTOOL
7957   # Extract the first word of "otool", so it can be a program name with args.
7958 set dummy otool; ac_word=$2
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 $as_echo_n "checking for $ac_word... " >&6; }
7961 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7962   $as_echo_n "(cached) " >&6
7963 else
7964   if test -n "$ac_ct_OTOOL"; then
7965   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7966 else
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7969 do
7970   IFS=$as_save_IFS
7971   test -z "$as_dir" && as_dir=.
7972     for ac_exec_ext in '' $ac_executable_extensions; do
7973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7974     ac_cv_prog_ac_ct_OTOOL="otool"
7975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976     break 2
7977   fi
7978 done
7979   done
7980 IFS=$as_save_IFS
7981
7982 fi
7983 fi
7984 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7985 if test -n "$ac_ct_OTOOL"; then
7986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7987 $as_echo "$ac_ct_OTOOL" >&6; }
7988 else
7989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7991 fi
7992
7993   if test "x$ac_ct_OTOOL" = x; then
7994     OTOOL=":"
7995   else
7996     case $cross_compiling:$ac_tool_warned in
7997 yes:)
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8000 ac_tool_warned=yes ;;
8001 esac
8002     OTOOL=$ac_ct_OTOOL
8003   fi
8004 else
8005   OTOOL="$ac_cv_prog_OTOOL"
8006 fi
8007
8008     if test -n "$ac_tool_prefix"; then
8009   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8010 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 $as_echo_n "checking for $ac_word... " >&6; }
8013 if ${ac_cv_prog_OTOOL64+:} false; then :
8014   $as_echo_n "(cached) " >&6
8015 else
8016   if test -n "$OTOOL64"; then
8017   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022   IFS=$as_save_IFS
8023   test -z "$as_dir" && as_dir=.
8024     for ac_exec_ext in '' $ac_executable_extensions; do
8025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8026     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8028     break 2
8029   fi
8030 done
8031   done
8032 IFS=$as_save_IFS
8033
8034 fi
8035 fi
8036 OTOOL64=$ac_cv_prog_OTOOL64
8037 if test -n "$OTOOL64"; then
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8039 $as_echo "$OTOOL64" >&6; }
8040 else
8041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 fi
8044
8045
8046 fi
8047 if test -z "$ac_cv_prog_OTOOL64"; then
8048   ac_ct_OTOOL64=$OTOOL64
8049   # Extract the first word of "otool64", so it can be a program name with args.
8050 set dummy otool64; ac_word=$2
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052 $as_echo_n "checking for $ac_word... " >&6; }
8053 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8054   $as_echo_n "(cached) " >&6
8055 else
8056   if test -n "$ac_ct_OTOOL64"; then
8057   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8058 else
8059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 for as_dir in $PATH
8061 do
8062   IFS=$as_save_IFS
8063   test -z "$as_dir" && as_dir=.
8064     for ac_exec_ext in '' $ac_executable_extensions; do
8065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8066     ac_cv_prog_ac_ct_OTOOL64="otool64"
8067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068     break 2
8069   fi
8070 done
8071   done
8072 IFS=$as_save_IFS
8073
8074 fi
8075 fi
8076 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8077 if test -n "$ac_ct_OTOOL64"; then
8078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8079 $as_echo "$ac_ct_OTOOL64" >&6; }
8080 else
8081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082 $as_echo "no" >&6; }
8083 fi
8084
8085   if test "x$ac_ct_OTOOL64" = x; then
8086     OTOOL64=":"
8087   else
8088     case $cross_compiling:$ac_tool_warned in
8089 yes:)
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8092 ac_tool_warned=yes ;;
8093 esac
8094     OTOOL64=$ac_ct_OTOOL64
8095   fi
8096 else
8097   OTOOL64="$ac_cv_prog_OTOOL64"
8098 fi
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8127 $as_echo_n "checking for -single_module linker flag... " >&6; }
8128 if ${lt_cv_apple_cc_single_mod+:} false; then :
8129   $as_echo_n "(cached) " >&6
8130 else
8131   lt_cv_apple_cc_single_mod=no
8132       if test -z "${LT_MULTI_MODULE}"; then
8133         # By default we will add the -single_module flag. You can override
8134         # by either setting the environment variable LT_MULTI_MODULE
8135         # non-empty at configure time, or by adding -multi_module to the
8136         # link flags.
8137         rm -rf libconftest.dylib*
8138         echo "int foo(void){return 1;}" > conftest.c
8139         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8140 -dynamiclib -Wl,-single_module conftest.c" >&5
8141         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8142           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8143         _lt_result=$?
8144         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8145           lt_cv_apple_cc_single_mod=yes
8146         else
8147           cat conftest.err >&5
8148         fi
8149         rm -rf libconftest.dylib*
8150         rm -f conftest.*
8151       fi
8152 fi
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8154 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8156 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8157 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8158   $as_echo_n "(cached) " >&6
8159 else
8160   lt_cv_ld_exported_symbols_list=no
8161       save_LDFLAGS=$LDFLAGS
8162       echo "_main" > conftest.sym
8163       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8164       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h.  */
8166
8167 int
8168 main ()
8169 {
8170
8171   ;
8172   return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_link "$LINENO"; then :
8176   lt_cv_ld_exported_symbols_list=yes
8177 else
8178   lt_cv_ld_exported_symbols_list=no
8179 fi
8180 rm -f core conftest.err conftest.$ac_objext \
8181     conftest$ac_exeext conftest.$ac_ext
8182         LDFLAGS="$save_LDFLAGS"
8183
8184 fi
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8186 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8188 $as_echo_n "checking for -force_load linker flag... " >&6; }
8189 if ${lt_cv_ld_force_load+:} false; then :
8190   $as_echo_n "(cached) " >&6
8191 else
8192   lt_cv_ld_force_load=no
8193       cat > conftest.c << _LT_EOF
8194 int forced_loaded() { return 2;}
8195 _LT_EOF
8196       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8197       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8198       echo "$AR cru libconftest.a conftest.o" >&5
8199       $AR cru libconftest.a conftest.o 2>&5
8200       cat > conftest.c << _LT_EOF
8201 int main() { return 0;}
8202 _LT_EOF
8203       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8204       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8205       _lt_result=$?
8206       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8207         lt_cv_ld_force_load=yes
8208       else
8209         cat conftest.err >&5
8210       fi
8211         rm -f conftest.err libconftest.a conftest conftest.c
8212         rm -rf conftest.dSYM
8213
8214 fi
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8216 $as_echo "$lt_cv_ld_force_load" >&6; }
8217     case $host_os in
8218     rhapsody* | darwin1.[012])
8219       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8220     darwin1.*)
8221       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8222     darwin*) # darwin 5.x on
8223       # if running on 10.5 or later, the deployment target defaults
8224       # to the OS version, if on x86, and 10.4, the deployment
8225       # target defaults to 10.4. Don't you love it?
8226       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8227         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8228           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8229         10.[012][,.]*)
8230           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8231         10.*)
8232           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8233       esac
8234     ;;
8235   esac
8236     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8237       _lt_dar_single_mod='$single_module'
8238     fi
8239     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8240       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8241     else
8242       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8243     fi
8244     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8245       _lt_dsymutil='~$DSYMUTIL $lib || :'
8246     else
8247       _lt_dsymutil=
8248     fi
8249     ;;
8250   esac
8251
8252 for ac_header in dlfcn.h
8253 do :
8254   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8255 "
8256 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8257   cat >>confdefs.h <<_ACEOF
8258 #define HAVE_DLFCN_H 1
8259 _ACEOF
8260
8261 fi
8262
8263 done
8264
8265
8266
8267
8268
8269 # Set options
8270 enable_dlopen=yes
8271
8272
8273
8274
8275   enable_win32_dll=no
8276
8277
8278             # Check whether --enable-shared was given.
8279 if test "${enable_shared+set}" = set; then :
8280   enableval=$enable_shared; p=${PACKAGE-default}
8281     case $enableval in
8282     yes) enable_shared=yes ;;
8283     no) enable_shared=no ;;
8284     *)
8285       enable_shared=no
8286       # Look at the argument we got.  We use all the common list separators.
8287       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8288       for pkg in $enableval; do
8289         IFS="$lt_save_ifs"
8290         if test "X$pkg" = "X$p"; then
8291           enable_shared=yes
8292         fi
8293       done
8294       IFS="$lt_save_ifs"
8295       ;;
8296     esac
8297 else
8298   enable_shared=yes
8299 fi
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309   # Check whether --enable-static was given.
8310 if test "${enable_static+set}" = set; then :
8311   enableval=$enable_static; p=${PACKAGE-default}
8312     case $enableval in
8313     yes) enable_static=yes ;;
8314     no) enable_static=no ;;
8315     *)
8316      enable_static=no
8317       # Look at the argument we got.  We use all the common list separators.
8318       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8319       for pkg in $enableval; do
8320         IFS="$lt_save_ifs"
8321         if test "X$pkg" = "X$p"; then
8322           enable_static=yes
8323         fi
8324       done
8325       IFS="$lt_save_ifs"
8326       ;;
8327     esac
8328 else
8329   enable_static=yes
8330 fi
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341 # Check whether --with-pic was given.
8342 if test "${with_pic+set}" = set; then :
8343   withval=$with_pic; pic_mode="$withval"
8344 else
8345   pic_mode=default
8346 fi
8347
8348
8349 test -z "$pic_mode" && pic_mode=default
8350
8351
8352
8353
8354
8355
8356
8357   # Check whether --enable-fast-install was given.
8358 if test "${enable_fast_install+set}" = set; then :
8359   enableval=$enable_fast_install; p=${PACKAGE-default}
8360     case $enableval in
8361     yes) enable_fast_install=yes ;;
8362     no) enable_fast_install=no ;;
8363     *)
8364       enable_fast_install=no
8365       # Look at the argument we got.  We use all the common list separators.
8366       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8367       for pkg in $enableval; do
8368         IFS="$lt_save_ifs"
8369         if test "X$pkg" = "X$p"; then
8370           enable_fast_install=yes
8371         fi
8372       done
8373       IFS="$lt_save_ifs"
8374       ;;
8375     esac
8376 else
8377   enable_fast_install=yes
8378 fi
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390 # This can be used to rebuild libtool when needed
8391 LIBTOOL_DEPS="$ltmain"
8392
8393 # Always use our own libtool.
8394 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421 test -z "$LN_S" && LN_S="ln -s"
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436 if test -n "${ZSH_VERSION+set}" ; then
8437    setopt NO_GLOB_SUBST
8438 fi
8439
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8441 $as_echo_n "checking for objdir... " >&6; }
8442 if ${lt_cv_objdir+:} false; then :
8443   $as_echo_n "(cached) " >&6
8444 else
8445   rm -f .libs 2>/dev/null
8446 mkdir .libs 2>/dev/null
8447 if test -d .libs; then
8448   lt_cv_objdir=.libs
8449 else
8450   # MS-DOS does not allow filenames that begin with a dot.
8451   lt_cv_objdir=_libs
8452 fi
8453 rmdir .libs 2>/dev/null
8454 fi
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8456 $as_echo "$lt_cv_objdir" >&6; }
8457 objdir=$lt_cv_objdir
8458
8459
8460
8461
8462
8463 cat >>confdefs.h <<_ACEOF
8464 #define LT_OBJDIR "$lt_cv_objdir/"
8465 _ACEOF
8466
8467
8468
8469
8470 case $host_os in
8471 aix3*)
8472   # AIX sometimes has problems with the GCC collect2 program.  For some
8473   # reason, if we set the COLLECT_NAMES environment variable, the problems
8474   # vanish in a puff of smoke.
8475   if test "X${COLLECT_NAMES+set}" != Xset; then
8476     COLLECT_NAMES=
8477     export COLLECT_NAMES
8478   fi
8479   ;;
8480 esac
8481
8482 # Global variables:
8483 ofile=libtool
8484 can_build_shared=yes
8485
8486 # All known linkers require a `.a' archive for static linking (except MSVC,
8487 # which needs '.lib').
8488 libext=a
8489
8490 with_gnu_ld="$lt_cv_prog_gnu_ld"
8491
8492 old_CC="$CC"
8493 old_CFLAGS="$CFLAGS"
8494
8495 # Set sane defaults for various variables
8496 test -z "$CC" && CC=cc
8497 test -z "$LTCC" && LTCC=$CC
8498 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8499 test -z "$LD" && LD=ld
8500 test -z "$ac_objext" && ac_objext=o
8501
8502 for cc_temp in $compiler""; do
8503   case $cc_temp in
8504     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8505     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8506     \-*) ;;
8507     *) break;;
8508   esac
8509 done
8510 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8511
8512
8513 # Only perform the check for file, if the check method requires it
8514 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8515 case $deplibs_check_method in
8516 file_magic*)
8517   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8518     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8519 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8520 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8521   $as_echo_n "(cached) " >&6
8522 else
8523   case $MAGIC_CMD in
8524 [\\/*] |  ?:[\\/]*)
8525   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8526   ;;
8527 *)
8528   lt_save_MAGIC_CMD="$MAGIC_CMD"
8529   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8530   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8531   for ac_dir in $ac_dummy; do
8532     IFS="$lt_save_ifs"
8533     test -z "$ac_dir" && ac_dir=.
8534     if test -f $ac_dir/${ac_tool_prefix}file; then
8535       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8536       if test -n "$file_magic_test_file"; then
8537         case $deplibs_check_method in
8538         "file_magic "*)
8539           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8540           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8541           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8542             $EGREP "$file_magic_regex" > /dev/null; then
8543             :
8544           else
8545             cat <<_LT_EOF 1>&2
8546
8547 *** Warning: the command libtool uses to detect shared libraries,
8548 *** $file_magic_cmd, produces output that libtool cannot recognize.
8549 *** The result is that libtool may fail to recognize shared libraries
8550 *** as such.  This will affect the creation of libtool libraries that
8551 *** depend on shared libraries, but programs linked with such libtool
8552 *** libraries will work regardless of this problem.  Nevertheless, you
8553 *** may want to report the problem to your system manager and/or to
8554 *** bug-libtool@gnu.org
8555
8556 _LT_EOF
8557           fi ;;
8558         esac
8559       fi
8560       break
8561     fi
8562   done
8563   IFS="$lt_save_ifs"
8564   MAGIC_CMD="$lt_save_MAGIC_CMD"
8565   ;;
8566 esac
8567 fi
8568
8569 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8570 if test -n "$MAGIC_CMD"; then
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8572 $as_echo "$MAGIC_CMD" >&6; }
8573 else
8574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8576 fi
8577
8578
8579
8580
8581
8582 if test -z "$lt_cv_path_MAGIC_CMD"; then
8583   if test -n "$ac_tool_prefix"; then
8584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8585 $as_echo_n "checking for file... " >&6; }
8586 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8587   $as_echo_n "(cached) " >&6
8588 else
8589   case $MAGIC_CMD in
8590 [\\/*] |  ?:[\\/]*)
8591   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8592   ;;
8593 *)
8594   lt_save_MAGIC_CMD="$MAGIC_CMD"
8595   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8596   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8597   for ac_dir in $ac_dummy; do
8598     IFS="$lt_save_ifs"
8599     test -z "$ac_dir" && ac_dir=.
8600     if test -f $ac_dir/file; then
8601       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8602       if test -n "$file_magic_test_file"; then
8603         case $deplibs_check_method in
8604         "file_magic "*)
8605           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8606           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8607           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8608             $EGREP "$file_magic_regex" > /dev/null; then
8609             :
8610           else
8611             cat <<_LT_EOF 1>&2
8612
8613 *** Warning: the command libtool uses to detect shared libraries,
8614 *** $file_magic_cmd, produces output that libtool cannot recognize.
8615 *** The result is that libtool may fail to recognize shared libraries
8616 *** as such.  This will affect the creation of libtool libraries that
8617 *** depend on shared libraries, but programs linked with such libtool
8618 *** libraries will work regardless of this problem.  Nevertheless, you
8619 *** may want to report the problem to your system manager and/or to
8620 *** bug-libtool@gnu.org
8621
8622 _LT_EOF
8623           fi ;;
8624         esac
8625       fi
8626       break
8627     fi
8628   done
8629   IFS="$lt_save_ifs"
8630   MAGIC_CMD="$lt_save_MAGIC_CMD"
8631   ;;
8632 esac
8633 fi
8634
8635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8636 if test -n "$MAGIC_CMD"; then
8637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8638 $as_echo "$MAGIC_CMD" >&6; }
8639 else
8640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641 $as_echo "no" >&6; }
8642 fi
8643
8644
8645   else
8646     MAGIC_CMD=:
8647   fi
8648 fi
8649
8650   fi
8651   ;;
8652 esac
8653
8654 # Use C for the default configuration in the libtool script
8655
8656 lt_save_CC="$CC"
8657 ac_ext=c
8658 ac_cpp='$CPP $CPPFLAGS'
8659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8662
8663
8664 # Source file extension for C test sources.
8665 ac_ext=c
8666
8667 # Object file extension for compiled C test sources.
8668 objext=o
8669 objext=$objext
8670
8671 # Code to be used in simple compile tests
8672 lt_simple_compile_test_code="int some_variable = 0;"
8673
8674 # Code to be used in simple link tests
8675 lt_simple_link_test_code='int main(){return(0);}'
8676
8677
8678
8679
8680
8681
8682
8683 # If no C compiler was specified, use CC.
8684 LTCC=${LTCC-"$CC"}
8685
8686 # If no C compiler flags were specified, use CFLAGS.
8687 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8688
8689 # Allow CC to be a program name with arguments.
8690 compiler=$CC
8691
8692 # Save the default compiler, since it gets overwritten when the other
8693 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8694 compiler_DEFAULT=$CC
8695
8696 # save warnings/boilerplate of simple test code
8697 ac_outfile=conftest.$ac_objext
8698 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8699 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8700 _lt_compiler_boilerplate=`cat conftest.err`
8701 $RM conftest*
8702
8703 ac_outfile=conftest.$ac_objext
8704 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8705 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8706 _lt_linker_boilerplate=`cat conftest.err`
8707 $RM -r conftest*
8708
8709
8710 ## CAVEAT EMPTOR:
8711 ## There is no encapsulation within the following macros, do not change
8712 ## the running order or otherwise move them around unless you know exactly
8713 ## what you are doing...
8714 if test -n "$compiler"; then
8715
8716 lt_prog_compiler_no_builtin_flag=
8717
8718 if test "$GCC" = yes; then
8719   case $cc_basename in
8720   nvcc*)
8721     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8722   *)
8723     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8724   esac
8725
8726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8727 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8728 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8729   $as_echo_n "(cached) " >&6
8730 else
8731   lt_cv_prog_compiler_rtti_exceptions=no
8732    ac_outfile=conftest.$ac_objext
8733    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8734    lt_compiler_flag="-fno-rtti -fno-exceptions"
8735    # Insert the option either (1) after the last *FLAGS variable, or
8736    # (2) before a word containing "conftest.", or (3) at the end.
8737    # Note that $ac_compile itself does not contain backslashes and begins
8738    # with a dollar sign (not a hyphen), so the echo should work correctly.
8739    # The option is referenced via a variable to avoid confusing sed.
8740    lt_compile=`echo "$ac_compile" | $SED \
8741    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8742    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8743    -e 's:$: $lt_compiler_flag:'`
8744    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8745    (eval "$lt_compile" 2>conftest.err)
8746    ac_status=$?
8747    cat conftest.err >&5
8748    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749    if (exit $ac_status) && test -s "$ac_outfile"; then
8750      # The compiler can only warn and ignore the option if not recognized
8751      # So say no if there are warnings other than the usual output.
8752      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8753      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8754      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8755        lt_cv_prog_compiler_rtti_exceptions=yes
8756      fi
8757    fi
8758    $RM conftest*
8759
8760 fi
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8762 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8763
8764 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8765     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8766 else
8767     :
8768 fi
8769
8770 fi
8771
8772
8773
8774
8775
8776
8777   lt_prog_compiler_wl=
8778 lt_prog_compiler_pic=
8779 lt_prog_compiler_static=
8780
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8782 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8783
8784   if test "$GCC" = yes; then
8785     lt_prog_compiler_wl='-Wl,'
8786     lt_prog_compiler_static='-static'
8787
8788     case $host_os in
8789       aix*)
8790       # All AIX code is PIC.
8791       if test "$host_cpu" = ia64; then
8792         # AIX 5 now supports IA64 processor
8793         lt_prog_compiler_static='-Bstatic'
8794       fi
8795       lt_prog_compiler_pic='-fPIC'
8796       ;;
8797
8798     amigaos*)
8799       case $host_cpu in
8800       powerpc)
8801             # see comment about AmigaOS4 .so support
8802             lt_prog_compiler_pic='-fPIC'
8803         ;;
8804       m68k)
8805             # FIXME: we need at least 68020 code to build shared libraries, but
8806             # adding the `-m68020' flag to GCC prevents building anything better,
8807             # like `-m68040'.
8808             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8809         ;;
8810       esac
8811       ;;
8812
8813     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8814       # PIC is the default for these OSes.
8815       ;;
8816
8817     mingw* | cygwin* | pw32* | os2* | cegcc*)
8818       # This hack is so that the source file can tell whether it is being
8819       # built for inclusion in a dll (and should export symbols for example).
8820       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8821       # (--disable-auto-import) libraries
8822       lt_prog_compiler_pic='-DDLL_EXPORT'
8823       ;;
8824
8825     darwin* | rhapsody*)
8826       # PIC is the default on this platform
8827       # Common symbols not allowed in MH_DYLIB files
8828       lt_prog_compiler_pic='-fno-common'
8829       ;;
8830
8831     haiku*)
8832       # PIC is the default for Haiku.
8833       # The "-static" flag exists, but is broken.
8834       lt_prog_compiler_static=
8835       ;;
8836
8837     hpux*)
8838       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8839       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8840       # sets the default TLS model and affects inlining.
8841       case $host_cpu in
8842       hppa*64*)
8843         # +Z the default
8844         ;;
8845       *)
8846         lt_prog_compiler_pic='-fPIC'
8847         ;;
8848       esac
8849       ;;
8850
8851     interix[3-9]*)
8852       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8853       # Instead, we relocate shared libraries at runtime.
8854       ;;
8855
8856     msdosdjgpp*)
8857       # Just because we use GCC doesn't mean we suddenly get shared libraries
8858       # on systems that don't support them.
8859       lt_prog_compiler_can_build_shared=no
8860       enable_shared=no
8861       ;;
8862
8863     *nto* | *qnx*)
8864       # QNX uses GNU C++, but need to define -shared option too, otherwise
8865       # it will coredump.
8866       lt_prog_compiler_pic='-fPIC -shared'
8867       ;;
8868
8869     sysv4*MP*)
8870       if test -d /usr/nec; then
8871         lt_prog_compiler_pic=-Kconform_pic
8872       fi
8873       ;;
8874
8875     *)
8876       lt_prog_compiler_pic='-fPIC'
8877       ;;
8878     esac
8879
8880     case $cc_basename in
8881     nvcc*) # Cuda Compiler Driver 2.2
8882       lt_prog_compiler_wl='-Xlinker '
8883       lt_prog_compiler_pic='-Xcompiler -fPIC'
8884       ;;
8885     esac
8886   else
8887     # PORTME Check for flag to pass linker flags through the system compiler.
8888     case $host_os in
8889     aix*)
8890       lt_prog_compiler_wl='-Wl,'
8891       if test "$host_cpu" = ia64; then
8892         # AIX 5 now supports IA64 processor
8893         lt_prog_compiler_static='-Bstatic'
8894       else
8895         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8896       fi
8897       ;;
8898
8899     mingw* | cygwin* | pw32* | os2* | cegcc*)
8900       # This hack is so that the source file can tell whether it is being
8901       # built for inclusion in a dll (and should export symbols for example).
8902       lt_prog_compiler_pic='-DDLL_EXPORT'
8903       ;;
8904
8905     hpux9* | hpux10* | hpux11*)
8906       lt_prog_compiler_wl='-Wl,'
8907       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8908       # not for PA HP-UX.
8909       case $host_cpu in
8910       hppa*64*|ia64*)
8911         # +Z the default
8912         ;;
8913       *)
8914         lt_prog_compiler_pic='+Z'
8915         ;;
8916       esac
8917       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8918       lt_prog_compiler_static='${wl}-a ${wl}archive'
8919       ;;
8920
8921     irix5* | irix6* | nonstopux*)
8922       lt_prog_compiler_wl='-Wl,'
8923       # PIC (with -KPIC) is the default.
8924       lt_prog_compiler_static='-non_shared'
8925       ;;
8926
8927     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8928       case $cc_basename in
8929       # old Intel for x86_64 which still supported -KPIC.
8930       ecc*)
8931         lt_prog_compiler_wl='-Wl,'
8932         lt_prog_compiler_pic='-KPIC'
8933         lt_prog_compiler_static='-static'
8934         ;;
8935       # icc used to be incompatible with GCC.
8936       # ICC 10 doesn't accept -KPIC any more.
8937       icc* | ifort*)
8938         lt_prog_compiler_wl='-Wl,'
8939         lt_prog_compiler_pic='-fPIC'
8940         lt_prog_compiler_static='-static'
8941         ;;
8942       # Lahey Fortran 8.1.
8943       lf95*)
8944         lt_prog_compiler_wl='-Wl,'
8945         lt_prog_compiler_pic='--shared'
8946         lt_prog_compiler_static='--static'
8947         ;;
8948       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8949         # Portland Group compilers (*not* the Pentium gcc compiler,
8950         # which looks to be a dead project)
8951         lt_prog_compiler_wl='-Wl,'
8952         lt_prog_compiler_pic='-fpic'
8953         lt_prog_compiler_static='-Bstatic'
8954         ;;
8955       ccc*)
8956         lt_prog_compiler_wl='-Wl,'
8957         # All Alpha code is PIC.
8958         lt_prog_compiler_static='-non_shared'
8959         ;;
8960       xl* | bgxl* | bgf* | mpixl*)
8961         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8962         lt_prog_compiler_wl='-Wl,'
8963         lt_prog_compiler_pic='-qpic'
8964         lt_prog_compiler_static='-qstaticlink'
8965         ;;
8966       *)
8967         case `$CC -V 2>&1 | sed 5q` in
8968         *Sun\ F* | *Sun*Fortran*)
8969           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8970           lt_prog_compiler_pic='-KPIC'
8971           lt_prog_compiler_static='-Bstatic'
8972           lt_prog_compiler_wl=''
8973           ;;
8974         *Sun\ C*)
8975           # Sun C 5.9
8976           lt_prog_compiler_pic='-KPIC'
8977           lt_prog_compiler_static='-Bstatic'
8978           lt_prog_compiler_wl='-Wl,'
8979           ;;
8980         esac
8981         ;;
8982       esac
8983       ;;
8984
8985     newsos6)
8986       lt_prog_compiler_pic='-KPIC'
8987       lt_prog_compiler_static='-Bstatic'
8988       ;;
8989
8990     *nto* | *qnx*)
8991       # QNX uses GNU C++, but need to define -shared option too, otherwise
8992       # it will coredump.
8993       lt_prog_compiler_pic='-fPIC -shared'
8994       ;;
8995
8996     osf3* | osf4* | osf5*)
8997       lt_prog_compiler_wl='-Wl,'
8998       # All OSF/1 code is PIC.
8999       lt_prog_compiler_static='-non_shared'
9000       ;;
9001
9002     rdos*)
9003       lt_prog_compiler_static='-non_shared'
9004       ;;
9005
9006     solaris*)
9007       lt_prog_compiler_pic='-KPIC'
9008       lt_prog_compiler_static='-Bstatic'
9009       case $cc_basename in
9010       f77* | f90* | f95*)
9011         lt_prog_compiler_wl='-Qoption ld ';;
9012       *)
9013         lt_prog_compiler_wl='-Wl,';;
9014       esac
9015       ;;
9016
9017     sunos4*)
9018       lt_prog_compiler_wl='-Qoption ld '
9019       lt_prog_compiler_pic='-PIC'
9020       lt_prog_compiler_static='-Bstatic'
9021       ;;
9022
9023     sysv4 | sysv4.2uw2* | sysv4.3*)
9024       lt_prog_compiler_wl='-Wl,'
9025       lt_prog_compiler_pic='-KPIC'
9026       lt_prog_compiler_static='-Bstatic'
9027       ;;
9028
9029     sysv4*MP*)
9030       if test -d /usr/nec ;then
9031         lt_prog_compiler_pic='-Kconform_pic'
9032         lt_prog_compiler_static='-Bstatic'
9033       fi
9034       ;;
9035
9036     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9037       lt_prog_compiler_wl='-Wl,'
9038       lt_prog_compiler_pic='-KPIC'
9039       lt_prog_compiler_static='-Bstatic'
9040       ;;
9041
9042     unicos*)
9043       lt_prog_compiler_wl='-Wl,'
9044       lt_prog_compiler_can_build_shared=no
9045       ;;
9046
9047     uts4*)
9048       lt_prog_compiler_pic='-pic'
9049       lt_prog_compiler_static='-Bstatic'
9050       ;;
9051
9052     *)
9053       lt_prog_compiler_can_build_shared=no
9054       ;;
9055     esac
9056   fi
9057
9058 case $host_os in
9059   # For platforms which do not support PIC, -DPIC is meaningless:
9060   *djgpp*)
9061     lt_prog_compiler_pic=
9062     ;;
9063   *)
9064     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9065     ;;
9066 esac
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9068 $as_echo "$lt_prog_compiler_pic" >&6; }
9069
9070
9071
9072
9073
9074
9075 #
9076 # Check to make sure the PIC flag actually works.
9077 #
9078 if test -n "$lt_prog_compiler_pic"; then
9079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9080 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9081 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9082   $as_echo_n "(cached) " >&6
9083 else
9084   lt_cv_prog_compiler_pic_works=no
9085    ac_outfile=conftest.$ac_objext
9086    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9087    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9088    # Insert the option either (1) after the last *FLAGS variable, or
9089    # (2) before a word containing "conftest.", or (3) at the end.
9090    # Note that $ac_compile itself does not contain backslashes and begins
9091    # with a dollar sign (not a hyphen), so the echo should work correctly.
9092    # The option is referenced via a variable to avoid confusing sed.
9093    lt_compile=`echo "$ac_compile" | $SED \
9094    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9095    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9096    -e 's:$: $lt_compiler_flag:'`
9097    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9098    (eval "$lt_compile" 2>conftest.err)
9099    ac_status=$?
9100    cat conftest.err >&5
9101    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102    if (exit $ac_status) && test -s "$ac_outfile"; then
9103      # The compiler can only warn and ignore the option if not recognized
9104      # So say no if there are warnings other than the usual output.
9105      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9106      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9107      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9108        lt_cv_prog_compiler_pic_works=yes
9109      fi
9110    fi
9111    $RM conftest*
9112
9113 fi
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9115 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9116
9117 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9118     case $lt_prog_compiler_pic in
9119      "" | " "*) ;;
9120      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9121      esac
9122 else
9123     lt_prog_compiler_pic=
9124      lt_prog_compiler_can_build_shared=no
9125 fi
9126
9127 fi
9128
9129
9130
9131
9132
9133
9134 #
9135 # Check to make sure the static flag actually works.
9136 #
9137 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9139 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9140 if ${lt_cv_prog_compiler_static_works+:} false; then :
9141   $as_echo_n "(cached) " >&6
9142 else
9143   lt_cv_prog_compiler_static_works=no
9144    save_LDFLAGS="$LDFLAGS"
9145    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9146    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9147    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9148      # The linker can only warn and ignore the option if not recognized
9149      # So say no if there are warnings
9150      if test -s conftest.err; then
9151        # Append any errors to the config.log.
9152        cat conftest.err 1>&5
9153        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9154        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9155        if diff conftest.exp conftest.er2 >/dev/null; then
9156          lt_cv_prog_compiler_static_works=yes
9157        fi
9158      else
9159        lt_cv_prog_compiler_static_works=yes
9160      fi
9161    fi
9162    $RM -r conftest*
9163    LDFLAGS="$save_LDFLAGS"
9164
9165 fi
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9167 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9168
9169 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9170     :
9171 else
9172     lt_prog_compiler_static=
9173 fi
9174
9175
9176
9177
9178
9179
9180
9181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9182 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9183 if ${lt_cv_prog_compiler_c_o+:} false; then :
9184   $as_echo_n "(cached) " >&6
9185 else
9186   lt_cv_prog_compiler_c_o=no
9187    $RM -r conftest 2>/dev/null
9188    mkdir conftest
9189    cd conftest
9190    mkdir out
9191    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9192
9193    lt_compiler_flag="-o out/conftest2.$ac_objext"
9194    # Insert the option either (1) after the last *FLAGS variable, or
9195    # (2) before a word containing "conftest.", or (3) at the end.
9196    # Note that $ac_compile itself does not contain backslashes and begins
9197    # with a dollar sign (not a hyphen), so the echo should work correctly.
9198    lt_compile=`echo "$ac_compile" | $SED \
9199    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9200    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9201    -e 's:$: $lt_compiler_flag:'`
9202    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9203    (eval "$lt_compile" 2>out/conftest.err)
9204    ac_status=$?
9205    cat out/conftest.err >&5
9206    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9208    then
9209      # The compiler can only warn and ignore the option if not recognized
9210      # So say no if there are warnings
9211      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9212      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9213      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9214        lt_cv_prog_compiler_c_o=yes
9215      fi
9216    fi
9217    chmod u+w . 2>&5
9218    $RM conftest*
9219    # SGI C++ compiler will create directory out/ii_files/ for
9220    # template instantiation
9221    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9222    $RM out/* && rmdir out
9223    cd ..
9224    $RM -r conftest
9225    $RM conftest*
9226
9227 fi
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9229 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9230
9231
9232
9233
9234
9235
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9237 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9238 if ${lt_cv_prog_compiler_c_o+:} false; then :
9239   $as_echo_n "(cached) " >&6
9240 else
9241   lt_cv_prog_compiler_c_o=no
9242    $RM -r conftest 2>/dev/null
9243    mkdir conftest
9244    cd conftest
9245    mkdir out
9246    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9247
9248    lt_compiler_flag="-o out/conftest2.$ac_objext"
9249    # Insert the option either (1) after the last *FLAGS variable, or
9250    # (2) before a word containing "conftest.", or (3) at the end.
9251    # Note that $ac_compile itself does not contain backslashes and begins
9252    # with a dollar sign (not a hyphen), so the echo should work correctly.
9253    lt_compile=`echo "$ac_compile" | $SED \
9254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9256    -e 's:$: $lt_compiler_flag:'`
9257    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9258    (eval "$lt_compile" 2>out/conftest.err)
9259    ac_status=$?
9260    cat out/conftest.err >&5
9261    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9263    then
9264      # The compiler can only warn and ignore the option if not recognized
9265      # So say no if there are warnings
9266      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9267      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9268      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9269        lt_cv_prog_compiler_c_o=yes
9270      fi
9271    fi
9272    chmod u+w . 2>&5
9273    $RM conftest*
9274    # SGI C++ compiler will create directory out/ii_files/ for
9275    # template instantiation
9276    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9277    $RM out/* && rmdir out
9278    cd ..
9279    $RM -r conftest
9280    $RM conftest*
9281
9282 fi
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9284 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9285
9286
9287
9288
9289 hard_links="nottested"
9290 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9291   # do not overwrite the value of need_locks provided by the user
9292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9293 $as_echo_n "checking if we can lock with hard links... " >&6; }
9294   hard_links=yes
9295   $RM conftest*
9296   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9297   touch conftest.a
9298   ln conftest.a conftest.b 2>&5 || hard_links=no
9299   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9301 $as_echo "$hard_links" >&6; }
9302   if test "$hard_links" = no; then
9303     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9304 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9305     need_locks=warn
9306   fi
9307 else
9308   need_locks=no
9309 fi
9310
9311
9312
9313
9314
9315
9316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9317 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9318
9319   runpath_var=
9320   allow_undefined_flag=
9321   always_export_symbols=no
9322   archive_cmds=
9323   archive_expsym_cmds=
9324   compiler_needs_object=no
9325   enable_shared_with_static_runtimes=no
9326   export_dynamic_flag_spec=
9327   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9328   hardcode_automatic=no
9329   hardcode_direct=no
9330   hardcode_direct_absolute=no
9331   hardcode_libdir_flag_spec=
9332   hardcode_libdir_flag_spec_ld=
9333   hardcode_libdir_separator=
9334   hardcode_minus_L=no
9335   hardcode_shlibpath_var=unsupported
9336   inherit_rpath=no
9337   link_all_deplibs=unknown
9338   module_cmds=
9339   module_expsym_cmds=
9340   old_archive_from_new_cmds=
9341   old_archive_from_expsyms_cmds=
9342   thread_safe_flag_spec=
9343   whole_archive_flag_spec=
9344   # include_expsyms should be a list of space-separated symbols to be *always*
9345   # included in the symbol list
9346   include_expsyms=
9347   # exclude_expsyms can be an extended regexp of symbols to exclude
9348   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9349   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9350   # as well as any symbol that contains `d'.
9351   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9352   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9353   # platforms (ab)use it in PIC code, but their linkers get confused if
9354   # the symbol is explicitly referenced.  Since portable code cannot
9355   # rely on this symbol name, it's probably fine to never include it in
9356   # preloaded symbol tables.
9357   # Exclude shared library initialization/finalization symbols.
9358   extract_expsyms_cmds=
9359
9360   case $host_os in
9361   cygwin* | mingw* | pw32* | cegcc*)
9362     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9363     # When not using gcc, we currently assume that we are using
9364     # Microsoft Visual C++.
9365     if test "$GCC" != yes; then
9366       with_gnu_ld=no
9367     fi
9368     ;;
9369   interix*)
9370     # we just hope/assume this is gcc and not c89 (= MSVC++)
9371     with_gnu_ld=yes
9372     ;;
9373   openbsd*)
9374     with_gnu_ld=no
9375     ;;
9376   esac
9377
9378   ld_shlibs=yes
9379
9380   # On some targets, GNU ld is compatible enough with the native linker
9381   # that we're better off using the native interface for both.
9382   lt_use_gnu_ld_interface=no
9383   if test "$with_gnu_ld" = yes; then
9384     case $host_os in
9385       aix*)
9386         # The AIX port of GNU ld has always aspired to compatibility
9387         # with the native linker.  However, as the warning in the GNU ld
9388         # block says, versions before 2.19.5* couldn't really create working
9389         # shared libraries, regardless of the interface used.
9390         case `$LD -v 2>&1` in
9391           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9392           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9393           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9394           *)
9395             lt_use_gnu_ld_interface=yes
9396             ;;
9397         esac
9398         ;;
9399       *)
9400         lt_use_gnu_ld_interface=yes
9401         ;;
9402     esac
9403   fi
9404
9405   if test "$lt_use_gnu_ld_interface" = yes; then
9406     # If archive_cmds runs LD, not CC, wlarc should be empty
9407     wlarc='${wl}'
9408
9409     # Set some defaults for GNU ld with shared library support. These
9410     # are reset later if shared libraries are not supported. Putting them
9411     # here allows them to be overridden if necessary.
9412     runpath_var=LD_RUN_PATH
9413     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9414     export_dynamic_flag_spec='${wl}--export-dynamic'
9415     # ancient GNU ld didn't support --whole-archive et. al.
9416     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9417       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9418     else
9419       whole_archive_flag_spec=
9420     fi
9421     supports_anon_versioning=no
9422     case `$LD -v 2>&1` in
9423       *GNU\ gold*) supports_anon_versioning=yes ;;
9424       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9425       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9426       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9427       *\ 2.11.*) ;; # other 2.11 versions
9428       *) supports_anon_versioning=yes ;;
9429     esac
9430
9431     # See if GNU ld supports shared libraries.
9432     case $host_os in
9433     aix[3-9]*)
9434       # On AIX/PPC, the GNU linker is very broken
9435       if test "$host_cpu" != ia64; then
9436         ld_shlibs=no
9437         cat <<_LT_EOF 1>&2
9438
9439 *** Warning: the GNU linker, at least up to release 2.19, is reported
9440 *** to be unable to reliably create shared libraries on AIX.
9441 *** Therefore, libtool is disabling shared libraries support.  If you
9442 *** really care for shared libraries, you may want to install binutils
9443 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9444 *** You will then need to restart the configuration process.
9445
9446 _LT_EOF
9447       fi
9448       ;;
9449
9450     amigaos*)
9451       case $host_cpu in
9452       powerpc)
9453             # see comment about AmigaOS4 .so support
9454             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9455             archive_expsym_cmds=''
9456         ;;
9457       m68k)
9458             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)'
9459             hardcode_libdir_flag_spec='-L$libdir'
9460             hardcode_minus_L=yes
9461         ;;
9462       esac
9463       ;;
9464
9465     beos*)
9466       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9467         allow_undefined_flag=unsupported
9468         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9469         # support --undefined.  This deserves some investigation.  FIXME
9470         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471       else
9472         ld_shlibs=no
9473       fi
9474       ;;
9475
9476     cygwin* | mingw* | pw32* | cegcc*)
9477       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9478       # as there is no search path for DLLs.
9479       hardcode_libdir_flag_spec='-L$libdir'
9480       export_dynamic_flag_spec='${wl}--export-all-symbols'
9481       allow_undefined_flag=unsupported
9482       always_export_symbols=no
9483       enable_shared_with_static_runtimes=yes
9484       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9485
9486       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9487         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9488         # If the export-symbols file already is a .def file (1st line
9489         # is EXPORTS), use it as is; otherwise, prepend...
9490         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9491           cp $export_symbols $output_objdir/$soname.def;
9492         else
9493           echo EXPORTS > $output_objdir/$soname.def;
9494           cat $export_symbols >> $output_objdir/$soname.def;
9495         fi~
9496         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9497       else
9498         ld_shlibs=no
9499       fi
9500       ;;
9501
9502     haiku*)
9503       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9504       link_all_deplibs=yes
9505       ;;
9506
9507     interix[3-9]*)
9508       hardcode_direct=no
9509       hardcode_shlibpath_var=no
9510       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9511       export_dynamic_flag_spec='${wl}-E'
9512       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9513       # Instead, shared libraries are loaded at an image base (0x10000000 by
9514       # default) and relocated if they conflict, which is a slow very memory
9515       # consuming and fragmenting process.  To avoid this, we pick a random,
9516       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9517       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9518       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9519       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'
9520       ;;
9521
9522     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9523       tmp_diet=no
9524       if test "$host_os" = linux-dietlibc; then
9525         case $cc_basename in
9526           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9527         esac
9528       fi
9529       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9530          && test "$tmp_diet" = no
9531       then
9532         tmp_addflag=' $pic_flag'
9533         tmp_sharedflag='-shared'
9534         case $cc_basename,$host_cpu in
9535         pgcc*)                          # Portland Group C compiler
9536           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'
9537           tmp_addflag=' $pic_flag'
9538           ;;
9539         pgf77* | pgf90* | pgf95* | pgfortran*)
9540                                         # Portland Group f77 and f90 compilers
9541           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'
9542           tmp_addflag=' $pic_flag -Mnomain' ;;
9543         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9544           tmp_addflag=' -i_dynamic' ;;
9545         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9546           tmp_addflag=' -i_dynamic -nofor_main' ;;
9547         ifc* | ifort*)                  # Intel Fortran compiler
9548           tmp_addflag=' -nofor_main' ;;
9549         lf95*)                          # Lahey Fortran 8.1
9550           whole_archive_flag_spec=
9551           tmp_sharedflag='--shared' ;;
9552         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9553           tmp_sharedflag='-qmkshrobj'
9554           tmp_addflag= ;;
9555         nvcc*)  # Cuda Compiler Driver 2.2
9556           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'
9557           compiler_needs_object=yes
9558           ;;
9559         esac
9560         case `$CC -V 2>&1 | sed 5q` in
9561         *Sun\ C*)                       # Sun C 5.9
9562           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'
9563           compiler_needs_object=yes
9564           tmp_sharedflag='-G' ;;
9565         *Sun\ F*)                       # Sun Fortran 8.3
9566           tmp_sharedflag='-G' ;;
9567         esac
9568         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9569
9570         if test "x$supports_anon_versioning" = xyes; then
9571           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9572             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9573             echo "local: *; };" >> $output_objdir/$libname.ver~
9574             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9575         fi
9576
9577         case $cc_basename in
9578         xlf* | bgf* | bgxlf* | mpixlf*)
9579           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9580           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9581           hardcode_libdir_flag_spec=
9582           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9583           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9584           if test "x$supports_anon_versioning" = xyes; then
9585             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9586               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9587               echo "local: *; };" >> $output_objdir/$libname.ver~
9588               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9589           fi
9590           ;;
9591         esac
9592       else
9593         ld_shlibs=no
9594       fi
9595       ;;
9596
9597     netbsd*)
9598       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9599         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9600         wlarc=
9601       else
9602         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9604       fi
9605       ;;
9606
9607     solaris*)
9608       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9609         ld_shlibs=no
9610         cat <<_LT_EOF 1>&2
9611
9612 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9613 *** create shared libraries on Solaris systems.  Therefore, libtool
9614 *** is disabling shared libraries support.  We urge you to upgrade GNU
9615 *** binutils to release 2.9.1 or newer.  Another option is to modify
9616 *** your PATH or compiler configuration so that the native linker is
9617 *** used, and then restart.
9618
9619 _LT_EOF
9620       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9621         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9622         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9623       else
9624         ld_shlibs=no
9625       fi
9626       ;;
9627
9628     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9629       case `$LD -v 2>&1` in
9630         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9631         ld_shlibs=no
9632         cat <<_LT_EOF 1>&2
9633
9634 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9635 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9636 *** is disabling shared libraries support.  We urge you to upgrade GNU
9637 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9638 *** your PATH or compiler configuration so that the native linker is
9639 *** used, and then restart.
9640
9641 _LT_EOF
9642         ;;
9643         *)
9644           # For security reasons, it is highly recommended that you always
9645           # use absolute paths for naming shared libraries, and exclude the
9646           # DT_RUNPATH tag from executables and libraries.  But doing so
9647           # requires that you compile everything twice, which is a pain.
9648           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9649             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9650             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9651             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9652           else
9653             ld_shlibs=no
9654           fi
9655         ;;
9656       esac
9657       ;;
9658
9659     sunos4*)
9660       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9661       wlarc=
9662       hardcode_direct=yes
9663       hardcode_shlibpath_var=no
9664       ;;
9665
9666     *)
9667       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9668         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9669         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9670       else
9671         ld_shlibs=no
9672       fi
9673       ;;
9674     esac
9675
9676     if test "$ld_shlibs" = no; then
9677       runpath_var=
9678       hardcode_libdir_flag_spec=
9679       export_dynamic_flag_spec=
9680       whole_archive_flag_spec=
9681     fi
9682   else
9683     # PORTME fill in a description of your system's linker (not GNU ld)
9684     case $host_os in
9685     aix3*)
9686       allow_undefined_flag=unsupported
9687       always_export_symbols=yes
9688       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'
9689       # Note: this linker hardcodes the directories in LIBPATH if there
9690       # are no directories specified by -L.
9691       hardcode_minus_L=yes
9692       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9693         # Neither direct hardcoding nor static linking is supported with a
9694         # broken collect2.
9695         hardcode_direct=unsupported
9696       fi
9697       ;;
9698
9699     aix[4-9]*)
9700       if test "$host_cpu" = ia64; then
9701         # On IA64, the linker does run time linking by default, so we don't
9702         # have to do anything special.
9703         aix_use_runtimelinking=no
9704         exp_sym_flag='-Bexport'
9705         no_entry_flag=""
9706       else
9707         # If we're using GNU nm, then we don't want the "-C" option.
9708         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9709         # Also, AIX nm treats weak defined symbols like other global
9710         # defined symbols, whereas GNU nm marks them as "W".
9711         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9712           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'
9713         else
9714           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'
9715         fi
9716         aix_use_runtimelinking=no
9717
9718         # Test if we are trying to use run time linking or normal
9719         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9720         # need to do runtime linking.
9721         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9722           for ld_flag in $LDFLAGS; do
9723           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9724             aix_use_runtimelinking=yes
9725             break
9726           fi
9727           done
9728           ;;
9729         esac
9730
9731         exp_sym_flag='-bexport'
9732         no_entry_flag='-bnoentry'
9733       fi
9734
9735       # When large executables or shared objects are built, AIX ld can
9736       # have problems creating the table of contents.  If linking a library
9737       # or program results in "error TOC overflow" add -mminimal-toc to
9738       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9739       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9740
9741       archive_cmds=''
9742       hardcode_direct=yes
9743       hardcode_direct_absolute=yes
9744       hardcode_libdir_separator=':'
9745       link_all_deplibs=yes
9746       file_list_spec='${wl}-f,'
9747
9748       if test "$GCC" = yes; then
9749         case $host_os in aix4.[012]|aix4.[012].*)
9750         # We only want to do this on AIX 4.2 and lower, the check
9751         # below for broken collect2 doesn't work under 4.3+
9752           collect2name=`${CC} -print-prog-name=collect2`
9753           if test -f "$collect2name" &&
9754            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9755           then
9756           # We have reworked collect2
9757           :
9758           else
9759           # We have old collect2
9760           hardcode_direct=unsupported
9761           # It fails to find uninstalled libraries when the uninstalled
9762           # path is not listed in the libpath.  Setting hardcode_minus_L
9763           # to unsupported forces relinking
9764           hardcode_minus_L=yes
9765           hardcode_libdir_flag_spec='-L$libdir'
9766           hardcode_libdir_separator=
9767           fi
9768           ;;
9769         esac
9770         shared_flag='-shared'
9771         if test "$aix_use_runtimelinking" = yes; then
9772           shared_flag="$shared_flag "'${wl}-G'
9773         fi
9774       else
9775         # not using gcc
9776         if test "$host_cpu" = ia64; then
9777         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9778         # chokes on -Wl,-G. The following line is correct:
9779           shared_flag='-G'
9780         else
9781           if test "$aix_use_runtimelinking" = yes; then
9782             shared_flag='${wl}-G'
9783           else
9784             shared_flag='${wl}-bM:SRE'
9785           fi
9786         fi
9787       fi
9788
9789       export_dynamic_flag_spec='${wl}-bexpall'
9790       # It seems that -bexpall does not export symbols beginning with
9791       # underscore (_), so it is better to generate a list of symbols to export.
9792       always_export_symbols=yes
9793       if test "$aix_use_runtimelinking" = yes; then
9794         # Warning - without using the other runtime loading flags (-brtl),
9795         # -berok will link without error, but may produce a broken library.
9796         allow_undefined_flag='-berok'
9797         # Determine the default libpath from the value encoded in an
9798         # empty executable.
9799         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h.  */
9801
9802 int
9803 main ()
9804 {
9805
9806   ;
9807   return 0;
9808 }
9809 _ACEOF
9810 if ac_fn_c_try_link "$LINENO"; then :
9811
9812 lt_aix_libpath_sed='
9813     /Import File Strings/,/^$/ {
9814         /^0/ {
9815             s/^0  *\(.*\)$/\1/
9816             p
9817         }
9818     }'
9819 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9820 # Check for a 64-bit object if we didn't find anything.
9821 if test -z "$aix_libpath"; then
9822   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9823 fi
9824 fi
9825 rm -f core conftest.err conftest.$ac_objext \
9826     conftest$ac_exeext conftest.$ac_ext
9827 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9828
9829         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9830         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"
9831       else
9832         if test "$host_cpu" = ia64; then
9833           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9834           allow_undefined_flag="-z nodefs"
9835           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"
9836         else
9837          # Determine the default libpath from the value encoded in an
9838          # empty executable.
9839          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h.  */
9841
9842 int
9843 main ()
9844 {
9845
9846   ;
9847   return 0;
9848 }
9849 _ACEOF
9850 if ac_fn_c_try_link "$LINENO"; then :
9851
9852 lt_aix_libpath_sed='
9853     /Import File Strings/,/^$/ {
9854         /^0/ {
9855             s/^0  *\(.*\)$/\1/
9856             p
9857         }
9858     }'
9859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9860 # Check for a 64-bit object if we didn't find anything.
9861 if test -z "$aix_libpath"; then
9862   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9863 fi
9864 fi
9865 rm -f core conftest.err conftest.$ac_objext \
9866     conftest$ac_exeext conftest.$ac_ext
9867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9868
9869          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9870           # Warning - without using the other run time loading flags,
9871           # -berok will link without error, but may produce a broken library.
9872           no_undefined_flag=' ${wl}-bernotok'
9873           allow_undefined_flag=' ${wl}-berok'
9874           if test "$with_gnu_ld" = yes; then
9875             # We only use this code for GNU lds that support --whole-archive.
9876             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9877           else
9878             # Exported symbols can be pulled into shared objects from archives
9879             whole_archive_flag_spec='$convenience'
9880           fi
9881           archive_cmds_need_lc=yes
9882           # This is similar to how AIX traditionally builds its shared libraries.
9883           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'
9884         fi
9885       fi
9886       ;;
9887
9888     amigaos*)
9889       case $host_cpu in
9890       powerpc)
9891             # see comment about AmigaOS4 .so support
9892             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9893             archive_expsym_cmds=''
9894         ;;
9895       m68k)
9896             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)'
9897             hardcode_libdir_flag_spec='-L$libdir'
9898             hardcode_minus_L=yes
9899         ;;
9900       esac
9901       ;;
9902
9903     bsdi[45]*)
9904       export_dynamic_flag_spec=-rdynamic
9905       ;;
9906
9907     cygwin* | mingw* | pw32* | cegcc*)
9908       # When not using gcc, we currently assume that we are using
9909       # Microsoft Visual C++.
9910       # hardcode_libdir_flag_spec is actually meaningless, as there is
9911       # no search path for DLLs.
9912       hardcode_libdir_flag_spec=' '
9913       allow_undefined_flag=unsupported
9914       # Tell ltmain to make .lib files, not .a files.
9915       libext=lib
9916       # Tell ltmain to make .dll files, not .so files.
9917       shrext_cmds=".dll"
9918       # FIXME: Setting linknames here is a bad hack.
9919       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9920       # The linker will automatically build a .lib file if we build a DLL.
9921       old_archive_from_new_cmds='true'
9922       # FIXME: Should let the user specify the lib program.
9923       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9924       fix_srcfile_path='`cygpath -w "$srcfile"`'
9925       enable_shared_with_static_runtimes=yes
9926       ;;
9927
9928     darwin* | rhapsody*)
9929
9930
9931   archive_cmds_need_lc=no
9932   hardcode_direct=no
9933   hardcode_automatic=yes
9934   hardcode_shlibpath_var=unsupported
9935   if test "$lt_cv_ld_force_load" = "yes"; then
9936     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\"`'
9937   else
9938     whole_archive_flag_spec=''
9939   fi
9940   link_all_deplibs=yes
9941   allow_undefined_flag="$_lt_dar_allow_undefined"
9942   case $cc_basename in
9943      ifort*) _lt_dar_can_shared=yes ;;
9944      *) _lt_dar_can_shared=$GCC ;;
9945   esac
9946   if test "$_lt_dar_can_shared" = "yes"; then
9947     output_verbose_link_cmd=func_echo_all
9948     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9949     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9950     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}"
9951     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}"
9952
9953   else
9954   ld_shlibs=no
9955   fi
9956
9957       ;;
9958
9959     dgux*)
9960       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961       hardcode_libdir_flag_spec='-L$libdir'
9962       hardcode_shlibpath_var=no
9963       ;;
9964
9965     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9966     # support.  Future versions do this automatically, but an explicit c++rt0.o
9967     # does not break anything, and helps significantly (at the cost of a little
9968     # extra space).
9969     freebsd2.2*)
9970       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9971       hardcode_libdir_flag_spec='-R$libdir'
9972       hardcode_direct=yes
9973       hardcode_shlibpath_var=no
9974       ;;
9975
9976     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9977     freebsd2.*)
9978       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9979       hardcode_direct=yes
9980       hardcode_minus_L=yes
9981       hardcode_shlibpath_var=no
9982       ;;
9983
9984     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9985     freebsd* | dragonfly*)
9986       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9987       hardcode_libdir_flag_spec='-R$libdir'
9988       hardcode_direct=yes
9989       hardcode_shlibpath_var=no
9990       ;;
9991
9992     hpux9*)
9993       if test "$GCC" = yes; then
9994         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'
9995       else
9996         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'
9997       fi
9998       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9999       hardcode_libdir_separator=:
10000       hardcode_direct=yes
10001
10002       # hardcode_minus_L: Not really in the search PATH,
10003       # but as the default location of the library.
10004       hardcode_minus_L=yes
10005       export_dynamic_flag_spec='${wl}-E'
10006       ;;
10007
10008     hpux10*)
10009       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10010         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10011       else
10012         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10013       fi
10014       if test "$with_gnu_ld" = no; then
10015         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10016         hardcode_libdir_flag_spec_ld='+b $libdir'
10017         hardcode_libdir_separator=:
10018         hardcode_direct=yes
10019         hardcode_direct_absolute=yes
10020         export_dynamic_flag_spec='${wl}-E'
10021         # hardcode_minus_L: Not really in the search PATH,
10022         # but as the default location of the library.
10023         hardcode_minus_L=yes
10024       fi
10025       ;;
10026
10027     hpux11*)
10028       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10029         case $host_cpu in
10030         hppa*64*)
10031           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10032           ;;
10033         ia64*)
10034           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10035           ;;
10036         *)
10037           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10038           ;;
10039         esac
10040       else
10041         case $host_cpu in
10042         hppa*64*)
10043           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10044           ;;
10045         ia64*)
10046           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10047           ;;
10048         *)
10049
10050           # Older versions of the 11.00 compiler do not understand -b yet
10051           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10052           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10053 $as_echo_n "checking if $CC understands -b... " >&6; }
10054 if ${lt_cv_prog_compiler__b+:} false; then :
10055   $as_echo_n "(cached) " >&6
10056 else
10057   lt_cv_prog_compiler__b=no
10058    save_LDFLAGS="$LDFLAGS"
10059    LDFLAGS="$LDFLAGS -b"
10060    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10061    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10062      # The linker can only warn and ignore the option if not recognized
10063      # So say no if there are warnings
10064      if test -s conftest.err; then
10065        # Append any errors to the config.log.
10066        cat conftest.err 1>&5
10067        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10068        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10069        if diff conftest.exp conftest.er2 >/dev/null; then
10070          lt_cv_prog_compiler__b=yes
10071        fi
10072      else
10073        lt_cv_prog_compiler__b=yes
10074      fi
10075    fi
10076    $RM -r conftest*
10077    LDFLAGS="$save_LDFLAGS"
10078
10079 fi
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10081 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10082
10083 if test x"$lt_cv_prog_compiler__b" = xyes; then
10084     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10085 else
10086     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10087 fi
10088
10089           ;;
10090         esac
10091       fi
10092       if test "$with_gnu_ld" = no; then
10093         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10094         hardcode_libdir_separator=:
10095
10096         case $host_cpu in
10097         hppa*64*|ia64*)
10098           hardcode_direct=no
10099           hardcode_shlibpath_var=no
10100           ;;
10101         *)
10102           hardcode_direct=yes
10103           hardcode_direct_absolute=yes
10104           export_dynamic_flag_spec='${wl}-E'
10105
10106           # hardcode_minus_L: Not really in the search PATH,
10107           # but as the default location of the library.
10108           hardcode_minus_L=yes
10109           ;;
10110         esac
10111       fi
10112       ;;
10113
10114     irix5* | irix6* | nonstopux*)
10115       if test "$GCC" = yes; then
10116         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'
10117         # Try to use the -exported_symbol ld option, if it does not
10118         # work, assume that -exports_file does not work either and
10119         # implicitly export all symbols.
10120         save_LDFLAGS="$LDFLAGS"
10121         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10122         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h.  */
10124 int foo(void) {}
10125 _ACEOF
10126 if ac_fn_c_try_link "$LINENO"; then :
10127   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'
10128
10129 fi
10130 rm -f core conftest.err conftest.$ac_objext \
10131     conftest$ac_exeext conftest.$ac_ext
10132         LDFLAGS="$save_LDFLAGS"
10133       else
10134         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'
10135         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'
10136       fi
10137       archive_cmds_need_lc='no'
10138       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10139       hardcode_libdir_separator=:
10140       inherit_rpath=yes
10141       link_all_deplibs=yes
10142       ;;
10143
10144     netbsd*)
10145       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10146         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10147       else
10148         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10149       fi
10150       hardcode_libdir_flag_spec='-R$libdir'
10151       hardcode_direct=yes
10152       hardcode_shlibpath_var=no
10153       ;;
10154
10155     newsos6)
10156       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157       hardcode_direct=yes
10158       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10159       hardcode_libdir_separator=:
10160       hardcode_shlibpath_var=no
10161       ;;
10162
10163     *nto* | *qnx*)
10164       ;;
10165
10166     openbsd*)
10167       if test -f /usr/libexec/ld.so; then
10168         hardcode_direct=yes
10169         hardcode_shlibpath_var=no
10170         hardcode_direct_absolute=yes
10171         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10172           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10173           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10174           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10175           export_dynamic_flag_spec='${wl}-E'
10176         else
10177           case $host_os in
10178            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10179              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10180              hardcode_libdir_flag_spec='-R$libdir'
10181              ;;
10182            *)
10183              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10184              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10185              ;;
10186           esac
10187         fi
10188       else
10189         ld_shlibs=no
10190       fi
10191       ;;
10192
10193     os2*)
10194       hardcode_libdir_flag_spec='-L$libdir'
10195       hardcode_minus_L=yes
10196       allow_undefined_flag=unsupported
10197       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'
10198       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10199       ;;
10200
10201     osf3*)
10202       if test "$GCC" = yes; then
10203         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10204         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'
10205       else
10206         allow_undefined_flag=' -expect_unresolved \*'
10207         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'
10208       fi
10209       archive_cmds_need_lc='no'
10210       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10211       hardcode_libdir_separator=:
10212       ;;
10213
10214     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10215       if test "$GCC" = yes; then
10216         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10217         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'
10218         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10219       else
10220         allow_undefined_flag=' -expect_unresolved \*'
10221         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'
10222         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~
10223         $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'
10224
10225         # Both c and cxx compiler support -rpath directly
10226         hardcode_libdir_flag_spec='-rpath $libdir'
10227       fi
10228       archive_cmds_need_lc='no'
10229       hardcode_libdir_separator=:
10230       ;;
10231
10232     solaris*)
10233       no_undefined_flag=' -z defs'
10234       if test "$GCC" = yes; then
10235         wlarc='${wl}'
10236         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10237         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10238           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10239       else
10240         case `$CC -V 2>&1` in
10241         *"Compilers 5.0"*)
10242           wlarc=''
10243           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10244           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10245           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10246           ;;
10247         *)
10248           wlarc='${wl}'
10249           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10250           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10251           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10252           ;;
10253         esac
10254       fi
10255       hardcode_libdir_flag_spec='-R$libdir'
10256       hardcode_shlibpath_var=no
10257       case $host_os in
10258       solaris2.[0-5] | solaris2.[0-5].*) ;;
10259       *)
10260         # The compiler driver will combine and reorder linker options,
10261         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10262         # but is careful enough not to reorder.
10263         # Supported since Solaris 2.6 (maybe 2.5.1?)
10264         if test "$GCC" = yes; then
10265           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10266         else
10267           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10268         fi
10269         ;;
10270       esac
10271       link_all_deplibs=yes
10272       ;;
10273
10274     sunos4*)
10275       if test "x$host_vendor" = xsequent; then
10276         # Use $CC to link under sequent, because it throws in some extra .o
10277         # files that make .init and .fini sections work.
10278         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10279       else
10280         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10281       fi
10282       hardcode_libdir_flag_spec='-L$libdir'
10283       hardcode_direct=yes
10284       hardcode_minus_L=yes
10285       hardcode_shlibpath_var=no
10286       ;;
10287
10288     sysv4)
10289       case $host_vendor in
10290         sni)
10291           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292           hardcode_direct=yes # is this really true???
10293         ;;
10294         siemens)
10295           ## LD is ld it makes a PLAMLIB
10296           ## CC just makes a GrossModule.
10297           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10298           reload_cmds='$CC -r -o $output$reload_objs'
10299           hardcode_direct=no
10300         ;;
10301         motorola)
10302           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10304         ;;
10305       esac
10306       runpath_var='LD_RUN_PATH'
10307       hardcode_shlibpath_var=no
10308       ;;
10309
10310     sysv4.3*)
10311       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10312       hardcode_shlibpath_var=no
10313       export_dynamic_flag_spec='-Bexport'
10314       ;;
10315
10316     sysv4*MP*)
10317       if test -d /usr/nec; then
10318         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10319         hardcode_shlibpath_var=no
10320         runpath_var=LD_RUN_PATH
10321         hardcode_runpath_var=yes
10322         ld_shlibs=yes
10323       fi
10324       ;;
10325
10326     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10327       no_undefined_flag='${wl}-z,text'
10328       archive_cmds_need_lc=no
10329       hardcode_shlibpath_var=no
10330       runpath_var='LD_RUN_PATH'
10331
10332       if test "$GCC" = yes; then
10333         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10334         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10335       else
10336         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10338       fi
10339       ;;
10340
10341     sysv5* | sco3.2v5* | sco5v6*)
10342       # Note: We can NOT use -z defs as we might desire, because we do not
10343       # link with -lc, and that would cause any symbols used from libc to
10344       # always be unresolved, which means just about no library would
10345       # ever link correctly.  If we're not using GNU ld we use -z text
10346       # though, which does catch some bad symbols but isn't as heavy-handed
10347       # as -z defs.
10348       no_undefined_flag='${wl}-z,text'
10349       allow_undefined_flag='${wl}-z,nodefs'
10350       archive_cmds_need_lc=no
10351       hardcode_shlibpath_var=no
10352       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10353       hardcode_libdir_separator=':'
10354       link_all_deplibs=yes
10355       export_dynamic_flag_spec='${wl}-Bexport'
10356       runpath_var='LD_RUN_PATH'
10357
10358       if test "$GCC" = yes; then
10359         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10360         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361       else
10362         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10363         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364       fi
10365       ;;
10366
10367     uts4*)
10368       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369       hardcode_libdir_flag_spec='-L$libdir'
10370       hardcode_shlibpath_var=no
10371       ;;
10372
10373     *)
10374       ld_shlibs=no
10375       ;;
10376     esac
10377
10378     if test x$host_vendor = xsni; then
10379       case $host in
10380       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10381         export_dynamic_flag_spec='${wl}-Blargedynsym'
10382         ;;
10383       esac
10384     fi
10385   fi
10386
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10388 $as_echo "$ld_shlibs" >&6; }
10389 test "$ld_shlibs" = no && can_build_shared=no
10390
10391 with_gnu_ld=$with_gnu_ld
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407 #
10408 # Do we need to explicitly link libc?
10409 #
10410 case "x$archive_cmds_need_lc" in
10411 x|xyes)
10412   # Assume -lc should be added
10413   archive_cmds_need_lc=yes
10414
10415   if test "$enable_shared" = yes && test "$GCC" = yes; then
10416     case $archive_cmds in
10417     *'~'*)
10418       # FIXME: we may have to deal with multi-command sequences.
10419       ;;
10420     '$CC '*)
10421       # Test whether the compiler implicitly links with -lc since on some
10422       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10423       # to ld, don't add -lc before -lgcc.
10424       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10425 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10426 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10427   $as_echo_n "(cached) " >&6
10428 else
10429   $RM conftest*
10430         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10431
10432         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10433   (eval $ac_compile) 2>&5
10434   ac_status=$?
10435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10436   test $ac_status = 0; } 2>conftest.err; then
10437           soname=conftest
10438           lib=conftest
10439           libobjs=conftest.$ac_objext
10440           deplibs=
10441           wl=$lt_prog_compiler_wl
10442           pic_flag=$lt_prog_compiler_pic
10443           compiler_flags=-v
10444           linker_flags=-v
10445           verstring=
10446           output_objdir=.
10447           libname=conftest
10448           lt_save_allow_undefined_flag=$allow_undefined_flag
10449           allow_undefined_flag=
10450           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10451   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10452   ac_status=$?
10453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10454   test $ac_status = 0; }
10455           then
10456             lt_cv_archive_cmds_need_lc=no
10457           else
10458             lt_cv_archive_cmds_need_lc=yes
10459           fi
10460           allow_undefined_flag=$lt_save_allow_undefined_flag
10461         else
10462           cat conftest.err 1>&5
10463         fi
10464         $RM conftest*
10465
10466 fi
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10468 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10469       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10470       ;;
10471     esac
10472   fi
10473   ;;
10474 esac
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10633 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10634
10635 if test "$GCC" = yes; then
10636   case $host_os in
10637     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10638     *) lt_awk_arg="/^libraries:/" ;;
10639   esac
10640   case $host_os in
10641     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10642     *) lt_sed_strip_eq="s,=/,/,g" ;;
10643   esac
10644   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10645   case $lt_search_path_spec in
10646   *\;*)
10647     # if the path contains ";" then we assume it to be the separator
10648     # otherwise default to the standard path separator (i.e. ":") - it is
10649     # assumed that no part of a normal pathname contains ";" but that should
10650     # okay in the real world where ";" in dirpaths is itself problematic.
10651     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10652     ;;
10653   *)
10654     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10655     ;;
10656   esac
10657   # Ok, now we have the path, separated by spaces, we can step through it
10658   # and add multilib dir if necessary.
10659   lt_tmp_lt_search_path_spec=
10660   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10661   for lt_sys_path in $lt_search_path_spec; do
10662     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10663       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10664     else
10665       test -d "$lt_sys_path" && \
10666         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10667     fi
10668   done
10669   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10670 BEGIN {RS=" "; FS="/|\n";} {
10671   lt_foo="";
10672   lt_count=0;
10673   for (lt_i = NF; lt_i > 0; lt_i--) {
10674     if ($lt_i != "" && $lt_i != ".") {
10675       if ($lt_i == "..") {
10676         lt_count++;
10677       } else {
10678         if (lt_count == 0) {
10679           lt_foo="/" $lt_i lt_foo;
10680         } else {
10681           lt_count--;
10682         }
10683       }
10684     }
10685   }
10686   if (lt_foo != "") { lt_freq[lt_foo]++; }
10687   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10688 }'`
10689   # AWK program above erroneously prepends '/' to C:/dos/paths
10690   # for these hosts.
10691   case $host_os in
10692     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10693       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10694   esac
10695   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10696 else
10697   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10698 fi
10699 library_names_spec=
10700 libname_spec='lib$name'
10701 soname_spec=
10702 shrext_cmds=".so"
10703 postinstall_cmds=
10704 postuninstall_cmds=
10705 finish_cmds=
10706 finish_eval=
10707 shlibpath_var=
10708 shlibpath_overrides_runpath=unknown
10709 version_type=none
10710 dynamic_linker="$host_os ld.so"
10711 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10712 need_lib_prefix=unknown
10713 hardcode_into_libs=no
10714
10715 # when you set need_version to no, make sure it does not cause -set_version
10716 # flags to be left without arguments
10717 need_version=unknown
10718
10719 case $host_os in
10720 aix3*)
10721   version_type=linux
10722   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10723   shlibpath_var=LIBPATH
10724
10725   # AIX 3 has no versioning support, so we append a major version to the name.
10726   soname_spec='${libname}${release}${shared_ext}$major'
10727   ;;
10728
10729 aix[4-9]*)
10730   version_type=linux
10731   need_lib_prefix=no
10732   need_version=no
10733   hardcode_into_libs=yes
10734   if test "$host_cpu" = ia64; then
10735     # AIX 5 supports IA64
10736     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10737     shlibpath_var=LD_LIBRARY_PATH
10738   else
10739     # With GCC up to 2.95.x, collect2 would create an import file
10740     # for dependence libraries.  The import file would start with
10741     # the line `#! .'.  This would cause the generated library to
10742     # depend on `.', always an invalid library.  This was fixed in
10743     # development snapshots of GCC prior to 3.0.
10744     case $host_os in
10745       aix4 | aix4.[01] | aix4.[01].*)
10746       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10747            echo ' yes '
10748            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10749         :
10750       else
10751         can_build_shared=no
10752       fi
10753       ;;
10754     esac
10755     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10756     # soname into executable. Probably we can add versioning support to
10757     # collect2, so additional links can be useful in future.
10758     if test "$aix_use_runtimelinking" = yes; then
10759       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10760       # instead of lib<name>.a to let people know that these are not
10761       # typical AIX shared libraries.
10762       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763     else
10764       # We preserve .a as extension for shared libraries through AIX4.2
10765       # and later when we are not doing run time linking.
10766       library_names_spec='${libname}${release}.a $libname.a'
10767       soname_spec='${libname}${release}${shared_ext}$major'
10768     fi
10769     shlibpath_var=LIBPATH
10770   fi
10771   ;;
10772
10773 amigaos*)
10774   case $host_cpu in
10775   powerpc)
10776     # Since July 2007 AmigaOS4 officially supports .so libraries.
10777     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10778     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779     ;;
10780   m68k)
10781     library_names_spec='$libname.ixlibrary $libname.a'
10782     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10783     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'
10784     ;;
10785   esac
10786   ;;
10787
10788 beos*)
10789   library_names_spec='${libname}${shared_ext}'
10790   dynamic_linker="$host_os ld.so"
10791   shlibpath_var=LIBRARY_PATH
10792   ;;
10793
10794 bsdi[45]*)
10795   version_type=linux
10796   need_version=no
10797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798   soname_spec='${libname}${release}${shared_ext}$major'
10799   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10800   shlibpath_var=LD_LIBRARY_PATH
10801   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10802   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10803   # the default ld.so.conf also contains /usr/contrib/lib and
10804   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10805   # libtool to hard-code these into programs
10806   ;;
10807
10808 cygwin* | mingw* | pw32* | cegcc*)
10809   version_type=windows
10810   shrext_cmds=".dll"
10811   need_version=no
10812   need_lib_prefix=no
10813
10814   case $GCC,$host_os in
10815   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10816     library_names_spec='$libname.dll.a'
10817     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10818     postinstall_cmds='base_file=`basename \${file}`~
10819       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10820       dldir=$destdir/`dirname \$dlpath`~
10821       test -d \$dldir || mkdir -p \$dldir~
10822       $install_prog $dir/$dlname \$dldir/$dlname~
10823       chmod a+x \$dldir/$dlname~
10824       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10825         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10826       fi'
10827     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10828       dlpath=$dir/\$dldll~
10829        $RM \$dlpath'
10830     shlibpath_overrides_runpath=yes
10831
10832     case $host_os in
10833     cygwin*)
10834       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10835       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10836
10837       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10838       ;;
10839     mingw* | cegcc*)
10840       # MinGW DLLs use traditional 'lib' prefix
10841       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10842       ;;
10843     pw32*)
10844       # pw32 DLLs use 'pw' prefix rather than 'lib'
10845       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10846       ;;
10847     esac
10848     ;;
10849
10850   *)
10851     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10852     ;;
10853   esac
10854   dynamic_linker='Win32 ld.exe'
10855   # FIXME: first we should search . and the directory the executable is in
10856   shlibpath_var=PATH
10857   ;;
10858
10859 darwin* | rhapsody*)
10860   dynamic_linker="$host_os dyld"
10861   version_type=darwin
10862   need_lib_prefix=no
10863   need_version=no
10864   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10865   soname_spec='${libname}${release}${major}$shared_ext'
10866   shlibpath_overrides_runpath=yes
10867   shlibpath_var=DYLD_LIBRARY_PATH
10868   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10869
10870   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10871   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10872   ;;
10873
10874 dgux*)
10875   version_type=linux
10876   need_lib_prefix=no
10877   need_version=no
10878   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10879   soname_spec='${libname}${release}${shared_ext}$major'
10880   shlibpath_var=LD_LIBRARY_PATH
10881   ;;
10882
10883 freebsd* | dragonfly*)
10884   # DragonFly does not have aout.  When/if they implement a new
10885   # versioning mechanism, adjust this.
10886   if test -x /usr/bin/objformat; then
10887     objformat=`/usr/bin/objformat`
10888   else
10889     case $host_os in
10890     freebsd[23].*) objformat=aout ;;
10891     *) objformat=elf ;;
10892     esac
10893   fi
10894   version_type=freebsd-$objformat
10895   case $version_type in
10896     freebsd-elf*)
10897       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10898       need_version=no
10899       need_lib_prefix=no
10900       ;;
10901     freebsd-*)
10902       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10903       need_version=yes
10904       ;;
10905   esac
10906   shlibpath_var=LD_LIBRARY_PATH
10907   case $host_os in
10908   freebsd2.*)
10909     shlibpath_overrides_runpath=yes
10910     ;;
10911   freebsd3.[01]* | freebsdelf3.[01]*)
10912     shlibpath_overrides_runpath=yes
10913     hardcode_into_libs=yes
10914     ;;
10915   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10916   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10917     shlibpath_overrides_runpath=no
10918     hardcode_into_libs=yes
10919     ;;
10920   *) # from 4.6 on, and DragonFly
10921     shlibpath_overrides_runpath=yes
10922     hardcode_into_libs=yes
10923     ;;
10924   esac
10925   ;;
10926
10927 gnu*)
10928   version_type=linux
10929   need_lib_prefix=no
10930   need_version=no
10931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10932   soname_spec='${libname}${release}${shared_ext}$major'
10933   shlibpath_var=LD_LIBRARY_PATH
10934   hardcode_into_libs=yes
10935   ;;
10936
10937 haiku*)
10938   version_type=linux
10939   need_lib_prefix=no
10940   need_version=no
10941   dynamic_linker="$host_os runtime_loader"
10942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10943   soname_spec='${libname}${release}${shared_ext}$major'
10944   shlibpath_var=LIBRARY_PATH
10945   shlibpath_overrides_runpath=yes
10946   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10947   hardcode_into_libs=yes
10948   ;;
10949
10950 hpux9* | hpux10* | hpux11*)
10951   # Give a soname corresponding to the major version so that dld.sl refuses to
10952   # link against other versions.
10953   version_type=sunos
10954   need_lib_prefix=no
10955   need_version=no
10956   case $host_cpu in
10957   ia64*)
10958     shrext_cmds='.so'
10959     hardcode_into_libs=yes
10960     dynamic_linker="$host_os dld.so"
10961     shlibpath_var=LD_LIBRARY_PATH
10962     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10963     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964     soname_spec='${libname}${release}${shared_ext}$major'
10965     if test "X$HPUX_IA64_MODE" = X32; then
10966       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10967     else
10968       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10969     fi
10970     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10971     ;;
10972   hppa*64*)
10973     shrext_cmds='.sl'
10974     hardcode_into_libs=yes
10975     dynamic_linker="$host_os dld.sl"
10976     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10977     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979     soname_spec='${libname}${release}${shared_ext}$major'
10980     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10981     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10982     ;;
10983   *)
10984     shrext_cmds='.sl'
10985     dynamic_linker="$host_os dld.sl"
10986     shlibpath_var=SHLIB_PATH
10987     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10988     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989     soname_spec='${libname}${release}${shared_ext}$major'
10990     ;;
10991   esac
10992   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10993   postinstall_cmds='chmod 555 $lib'
10994   # or fails outright, so override atomically:
10995   install_override_mode=555
10996   ;;
10997
10998 interix[3-9]*)
10999   version_type=linux
11000   need_lib_prefix=no
11001   need_version=no
11002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11003   soname_spec='${libname}${release}${shared_ext}$major'
11004   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11005   shlibpath_var=LD_LIBRARY_PATH
11006   shlibpath_overrides_runpath=no
11007   hardcode_into_libs=yes
11008   ;;
11009
11010 irix5* | irix6* | nonstopux*)
11011   case $host_os in
11012     nonstopux*) version_type=nonstopux ;;
11013     *)
11014         if test "$lt_cv_prog_gnu_ld" = yes; then
11015                 version_type=linux
11016         else
11017                 version_type=irix
11018         fi ;;
11019   esac
11020   need_lib_prefix=no
11021   need_version=no
11022   soname_spec='${libname}${release}${shared_ext}$major'
11023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11024   case $host_os in
11025   irix5* | nonstopux*)
11026     libsuff= shlibsuff=
11027     ;;
11028   *)
11029     case $LD in # libtool.m4 will add one of these switches to LD
11030     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11031       libsuff= shlibsuff= libmagic=32-bit;;
11032     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11033       libsuff=32 shlibsuff=N32 libmagic=N32;;
11034     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11035       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11036     *) libsuff= shlibsuff= libmagic=never-match;;
11037     esac
11038     ;;
11039   esac
11040   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11041   shlibpath_overrides_runpath=no
11042   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11043   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11044   hardcode_into_libs=yes
11045   ;;
11046
11047 # No shared lib support for Linux oldld, aout, or coff.
11048 linux*oldld* | linux*aout* | linux*coff*)
11049   dynamic_linker=no
11050   ;;
11051
11052 # This must be Linux ELF.
11053
11054 # uclinux* changes (here and below) have been submitted to the libtool
11055 # project, but have not yet been accepted: they are GCC-local changes
11056 # for the time being.  (See
11057 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11058 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
11059   version_type=linux
11060   need_lib_prefix=no
11061   need_version=no
11062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063   soname_spec='${libname}${release}${shared_ext}$major'
11064   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11065   shlibpath_var=LD_LIBRARY_PATH
11066   shlibpath_overrides_runpath=no
11067
11068   # Some binutils ld are patched to set DT_RUNPATH
11069   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11070   $as_echo_n "(cached) " >&6
11071 else
11072   lt_cv_shlibpath_overrides_runpath=no
11073     save_LDFLAGS=$LDFLAGS
11074     save_libdir=$libdir
11075     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11076          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h.  */
11079
11080 int
11081 main ()
11082 {
11083
11084   ;
11085   return 0;
11086 }
11087 _ACEOF
11088 if ac_fn_c_try_link "$LINENO"; then :
11089   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11090   lt_cv_shlibpath_overrides_runpath=yes
11091 fi
11092 fi
11093 rm -f core conftest.err conftest.$ac_objext \
11094     conftest$ac_exeext conftest.$ac_ext
11095     LDFLAGS=$save_LDFLAGS
11096     libdir=$save_libdir
11097
11098 fi
11099
11100   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11101
11102   # This implies no fast_install, which is unacceptable.
11103   # Some rework will be needed to allow for fast_install
11104   # before this can be enabled.
11105   hardcode_into_libs=yes
11106
11107   # Append ld.so.conf contents to the search path
11108   if test -f /etc/ld.so.conf; then
11109     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' ' '`
11110     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11111   fi
11112
11113   # We used to test for /lib/ld.so.1 and disable shared libraries on
11114   # powerpc, because MkLinux only supported shared libraries with the
11115   # GNU dynamic linker.  Since this was broken with cross compilers,
11116   # most powerpc-linux boxes support dynamic linking these days and
11117   # people can always --disable-shared, the test was removed, and we
11118   # assume the GNU/Linux dynamic linker is in use.
11119   dynamic_linker='GNU/Linux ld.so'
11120   ;;
11121
11122 netbsd*)
11123   version_type=sunos
11124   need_lib_prefix=no
11125   need_version=no
11126   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11128     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11129     dynamic_linker='NetBSD (a.out) ld.so'
11130   else
11131     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11132     soname_spec='${libname}${release}${shared_ext}$major'
11133     dynamic_linker='NetBSD ld.elf_so'
11134   fi
11135   shlibpath_var=LD_LIBRARY_PATH
11136   shlibpath_overrides_runpath=yes
11137   hardcode_into_libs=yes
11138   ;;
11139
11140 newsos6)
11141   version_type=linux
11142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143   shlibpath_var=LD_LIBRARY_PATH
11144   shlibpath_overrides_runpath=yes
11145   ;;
11146
11147 *nto* | *qnx*)
11148   version_type=qnx
11149   need_lib_prefix=no
11150   need_version=no
11151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11152   soname_spec='${libname}${release}${shared_ext}$major'
11153   shlibpath_var=LD_LIBRARY_PATH
11154   shlibpath_overrides_runpath=no
11155   hardcode_into_libs=yes
11156   dynamic_linker='ldqnx.so'
11157   ;;
11158
11159 openbsd*)
11160   version_type=sunos
11161   sys_lib_dlsearch_path_spec="/usr/lib"
11162   need_lib_prefix=no
11163   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11164   case $host_os in
11165     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11166     *)                          need_version=no  ;;
11167   esac
11168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11169   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11170   shlibpath_var=LD_LIBRARY_PATH
11171   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11172     case $host_os in
11173       openbsd2.[89] | openbsd2.[89].*)
11174         shlibpath_overrides_runpath=no
11175         ;;
11176       *)
11177         shlibpath_overrides_runpath=yes
11178         ;;
11179       esac
11180   else
11181     shlibpath_overrides_runpath=yes
11182   fi
11183   ;;
11184
11185 os2*)
11186   libname_spec='$name'
11187   shrext_cmds=".dll"
11188   need_lib_prefix=no
11189   library_names_spec='$libname${shared_ext} $libname.a'
11190   dynamic_linker='OS/2 ld.exe'
11191   shlibpath_var=LIBPATH
11192   ;;
11193
11194 osf3* | osf4* | osf5*)
11195   version_type=osf
11196   need_lib_prefix=no
11197   need_version=no
11198   soname_spec='${libname}${release}${shared_ext}$major'
11199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200   shlibpath_var=LD_LIBRARY_PATH
11201   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11202   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11203   ;;
11204
11205 rdos*)
11206   dynamic_linker=no
11207   ;;
11208
11209 solaris*)
11210   version_type=linux
11211   need_lib_prefix=no
11212   need_version=no
11213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214   soname_spec='${libname}${release}${shared_ext}$major'
11215   shlibpath_var=LD_LIBRARY_PATH
11216   shlibpath_overrides_runpath=yes
11217   hardcode_into_libs=yes
11218   # ldd complains unless libraries are executable
11219   postinstall_cmds='chmod +x $lib'
11220   ;;
11221
11222 sunos4*)
11223   version_type=sunos
11224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11225   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11226   shlibpath_var=LD_LIBRARY_PATH
11227   shlibpath_overrides_runpath=yes
11228   if test "$with_gnu_ld" = yes; then
11229     need_lib_prefix=no
11230   fi
11231   need_version=yes
11232   ;;
11233
11234 sysv4 | sysv4.3*)
11235   version_type=linux
11236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11237   soname_spec='${libname}${release}${shared_ext}$major'
11238   shlibpath_var=LD_LIBRARY_PATH
11239   case $host_vendor in
11240     sni)
11241       shlibpath_overrides_runpath=no
11242       need_lib_prefix=no
11243       runpath_var=LD_RUN_PATH
11244       ;;
11245     siemens)
11246       need_lib_prefix=no
11247       ;;
11248     motorola)
11249       need_lib_prefix=no
11250       need_version=no
11251       shlibpath_overrides_runpath=no
11252       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11253       ;;
11254   esac
11255   ;;
11256
11257 sysv4*MP*)
11258   if test -d /usr/nec ;then
11259     version_type=linux
11260     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11261     soname_spec='$libname${shared_ext}.$major'
11262     shlibpath_var=LD_LIBRARY_PATH
11263   fi
11264   ;;
11265
11266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11267   version_type=freebsd-elf
11268   need_lib_prefix=no
11269   need_version=no
11270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11271   soname_spec='${libname}${release}${shared_ext}$major'
11272   shlibpath_var=LD_LIBRARY_PATH
11273   shlibpath_overrides_runpath=yes
11274   hardcode_into_libs=yes
11275   if test "$with_gnu_ld" = yes; then
11276     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11277   else
11278     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11279     case $host_os in
11280       sco3.2v5*)
11281         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11282         ;;
11283     esac
11284   fi
11285   sys_lib_dlsearch_path_spec='/usr/lib'
11286   ;;
11287
11288 tpf*)
11289   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11290   version_type=linux
11291   need_lib_prefix=no
11292   need_version=no
11293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294   shlibpath_var=LD_LIBRARY_PATH
11295   shlibpath_overrides_runpath=no
11296   hardcode_into_libs=yes
11297   ;;
11298
11299 uts4*)
11300   version_type=linux
11301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302   soname_spec='${libname}${release}${shared_ext}$major'
11303   shlibpath_var=LD_LIBRARY_PATH
11304   ;;
11305
11306 *)
11307   dynamic_linker=no
11308   ;;
11309 esac
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11311 $as_echo "$dynamic_linker" >&6; }
11312 test "$dynamic_linker" = no && can_build_shared=no
11313
11314 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11315 if test "$GCC" = yes; then
11316   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11317 fi
11318
11319 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11320   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11321 fi
11322 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11323   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11324 fi
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11418 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11419 hardcode_action=
11420 if test -n "$hardcode_libdir_flag_spec" ||
11421    test -n "$runpath_var" ||
11422    test "X$hardcode_automatic" = "Xyes" ; then
11423
11424   # We can hardcode non-existent directories.
11425   if test "$hardcode_direct" != no &&
11426      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11427      # have to relink, otherwise we might link with an installed library
11428      # when we should be linking with a yet-to-be-installed one
11429      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11430      test "$hardcode_minus_L" != no; then
11431     # Linking always hardcodes the temporary library directory.
11432     hardcode_action=relink
11433   else
11434     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11435     hardcode_action=immediate
11436   fi
11437 else
11438   # We cannot hardcode anything, or else we can only hardcode existing
11439   # directories.
11440   hardcode_action=unsupported
11441 fi
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11443 $as_echo "$hardcode_action" >&6; }
11444
11445 if test "$hardcode_action" = relink ||
11446    test "$inherit_rpath" = yes; then
11447   # Fast installation is not supported
11448   enable_fast_install=no
11449 elif test "$shlibpath_overrides_runpath" = yes ||
11450      test "$enable_shared" = no; then
11451   # Fast installation is not necessary
11452   enable_fast_install=needless
11453 fi
11454
11455
11456
11457
11458
11459
11460   if test "x$enable_dlopen" != xyes; then
11461   enable_dlopen=unknown
11462   enable_dlopen_self=unknown
11463   enable_dlopen_self_static=unknown
11464 else
11465   lt_cv_dlopen=no
11466   lt_cv_dlopen_libs=
11467
11468   case $host_os in
11469   beos*)
11470     lt_cv_dlopen="load_add_on"
11471     lt_cv_dlopen_libs=
11472     lt_cv_dlopen_self=yes
11473     ;;
11474
11475   mingw* | pw32* | cegcc*)
11476     lt_cv_dlopen="LoadLibrary"
11477     lt_cv_dlopen_libs=
11478     ;;
11479
11480   cygwin*)
11481     lt_cv_dlopen="dlopen"
11482     lt_cv_dlopen_libs=
11483     ;;
11484
11485   darwin*)
11486   # if libdl is installed we need to link against it
11487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11488 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11489 if ${ac_cv_lib_dl_dlopen+:} false; then :
11490   $as_echo_n "(cached) " >&6
11491 else
11492   ac_check_lib_save_LIBS=$LIBS
11493 LIBS="-ldl  $LIBS"
11494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 /* end confdefs.h.  */
11496
11497 /* Override any GCC internal prototype to avoid an error.
11498    Use char because int might match the return type of a GCC
11499    builtin and then its argument prototype would still apply.  */
11500 #ifdef __cplusplus
11501 extern "C"
11502 #endif
11503 char dlopen ();
11504 int
11505 main ()
11506 {
11507 return dlopen ();
11508   ;
11509   return 0;
11510 }
11511 _ACEOF
11512 if ac_fn_c_try_link "$LINENO"; then :
11513   ac_cv_lib_dl_dlopen=yes
11514 else
11515   ac_cv_lib_dl_dlopen=no
11516 fi
11517 rm -f core conftest.err conftest.$ac_objext \
11518     conftest$ac_exeext conftest.$ac_ext
11519 LIBS=$ac_check_lib_save_LIBS
11520 fi
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11522 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11523 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11524   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11525 else
11526
11527     lt_cv_dlopen="dyld"
11528     lt_cv_dlopen_libs=
11529     lt_cv_dlopen_self=yes
11530
11531 fi
11532
11533     ;;
11534
11535   *)
11536     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11537 if test "x$ac_cv_func_shl_load" = xyes; then :
11538   lt_cv_dlopen="shl_load"
11539 else
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11541 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11542 if ${ac_cv_lib_dld_shl_load+:} 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 shl_load ();
11557 int
11558 main ()
11559 {
11560 return shl_load ();
11561   ;
11562   return 0;
11563 }
11564 _ACEOF
11565 if ac_fn_c_try_link "$LINENO"; then :
11566   ac_cv_lib_dld_shl_load=yes
11567 else
11568   ac_cv_lib_dld_shl_load=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_shl_load" >&5
11575 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11576 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11577   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11578 else
11579   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11580 if test "x$ac_cv_func_dlopen" = xyes; then :
11581   lt_cv_dlopen="dlopen"
11582 else
11583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11584 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11585 if ${ac_cv_lib_dl_dlopen+:} false; then :
11586   $as_echo_n "(cached) " >&6
11587 else
11588   ac_check_lib_save_LIBS=$LIBS
11589 LIBS="-ldl  $LIBS"
11590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11591 /* end confdefs.h.  */
11592
11593 /* Override any GCC internal prototype to avoid an error.
11594    Use char because int might match the return type of a GCC
11595    builtin and then its argument prototype would still apply.  */
11596 #ifdef __cplusplus
11597 extern "C"
11598 #endif
11599 char dlopen ();
11600 int
11601 main ()
11602 {
11603 return dlopen ();
11604   ;
11605   return 0;
11606 }
11607 _ACEOF
11608 if ac_fn_c_try_link "$LINENO"; then :
11609   ac_cv_lib_dl_dlopen=yes
11610 else
11611   ac_cv_lib_dl_dlopen=no
11612 fi
11613 rm -f core conftest.err conftest.$ac_objext \
11614     conftest$ac_exeext conftest.$ac_ext
11615 LIBS=$ac_check_lib_save_LIBS
11616 fi
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11618 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11619 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11620   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11621 else
11622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11623 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11624 if ${ac_cv_lib_svld_dlopen+:} false; then :
11625   $as_echo_n "(cached) " >&6
11626 else
11627   ac_check_lib_save_LIBS=$LIBS
11628 LIBS="-lsvld  $LIBS"
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630 /* end confdefs.h.  */
11631
11632 /* Override any GCC internal prototype to avoid an error.
11633    Use char because int might match the return type of a GCC
11634    builtin and then its argument prototype would still apply.  */
11635 #ifdef __cplusplus
11636 extern "C"
11637 #endif
11638 char dlopen ();
11639 int
11640 main ()
11641 {
11642 return dlopen ();
11643   ;
11644   return 0;
11645 }
11646 _ACEOF
11647 if ac_fn_c_try_link "$LINENO"; then :
11648   ac_cv_lib_svld_dlopen=yes
11649 else
11650   ac_cv_lib_svld_dlopen=no
11651 fi
11652 rm -f core conftest.err conftest.$ac_objext \
11653     conftest$ac_exeext conftest.$ac_ext
11654 LIBS=$ac_check_lib_save_LIBS
11655 fi
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11657 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11658 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11659   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11660 else
11661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11662 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11663 if ${ac_cv_lib_dld_dld_link+:} false; then :
11664   $as_echo_n "(cached) " >&6
11665 else
11666   ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-ldld  $LIBS"
11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669 /* end confdefs.h.  */
11670
11671 /* Override any GCC internal prototype to avoid an error.
11672    Use char because int might match the return type of a GCC
11673    builtin and then its argument prototype would still apply.  */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char dld_link ();
11678 int
11679 main ()
11680 {
11681 return dld_link ();
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 if ac_fn_c_try_link "$LINENO"; then :
11687   ac_cv_lib_dld_dld_link=yes
11688 else
11689   ac_cv_lib_dld_dld_link=no
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext \
11692     conftest$ac_exeext conftest.$ac_ext
11693 LIBS=$ac_check_lib_save_LIBS
11694 fi
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11696 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11697 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11698   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11699 fi
11700
11701
11702 fi
11703
11704
11705 fi
11706
11707
11708 fi
11709
11710
11711 fi
11712
11713
11714 fi
11715
11716     ;;
11717   esac
11718
11719   if test "x$lt_cv_dlopen" != xno; then
11720     enable_dlopen=yes
11721   else
11722     enable_dlopen=no
11723   fi
11724
11725   case $lt_cv_dlopen in
11726   dlopen)
11727     save_CPPFLAGS="$CPPFLAGS"
11728     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11729
11730     save_LDFLAGS="$LDFLAGS"
11731     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11732
11733     save_LIBS="$LIBS"
11734     LIBS="$lt_cv_dlopen_libs $LIBS"
11735
11736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11737 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11738 if ${lt_cv_dlopen_self+:} false; then :
11739   $as_echo_n "(cached) " >&6
11740 else
11741           if test "$cross_compiling" = yes; then :
11742   lt_cv_dlopen_self=cross
11743 else
11744   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11745   lt_status=$lt_dlunknown
11746   cat > conftest.$ac_ext <<_LT_EOF
11747 #line 11747 "configure"
11748 #include "confdefs.h"
11749
11750 #if HAVE_DLFCN_H
11751 #include <dlfcn.h>
11752 #endif
11753
11754 #include <stdio.h>
11755
11756 #ifdef RTLD_GLOBAL
11757 #  define LT_DLGLOBAL           RTLD_GLOBAL
11758 #else
11759 #  ifdef DL_GLOBAL
11760 #    define LT_DLGLOBAL         DL_GLOBAL
11761 #  else
11762 #    define LT_DLGLOBAL         0
11763 #  endif
11764 #endif
11765
11766 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11767    find out it does not work in some platform. */
11768 #ifndef LT_DLLAZY_OR_NOW
11769 #  ifdef RTLD_LAZY
11770 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11771 #  else
11772 #    ifdef DL_LAZY
11773 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11774 #    else
11775 #      ifdef RTLD_NOW
11776 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11777 #      else
11778 #        ifdef DL_NOW
11779 #          define LT_DLLAZY_OR_NOW      DL_NOW
11780 #        else
11781 #          define LT_DLLAZY_OR_NOW      0
11782 #        endif
11783 #      endif
11784 #    endif
11785 #  endif
11786 #endif
11787
11788 /* When -fvisbility=hidden is used, assume the code has been annotated
11789    correspondingly for the symbols needed.  */
11790 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11791 void fnord () __attribute__((visibility("default")));
11792 #endif
11793
11794 void fnord () { int i=42; }
11795 int main ()
11796 {
11797   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11798   int status = $lt_dlunknown;
11799
11800   if (self)
11801     {
11802       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11803       else
11804         {
11805           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11806           else puts (dlerror ());
11807         }
11808       /* dlclose (self); */
11809     }
11810   else
11811     puts (dlerror ());
11812
11813   return status;
11814 }
11815 _LT_EOF
11816   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11817   (eval $ac_link) 2>&5
11818   ac_status=$?
11819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11820   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11821     (./conftest; exit; ) >&5 2>/dev/null
11822     lt_status=$?
11823     case x$lt_status in
11824       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11825       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11826       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11827     esac
11828   else :
11829     # compilation failed
11830     lt_cv_dlopen_self=no
11831   fi
11832 fi
11833 rm -fr conftest*
11834
11835
11836 fi
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11838 $as_echo "$lt_cv_dlopen_self" >&6; }
11839
11840     if test "x$lt_cv_dlopen_self" = xyes; then
11841       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11842       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11843 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11844 if ${lt_cv_dlopen_self_static+:} false; then :
11845   $as_echo_n "(cached) " >&6
11846 else
11847           if test "$cross_compiling" = yes; then :
11848   lt_cv_dlopen_self_static=cross
11849 else
11850   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11851   lt_status=$lt_dlunknown
11852   cat > conftest.$ac_ext <<_LT_EOF
11853 #line 11853 "configure"
11854 #include "confdefs.h"
11855
11856 #if HAVE_DLFCN_H
11857 #include <dlfcn.h>
11858 #endif
11859
11860 #include <stdio.h>
11861
11862 #ifdef RTLD_GLOBAL
11863 #  define LT_DLGLOBAL           RTLD_GLOBAL
11864 #else
11865 #  ifdef DL_GLOBAL
11866 #    define LT_DLGLOBAL         DL_GLOBAL
11867 #  else
11868 #    define LT_DLGLOBAL         0
11869 #  endif
11870 #endif
11871
11872 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11873    find out it does not work in some platform. */
11874 #ifndef LT_DLLAZY_OR_NOW
11875 #  ifdef RTLD_LAZY
11876 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11877 #  else
11878 #    ifdef DL_LAZY
11879 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11880 #    else
11881 #      ifdef RTLD_NOW
11882 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11883 #      else
11884 #        ifdef DL_NOW
11885 #          define LT_DLLAZY_OR_NOW      DL_NOW
11886 #        else
11887 #          define LT_DLLAZY_OR_NOW      0
11888 #        endif
11889 #      endif
11890 #    endif
11891 #  endif
11892 #endif
11893
11894 /* When -fvisbility=hidden is used, assume the code has been annotated
11895    correspondingly for the symbols needed.  */
11896 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11897 void fnord () __attribute__((visibility("default")));
11898 #endif
11899
11900 void fnord () { int i=42; }
11901 int main ()
11902 {
11903   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11904   int status = $lt_dlunknown;
11905
11906   if (self)
11907     {
11908       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11909       else
11910         {
11911           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11912           else puts (dlerror ());
11913         }
11914       /* dlclose (self); */
11915     }
11916   else
11917     puts (dlerror ());
11918
11919   return status;
11920 }
11921 _LT_EOF
11922   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11923   (eval $ac_link) 2>&5
11924   ac_status=$?
11925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11926   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11927     (./conftest; exit; ) >&5 2>/dev/null
11928     lt_status=$?
11929     case x$lt_status in
11930       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11931       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11932       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11933     esac
11934   else :
11935     # compilation failed
11936     lt_cv_dlopen_self_static=no
11937   fi
11938 fi
11939 rm -fr conftest*
11940
11941
11942 fi
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11944 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11945     fi
11946
11947     CPPFLAGS="$save_CPPFLAGS"
11948     LDFLAGS="$save_LDFLAGS"
11949     LIBS="$save_LIBS"
11950     ;;
11951   esac
11952
11953   case $lt_cv_dlopen_self in
11954   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11955   *) enable_dlopen_self=unknown ;;
11956   esac
11957
11958   case $lt_cv_dlopen_self_static in
11959   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11960   *) enable_dlopen_self_static=unknown ;;
11961   esac
11962 fi
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980 striplib=
11981 old_striplib=
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11983 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11984 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11985   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11986   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988 $as_echo "yes" >&6; }
11989 else
11990 # FIXME - insert some real tests, host_os isn't really good enough
11991   case $host_os in
11992   darwin*)
11993     if test -n "$STRIP" ; then
11994       striplib="$STRIP -x"
11995       old_striplib="$STRIP -S"
11996       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11997 $as_echo "yes" >&6; }
11998     else
11999       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 $as_echo "no" >&6; }
12001     fi
12002     ;;
12003   *)
12004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12006     ;;
12007   esac
12008 fi
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021   # Report which library types will actually be built
12022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12023 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12025 $as_echo "$can_build_shared" >&6; }
12026
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12028 $as_echo_n "checking whether to build shared libraries... " >&6; }
12029   test "$can_build_shared" = "no" && enable_shared=no
12030
12031   # On AIX, shared libraries and static libraries use the same namespace, and
12032   # are all built from PIC.
12033   case $host_os in
12034   aix3*)
12035     test "$enable_shared" = yes && enable_static=no
12036     if test -n "$RANLIB"; then
12037       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12038       postinstall_cmds='$RANLIB $lib'
12039     fi
12040     ;;
12041
12042   aix[4-9]*)
12043     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12044       test "$enable_shared" = yes && enable_static=no
12045     fi
12046     ;;
12047   esac
12048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12049 $as_echo "$enable_shared" >&6; }
12050
12051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12052 $as_echo_n "checking whether to build static libraries... " >&6; }
12053   # Make sure either enable_shared or enable_static is yes.
12054   test "$enable_shared" = yes || enable_static=yes
12055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12056 $as_echo "$enable_static" >&6; }
12057
12058
12059
12060
12061 fi
12062 ac_ext=c
12063 ac_cpp='$CPP $CPPFLAGS'
12064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12067
12068 CC="$lt_save_CC"
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082         ac_config_commands="$ac_config_commands libtool"
12083
12084
12085
12086
12087 # Only expand once:
12088
12089
12090
12091
12092
12093   gdc_save_DFLAGS=$GDCFLAGS
12094   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
12095
12096
12097 # Source file extension for D test sources.
12098 ac_ext=d
12099
12100 # Object file extension for compiled D test sources.
12101 objext=o
12102 objext_D=$objext
12103
12104 # Code to be used in simple compile tests
12105 lt_simple_compile_test_code="\
12106   module object;
12107   shared int some_variable = 0;
12108 "
12109
12110 # Code to be used in simple link tests
12111 lt_simple_link_test_code="\
12112   module object;
12113   extern(C) int main() { return 0; }
12114 "
12115
12116 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12117
12118
12119
12120
12121
12122
12123 # If no C compiler was specified, use CC.
12124 LTCC=${LTCC-"$CC"}
12125
12126 # If no C compiler flags were specified, use CFLAGS.
12127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12128
12129 # Allow CC to be a program name with arguments.
12130 compiler=$CC
12131
12132
12133 # save warnings/boilerplate of simple test code
12134 ac_outfile=conftest.$ac_objext
12135 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12136 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12137 _lt_compiler_boilerplate=`cat conftest.err`
12138 $RM conftest*
12139
12140 ac_outfile=conftest.$ac_objext
12141 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12142 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12143 _lt_linker_boilerplate=`cat conftest.err`
12144 $RM -r conftest*
12145
12146
12147 # Allow CC to be a program name with arguments.
12148 lt_save_CC=$CC
12149 lt_save_CFLAGS=$CFLAGS
12150 lt_save_GCC=$GCC
12151 GCC=yes
12152 CC=${GDC-"gdc"}
12153 CFLAGS=$GDCFLAGS
12154 compiler=$CC
12155 compiler_D=$CC
12156 LD_D=$CC
12157 for cc_temp in $compiler""; do
12158   case $cc_temp in
12159     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12160     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12161     \-*) ;;
12162     *) break;;
12163   esac
12164 done
12165 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12166
12167
12168 # GDC did not exist at the time GCC didn't implicitly link libc in.
12169 archive_cmds_need_lc_D=no
12170
12171 old_archive_cmds_D=$old_archive_cmds
12172 reload_flag_D=$reload_flag
12173 reload_cmds_D=$reload_cmds
12174
12175 ## CAVEAT EMPTOR:
12176 ## There is no encapsulation within the following macros, do not change
12177 ## the running order or otherwise move them around unless you know exactly
12178 ## what you are doing...
12179 if test -n "$compiler"; then
12180
12181 lt_prog_compiler_no_builtin_flag_D=
12182
12183 if test "$GCC" = yes; then
12184   case $cc_basename in
12185   nvcc*)
12186     lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12187   *)
12188     lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12189   esac
12190
12191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12192 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12193 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12194   $as_echo_n "(cached) " >&6
12195 else
12196   lt_cv_prog_compiler_rtti_exceptions=no
12197    ac_outfile=conftest.$ac_objext
12198    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12199    lt_compiler_flag="-fno-rtti -fno-exceptions"
12200    # Insert the option either (1) after the last *FLAGS variable, or
12201    # (2) before a word containing "conftest.", or (3) at the end.
12202    # Note that $ac_compile itself does not contain backslashes and begins
12203    # with a dollar sign (not a hyphen), so the echo should work correctly.
12204    # The option is referenced via a variable to avoid confusing sed.
12205    lt_compile=`echo "$ac_compile" | $SED \
12206    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12208    -e 's:$: $lt_compiler_flag:'`
12209    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12210    (eval "$lt_compile" 2>conftest.err)
12211    ac_status=$?
12212    cat conftest.err >&5
12213    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214    if (exit $ac_status) && test -s "$ac_outfile"; then
12215      # The compiler can only warn and ignore the option if not recognized
12216      # So say no if there are warnings other than the usual output.
12217      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12218      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12219      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12220        lt_cv_prog_compiler_rtti_exceptions=yes
12221      fi
12222    fi
12223    $RM conftest*
12224
12225 fi
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12227 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12228
12229 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12230     lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12231 else
12232     :
12233 fi
12234
12235 fi
12236
12237
12238
12239   lt_prog_compiler_wl_D=
12240 lt_prog_compiler_pic_D=
12241 lt_prog_compiler_static_D=
12242
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12244 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12245
12246   if test "$GCC" = yes; then
12247     lt_prog_compiler_wl_D='-Wl,'
12248     lt_prog_compiler_static_D='-static'
12249
12250     case $host_os in
12251       aix*)
12252       # All AIX code is PIC.
12253       if test "$host_cpu" = ia64; then
12254         # AIX 5 now supports IA64 processor
12255         lt_prog_compiler_static_D='-Bstatic'
12256       fi
12257       lt_prog_compiler_pic_D='-fPIC'
12258       ;;
12259
12260     amigaos*)
12261       case $host_cpu in
12262       powerpc)
12263             # see comment about AmigaOS4 .so support
12264             lt_prog_compiler_pic_D='-fPIC'
12265         ;;
12266       m68k)
12267             # FIXME: we need at least 68020 code to build shared libraries, but
12268             # adding the `-m68020' flag to GCC prevents building anything better,
12269             # like `-m68040'.
12270             lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12271         ;;
12272       esac
12273       ;;
12274
12275     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12276       # PIC is the default for these OSes.
12277       ;;
12278
12279     mingw* | cygwin* | pw32* | os2* | cegcc*)
12280       # This hack is so that the source file can tell whether it is being
12281       # built for inclusion in a dll (and should export symbols for example).
12282       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12283       # (--disable-auto-import) libraries
12284       lt_prog_compiler_pic_D='-DDLL_EXPORT'
12285       ;;
12286
12287     darwin* | rhapsody*)
12288       # PIC is the default on this platform
12289       # Common symbols not allowed in MH_DYLIB files
12290       lt_prog_compiler_pic_D='-fno-common'
12291       ;;
12292
12293     haiku*)
12294       # PIC is the default for Haiku.
12295       # The "-static" flag exists, but is broken.
12296       lt_prog_compiler_static_D=
12297       ;;
12298
12299     hpux*)
12300       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12301       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12302       # sets the default TLS model and affects inlining.
12303       case $host_cpu in
12304       hppa*64*)
12305         # +Z the default
12306         ;;
12307       *)
12308         lt_prog_compiler_pic_D='-fPIC'
12309         ;;
12310       esac
12311       ;;
12312
12313     interix[3-9]*)
12314       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12315       # Instead, we relocate shared libraries at runtime.
12316       ;;
12317
12318     msdosdjgpp*)
12319       # Just because we use GCC doesn't mean we suddenly get shared libraries
12320       # on systems that don't support them.
12321       lt_prog_compiler_can_build_shared_D=no
12322       enable_shared=no
12323       ;;
12324
12325     *nto* | *qnx*)
12326       # QNX uses GNU C++, but need to define -shared option too, otherwise
12327       # it will coredump.
12328       lt_prog_compiler_pic_D='-fPIC -shared'
12329       ;;
12330
12331     sysv4*MP*)
12332       if test -d /usr/nec; then
12333         lt_prog_compiler_pic_D=-Kconform_pic
12334       fi
12335       ;;
12336
12337     *)
12338       lt_prog_compiler_pic_D='-fPIC'
12339       ;;
12340     esac
12341
12342     case $cc_basename in
12343     nvcc*) # Cuda Compiler Driver 2.2
12344       lt_prog_compiler_wl_D='-Xlinker '
12345       lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12346       ;;
12347     esac
12348   else
12349     # PORTME Check for flag to pass linker flags through the system compiler.
12350     case $host_os in
12351     aix*)
12352       lt_prog_compiler_wl_D='-Wl,'
12353       if test "$host_cpu" = ia64; then
12354         # AIX 5 now supports IA64 processor
12355         lt_prog_compiler_static_D='-Bstatic'
12356       else
12357         lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12358       fi
12359       ;;
12360
12361     mingw* | cygwin* | pw32* | os2* | cegcc*)
12362       # This hack is so that the source file can tell whether it is being
12363       # built for inclusion in a dll (and should export symbols for example).
12364       lt_prog_compiler_pic_D='-DDLL_EXPORT'
12365       ;;
12366
12367     hpux9* | hpux10* | hpux11*)
12368       lt_prog_compiler_wl_D='-Wl,'
12369       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12370       # not for PA HP-UX.
12371       case $host_cpu in
12372       hppa*64*|ia64*)
12373         # +Z the default
12374         ;;
12375       *)
12376         lt_prog_compiler_pic_D='+Z'
12377         ;;
12378       esac
12379       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12380       lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12381       ;;
12382
12383     irix5* | irix6* | nonstopux*)
12384       lt_prog_compiler_wl_D='-Wl,'
12385       # PIC (with -KPIC) is the default.
12386       lt_prog_compiler_static_D='-non_shared'
12387       ;;
12388
12389     linux* | k*bsd*-gnu | kopensolaris*-gnu)
12390       case $cc_basename in
12391       # old Intel for x86_64 which still supported -KPIC.
12392       ecc*)
12393         lt_prog_compiler_wl_D='-Wl,'
12394         lt_prog_compiler_pic_D='-KPIC'
12395         lt_prog_compiler_static_D='-static'
12396         ;;
12397       # icc used to be incompatible with GCC.
12398       # ICC 10 doesn't accept -KPIC any more.
12399       icc* | ifort*)
12400         lt_prog_compiler_wl_D='-Wl,'
12401         lt_prog_compiler_pic_D='-fPIC'
12402         lt_prog_compiler_static_D='-static'
12403         ;;
12404       # Lahey Fortran 8.1.
12405       lf95*)
12406         lt_prog_compiler_wl_D='-Wl,'
12407         lt_prog_compiler_pic_D='--shared'
12408         lt_prog_compiler_static_D='--static'
12409         ;;
12410       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12411         # Portland Group compilers (*not* the Pentium gcc compiler,
12412         # which looks to be a dead project)
12413         lt_prog_compiler_wl_D='-Wl,'
12414         lt_prog_compiler_pic_D='-fpic'
12415         lt_prog_compiler_static_D='-Bstatic'
12416         ;;
12417       ccc*)
12418         lt_prog_compiler_wl_D='-Wl,'
12419         # All Alpha code is PIC.
12420         lt_prog_compiler_static_D='-non_shared'
12421         ;;
12422       xl* | bgxl* | bgf* | mpixl*)
12423         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12424         lt_prog_compiler_wl_D='-Wl,'
12425         lt_prog_compiler_pic_D='-qpic'
12426         lt_prog_compiler_static_D='-qstaticlink'
12427         ;;
12428       *)
12429         case `$CC -V 2>&1 | sed 5q` in
12430         *Sun\ F* | *Sun*Fortran*)
12431           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12432           lt_prog_compiler_pic_D='-KPIC'
12433           lt_prog_compiler_static_D='-Bstatic'
12434           lt_prog_compiler_wl_D=''
12435           ;;
12436         *Sun\ C*)
12437           # Sun C 5.9
12438           lt_prog_compiler_pic_D='-KPIC'
12439           lt_prog_compiler_static_D='-Bstatic'
12440           lt_prog_compiler_wl_D='-Wl,'
12441           ;;
12442         esac
12443         ;;
12444       esac
12445       ;;
12446
12447     newsos6)
12448       lt_prog_compiler_pic_D='-KPIC'
12449       lt_prog_compiler_static_D='-Bstatic'
12450       ;;
12451
12452     *nto* | *qnx*)
12453       # QNX uses GNU C++, but need to define -shared option too, otherwise
12454       # it will coredump.
12455       lt_prog_compiler_pic_D='-fPIC -shared'
12456       ;;
12457
12458     osf3* | osf4* | osf5*)
12459       lt_prog_compiler_wl_D='-Wl,'
12460       # All OSF/1 code is PIC.
12461       lt_prog_compiler_static_D='-non_shared'
12462       ;;
12463
12464     rdos*)
12465       lt_prog_compiler_static_D='-non_shared'
12466       ;;
12467
12468     solaris*)
12469       lt_prog_compiler_pic_D='-KPIC'
12470       lt_prog_compiler_static_D='-Bstatic'
12471       case $cc_basename in
12472       f77* | f90* | f95*)
12473         lt_prog_compiler_wl_D='-Qoption ld ';;
12474       *)
12475         lt_prog_compiler_wl_D='-Wl,';;
12476       esac
12477       ;;
12478
12479     sunos4*)
12480       lt_prog_compiler_wl_D='-Qoption ld '
12481       lt_prog_compiler_pic_D='-PIC'
12482       lt_prog_compiler_static_D='-Bstatic'
12483       ;;
12484
12485     sysv4 | sysv4.2uw2* | sysv4.3*)
12486       lt_prog_compiler_wl_D='-Wl,'
12487       lt_prog_compiler_pic_D='-KPIC'
12488       lt_prog_compiler_static_D='-Bstatic'
12489       ;;
12490
12491     sysv4*MP*)
12492       if test -d /usr/nec ;then
12493         lt_prog_compiler_pic_D='-Kconform_pic'
12494         lt_prog_compiler_static_D='-Bstatic'
12495       fi
12496       ;;
12497
12498     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12499       lt_prog_compiler_wl_D='-Wl,'
12500       lt_prog_compiler_pic_D='-KPIC'
12501       lt_prog_compiler_static_D='-Bstatic'
12502       ;;
12503
12504     unicos*)
12505       lt_prog_compiler_wl_D='-Wl,'
12506       lt_prog_compiler_can_build_shared_D=no
12507       ;;
12508
12509     uts4*)
12510       lt_prog_compiler_pic_D='-pic'
12511       lt_prog_compiler_static_D='-Bstatic'
12512       ;;
12513
12514     *)
12515       lt_prog_compiler_can_build_shared_D=no
12516       ;;
12517     esac
12518   fi
12519
12520 case $host_os in
12521   # For platforms which do not support PIC, -DPIC is meaningless:
12522   *djgpp*)
12523     lt_prog_compiler_pic_D=
12524     ;;
12525   *)
12526     lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12527     ;;
12528 esac
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12530 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12531
12532
12533
12534 #
12535 # Check to make sure the PIC flag actually works.
12536 #
12537 if test -n "$lt_prog_compiler_pic_D"; then
12538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12539 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12540 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12541   $as_echo_n "(cached) " >&6
12542 else
12543   lt_cv_prog_compiler_pic_works_D=no
12544    ac_outfile=conftest.$ac_objext
12545    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12546    lt_compiler_flag="$lt_prog_compiler_pic_D"
12547    # Insert the option either (1) after the last *FLAGS variable, or
12548    # (2) before a word containing "conftest.", or (3) at the end.
12549    # Note that $ac_compile itself does not contain backslashes and begins
12550    # with a dollar sign (not a hyphen), so the echo should work correctly.
12551    # The option is referenced via a variable to avoid confusing sed.
12552    lt_compile=`echo "$ac_compile" | $SED \
12553    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12554    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12555    -e 's:$: $lt_compiler_flag:'`
12556    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12557    (eval "$lt_compile" 2>conftest.err)
12558    ac_status=$?
12559    cat conftest.err >&5
12560    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561    if (exit $ac_status) && test -s "$ac_outfile"; then
12562      # The compiler can only warn and ignore the option if not recognized
12563      # So say no if there are warnings other than the usual output.
12564      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12565      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12566      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12567        lt_cv_prog_compiler_pic_works_D=yes
12568      fi
12569    fi
12570    $RM conftest*
12571
12572 fi
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12574 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12575
12576 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12577     case $lt_prog_compiler_pic_D in
12578      "" | " "*) ;;
12579      *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12580      esac
12581 else
12582     lt_prog_compiler_pic_D=
12583      lt_prog_compiler_can_build_shared_D=no
12584 fi
12585
12586 fi
12587
12588
12589
12590 #
12591 # Check to make sure the static flag actually works.
12592 #
12593 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12595 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12596 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12597   $as_echo_n "(cached) " >&6
12598 else
12599   lt_cv_prog_compiler_static_works_D=no
12600    save_LDFLAGS="$LDFLAGS"
12601    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12602    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12603    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12604      # The linker can only warn and ignore the option if not recognized
12605      # So say no if there are warnings
12606      if test -s conftest.err; then
12607        # Append any errors to the config.log.
12608        cat conftest.err 1>&5
12609        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12610        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12611        if diff conftest.exp conftest.er2 >/dev/null; then
12612          lt_cv_prog_compiler_static_works_D=yes
12613        fi
12614      else
12615        lt_cv_prog_compiler_static_works_D=yes
12616      fi
12617    fi
12618    $RM -r conftest*
12619    LDFLAGS="$save_LDFLAGS"
12620
12621 fi
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12623 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12624
12625 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12626     :
12627 else
12628     lt_prog_compiler_static_D=
12629 fi
12630
12631
12632
12633
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12635 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12636 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12637   $as_echo_n "(cached) " >&6
12638 else
12639   lt_cv_prog_compiler_c_o_D=no
12640    $RM -r conftest 2>/dev/null
12641    mkdir conftest
12642    cd conftest
12643    mkdir out
12644    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12645
12646    lt_compiler_flag="-o out/conftest2.$ac_objext"
12647    # Insert the option either (1) after the last *FLAGS variable, or
12648    # (2) before a word containing "conftest.", or (3) at the end.
12649    # Note that $ac_compile itself does not contain backslashes and begins
12650    # with a dollar sign (not a hyphen), so the echo should work correctly.
12651    lt_compile=`echo "$ac_compile" | $SED \
12652    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12653    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12654    -e 's:$: $lt_compiler_flag:'`
12655    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12656    (eval "$lt_compile" 2>out/conftest.err)
12657    ac_status=$?
12658    cat out/conftest.err >&5
12659    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12661    then
12662      # The compiler can only warn and ignore the option if not recognized
12663      # So say no if there are warnings
12664      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12665      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12666      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12667        lt_cv_prog_compiler_c_o_D=yes
12668      fi
12669    fi
12670    chmod u+w . 2>&5
12671    $RM conftest*
12672    # SGI C++ compiler will create directory out/ii_files/ for
12673    # template instantiation
12674    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12675    $RM out/* && rmdir out
12676    cd ..
12677    $RM -r conftest
12678    $RM conftest*
12679
12680 fi
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12682 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12683
12684
12685
12686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12688 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12689   $as_echo_n "(cached) " >&6
12690 else
12691   lt_cv_prog_compiler_c_o_D=no
12692    $RM -r conftest 2>/dev/null
12693    mkdir conftest
12694    cd conftest
12695    mkdir out
12696    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12697
12698    lt_compiler_flag="-o out/conftest2.$ac_objext"
12699    # Insert the option either (1) after the last *FLAGS variable, or
12700    # (2) before a word containing "conftest.", or (3) at the end.
12701    # Note that $ac_compile itself does not contain backslashes and begins
12702    # with a dollar sign (not a hyphen), so the echo should work correctly.
12703    lt_compile=`echo "$ac_compile" | $SED \
12704    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12705    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12706    -e 's:$: $lt_compiler_flag:'`
12707    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12708    (eval "$lt_compile" 2>out/conftest.err)
12709    ac_status=$?
12710    cat out/conftest.err >&5
12711    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12713    then
12714      # The compiler can only warn and ignore the option if not recognized
12715      # So say no if there are warnings
12716      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12717      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12718      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12719        lt_cv_prog_compiler_c_o_D=yes
12720      fi
12721    fi
12722    chmod u+w . 2>&5
12723    $RM conftest*
12724    # SGI C++ compiler will create directory out/ii_files/ for
12725    # template instantiation
12726    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12727    $RM out/* && rmdir out
12728    cd ..
12729    $RM -r conftest
12730    $RM conftest*
12731
12732 fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12734 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12735
12736
12737
12738
12739 hard_links="nottested"
12740 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12741   # do not overwrite the value of need_locks provided by the user
12742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12743 $as_echo_n "checking if we can lock with hard links... " >&6; }
12744   hard_links=yes
12745   $RM conftest*
12746   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12747   touch conftest.a
12748   ln conftest.a conftest.b 2>&5 || hard_links=no
12749   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12751 $as_echo "$hard_links" >&6; }
12752   if test "$hard_links" = no; then
12753     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12754 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12755     need_locks=warn
12756   fi
12757 else
12758   need_locks=no
12759 fi
12760
12761
12762
12763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12764 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12765
12766   runpath_var=
12767   allow_undefined_flag_D=
12768   always_export_symbols_D=no
12769   archive_cmds_D=
12770   archive_expsym_cmds_D=
12771   compiler_needs_object_D=no
12772   enable_shared_with_static_runtimes_D=no
12773   export_dynamic_flag_spec_D=
12774   export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12775   hardcode_automatic_D=no
12776   hardcode_direct_D=no
12777   hardcode_direct_absolute_D=no
12778   hardcode_libdir_flag_spec_D=
12779   hardcode_libdir_flag_spec_ld_D=
12780   hardcode_libdir_separator_D=
12781   hardcode_minus_L_D=no
12782   hardcode_shlibpath_var_D=unsupported
12783   inherit_rpath_D=no
12784   link_all_deplibs_D=unknown
12785   module_cmds_D=
12786   module_expsym_cmds_D=
12787   old_archive_from_new_cmds_D=
12788   old_archive_from_expsyms_cmds_D=
12789   thread_safe_flag_spec_D=
12790   whole_archive_flag_spec_D=
12791   # include_expsyms should be a list of space-separated symbols to be *always*
12792   # included in the symbol list
12793   include_expsyms_D=
12794   # exclude_expsyms can be an extended regexp of symbols to exclude
12795   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12796   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12797   # as well as any symbol that contains `d'.
12798   exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12799   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12800   # platforms (ab)use it in PIC code, but their linkers get confused if
12801   # the symbol is explicitly referenced.  Since portable code cannot
12802   # rely on this symbol name, it's probably fine to never include it in
12803   # preloaded symbol tables.
12804   # Exclude shared library initialization/finalization symbols.
12805   extract_expsyms_cmds=
12806
12807   case $host_os in
12808   cygwin* | mingw* | pw32* | cegcc*)
12809     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12810     # When not using gcc, we currently assume that we are using
12811     # Microsoft Visual C++.
12812     if test "$GCC" != yes; then
12813       with_gnu_ld=no
12814     fi
12815     ;;
12816   interix*)
12817     # we just hope/assume this is gcc and not c89 (= MSVC++)
12818     with_gnu_ld=yes
12819     ;;
12820   openbsd*)
12821     with_gnu_ld=no
12822     ;;
12823   esac
12824
12825   ld_shlibs_D=yes
12826
12827   # On some targets, GNU ld is compatible enough with the native linker
12828   # that we're better off using the native interface for both.
12829   lt_use_gnu_ld_interface=no
12830   if test "$with_gnu_ld" = yes; then
12831     case $host_os in
12832       aix*)
12833         # The AIX port of GNU ld has always aspired to compatibility
12834         # with the native linker.  However, as the warning in the GNU ld
12835         # block says, versions before 2.19.5* couldn't really create working
12836         # shared libraries, regardless of the interface used.
12837         case `$LD -v 2>&1` in
12838           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12839           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12840           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12841           *)
12842             lt_use_gnu_ld_interface=yes
12843             ;;
12844         esac
12845         ;;
12846       *)
12847         lt_use_gnu_ld_interface=yes
12848         ;;
12849     esac
12850   fi
12851
12852   if test "$lt_use_gnu_ld_interface" = yes; then
12853     # If archive_cmds runs LD, not CC, wlarc should be empty
12854     wlarc='${wl}'
12855
12856     # Set some defaults for GNU ld with shared library support. These
12857     # are reset later if shared libraries are not supported. Putting them
12858     # here allows them to be overridden if necessary.
12859     runpath_var=LD_RUN_PATH
12860     hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12861     export_dynamic_flag_spec_D='${wl}--export-dynamic'
12862     # ancient GNU ld didn't support --whole-archive et. al.
12863     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12864       whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12865     else
12866       whole_archive_flag_spec_D=
12867     fi
12868     supports_anon_versioning=no
12869     case `$LD -v 2>&1` in
12870       *GNU\ gold*) supports_anon_versioning=yes ;;
12871       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12872       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12873       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12874       *\ 2.11.*) ;; # other 2.11 versions
12875       *) supports_anon_versioning=yes ;;
12876     esac
12877
12878     # See if GNU ld supports shared libraries.
12879     case $host_os in
12880     aix[3-9]*)
12881       # On AIX/PPC, the GNU linker is very broken
12882       if test "$host_cpu" != ia64; then
12883         ld_shlibs_D=no
12884         cat <<_LT_EOF 1>&2
12885
12886 *** Warning: the GNU linker, at least up to release 2.19, is reported
12887 *** to be unable to reliably create shared libraries on AIX.
12888 *** Therefore, libtool is disabling shared libraries support.  If you
12889 *** really care for shared libraries, you may want to install binutils
12890 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12891 *** You will then need to restart the configuration process.
12892
12893 _LT_EOF
12894       fi
12895       ;;
12896
12897     amigaos*)
12898       case $host_cpu in
12899       powerpc)
12900             # see comment about AmigaOS4 .so support
12901             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12902             archive_expsym_cmds_D=''
12903         ;;
12904       m68k)
12905             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)'
12906             hardcode_libdir_flag_spec_D='-L$libdir'
12907             hardcode_minus_L_D=yes
12908         ;;
12909       esac
12910       ;;
12911
12912     beos*)
12913       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12914         allow_undefined_flag_D=unsupported
12915         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12916         # support --undefined.  This deserves some investigation.  FIXME
12917         archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12918       else
12919         ld_shlibs_D=no
12920       fi
12921       ;;
12922
12923     cygwin* | mingw* | pw32* | cegcc*)
12924       # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12925       # as there is no search path for DLLs.
12926       hardcode_libdir_flag_spec_D='-L$libdir'
12927       export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12928       allow_undefined_flag_D=unsupported
12929       always_export_symbols_D=no
12930       enable_shared_with_static_runtimes_D=yes
12931       export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12932
12933       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12934         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12935         # If the export-symbols file already is a .def file (1st line
12936         # is EXPORTS), use it as is; otherwise, prepend...
12937         archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12938           cp $export_symbols $output_objdir/$soname.def;
12939         else
12940           echo EXPORTS > $output_objdir/$soname.def;
12941           cat $export_symbols >> $output_objdir/$soname.def;
12942         fi~
12943         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12944       else
12945         ld_shlibs_D=no
12946       fi
12947       ;;
12948
12949     haiku*)
12950       archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12951       link_all_deplibs_D=yes
12952       ;;
12953
12954     interix[3-9]*)
12955       hardcode_direct_D=no
12956       hardcode_shlibpath_var_D=no
12957       hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12958       export_dynamic_flag_spec_D='${wl}-E'
12959       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12960       # Instead, shared libraries are loaded at an image base (0x10000000 by
12961       # default) and relocated if they conflict, which is a slow very memory
12962       # consuming and fragmenting process.  To avoid this, we pick a random,
12963       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12964       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12965       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'
12966       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'
12967       ;;
12968
12969     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12970       tmp_diet=no
12971       if test "$host_os" = linux-dietlibc; then
12972         case $cc_basename in
12973           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12974         esac
12975       fi
12976       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12977          && test "$tmp_diet" = no
12978       then
12979         tmp_addflag=' $pic_flag'
12980         tmp_sharedflag='-shared'
12981         case $cc_basename,$host_cpu in
12982         pgcc*)                          # Portland Group C compiler
12983           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'
12984           tmp_addflag=' $pic_flag'
12985           ;;
12986         pgf77* | pgf90* | pgf95* | pgfortran*)
12987                                         # Portland Group f77 and f90 compilers
12988           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'
12989           tmp_addflag=' $pic_flag -Mnomain' ;;
12990         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12991           tmp_addflag=' -i_dynamic' ;;
12992         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12993           tmp_addflag=' -i_dynamic -nofor_main' ;;
12994         ifc* | ifort*)                  # Intel Fortran compiler
12995           tmp_addflag=' -nofor_main' ;;
12996         lf95*)                          # Lahey Fortran 8.1
12997           whole_archive_flag_spec_D=
12998           tmp_sharedflag='--shared' ;;
12999         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13000           tmp_sharedflag='-qmkshrobj'
13001           tmp_addflag= ;;
13002         nvcc*)  # Cuda Compiler Driver 2.2
13003           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'
13004           compiler_needs_object_D=yes
13005           ;;
13006         esac
13007         case `$CC -V 2>&1 | sed 5q` in
13008         *Sun\ C*)                       # Sun C 5.9
13009           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'
13010           compiler_needs_object_D=yes
13011           tmp_sharedflag='-G' ;;
13012         *Sun\ F*)                       # Sun Fortran 8.3
13013           tmp_sharedflag='-G' ;;
13014         esac
13015         archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13016
13017         if test "x$supports_anon_versioning" = xyes; then
13018           archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13019             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13020             echo "local: *; };" >> $output_objdir/$libname.ver~
13021             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13022         fi
13023
13024         case $cc_basename in
13025         xlf* | bgf* | bgxlf* | mpixlf*)
13026           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13027           whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
13028           hardcode_libdir_flag_spec_D=
13029           hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
13030           archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13031           if test "x$supports_anon_versioning" = xyes; then
13032             archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13033               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13034               echo "local: *; };" >> $output_objdir/$libname.ver~
13035               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13036           fi
13037           ;;
13038         esac
13039       else
13040         ld_shlibs_D=no
13041       fi
13042       ;;
13043
13044     netbsd*)
13045       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13046         archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13047         wlarc=
13048       else
13049         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13050         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13051       fi
13052       ;;
13053
13054     solaris*)
13055       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13056         ld_shlibs_D=no
13057         cat <<_LT_EOF 1>&2
13058
13059 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13060 *** create shared libraries on Solaris systems.  Therefore, libtool
13061 *** is disabling shared libraries support.  We urge you to upgrade GNU
13062 *** binutils to release 2.9.1 or newer.  Another option is to modify
13063 *** your PATH or compiler configuration so that the native linker is
13064 *** used, and then restart.
13065
13066 _LT_EOF
13067       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13068         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13069         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13070       else
13071         ld_shlibs_D=no
13072       fi
13073       ;;
13074
13075     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13076       case `$LD -v 2>&1` in
13077         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13078         ld_shlibs_D=no
13079         cat <<_LT_EOF 1>&2
13080
13081 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13082 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13083 *** is disabling shared libraries support.  We urge you to upgrade GNU
13084 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13085 *** your PATH or compiler configuration so that the native linker is
13086 *** used, and then restart.
13087
13088 _LT_EOF
13089         ;;
13090         *)
13091           # For security reasons, it is highly recommended that you always
13092           # use absolute paths for naming shared libraries, and exclude the
13093           # DT_RUNPATH tag from executables and libraries.  But doing so
13094           # requires that you compile everything twice, which is a pain.
13095           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13096             hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13097             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13098             archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13099           else
13100             ld_shlibs_D=no
13101           fi
13102         ;;
13103       esac
13104       ;;
13105
13106     sunos4*)
13107       archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13108       wlarc=
13109       hardcode_direct_D=yes
13110       hardcode_shlibpath_var_D=no
13111       ;;
13112
13113     *)
13114       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13115         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13116         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13117       else
13118         ld_shlibs_D=no
13119       fi
13120       ;;
13121     esac
13122
13123     if test "$ld_shlibs_D" = no; then
13124       runpath_var=
13125       hardcode_libdir_flag_spec_D=
13126       export_dynamic_flag_spec_D=
13127       whole_archive_flag_spec_D=
13128     fi
13129   else
13130     # PORTME fill in a description of your system's linker (not GNU ld)
13131     case $host_os in
13132     aix3*)
13133       allow_undefined_flag_D=unsupported
13134       always_export_symbols_D=yes
13135       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'
13136       # Note: this linker hardcodes the directories in LIBPATH if there
13137       # are no directories specified by -L.
13138       hardcode_minus_L_D=yes
13139       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13140         # Neither direct hardcoding nor static linking is supported with a
13141         # broken collect2.
13142         hardcode_direct_D=unsupported
13143       fi
13144       ;;
13145
13146     aix[4-9]*)
13147       if test "$host_cpu" = ia64; then
13148         # On IA64, the linker does run time linking by default, so we don't
13149         # have to do anything special.
13150         aix_use_runtimelinking=no
13151         exp_sym_flag='-Bexport'
13152         no_entry_flag=""
13153       else
13154         # If we're using GNU nm, then we don't want the "-C" option.
13155         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13156         # Also, AIX nm treats weak defined symbols like other global
13157         # defined symbols, whereas GNU nm marks them as "W".
13158         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13159           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'
13160         else
13161           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'
13162         fi
13163         aix_use_runtimelinking=no
13164
13165         # Test if we are trying to use run time linking or normal
13166         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13167         # need to do runtime linking.
13168         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13169           for ld_flag in $LDFLAGS; do
13170           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13171             aix_use_runtimelinking=yes
13172             break
13173           fi
13174           done
13175           ;;
13176         esac
13177
13178         exp_sym_flag='-bexport'
13179         no_entry_flag='-bnoentry'
13180       fi
13181
13182       # When large executables or shared objects are built, AIX ld can
13183       # have problems creating the table of contents.  If linking a library
13184       # or program results in "error TOC overflow" add -mminimal-toc to
13185       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13186       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13187
13188       archive_cmds_D=''
13189       hardcode_direct_D=yes
13190       hardcode_direct_absolute_D=yes
13191       hardcode_libdir_separator_D=':'
13192       link_all_deplibs_D=yes
13193       file_list_spec_D='${wl}-f,'
13194
13195       if test "$GCC" = yes; then
13196         case $host_os in aix4.[012]|aix4.[012].*)
13197         # We only want to do this on AIX 4.2 and lower, the check
13198         # below for broken collect2 doesn't work under 4.3+
13199           collect2name=`${CC} -print-prog-name=collect2`
13200           if test -f "$collect2name" &&
13201            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13202           then
13203           # We have reworked collect2
13204           :
13205           else
13206           # We have old collect2
13207           hardcode_direct_D=unsupported
13208           # It fails to find uninstalled libraries when the uninstalled
13209           # path is not listed in the libpath.  Setting hardcode_minus_L
13210           # to unsupported forces relinking
13211           hardcode_minus_L_D=yes
13212           hardcode_libdir_flag_spec_D='-L$libdir'
13213           hardcode_libdir_separator_D=
13214           fi
13215           ;;
13216         esac
13217         shared_flag='-shared'
13218         if test "$aix_use_runtimelinking" = yes; then
13219           shared_flag="$shared_flag "'${wl}-G'
13220         fi
13221       else
13222         # not using gcc
13223         if test "$host_cpu" = ia64; then
13224         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13225         # chokes on -Wl,-G. The following line is correct:
13226           shared_flag='-G'
13227         else
13228           if test "$aix_use_runtimelinking" = yes; then
13229             shared_flag='${wl}-G'
13230           else
13231             shared_flag='${wl}-bM:SRE'
13232           fi
13233         fi
13234       fi
13235
13236       export_dynamic_flag_spec_D='${wl}-bexpall'
13237       # It seems that -bexpall does not export symbols beginning with
13238       # underscore (_), so it is better to generate a list of symbols to export.
13239       always_export_symbols_D=yes
13240       if test "$aix_use_runtimelinking" = yes; then
13241         # Warning - without using the other runtime loading flags (-brtl),
13242         # -berok will link without error, but may produce a broken library.
13243         allow_undefined_flag_D='-berok'
13244         # Determine the default libpath from the value encoded in an
13245         # empty executable.
13246         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h.  */
13248
13249 int
13250 main ()
13251 {
13252
13253   ;
13254   return 0;
13255 }
13256 _ACEOF
13257 if ac_fn_c_try_link "$LINENO"; then :
13258
13259 lt_aix_libpath_sed='
13260     /Import File Strings/,/^$/ {
13261         /^0/ {
13262             s/^0  *\(.*\)$/\1/
13263             p
13264         }
13265     }'
13266 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13267 # Check for a 64-bit object if we didn't find anything.
13268 if test -z "$aix_libpath"; then
13269   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13270 fi
13271 fi
13272 rm -f core conftest.err conftest.$ac_objext \
13273     conftest$ac_exeext conftest.$ac_ext
13274 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13275
13276         hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13277         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"
13278       else
13279         if test "$host_cpu" = ia64; then
13280           hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13281           allow_undefined_flag_D="-z nodefs"
13282           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"
13283         else
13284          # Determine the default libpath from the value encoded in an
13285          # empty executable.
13286          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h.  */
13288
13289 int
13290 main ()
13291 {
13292
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 if ac_fn_c_try_link "$LINENO"; then :
13298
13299 lt_aix_libpath_sed='
13300     /Import File Strings/,/^$/ {
13301         /^0/ {
13302             s/^0  *\(.*\)$/\1/
13303             p
13304         }
13305     }'
13306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13307 # Check for a 64-bit object if we didn't find anything.
13308 if test -z "$aix_libpath"; then
13309   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13310 fi
13311 fi
13312 rm -f core conftest.err conftest.$ac_objext \
13313     conftest$ac_exeext conftest.$ac_ext
13314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13315
13316          hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13317           # Warning - without using the other run time loading flags,
13318           # -berok will link without error, but may produce a broken library.
13319           no_undefined_flag_D=' ${wl}-bernotok'
13320           allow_undefined_flag_D=' ${wl}-berok'
13321           if test "$with_gnu_ld" = yes; then
13322             # We only use this code for GNU lds that support --whole-archive.
13323             whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13324           else
13325             # Exported symbols can be pulled into shared objects from archives
13326             whole_archive_flag_spec_D='$convenience'
13327           fi
13328           archive_cmds_need_lc_D=yes
13329           # This is similar to how AIX traditionally builds its shared libraries.
13330           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'
13331         fi
13332       fi
13333       ;;
13334
13335     amigaos*)
13336       case $host_cpu in
13337       powerpc)
13338             # see comment about AmigaOS4 .so support
13339             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13340             archive_expsym_cmds_D=''
13341         ;;
13342       m68k)
13343             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)'
13344             hardcode_libdir_flag_spec_D='-L$libdir'
13345             hardcode_minus_L_D=yes
13346         ;;
13347       esac
13348       ;;
13349
13350     bsdi[45]*)
13351       export_dynamic_flag_spec_D=-rdynamic
13352       ;;
13353
13354     cygwin* | mingw* | pw32* | cegcc*)
13355       # When not using gcc, we currently assume that we are using
13356       # Microsoft Visual C++.
13357       # hardcode_libdir_flag_spec is actually meaningless, as there is
13358       # no search path for DLLs.
13359       hardcode_libdir_flag_spec_D=' '
13360       allow_undefined_flag_D=unsupported
13361       # Tell ltmain to make .lib files, not .a files.
13362       libext=lib
13363       # Tell ltmain to make .dll files, not .so files.
13364       shrext_cmds=".dll"
13365       # FIXME: Setting linknames here is a bad hack.
13366       archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13367       # The linker will automatically build a .lib file if we build a DLL.
13368       old_archive_from_new_cmds_D='true'
13369       # FIXME: Should let the user specify the lib program.
13370       old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13371       fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13372       enable_shared_with_static_runtimes_D=yes
13373       ;;
13374
13375     darwin* | rhapsody*)
13376
13377
13378   archive_cmds_need_lc_D=no
13379   hardcode_direct_D=no
13380   hardcode_automatic_D=yes
13381   hardcode_shlibpath_var_D=unsupported
13382   if test "$lt_cv_ld_force_load" = "yes"; then
13383     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\"`'
13384   else
13385     whole_archive_flag_spec_D=''
13386   fi
13387   link_all_deplibs_D=yes
13388   allow_undefined_flag_D="$_lt_dar_allow_undefined"
13389   case $cc_basename in
13390      ifort*) _lt_dar_can_shared=yes ;;
13391      *) _lt_dar_can_shared=$GCC ;;
13392   esac
13393   if test "$_lt_dar_can_shared" = "yes"; then
13394     output_verbose_link_cmd=func_echo_all
13395     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}"
13396     module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13397     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}"
13398     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}"
13399
13400   else
13401   ld_shlibs_D=no
13402   fi
13403
13404       ;;
13405
13406     dgux*)
13407       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13408       hardcode_libdir_flag_spec_D='-L$libdir'
13409       hardcode_shlibpath_var_D=no
13410       ;;
13411
13412     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13413     # support.  Future versions do this automatically, but an explicit c++rt0.o
13414     # does not break anything, and helps significantly (at the cost of a little
13415     # extra space).
13416     freebsd2.2*)
13417       archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13418       hardcode_libdir_flag_spec_D='-R$libdir'
13419       hardcode_direct_D=yes
13420       hardcode_shlibpath_var_D=no
13421       ;;
13422
13423     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13424     freebsd2.*)
13425       archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13426       hardcode_direct_D=yes
13427       hardcode_minus_L_D=yes
13428       hardcode_shlibpath_var_D=no
13429       ;;
13430
13431     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13432     freebsd* | dragonfly*)
13433       archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13434       hardcode_libdir_flag_spec_D='-R$libdir'
13435       hardcode_direct_D=yes
13436       hardcode_shlibpath_var_D=no
13437       ;;
13438
13439     hpux9*)
13440       if test "$GCC" = yes; then
13441         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'
13442       else
13443         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'
13444       fi
13445       hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13446       hardcode_libdir_separator_D=:
13447       hardcode_direct_D=yes
13448
13449       # hardcode_minus_L: Not really in the search PATH,
13450       # but as the default location of the library.
13451       hardcode_minus_L_D=yes
13452       export_dynamic_flag_spec_D='${wl}-E'
13453       ;;
13454
13455     hpux10*)
13456       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13457         archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13458       else
13459         archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13460       fi
13461       if test "$with_gnu_ld" = no; then
13462         hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13463         hardcode_libdir_flag_spec_ld_D='+b $libdir'
13464         hardcode_libdir_separator_D=:
13465         hardcode_direct_D=yes
13466         hardcode_direct_absolute_D=yes
13467         export_dynamic_flag_spec_D='${wl}-E'
13468         # hardcode_minus_L: Not really in the search PATH,
13469         # but as the default location of the library.
13470         hardcode_minus_L_D=yes
13471       fi
13472       ;;
13473
13474     hpux11*)
13475       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13476         case $host_cpu in
13477         hppa*64*)
13478           archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13479           ;;
13480         ia64*)
13481           archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13482           ;;
13483         *)
13484           archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13485           ;;
13486         esac
13487       else
13488         case $host_cpu in
13489         hppa*64*)
13490           archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13491           ;;
13492         ia64*)
13493           archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13494           ;;
13495         *)
13496         archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13497           ;;
13498         esac
13499       fi
13500       if test "$with_gnu_ld" = no; then
13501         hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13502         hardcode_libdir_separator_D=:
13503
13504         case $host_cpu in
13505         hppa*64*|ia64*)
13506           hardcode_direct_D=no
13507           hardcode_shlibpath_var_D=no
13508           ;;
13509         *)
13510           hardcode_direct_D=yes
13511           hardcode_direct_absolute_D=yes
13512           export_dynamic_flag_spec_D='${wl}-E'
13513
13514           # hardcode_minus_L: Not really in the search PATH,
13515           # but as the default location of the library.
13516           hardcode_minus_L_D=yes
13517           ;;
13518         esac
13519       fi
13520       ;;
13521
13522     irix5* | irix6* | nonstopux*)
13523       if test "$GCC" = yes; then
13524         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'
13525         # Try to use the -exported_symbol ld option, if it does not
13526         # work, assume that -exports_file does not work either and
13527         # implicitly export all symbols.
13528         save_LDFLAGS="$LDFLAGS"
13529         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13530         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h.  */
13532 int foo(void) {}
13533 _ACEOF
13534 if ac_fn_c_try_link "$LINENO"; then :
13535   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'
13536
13537 fi
13538 rm -f core conftest.err conftest.$ac_objext \
13539     conftest$ac_exeext conftest.$ac_ext
13540         LDFLAGS="$save_LDFLAGS"
13541       else
13542         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'
13543         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'
13544       fi
13545       archive_cmds_need_lc_D='no'
13546       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13547       hardcode_libdir_separator_D=:
13548       inherit_rpath_D=yes
13549       link_all_deplibs_D=yes
13550       ;;
13551
13552     netbsd*)
13553       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13554         archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13555       else
13556         archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13557       fi
13558       hardcode_libdir_flag_spec_D='-R$libdir'
13559       hardcode_direct_D=yes
13560       hardcode_shlibpath_var_D=no
13561       ;;
13562
13563     newsos6)
13564       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13565       hardcode_direct_D=yes
13566       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13567       hardcode_libdir_separator_D=:
13568       hardcode_shlibpath_var_D=no
13569       ;;
13570
13571     *nto* | *qnx*)
13572       ;;
13573
13574     openbsd*)
13575       if test -f /usr/libexec/ld.so; then
13576         hardcode_direct_D=yes
13577         hardcode_shlibpath_var_D=no
13578         hardcode_direct_absolute_D=yes
13579         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13580           archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13581           archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13582           hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13583           export_dynamic_flag_spec_D='${wl}-E'
13584         else
13585           case $host_os in
13586            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13587              archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13588              hardcode_libdir_flag_spec_D='-R$libdir'
13589              ;;
13590            *)
13591              archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13592              hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13593              ;;
13594           esac
13595         fi
13596       else
13597         ld_shlibs_D=no
13598       fi
13599       ;;
13600
13601     os2*)
13602       hardcode_libdir_flag_spec_D='-L$libdir'
13603       hardcode_minus_L_D=yes
13604       allow_undefined_flag_D=unsupported
13605       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'
13606       old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13607       ;;
13608
13609     osf3*)
13610       if test "$GCC" = yes; then
13611         allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13612         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'
13613       else
13614         allow_undefined_flag_D=' -expect_unresolved \*'
13615         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'
13616       fi
13617       archive_cmds_need_lc_D='no'
13618       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13619       hardcode_libdir_separator_D=:
13620       ;;
13621
13622     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13623       if test "$GCC" = yes; then
13624         allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13625         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'
13626         hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13627       else
13628         allow_undefined_flag_D=' -expect_unresolved \*'
13629         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'
13630         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~
13631         $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'
13632
13633         # Both c and cxx compiler support -rpath directly
13634         hardcode_libdir_flag_spec_D='-rpath $libdir'
13635       fi
13636       archive_cmds_need_lc_D='no'
13637       hardcode_libdir_separator_D=:
13638       ;;
13639
13640     solaris*)
13641       no_undefined_flag_D=' -z defs'
13642       if test "$GCC" = yes; then
13643         wlarc='${wl}'
13644         archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13645         archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13646           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13647       else
13648         case `$CC -V 2>&1` in
13649         *"Compilers 5.0"*)
13650           wlarc=''
13651           archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13652           archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13653           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13654           ;;
13655         *)
13656           wlarc='${wl}'
13657           archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13658           archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13659           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13660           ;;
13661         esac
13662       fi
13663       hardcode_libdir_flag_spec_D='-R$libdir'
13664       hardcode_shlibpath_var_D=no
13665       case $host_os in
13666       solaris2.[0-5] | solaris2.[0-5].*) ;;
13667       *)
13668         # The compiler driver will combine and reorder linker options,
13669         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13670         # but is careful enough not to reorder.
13671         # Supported since Solaris 2.6 (maybe 2.5.1?)
13672         if test "$GCC" = yes; then
13673           whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13674         else
13675           whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13676         fi
13677         ;;
13678       esac
13679       link_all_deplibs_D=yes
13680       ;;
13681
13682     sunos4*)
13683       if test "x$host_vendor" = xsequent; then
13684         # Use $CC to link under sequent, because it throws in some extra .o
13685         # files that make .init and .fini sections work.
13686         archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13687       else
13688         archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13689       fi
13690       hardcode_libdir_flag_spec_D='-L$libdir'
13691       hardcode_direct_D=yes
13692       hardcode_minus_L_D=yes
13693       hardcode_shlibpath_var_D=no
13694       ;;
13695
13696     sysv4)
13697       case $host_vendor in
13698         sni)
13699           archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13700           hardcode_direct_D=yes # is this really true???
13701         ;;
13702         siemens)
13703           ## LD is ld it makes a PLAMLIB
13704           ## CC just makes a GrossModule.
13705           archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13706           reload_cmds_D='$CC -r -o $output$reload_objs'
13707           hardcode_direct_D=no
13708         ;;
13709         motorola)
13710           archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13711           hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13712         ;;
13713       esac
13714       runpath_var='LD_RUN_PATH'
13715       hardcode_shlibpath_var_D=no
13716       ;;
13717
13718     sysv4.3*)
13719       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13720       hardcode_shlibpath_var_D=no
13721       export_dynamic_flag_spec_D='-Bexport'
13722       ;;
13723
13724     sysv4*MP*)
13725       if test -d /usr/nec; then
13726         archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13727         hardcode_shlibpath_var_D=no
13728         runpath_var=LD_RUN_PATH
13729         hardcode_runpath_var=yes
13730         ld_shlibs_D=yes
13731       fi
13732       ;;
13733
13734     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13735       no_undefined_flag_D='${wl}-z,text'
13736       archive_cmds_need_lc_D=no
13737       hardcode_shlibpath_var_D=no
13738       runpath_var='LD_RUN_PATH'
13739
13740       if test "$GCC" = yes; then
13741         archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13742         archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13743       else
13744         archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13745         archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13746       fi
13747       ;;
13748
13749     sysv5* | sco3.2v5* | sco5v6*)
13750       # Note: We can NOT use -z defs as we might desire, because we do not
13751       # link with -lc, and that would cause any symbols used from libc to
13752       # always be unresolved, which means just about no library would
13753       # ever link correctly.  If we're not using GNU ld we use -z text
13754       # though, which does catch some bad symbols but isn't as heavy-handed
13755       # as -z defs.
13756       no_undefined_flag_D='${wl}-z,text'
13757       allow_undefined_flag_D='${wl}-z,nodefs'
13758       archive_cmds_need_lc_D=no
13759       hardcode_shlibpath_var_D=no
13760       hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13761       hardcode_libdir_separator_D=':'
13762       link_all_deplibs_D=yes
13763       export_dynamic_flag_spec_D='${wl}-Bexport'
13764       runpath_var='LD_RUN_PATH'
13765
13766       if test "$GCC" = yes; then
13767         archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13768         archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769       else
13770         archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13771         archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13772       fi
13773       ;;
13774
13775     uts4*)
13776       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13777       hardcode_libdir_flag_spec_D='-L$libdir'
13778       hardcode_shlibpath_var_D=no
13779       ;;
13780
13781     *)
13782       ld_shlibs_D=no
13783       ;;
13784     esac
13785
13786     if test x$host_vendor = xsni; then
13787       case $host in
13788       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13789         export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13790         ;;
13791       esac
13792     fi
13793   fi
13794
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13796 $as_echo "$ld_shlibs_D" >&6; }
13797 test "$ld_shlibs_D" = no && can_build_shared=no
13798
13799 with_gnu_ld_D=$with_gnu_ld
13800
13801
13802
13803
13804
13805
13806 #
13807 # Do we need to explicitly link libc?
13808 #
13809 case "x$archive_cmds_need_lc_D" in
13810 x|xyes)
13811   # Assume -lc should be added
13812   archive_cmds_need_lc_D=yes
13813
13814   if test "$enable_shared" = yes && test "$GCC" = yes; then
13815     case $archive_cmds_D in
13816     *'~'*)
13817       # FIXME: we may have to deal with multi-command sequences.
13818       ;;
13819     '$CC '*)
13820       # Test whether the compiler implicitly links with -lc since on some
13821       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13822       # to ld, don't add -lc before -lgcc.
13823       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13824 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13825 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13826   $as_echo_n "(cached) " >&6
13827 else
13828   $RM conftest*
13829         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13830
13831         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13832   (eval $ac_compile) 2>&5
13833   ac_status=$?
13834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13835   test $ac_status = 0; } 2>conftest.err; then
13836           soname=conftest
13837           lib=conftest
13838           libobjs=conftest.$ac_objext
13839           deplibs=
13840           wl=$lt_prog_compiler_wl_D
13841           pic_flag=$lt_prog_compiler_pic_D
13842           compiler_flags=-v
13843           linker_flags=-v
13844           verstring=
13845           output_objdir=.
13846           libname=conftest
13847           lt_save_allow_undefined_flag=$allow_undefined_flag_D
13848           allow_undefined_flag_D=
13849           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13850   (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13851   ac_status=$?
13852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13853   test $ac_status = 0; }
13854           then
13855             lt_cv_archive_cmds_need_lc_D=no
13856           else
13857             lt_cv_archive_cmds_need_lc_D=yes
13858           fi
13859           allow_undefined_flag_D=$lt_save_allow_undefined_flag
13860         else
13861           cat conftest.err 1>&5
13862         fi
13863         $RM conftest*
13864
13865 fi
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13867 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13868       archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13869       ;;
13870     esac
13871   fi
13872   ;;
13873 esac
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13939 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13940 hardcode_action_D=
13941 if test -n "$hardcode_libdir_flag_spec_D" ||
13942    test -n "$runpath_var_D" ||
13943    test "X$hardcode_automatic_D" = "Xyes" ; then
13944
13945   # We can hardcode non-existent directories.
13946   if test "$hardcode_direct_D" != no &&
13947      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13948      # have to relink, otherwise we might link with an installed library
13949      # when we should be linking with a yet-to-be-installed one
13950      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13951      test "$hardcode_minus_L_D" != no; then
13952     # Linking always hardcodes the temporary library directory.
13953     hardcode_action_D=relink
13954   else
13955     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13956     hardcode_action_D=immediate
13957   fi
13958 else
13959   # We cannot hardcode anything, or else we can only hardcode existing
13960   # directories.
13961   hardcode_action_D=unsupported
13962 fi
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13964 $as_echo "$hardcode_action_D" >&6; }
13965
13966 if test "$hardcode_action_D" = relink ||
13967    test "$inherit_rpath_D" = yes; then
13968   # Fast installation is not supported
13969   enable_fast_install=no
13970 elif test "$shlibpath_overrides_runpath" = yes ||
13971      test "$enable_shared" = no; then
13972   # Fast installation is not necessary
13973   enable_fast_install=needless
13974 fi
13975
13976
13977
13978
13979
13980
13981
13982 fi
13983
13984 ac_ext=c
13985 ac_cpp='$CPP $CPPFLAGS'
13986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13989
13990
13991 GCC=$lt_save_GCC
13992 CC=$lt_save_CC
13993 CFLAGS=$lt_save_CFLAGS
13994
13995   GDCFLAGS=$gdc_save_DFLAGS
13996
13997
13998 # libtool variables for Phobos shared and position-independent compiles.
13999 #
14000 # Use phobos_compiler_shared_flag to designate the compile-time flags for
14001 # creating shared objects. Default: -fversion=Shared.
14002 #
14003 # Use phobos_compiler_pic_flag to designate the compile-time flags for
14004 # creating position-independent objects. This varies with the target
14005 # hardware and operating system, but is often: -fPIC.
14006 #
14007 # The distinction between pic and shared compilation flags is not present in
14008 # libtool, and so we make it here.  How it is handled is that in shared
14009 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
14010 # ensure that conditional compilation of shared runtime code is compiled in.
14011 # The original PIC flags are then used in the compilation of every object.
14012 #
14013 # Why are objects destined for libgphobos.a compiled with -fPIC?
14014 # Because -fPIC is not harmful to use for objects destined for static
14015 # libraries. In addition, using -fPIC will allow the use of static
14016 # libgphobos.a in the creation of other D shared libraries.
14017 if test "$enable_shared" = yes; then
14018   phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
14019   phobos_compiler_shared_flag="-fversion=Shared"
14020 else
14021   phobos_compiler_pic_flag=
14022   phobos_compiler_shared_flag=
14023 fi
14024
14025
14026
14027 # Override the libtool's pic_flag and pic_mode.
14028 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14029 # NB: this impacts --with-pic and --without-pic.
14030 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
14031 pic_mode='default'
14032
14033 # Determine what GCC version number to use in filesystem paths.
14034
14035   get_gcc_base_ver="cat"
14036
14037 # Check whether --with-gcc-major-version-only was given.
14038 if test "${with_gcc_major_version_only+set}" = set; then :
14039   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14040         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14041       fi
14042
14043 fi
14044
14045
14046
14047
14048 # libphobos/libdruntime specific options and feature detection
14049
14050   # These need to be absolute paths, yet at the same time need to
14051   # canonicalize only relative paths, because then amd will not unmount
14052   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14053   libphobos_builddir=`${PWDCMD-pwd}`
14054   case $srcdir in
14055     \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
14056     *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14057   esac
14058
14059
14060
14061
14062   if test ${multilib} = yes; then
14063     multilib_arg="--enable-multilib"
14064   else
14065     multilib_arg=
14066   fi
14067
14068
14069   # Check whether --enable-werror was given.
14070 if test "${enable_werror+set}" = set; then :
14071   enableval=$enable_werror;
14072 fi
14073
14074   WERROR_FLAG=""
14075   if test "x$enable_werror" = "xyes"; then
14076       WERROR_FLAG="-Werror"
14077   fi
14078
14079
14080   druntime_target_cpu_parsed=""
14081   case "$target_cpu" in
14082       aarch64*)
14083                druntime_target_cpu_parsed="aarch64"
14084                ;;
14085       arm*)    druntime_target_cpu_parsed="arm"
14086                ;;
14087       mips*)   druntime_target_cpu_parsed="mips"
14088                ;;
14089       powerpc*)
14090                druntime_target_cpu_parsed="powerpc"
14091                ;;
14092       i[34567]86|x86_64)
14093                druntime_target_cpu_parsed="x86"
14094                ;;
14095       s390x)
14096                druntime_target_cpu_parsed="s390x"
14097                ;;
14098       s390)
14099                druntime_target_cpu_parsed="s390"
14100                ;;
14101   esac
14102    if test "$druntime_target_cpu_parsed" = "aarch64"; then
14103   DRUNTIME_CPU_AARCH64_TRUE=
14104   DRUNTIME_CPU_AARCH64_FALSE='#'
14105 else
14106   DRUNTIME_CPU_AARCH64_TRUE='#'
14107   DRUNTIME_CPU_AARCH64_FALSE=
14108 fi
14109
14110    if test "$druntime_target_cpu_parsed" = "arm"; then
14111   DRUNTIME_CPU_ARM_TRUE=
14112   DRUNTIME_CPU_ARM_FALSE='#'
14113 else
14114   DRUNTIME_CPU_ARM_TRUE='#'
14115   DRUNTIME_CPU_ARM_FALSE=
14116 fi
14117
14118    if test "$druntime_target_cpu_parsed" = "mips"; then
14119   DRUNTIME_CPU_MIPS_TRUE=
14120   DRUNTIME_CPU_MIPS_FALSE='#'
14121 else
14122   DRUNTIME_CPU_MIPS_TRUE='#'
14123   DRUNTIME_CPU_MIPS_FALSE=
14124 fi
14125
14126    if test "$druntime_target_cpu_parsed" = "powerpc"; then
14127   DRUNTIME_CPU_POWERPC_TRUE=
14128   DRUNTIME_CPU_POWERPC_FALSE='#'
14129 else
14130   DRUNTIME_CPU_POWERPC_TRUE='#'
14131   DRUNTIME_CPU_POWERPC_FALSE=
14132 fi
14133
14134    if test "$druntime_target_cpu_parsed" = "x86"; then
14135   DRUNTIME_CPU_X86_TRUE=
14136   DRUNTIME_CPU_X86_FALSE='#'
14137 else
14138   DRUNTIME_CPU_X86_TRUE='#'
14139   DRUNTIME_CPU_X86_FALSE=
14140 fi
14141
14142    if test "$druntime_target_cpu_parsed" = "s390x"; then
14143   DRUNTIME_CPU_SYSTEMZ_TRUE=
14144   DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14145 else
14146   DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14147   DRUNTIME_CPU_SYSTEMZ_FALSE=
14148 fi
14149
14150    if test "$druntime_target_cpu_parsed" = "s390"; then
14151   DRUNTIME_CPU_S390_TRUE=
14152   DRUNTIME_CPU_S390_FALSE='#'
14153 else
14154   DRUNTIME_CPU_S390_TRUE='#'
14155   DRUNTIME_CPU_S390_FALSE=
14156 fi
14157
14158
14159
14160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14161 $as_echo_n "checking for target OS... " >&6; }
14162 if ${druntime_cv_target_os+:} false; then :
14163   $as_echo_n "(cached) " >&6
14164 else
14165   druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14166 fi
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14168 $as_echo "$druntime_cv_target_os" >&6; }
14169     if test -z "$druntime_cv_target_os"; then :
14170   as_fn_error $? "can't detect target OS" "$LINENO" 5
14171 fi
14172
14173
14174
14175
14176   druntime_target_os_parsed=""
14177   case "$druntime_cv_target_os" in
14178       aix*)    druntime_target_os_parsed="aix"
14179                ;;
14180       *android*)
14181                druntime_target_os_parsed="android"
14182                ;;
14183       darwin*) druntime_target_os_parsed="darwin"
14184                ;;
14185       dragonfly*)
14186                druntime_target_os_parsed="dragonflybsd"
14187                ;;
14188       freebsd*|k*bsd*-gnu)
14189                druntime_target_os_parsed="freebsd"
14190                ;;
14191       openbsd*)
14192                druntime_target_os_parsed="openbsd"
14193                ;;
14194       netbsd*)
14195                druntime_target_os_parsed="netbsd"
14196                ;;
14197       linux*)  druntime_target_os_parsed="linux"
14198                ;;
14199       mingw*)  druntime_target_os_parsed="mingw"
14200              ;;
14201       *solaris*) druntime_target_os_parsed="solaris"
14202   esac
14203    if test "$druntime_target_os_parsed" = "aix"; then
14204   DRUNTIME_OS_AIX_TRUE=
14205   DRUNTIME_OS_AIX_FALSE='#'
14206 else
14207   DRUNTIME_OS_AIX_TRUE='#'
14208   DRUNTIME_OS_AIX_FALSE=
14209 fi
14210
14211    if test "$druntime_target_os_parsed" = "android"; then
14212   DRUNTIME_OS_ANDROID_TRUE=
14213   DRUNTIME_OS_ANDROID_FALSE='#'
14214 else
14215   DRUNTIME_OS_ANDROID_TRUE='#'
14216   DRUNTIME_OS_ANDROID_FALSE=
14217 fi
14218
14219    if test "$druntime_target_os_parsed" = "darwin"; then
14220   DRUNTIME_OS_DARWIN_TRUE=
14221   DRUNTIME_OS_DARWIN_FALSE='#'
14222 else
14223   DRUNTIME_OS_DARWIN_TRUE='#'
14224   DRUNTIME_OS_DARWIN_FALSE=
14225 fi
14226
14227    if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14228   DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14229   DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14230 else
14231   DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14232   DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14233 fi
14234
14235    if test "$druntime_target_os_parsed" = "freebsd"; then
14236   DRUNTIME_OS_FREEBSD_TRUE=
14237   DRUNTIME_OS_FREEBSD_FALSE='#'
14238 else
14239   DRUNTIME_OS_FREEBSD_TRUE='#'
14240   DRUNTIME_OS_FREEBSD_FALSE=
14241 fi
14242
14243    if test "$druntime_target_os_parsed" = "netbsd"; then
14244   DRUNTIME_OS_NETBSD_TRUE=
14245   DRUNTIME_OS_NETBSD_FALSE='#'
14246 else
14247   DRUNTIME_OS_NETBSD_TRUE='#'
14248   DRUNTIME_OS_NETBSD_FALSE=
14249 fi
14250
14251    if test "$druntime_target_os_parsed" = "openbsd"; then
14252   DRUNTIME_OS_OPENBSD_TRUE=
14253   DRUNTIME_OS_OPENBSD_FALSE='#'
14254 else
14255   DRUNTIME_OS_OPENBSD_TRUE='#'
14256   DRUNTIME_OS_OPENBSD_FALSE=
14257 fi
14258
14259    if test "$druntime_target_os_parsed" = "linux"; then
14260   DRUNTIME_OS_LINUX_TRUE=
14261   DRUNTIME_OS_LINUX_FALSE='#'
14262 else
14263   DRUNTIME_OS_LINUX_TRUE='#'
14264   DRUNTIME_OS_LINUX_FALSE=
14265 fi
14266
14267    if test "$druntime_target_os_parsed" = "mingw"; then
14268   DRUNTIME_OS_MINGW_TRUE=
14269   DRUNTIME_OS_MINGW_FALSE='#'
14270 else
14271   DRUNTIME_OS_MINGW_TRUE='#'
14272   DRUNTIME_OS_MINGW_FALSE=
14273 fi
14274
14275    if test "$druntime_target_os_parsed" = "solaris"; then
14276   DRUNTIME_OS_SOLARIS_TRUE=
14277   DRUNTIME_OS_SOLARIS_FALSE='#'
14278 else
14279   DRUNTIME_OS_SOLARIS_TRUE='#'
14280   DRUNTIME_OS_SOLARIS_FALSE=
14281 fi
14282
14283
14284   druntime_target_posix="no"
14285   case "$druntime_cv_target_os" in
14286     aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14287       druntime_target_posix="yes"
14288       ;;
14289   esac
14290    if test "$druntime_target_posix" = "yes"; then
14291   DRUNTIME_OS_POSIX_TRUE=
14292   DRUNTIME_OS_POSIX_FALSE='#'
14293 else
14294   DRUNTIME_OS_POSIX_TRUE='#'
14295   DRUNTIME_OS_POSIX_FALSE=
14296 fi
14297
14298
14299
14300
14301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14302 $as_echo_n "checking for thread model used by GDC... " >&6; }
14303   d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14305 $as_echo "$d_thread_model" >&6; }
14306
14307   # Map from thread model to thread interface.
14308
14309 case $d_thread_model in
14310     aix)    DCFG_THREAD_MODEL="Posix" ;;
14311     lynx)   DCFG_THREAD_MODEL="Posix" ;;
14312     posix)  DCFG_THREAD_MODEL="Posix" ;;
14313     single) DCFG_THREAD_MODEL="Single" ;;
14314     win32)  DCFG_THREAD_MODEL="Win32" ;;
14315     # TODO: These targets need porting.
14316     dce|mipssde|rtems|tpf|vxworks)
14317             DCFG_THREAD_MODEL="Single" ;;
14318     *)      as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14319 esac
14320
14321
14322
14323
14324   ac_ext=c
14325 ac_cpp='$CPP $CPPFLAGS'
14326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14329
14330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14331 $as_echo_n "checking for ARM unwinder... " >&6; }
14332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h.  */
14334 #include <unwind.h>
14335 int
14336 main ()
14337 {
14338
14339   #if __ARM_EABI_UNWINDER__
14340   #error Yes, it is.
14341   #endif
14342
14343   ;
14344   return 0;
14345 }
14346 _ACEOF
14347 if ac_fn_c_try_compile "$LINENO"; then :
14348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14349 $as_echo "no" >&6; }
14350      DCFG_ARM_EABI_UNWINDER=false
14351 else
14352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14353 $as_echo "yes" >&6; }
14354      DCFG_ARM_EABI_UNWINDER=true
14355 fi
14356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14357
14358    if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14359   DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14360   DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14361 else
14362   DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14363   DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14364 fi
14365
14366   ac_ext=c
14367 ac_cpp='$CPP $CPPFLAGS'
14368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14371
14372
14373
14374   ac_ext=c
14375 ac_cpp='$CPP $CPPFLAGS'
14376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14379
14380   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14381 $as_echo_n "checking for minfo section bracketing... " >&6; }
14382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14383 /* end confdefs.h.  */
14384
14385     void* module_info_ptr __attribute__((section ("minfo")));
14386     extern void* __start_minfo __attribute__((visibility ("hidden")));
14387     extern void* __stop_minfo __attribute__((visibility ("hidden")));
14388
14389     int main()
14390     {
14391         // Never run, just to prevent compiler from optimizing access
14392         return &__start_minfo == &__stop_minfo;
14393     }
14394
14395 _ACEOF
14396 if ac_fn_c_try_link "$LINENO"; then :
14397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14398 $as_echo "yes" >&6; }
14399      DCFG_MINFO_BRACKETING=true
14400 else
14401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14402 $as_echo "no" >&6; }
14403      DCFG_MINFO_BRACKETING=false
14404 fi
14405 rm -f core conftest.err conftest.$ac_objext \
14406     conftest$ac_exeext conftest.$ac_ext
14407
14408    if test "$DCFG_MINFO_BRACKETING" = "true"; then
14409   DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14410   DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14411 else
14412   DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14413   DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14414 fi
14415
14416   ac_ext=c
14417 ac_cpp='$CPP $CPPFLAGS'
14418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14421
14422
14423
14424   ac_ext=c
14425 ac_cpp='$CPP $CPPFLAGS'
14426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14429
14430   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>
14431 "
14432 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14433   DCFG_DLPI_TLS_MODID=true
14434 else
14435   DCFG_DLPI_TLS_MODID=false
14436 fi
14437
14438
14439   ac_ext=c
14440 ac_cpp='$CPP $CPPFLAGS'
14441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14444
14445
14446
14447   case $target in
14448     i?86-*-solaris2.* | x86_64-*-solaris2.*)
14449       # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14450       # relocs.  Work around by disabling TLS transitions.  Not necessary
14451       # on 32-bit x86, but cannot be distinguished reliably in specs.
14452       druntime_ld_prog=`$CC -print-prog-name=ld`
14453       druntime_ld_gld=no
14454       druntime_ld_relax_transtls=no
14455       if test -n "$druntime_ld_prog" \
14456          && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14457         druntime_ld_gld=yes
14458       else
14459         echo 'int main (void) { return 0; }' > conftest.c
14460         save_LDFLAGS="$LDFLAGS"
14461         LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14462         if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14463           druntime_ld_relax_transtls=yes
14464         fi
14465         LDFLAGS="$save_LDFLAGS"
14466         rm -f conftest.c conftest
14467       fi
14468       if test "$druntime_ld_relax_transtls" = "yes"; then
14469         OS_LINK_SPEC='-z relax=transtls'
14470       fi
14471       ;;
14472   esac
14473
14474
14475
14476   ac_ext=c
14477 ac_cpp='$CPP $CPPFLAGS'
14478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14481
14482   DCFG_HAVE_QSORT_R=false
14483   ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14484 if test "x$ac_cv_func_qsort_r" = xyes; then :
14485   DCFG_HAVE_QSORT_R=true
14486 fi
14487
14488
14489   ac_ext=c
14490 ac_cpp='$CPP $CPPFLAGS'
14491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14494
14495
14496
14497
14498
14499   gdc_save_DFLAGS=$GDCFLAGS
14500   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14501
14502   ac_ext=d
14503 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14504 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14505 ac_compiler_gnu=yes
14506
14507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14508 $as_echo_n "checking for library containing malloc... " >&6; }
14509 if ${ac_cv_search_malloc+:} false; then :
14510   $as_echo_n "(cached) " >&6
14511 else
14512   ac_func_search_save_LIBS=$LIBS
14513 cat > conftest.$ac_ext <<_ACEOF
14514 module mod;
14515  extern(C) int malloc();
14516
14517 extern(C) int main() {
14518   malloc(); return 0;
14519 }
14520 _ACEOF
14521 for ac_lib in '' c; do
14522   if test -z "$ac_lib"; then
14523     ac_res="none required"
14524   else
14525     ac_res=-l$ac_lib
14526     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14527   fi
14528   if ac_fn_d_try_link "$LINENO"; then :
14529   ac_cv_search_malloc=$ac_res
14530 fi
14531 rm -f core conftest.err conftest.$ac_objext \
14532     conftest$ac_exeext
14533   if ${ac_cv_search_malloc+:} false; then :
14534   break
14535 fi
14536 done
14537 if ${ac_cv_search_malloc+:} false; then :
14538
14539 else
14540   ac_cv_search_malloc=no
14541 fi
14542 rm conftest.$ac_ext
14543 LIBS=$ac_func_search_save_LIBS
14544 fi
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14546 $as_echo "$ac_cv_search_malloc" >&6; }
14547 ac_res=$ac_cv_search_malloc
14548 if test "$ac_res" != no; then :
14549   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14550
14551 fi
14552
14553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14554 $as_echo_n "checking for library containing pthread_create... " >&6; }
14555 if ${ac_cv_search_pthread_create+:} false; then :
14556   $as_echo_n "(cached) " >&6
14557 else
14558   ac_func_search_save_LIBS=$LIBS
14559 cat > conftest.$ac_ext <<_ACEOF
14560 module mod;
14561  extern(C) int pthread_create();
14562
14563 extern(C) int main() {
14564   pthread_create(); return 0;
14565 }
14566 _ACEOF
14567 for ac_lib in '' pthread; do
14568   if test -z "$ac_lib"; then
14569     ac_res="none required"
14570   else
14571     ac_res=-l$ac_lib
14572     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14573   fi
14574   if ac_fn_d_try_link "$LINENO"; then :
14575   ac_cv_search_pthread_create=$ac_res
14576 fi
14577 rm -f core conftest.err conftest.$ac_objext \
14578     conftest$ac_exeext
14579   if ${ac_cv_search_pthread_create+:} false; then :
14580   break
14581 fi
14582 done
14583 if ${ac_cv_search_pthread_create+:} false; then :
14584
14585 else
14586   ac_cv_search_pthread_create=no
14587 fi
14588 rm conftest.$ac_ext
14589 LIBS=$ac_func_search_save_LIBS
14590 fi
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14592 $as_echo "$ac_cv_search_pthread_create" >&6; }
14593 ac_res=$ac_cv_search_pthread_create
14594 if test "$ac_res" != no; then :
14595   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14596
14597 fi
14598
14599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14600 $as_echo_n "checking for library containing cosf... " >&6; }
14601 if ${ac_cv_search_cosf+:} false; then :
14602   $as_echo_n "(cached) " >&6
14603 else
14604   ac_func_search_save_LIBS=$LIBS
14605 cat > conftest.$ac_ext <<_ACEOF
14606 module mod;
14607  extern(C) int cosf();
14608
14609 extern(C) int main() {
14610   cosf(); return 0;
14611 }
14612 _ACEOF
14613 for ac_lib in '' m; do
14614   if test -z "$ac_lib"; then
14615     ac_res="none required"
14616   else
14617     ac_res=-l$ac_lib
14618     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14619   fi
14620   if ac_fn_d_try_link "$LINENO"; then :
14621   ac_cv_search_cosf=$ac_res
14622 fi
14623 rm -f core conftest.err conftest.$ac_objext \
14624     conftest$ac_exeext
14625   if ${ac_cv_search_cosf+:} false; then :
14626   break
14627 fi
14628 done
14629 if ${ac_cv_search_cosf+:} false; then :
14630
14631 else
14632   ac_cv_search_cosf=no
14633 fi
14634 rm conftest.$ac_ext
14635 LIBS=$ac_func_search_save_LIBS
14636 fi
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14638 $as_echo "$ac_cv_search_cosf" >&6; }
14639 ac_res=$ac_cv_search_cosf
14640 if test "$ac_res" != no; then :
14641   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14642
14643 fi
14644
14645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14646 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14647 if ${ac_cv_search_clock_gettime+:} false; then :
14648   $as_echo_n "(cached) " >&6
14649 else
14650   ac_func_search_save_LIBS=$LIBS
14651 cat > conftest.$ac_ext <<_ACEOF
14652 module mod;
14653  extern(C) int clock_gettime();
14654
14655 extern(C) int main() {
14656   clock_gettime(); return 0;
14657 }
14658 _ACEOF
14659 for ac_lib in '' rt; do
14660   if test -z "$ac_lib"; then
14661     ac_res="none required"
14662   else
14663     ac_res=-l$ac_lib
14664     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14665   fi
14666   if ac_fn_d_try_link "$LINENO"; then :
14667   ac_cv_search_clock_gettime=$ac_res
14668 fi
14669 rm -f core conftest.err conftest.$ac_objext \
14670     conftest$ac_exeext
14671   if ${ac_cv_search_clock_gettime+:} false; then :
14672   break
14673 fi
14674 done
14675 if ${ac_cv_search_clock_gettime+:} false; then :
14676
14677 else
14678   ac_cv_search_clock_gettime=no
14679 fi
14680 rm conftest.$ac_ext
14681 LIBS=$ac_func_search_save_LIBS
14682 fi
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14684 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14685 ac_res=$ac_cv_search_clock_gettime
14686 if test "$ac_res" != no; then :
14687   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14688
14689 fi
14690
14691
14692   # This checks to see if the host supports the compiler-generated builtins
14693   # for atomic operations for various integral sizes. Note, this is intended
14694   # to be an all-or-nothing switch, so all the atomic operations that are
14695   # used should be checked.
14696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14697 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14698   if ${druntime_cv_atomic_byte+:} false; then :
14699   $as_echo_n "(cached) " >&6
14700 else
14701
14702     cat > conftest.$ac_ext <<_ACEOF
14703 module mod;
14704 import gcc.builtins;
14705
14706 extern(C) int main() {
14707
14708       shared(byte) c1;
14709        byte c2, c3;
14710        __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14711        __atomic_load_1(&c1, 5);
14712        __atomic_store_1(&c1, c2, 5);
14713        return 0;
14714
14715 }
14716 _ACEOF
14717 if ac_fn_d_try_link "$LINENO"; then :
14718   druntime_cv_atomic_byte=yes
14719 else
14720   druntime_cv_atomic_byte=no
14721 fi
14722 rm -f core conftest.err conftest.$ac_objext \
14723     conftest$ac_exeext conftest.$ac_ext
14724
14725 fi
14726
14727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14728 $as_echo "$druntime_cv_atomic_byte" >&6; }
14729
14730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14731 $as_echo_n "checking for atomic builtins for short... " >&6; }
14732   if ${druntime_cv_atomic_short+:} false; then :
14733   $as_echo_n "(cached) " >&6
14734 else
14735
14736     cat > conftest.$ac_ext <<_ACEOF
14737 module mod;
14738 import gcc.builtins;
14739
14740 extern(C) int main() {
14741
14742       shared(short) c1;
14743        short c2, c3;
14744        __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14745        __atomic_load_2(&c1, 5);
14746        __atomic_store_2(&c1, c2, 5);
14747        return 0;
14748
14749 }
14750 _ACEOF
14751 if ac_fn_d_try_link "$LINENO"; then :
14752   druntime_cv_atomic_short=yes
14753 else
14754   druntime_cv_atomic_short=no
14755 fi
14756 rm -f core conftest.err conftest.$ac_objext \
14757     conftest$ac_exeext conftest.$ac_ext
14758
14759 fi
14760
14761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14762 $as_echo "$druntime_cv_atomic_short" >&6; }
14763
14764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14765 $as_echo_n "checking for atomic builtins for int... " >&6; }
14766   if ${druntime_cv_atomic_int+:} false; then :
14767   $as_echo_n "(cached) " >&6
14768 else
14769
14770     cat > conftest.$ac_ext <<_ACEOF
14771 module mod;
14772 import gcc.builtins;
14773
14774 extern(C) int main() {
14775
14776       shared(int) c1;
14777        int c2, c3;
14778        __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14779        __atomic_load_4(&c1, 5);
14780        __atomic_store_4(&c1, c2, 5);
14781        return 0;
14782
14783 }
14784 _ACEOF
14785 if ac_fn_d_try_link "$LINENO"; then :
14786   druntime_cv_atomic_int=yes
14787 else
14788   druntime_cv_atomic_int=no
14789 fi
14790 rm -f core conftest.err conftest.$ac_objext \
14791     conftest$ac_exeext conftest.$ac_ext
14792
14793 fi
14794
14795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14796 $as_echo "$druntime_cv_atomic_int" >&6; }
14797
14798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14799 $as_echo_n "checking for atomic builtins for long... " >&6; }
14800   if ${druntime_cv_atomic_long+:} false; then :
14801   $as_echo_n "(cached) " >&6
14802 else
14803
14804     cat > conftest.$ac_ext <<_ACEOF
14805 module mod;
14806 import gcc.builtins;
14807
14808 extern(C) int main() {
14809
14810        shared(long) c1;
14811        long c2, c3;
14812        __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14813        __atomic_load_8(&c1, 5);
14814        __atomic_store_8(&c1, c2, 5);
14815        return 0;
14816
14817 }
14818 _ACEOF
14819 if ac_fn_d_try_link "$LINENO"; then :
14820   druntime_cv_atomic_long=yes
14821 else
14822   druntime_cv_atomic_long=no
14823 fi
14824 rm -f core conftest.err conftest.$ac_objext \
14825     conftest$ac_exeext conftest.$ac_ext
14826
14827 fi
14828
14829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14830 $as_echo "$druntime_cv_atomic_long" >&6; }
14831
14832   # Have atomic builtin support if all but the long test above passes.
14833   DCFG_HAVE_ATOMIC_BUILTINS=false
14834   if test "$druntime_cv_atomic_byte" = yes \
14835      && test "$druntime_cv_atomic_short" = yes \
14836      && test "$druntime_cv_atomic_int" = yes; then \
14837     DCFG_HAVE_ATOMIC_BUILTINS=true
14838   fi
14839
14840   # Have 64-bit atomic support if the long test above passes.
14841   DCFG_HAVE_64BIT_ATOMICS=false
14842   if test "$druntime_cv_atomic_long" = yes; then
14843     DCFG_HAVE_64BIT_ATOMICS=true
14844   fi
14845
14846
14847
14848
14849   ac_ext=c
14850 ac_cpp='$CPP $CPPFLAGS'
14851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14854
14855
14856   GDCFLAGS=$gdc_save_DFLAGS
14857
14858
14859
14860
14861 # Check whether --with-libatomic was given.
14862 if test "${with_libatomic+set}" = set; then :
14863   withval=$with_libatomic;
14864 fi
14865
14866
14867   DCFG_HAVE_LIBATOMIC=false
14868   LIBATOMIC=
14869   if test "x$with_libatomic" != "xno"; then :
14870
14871     DCFG_HAVE_LIBATOMIC=true
14872     LIBATOMIC=../../libatomic/libatomic_convenience.la
14873
14874 else
14875
14876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14877 $as_echo_n "checking for libatomic... " >&6; }
14878     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14879 $as_echo "disabled" >&6; }
14880
14881 fi
14882
14883
14884
14885
14886
14887   ac_ext=c
14888 ac_cpp='$CPP $CPPFLAGS'
14889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14892
14893   BACKTRACE_SUPPORTED=false
14894   BACKTRACE_USES_MALLOC=false
14895   BACKTRACE_SUPPORTS_THREADS=false
14896   LIBBACKTRACE=""
14897
14898
14899 # Check whether --with-libbacktrace was given.
14900 if test "${with_libbacktrace+set}" = set; then :
14901   withval=$with_libbacktrace;
14902 fi
14903
14904
14905   if test "x$with_libbacktrace" != "xno"; then :
14906
14907     LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14908
14909     gdc_save_CPPFLAGS=$CPPFLAGS
14910     CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14911
14912     ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14913 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14914   have_libbacktrace_h=true
14915 else
14916   have_libbacktrace_h=false
14917 fi
14918
14919
14920
14921     if $have_libbacktrace_h; then
14922       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14923 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14924       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h.  */
14926
14927       #include <backtrace-supported.h>
14928       #if BACKTRACE_SUPPORTED
14929         FOUND_LIBBACKTRACE_RESULT_GDC
14930       #endif
14931
14932 _ACEOF
14933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14934   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14935   BACKTRACE_SUPPORTED=true
14936 else
14937   BACKTRACE_SUPPORTED=false
14938 fi
14939 rm -f conftest*
14940
14941       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14942 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14943
14944       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14945 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14946       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14947 /* end confdefs.h.  */
14948
14949       #include <backtrace-supported.h>
14950       #if BACKTRACE_USES_MALLOC
14951         FOUND_LIBBACKTRACE_RESULT_GDC
14952       #endif
14953
14954 _ACEOF
14955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14956   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14957   BACKTRACE_USES_MALLOC=true
14958 else
14959   BACKTRACE_USES_MALLOC=false
14960 fi
14961 rm -f conftest*
14962
14963       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14964 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14965
14966       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14967 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14968       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h.  */
14970
14971       #include <backtrace-supported.h>
14972       #if BACKTRACE_SUPPORTS_THREADS
14973         FOUND_LIBBACKTRACE_RESULT_GDC
14974       #endif
14975
14976 _ACEOF
14977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14978   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14979   BACKTRACE_SUPPORTS_THREADS=true
14980 else
14981   BACKTRACE_SUPPORTS_THREADS=false
14982 fi
14983 rm -f conftest*
14984
14985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14986 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14987     fi
14988     CPPFLAGS=$gdc_save_CPPFLAGS
14989
14990 else
14991
14992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14993 $as_echo_n "checking for libbacktrace... " >&6; }
14994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14995 $as_echo "disabled" >&6; }
14996
14997 fi
14998
14999
15000
15001
15002
15003   ac_ext=c
15004 ac_cpp='$CPP $CPPFLAGS'
15005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15008
15009
15010
15011   # Libtool has already checked this, so re-use the inferred dlopen lib.
15012   if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15013
15014     LIBS="$LIBS $lt_cv_dlopen_libs"
15015
15016 fi
15017
15018
15019                             druntime_check_both=no
15020   ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15021 if test "x$ac_cv_func_connect" = xyes; then :
15022
15023 else
15024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15025 $as_echo_n "checking for connect in -lsocket... " >&6; }
15026 if ${ac_cv_lib_socket_connect+:} false; then :
15027   $as_echo_n "(cached) " >&6
15028 else
15029   ac_check_lib_save_LIBS=$LIBS
15030 LIBS="-lsocket  $LIBS"
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h.  */
15033
15034 /* Override any GCC internal prototype to avoid an error.
15035    Use char because int might match the return type of a GCC
15036    builtin and then its argument prototype would still apply.  */
15037 #ifdef __cplusplus
15038 extern "C"
15039 #endif
15040 char connect ();
15041 int
15042 main ()
15043 {
15044 return connect ();
15045   ;
15046   return 0;
15047 }
15048 _ACEOF
15049 if ac_fn_c_try_link "$LINENO"; then :
15050   ac_cv_lib_socket_connect=yes
15051 else
15052   ac_cv_lib_socket_connect=no
15053 fi
15054 rm -f core conftest.err conftest.$ac_objext \
15055     conftest$ac_exeext conftest.$ac_ext
15056 LIBS=$ac_check_lib_save_LIBS
15057 fi
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15059 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15060 if test "x$ac_cv_lib_socket_connect" = xyes; then :
15061   LIBS="$LIBS -lsocket"
15062 else
15063   druntime_check_both=yes
15064 fi
15065
15066 fi
15067
15068   if test "$druntime_check_both" = "yes"; then
15069     druntime_old_libs=$LIBS
15070     LIBS="$LIBS -lsocket -lnsl"
15071     ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15072 if test "x$ac_cv_func_accept" = xyes; then :
15073
15074 else
15075   LIBS=$druntime_old_libs
15076 fi
15077
15078   fi
15079   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15080 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15081
15082 else
15083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15084 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15085 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15086   $as_echo_n "(cached) " >&6
15087 else
15088   ac_check_lib_save_LIBS=$LIBS
15089 LIBS="-lnsl  $LIBS"
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h.  */
15092
15093 /* Override any GCC internal prototype to avoid an error.
15094    Use char because int might match the return type of a GCC
15095    builtin and then its argument prototype would still apply.  */
15096 #ifdef __cplusplus
15097 extern "C"
15098 #endif
15099 char gethostbyname ();
15100 int
15101 main ()
15102 {
15103 return gethostbyname ();
15104   ;
15105   return 0;
15106 }
15107 _ACEOF
15108 if ac_fn_c_try_link "$LINENO"; then :
15109   ac_cv_lib_nsl_gethostbyname=yes
15110 else
15111   ac_cv_lib_nsl_gethostbyname=no
15112 fi
15113 rm -f core conftest.err conftest.$ac_objext \
15114     conftest$ac_exeext conftest.$ac_ext
15115 LIBS=$ac_check_lib_save_LIBS
15116 fi
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15118 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15119 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15120   LIBS="$LIBS -lnsl"
15121 fi
15122
15123 fi
15124
15125
15126
15127   # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15128   # "yes" for targets that have 'version = AsmExternal'.
15129   druntime_fiber_asm_external=no
15130   case "$target_cpu" in
15131     aarch64* | \
15132     arm* | \
15133     i[34567]86|x86_64 | \
15134     powerpc)
15135       druntime_fiber_asm_external=yes
15136       ;;
15137   esac
15138   if test "$druntime_fiber_asm_external" = no; then
15139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15140 $as_echo_n "checking for library containing swapcontext... " >&6; }
15141 if ${ac_cv_search_swapcontext+:} false; then :
15142   $as_echo_n "(cached) " >&6
15143 else
15144   ac_func_search_save_LIBS=$LIBS
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h.  */
15147
15148 /* Override any GCC internal prototype to avoid an error.
15149    Use char because int might match the return type of a GCC
15150    builtin and then its argument prototype would still apply.  */
15151 #ifdef __cplusplus
15152 extern "C"
15153 #endif
15154 char swapcontext ();
15155 int
15156 main ()
15157 {
15158 return swapcontext ();
15159   ;
15160   return 0;
15161 }
15162 _ACEOF
15163 for ac_lib in '' c ucontext; do
15164   if test -z "$ac_lib"; then
15165     ac_res="none required"
15166   else
15167     ac_res=-l$ac_lib
15168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15169   fi
15170   if ac_fn_c_try_link "$LINENO"; then :
15171   ac_cv_search_swapcontext=$ac_res
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext \
15174     conftest$ac_exeext
15175   if ${ac_cv_search_swapcontext+:} false; then :
15176   break
15177 fi
15178 done
15179 if ${ac_cv_search_swapcontext+:} false; then :
15180
15181 else
15182   ac_cv_search_swapcontext=no
15183 fi
15184 rm conftest.$ac_ext
15185 LIBS=$ac_func_search_save_LIBS
15186 fi
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15188 $as_echo "$ac_cv_search_swapcontext" >&6; }
15189 ac_res=$ac_cv_search_swapcontext
15190 if test "$ac_res" != no; then :
15191   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15192
15193 else
15194   as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15195 fi
15196
15197   fi
15198
15199
15200   ac_ext=c
15201 ac_cpp='$CPP $CPPFLAGS'
15202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15205
15206   LIBZ=""
15207
15208
15209 # Check whether --with-target-system-zlib was given.
15210 if test "${with_target_system_zlib+set}" = set; then :
15211   withval=$with_target_system_zlib;
15212 else
15213   with_target_system_zlib=no
15214 fi
15215
15216
15217   case "$with_target_system_zlib" in
15218     yes|no|auto) ;;
15219     *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15220   esac
15221
15222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15223 $as_echo_n "checking for system zlib... " >&6; }
15224   save_LIBS=$LIBS
15225   LIBS="$LIBS -lz"
15226       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h.  */
15228 #include <zlib.h>
15229 int
15230 main ()
15231 {
15232 gzopen("none", "rb")
15233   ;
15234   return 0;
15235 }
15236 _ACEOF
15237 if ac_fn_c_try_link "$LINENO"; then :
15238
15239       if test "$cross_compiling" = yes; then :
15240           system_zlib_found=no
15241
15242 else
15243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244 /* end confdefs.h.  */
15245
15246         #include <zlib.h>
15247         int main() {
15248           gzFile file = gzopen("none", "rb");
15249           return 0;
15250         }
15251
15252 _ACEOF
15253 if ac_fn_c_try_run "$LINENO"; then :
15254   system_zlib_found=yes
15255 else
15256   system_zlib_found=no
15257 fi
15258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15259   conftest.$ac_objext conftest.beam conftest.$ac_ext
15260 fi
15261
15262
15263 else
15264   system_zlib_found=no
15265 fi
15266 rm -f core conftest.err conftest.$ac_objext \
15267     conftest$ac_exeext conftest.$ac_ext
15268   LIBS=$save_LIBS
15269
15270   if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15272 $as_echo "found" >&6; }
15273     LIBS="$LIBS -lz"
15274   elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15275     as_fn_error $? "system zlib required but not found" "$LINENO" 5
15276   else
15277     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15278 $as_echo "just compiled" >&6; }
15279     LIBZ=../../zlib/libz_convenience.la
15280   fi
15281
15282
15283   ac_ext=c
15284 ac_cpp='$CPP $CPPFLAGS'
15285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15288
15289
15290
15291
15292
15293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15294 $as_echo_n "checking D GCC version... " >&6; }
15295   gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15297 $as_echo "$gcc_version" >&6; }
15298
15299
15300
15301 # Check whether --with-cross-host was given.
15302 if test "${with_cross_host+set}" = set; then :
15303   withval=$with_cross_host;
15304 fi
15305
15306
15307   libphobos_toolexecdir=no
15308   libphobos_toolexeclibdir=no
15309
15310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15311 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15312   # Check whether --enable-version-specific-runtime-libs was given.
15313 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15314   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15315       yes) version_specific_libs=yes ;;
15316       no)  version_specific_libs=no ;;
15317       *)   as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15318      esac
15319 else
15320   version_specific_libs=no
15321 fi
15322
15323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15324 $as_echo "$version_specific_libs" >&6; }
15325
15326
15327 # Check whether --with-toolexeclibdir was given.
15328 if test "${with_toolexeclibdir+set}" = set; then :
15329   withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15330   /)
15331     ;;
15332   */)
15333     with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15334     ;;
15335 esac
15336 else
15337   with_toolexeclibdir=no
15338 fi
15339
15340
15341
15342   # Version-specific runtime libs processing.
15343   if test $version_specific_libs = yes; then
15344     libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15345     libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15346   else
15347     # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15348     # Install a library built with a cross compiler in tooldir, not libdir.
15349     if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15350       libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15351       case ${with_toolexeclibdir} in
15352         no)
15353           libphobos_toolexeclibdir='${toolexecdir}/lib'
15354           ;;
15355         *)
15356           libphobos_toolexeclibdir=${with_toolexeclibdir}
15357           ;;
15358       esac
15359     else
15360       libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15361       libphobos_toolexeclibdir='${libdir}'
15362     fi
15363     multi_os_directory=`$GDC -print-multi-os-directory`
15364     case $multi_os_directory in
15365       .) ;; # Avoid trailing /.
15366       *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15367     esac
15368   fi
15369
15370
15371
15372   # Default case for install directory for D sources files.
15373   gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15374
15375
15376
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15378 $as_echo_n "checking for --enable-libphobos... " >&6; }
15379 # Check whether --enable-libphobos was given.
15380 if test "${enable_libphobos+set}" = set; then :
15381   enableval=$enable_libphobos;
15382 fi
15383
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15385 $as_echo "$enable_libphobos" >&6; }
15386
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15388 $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15389
15390 # Check whether --with-libphobos-druntime-only was given.
15391 if test "${with_libphobos_druntime_only+set}" = set; then :
15392   withval=$with_libphobos_druntime_only;
15393 else
15394   with_libphobos_druntime_only=auto
15395 fi
15396
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15398 $as_echo "$with_libphobos_druntime_only" >&6; }
15399
15400 case "$with_libphobos_druntime_only" in
15401   yes|no|auto) ;;
15402   *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15403 esac
15404
15405 # See if supported.
15406 unset LIBPHOBOS_SUPPORTED
15407 unset LIBDRUNTIME_ONLY
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15409 $as_echo_n "checking for host support for libphobos... " >&6; }
15410 . ${srcdir}/configure.tgt
15411 case ${host} in
15412   x86_64-*-solaris2.* | i?86-*-solaris2.*)
15413     # libphobos doesn't compile with the Solaris/x86 assembler due to a
15414     # relatively low linelength limit.
15415     as_prog=`$CC -print-prog-name=as`
15416     if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15417       druntime_cv_use_gas=yes;
15418     else
15419       druntime_cv_use_gas=no;
15420     fi
15421     rm -f a.out
15422     if test x$druntime_cv_use_gas = xno; then
15423       LIBPHOBOS_SUPPORTED=no
15424     fi
15425     # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15426     if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15427       LIBPHOBOS_SUPPORTED=no
15428     fi
15429     ;;
15430 esac
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15432 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15433
15434 # Decide if it's usable.
15435 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15436 *:no)  use_libphobos=no  ;;
15437 *:yes) use_libphobos=yes ;;
15438 yes:*) use_libphobos=yes ;;
15439 *:*)   use_libphobos=no  ;;
15440 esac
15441  if test x$use_libphobos = xyes; then
15442   ENABLE_LIBPHOBOS_TRUE=
15443   ENABLE_LIBPHOBOS_FALSE='#'
15444 else
15445   ENABLE_LIBPHOBOS_TRUE='#'
15446   ENABLE_LIBPHOBOS_FALSE=
15447 fi
15448
15449
15450 # Decide if only libdruntime should be built.
15451 case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15452 *:no)  only_libdruntime=no  ;;
15453 *:yes) only_libdruntime=yes ;;
15454 yes:*) only_libdruntime=yes ;;
15455 *:*)   only_libdruntime=no  ;;
15456 esac
15457  if test x$only_libdruntime = xyes; then
15458   ENABLE_LIBDRUNTIME_ONLY_TRUE=
15459   ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15460 else
15461   ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15462   ENABLE_LIBDRUNTIME_ONLY_FALSE=
15463 fi
15464
15465
15466 # Enable expensive internal checks
15467 # Check whether --enable-libphobos-checking was given.
15468 if test "${enable_libphobos_checking+set}" = set; then :
15469   enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15470 else
15471   ac_checking_flags=release
15472 fi
15473
15474 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15475 for check in release $ac_checking_flags
15476 do
15477         case $check in
15478         # These set all the flags to specific states
15479         yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15480         no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15481         # These enable particular checks
15482         assert) ASSERT_FLAG="-fassert" ;;
15483         # Accept
15484         *) ;;
15485         esac
15486 done
15487 IFS="$ac_save_IFS"
15488 CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15489
15490
15491 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15492 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15493     DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15494 else
15495     DRTSTUFF_SPEC=/dev/null
15496 fi
15497
15498
15499 # Add dependencies for libgphobos.spec file
15500 SPEC_PHOBOS_DEPS="$LIBS"
15501
15502
15503 # Libdruntime / phobos soname version
15504 libtool_VERSION=1:0:0
15505
15506
15507 # Set default flags (after DRUNTIME_WERROR!)
15508 if test -z "$GDCFLAGS"; then
15509     GDCFLAGS="-g -O2"
15510 fi
15511
15512
15513 WARN_DFLAGS="-Wall $WERROR_FLAG"
15514
15515
15516 # Sanity check for the cross-compilation case:
15517 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15518 if test "x$ac_cv_header_stdio_h" = xyes; then :
15519   :
15520 else
15521   as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15522 fi
15523
15524
15525
15526 ac_config_files="$ac_config_files Makefile"
15527
15528
15529 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15530
15531 ac_config_files="$ac_config_files src/libgphobos.spec"
15532
15533 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15534
15535
15536 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15537 # that multilib installs will end up installed in the correct place.
15538 # The testsuite needs it for multilib-aware ABI baseline files.
15539 # To work around this not being passed down from config-ml.in ->
15540 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15541 # append it here.  Only modify Makefiles that have just been created.
15542 #
15543 # Also, get rid of this simulated-VPATH thing that automake does.
15544 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15545
15546
15547 cat >confcache <<\_ACEOF
15548 # This file is a shell script that caches the results of configure
15549 # tests run on this system so they can be shared between configure
15550 # scripts and configure runs, see configure's option --config-cache.
15551 # It is not useful on other systems.  If it contains results you don't
15552 # want to keep, you may remove or edit it.
15553 #
15554 # config.status only pays attention to the cache file if you give it
15555 # the --recheck option to rerun configure.
15556 #
15557 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15558 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15559 # following values.
15560
15561 _ACEOF
15562
15563 # The following way of writing the cache mishandles newlines in values,
15564 # but we know of no workaround that is simple, portable, and efficient.
15565 # So, we kill variables containing newlines.
15566 # Ultrix sh set writes to stderr and can't be redirected directly,
15567 # and sets the high bit in the cache file unless we assign to the vars.
15568 (
15569   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15570     eval ac_val=\$$ac_var
15571     case $ac_val in #(
15572     *${as_nl}*)
15573       case $ac_var in #(
15574       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15576       esac
15577       case $ac_var in #(
15578       _ | IFS | as_nl) ;; #(
15579       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15580       *) { eval $ac_var=; unset $ac_var;} ;;
15581       esac ;;
15582     esac
15583   done
15584
15585   (set) 2>&1 |
15586     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15587     *${as_nl}ac_space=\ *)
15588       # `set' does not quote correctly, so add quotes: double-quote
15589       # substitution turns \\\\ into \\, and sed turns \\ into \.
15590       sed -n \
15591         "s/'/'\\\\''/g;
15592           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15593       ;; #(
15594     *)
15595       # `set' quotes correctly as required by POSIX, so do not add quotes.
15596       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15597       ;;
15598     esac |
15599     sort
15600 ) |
15601   sed '
15602      /^ac_cv_env_/b end
15603      t clear
15604      :clear
15605      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15606      t end
15607      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15608      :end' >>confcache
15609 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15610   if test -w "$cache_file"; then
15611     if test "x$cache_file" != "x/dev/null"; then
15612       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15613 $as_echo "$as_me: updating cache $cache_file" >&6;}
15614       if test ! -f "$cache_file" || test -h "$cache_file"; then
15615         cat confcache >"$cache_file"
15616       else
15617         case $cache_file in #(
15618         */* | ?:*)
15619           mv -f confcache "$cache_file"$$ &&
15620           mv -f "$cache_file"$$ "$cache_file" ;; #(
15621         *)
15622           mv -f confcache "$cache_file" ;;
15623         esac
15624       fi
15625     fi
15626   else
15627     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15628 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15629   fi
15630 fi
15631 rm -f confcache
15632
15633 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15634 # Let make expand exec_prefix.
15635 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15636
15637 DEFS=-DHAVE_CONFIG_H
15638
15639 ac_libobjs=
15640 ac_ltlibobjs=
15641 U=
15642 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15643   # 1. Remove the extension, and $U if already installed.
15644   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15645   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15646   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15647   #    will be set to the directory where LIBOBJS objects are built.
15648   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15649   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15650 done
15651 LIBOBJS=$ac_libobjs
15652
15653 LTLIBOBJS=$ac_ltlibobjs
15654
15655
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15657 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15658    if test -n "$am_sleep_pid"; then
15659      # Hide warnings about reused PIDs.
15660      wait $am_sleep_pid 2>/dev/null
15661    fi
15662    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15663 $as_echo "done" >&6; }
15664  if test -n "$EXEEXT"; then
15665   am__EXEEXT_TRUE=
15666   am__EXEEXT_FALSE='#'
15667 else
15668   am__EXEEXT_TRUE='#'
15669   am__EXEEXT_FALSE=
15670 fi
15671
15672 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15673   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15675 fi
15676 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15677   as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15679 fi
15680 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15681   as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15683 fi
15684 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15685   as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15687 fi
15688 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15689   as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15691 fi
15692 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15693   as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15695 fi
15696 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15697   as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15699 fi
15700 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15701   as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15703 fi
15704 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15705   as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15707 fi
15708 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15709   as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15711 fi
15712 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15713   as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15715 fi
15716 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15717   as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15719 fi
15720 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15721   as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15723 fi
15724 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15725   as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15727 fi
15728 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15729   as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15731 fi
15732 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15733   as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15735 fi
15736 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15737   as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15739 fi
15740 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15741   as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15743 fi
15744 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15745   as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15747 fi
15748 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15749   as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15751 fi
15752 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15753   as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15755 fi
15756 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15757   as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15759 fi
15760 if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15761   as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15763 fi
15764
15765 : "${CONFIG_STATUS=./config.status}"
15766 ac_write_fail=0
15767 ac_clean_files_save=$ac_clean_files
15768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15770 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15771 as_write_fail=0
15772 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15773 #! $SHELL
15774 # Generated by $as_me.
15775 # Run this file to recreate the current configuration.
15776 # Compiler output produced by configure, useful for debugging
15777 # configure, is in config.log if it exists.
15778
15779 debug=false
15780 ac_cs_recheck=false
15781 ac_cs_silent=false
15782
15783 SHELL=\${CONFIG_SHELL-$SHELL}
15784 export SHELL
15785 _ASEOF
15786 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15787 ## -------------------- ##
15788 ## M4sh Initialization. ##
15789 ## -------------------- ##
15790
15791 # Be more Bourne compatible
15792 DUALCASE=1; export DUALCASE # for MKS sh
15793 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15794   emulate sh
15795   NULLCMD=:
15796   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15797   # is contrary to our usage.  Disable this feature.
15798   alias -g '${1+"$@"}'='"$@"'
15799   setopt NO_GLOB_SUBST
15800 else
15801   case `(set -o) 2>/dev/null` in #(
15802   *posix*) :
15803     set -o posix ;; #(
15804   *) :
15805      ;;
15806 esac
15807 fi
15808
15809
15810 as_nl='
15811 '
15812 export as_nl
15813 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15814 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15817 # Prefer a ksh shell builtin over an external printf program on Solaris,
15818 # but without wasting forks for bash or zsh.
15819 if test -z "$BASH_VERSION$ZSH_VERSION" \
15820     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15821   as_echo='print -r --'
15822   as_echo_n='print -rn --'
15823 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15824   as_echo='printf %s\n'
15825   as_echo_n='printf %s'
15826 else
15827   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15828     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15829     as_echo_n='/usr/ucb/echo -n'
15830   else
15831     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15832     as_echo_n_body='eval
15833       arg=$1;
15834       case $arg in #(
15835       *"$as_nl"*)
15836         expr "X$arg" : "X\\(.*\\)$as_nl";
15837         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15838       esac;
15839       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15840     '
15841     export as_echo_n_body
15842     as_echo_n='sh -c $as_echo_n_body as_echo'
15843   fi
15844   export as_echo_body
15845   as_echo='sh -c $as_echo_body as_echo'
15846 fi
15847
15848 # The user is always right.
15849 if test "${PATH_SEPARATOR+set}" != set; then
15850   PATH_SEPARATOR=:
15851   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15852     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15853       PATH_SEPARATOR=';'
15854   }
15855 fi
15856
15857
15858 # IFS
15859 # We need space, tab and new line, in precisely that order.  Quoting is
15860 # there to prevent editors from complaining about space-tab.
15861 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15862 # splitting by setting IFS to empty value.)
15863 IFS=" ""        $as_nl"
15864
15865 # Find who we are.  Look in the path if we contain no directory separator.
15866 as_myself=
15867 case $0 in #((
15868   *[\\/]* ) as_myself=$0 ;;
15869   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15870 for as_dir in $PATH
15871 do
15872   IFS=$as_save_IFS
15873   test -z "$as_dir" && as_dir=.
15874     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15875   done
15876 IFS=$as_save_IFS
15877
15878      ;;
15879 esac
15880 # We did not find ourselves, most probably we were run as `sh COMMAND'
15881 # in which case we are not to be found in the path.
15882 if test "x$as_myself" = x; then
15883   as_myself=$0
15884 fi
15885 if test ! -f "$as_myself"; then
15886   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15887   exit 1
15888 fi
15889
15890 # Unset variables that we do not need and which cause bugs (e.g. in
15891 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15892 # suppresses any "Segmentation fault" message there.  '((' could
15893 # trigger a bug in pdksh 5.2.14.
15894 for as_var in BASH_ENV ENV MAIL MAILPATH
15895 do eval test x\${$as_var+set} = xset \
15896   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15897 done
15898 PS1='$ '
15899 PS2='> '
15900 PS4='+ '
15901
15902 # NLS nuisances.
15903 LC_ALL=C
15904 export LC_ALL
15905 LANGUAGE=C
15906 export LANGUAGE
15907
15908 # CDPATH.
15909 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15910
15911
15912 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15913 # ----------------------------------------
15914 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15915 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15916 # script with STATUS, using 1 if that was 0.
15917 as_fn_error ()
15918 {
15919   as_status=$1; test $as_status -eq 0 && as_status=1
15920   if test "$4"; then
15921     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15922     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15923   fi
15924   $as_echo "$as_me: error: $2" >&2
15925   as_fn_exit $as_status
15926 } # as_fn_error
15927
15928
15929 # as_fn_set_status STATUS
15930 # -----------------------
15931 # Set $? to STATUS, without forking.
15932 as_fn_set_status ()
15933 {
15934   return $1
15935 } # as_fn_set_status
15936
15937 # as_fn_exit STATUS
15938 # -----------------
15939 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15940 as_fn_exit ()
15941 {
15942   set +e
15943   as_fn_set_status $1
15944   exit $1
15945 } # as_fn_exit
15946
15947 # as_fn_unset VAR
15948 # ---------------
15949 # Portably unset VAR.
15950 as_fn_unset ()
15951 {
15952   { eval $1=; unset $1;}
15953 }
15954 as_unset=as_fn_unset
15955 # as_fn_append VAR VALUE
15956 # ----------------------
15957 # Append the text in VALUE to the end of the definition contained in VAR. Take
15958 # advantage of any shell optimizations that allow amortized linear growth over
15959 # repeated appends, instead of the typical quadratic growth present in naive
15960 # implementations.
15961 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15962   eval 'as_fn_append ()
15963   {
15964     eval $1+=\$2
15965   }'
15966 else
15967   as_fn_append ()
15968   {
15969     eval $1=\$$1\$2
15970   }
15971 fi # as_fn_append
15972
15973 # as_fn_arith ARG...
15974 # ------------------
15975 # Perform arithmetic evaluation on the ARGs, and store the result in the
15976 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15977 # must be portable across $(()) and expr.
15978 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15979   eval 'as_fn_arith ()
15980   {
15981     as_val=$(( $* ))
15982   }'
15983 else
15984   as_fn_arith ()
15985   {
15986     as_val=`expr "$@" || test $? -eq 1`
15987   }
15988 fi # as_fn_arith
15989
15990
15991 if expr a : '\(a\)' >/dev/null 2>&1 &&
15992    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15993   as_expr=expr
15994 else
15995   as_expr=false
15996 fi
15997
15998 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15999   as_basename=basename
16000 else
16001   as_basename=false
16002 fi
16003
16004 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16005   as_dirname=dirname
16006 else
16007   as_dirname=false
16008 fi
16009
16010 as_me=`$as_basename -- "$0" ||
16011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16012          X"$0" : 'X\(//\)$' \| \
16013          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16014 $as_echo X/"$0" |
16015     sed '/^.*\/\([^/][^/]*\)\/*$/{
16016             s//\1/
16017             q
16018           }
16019           /^X\/\(\/\/\)$/{
16020             s//\1/
16021             q
16022           }
16023           /^X\/\(\/\).*/{
16024             s//\1/
16025             q
16026           }
16027           s/.*/./; q'`
16028
16029 # Avoid depending upon Character Ranges.
16030 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16031 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16032 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16033 as_cr_digits='0123456789'
16034 as_cr_alnum=$as_cr_Letters$as_cr_digits
16035
16036 ECHO_C= ECHO_N= ECHO_T=
16037 case `echo -n x` in #(((((
16038 -n*)
16039   case `echo 'xy\c'` in
16040   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16041   xy)  ECHO_C='\c';;
16042   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16043        ECHO_T=' ';;
16044   esac;;
16045 *)
16046   ECHO_N='-n';;
16047 esac
16048
16049 rm -f conf$$ conf$$.exe conf$$.file
16050 if test -d conf$$.dir; then
16051   rm -f conf$$.dir/conf$$.file
16052 else
16053   rm -f conf$$.dir
16054   mkdir conf$$.dir 2>/dev/null
16055 fi
16056 if (echo >conf$$.file) 2>/dev/null; then
16057   if ln -s conf$$.file conf$$ 2>/dev/null; then
16058     as_ln_s='ln -s'
16059     # ... but there are two gotchas:
16060     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16061     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16062     # In both cases, we have to default to `cp -pR'.
16063     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16064       as_ln_s='cp -pR'
16065   elif ln conf$$.file conf$$ 2>/dev/null; then
16066     as_ln_s=ln
16067   else
16068     as_ln_s='cp -pR'
16069   fi
16070 else
16071   as_ln_s='cp -pR'
16072 fi
16073 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16074 rmdir conf$$.dir 2>/dev/null
16075
16076
16077 # as_fn_mkdir_p
16078 # -------------
16079 # Create "$as_dir" as a directory, including parents if necessary.
16080 as_fn_mkdir_p ()
16081 {
16082
16083   case $as_dir in #(
16084   -*) as_dir=./$as_dir;;
16085   esac
16086   test -d "$as_dir" || eval $as_mkdir_p || {
16087     as_dirs=
16088     while :; do
16089       case $as_dir in #(
16090       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16091       *) as_qdir=$as_dir;;
16092       esac
16093       as_dirs="'$as_qdir' $as_dirs"
16094       as_dir=`$as_dirname -- "$as_dir" ||
16095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16096          X"$as_dir" : 'X\(//\)[^/]' \| \
16097          X"$as_dir" : 'X\(//\)$' \| \
16098          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16099 $as_echo X"$as_dir" |
16100     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16101             s//\1/
16102             q
16103           }
16104           /^X\(\/\/\)[^/].*/{
16105             s//\1/
16106             q
16107           }
16108           /^X\(\/\/\)$/{
16109             s//\1/
16110             q
16111           }
16112           /^X\(\/\).*/{
16113             s//\1/
16114             q
16115           }
16116           s/.*/./; q'`
16117       test -d "$as_dir" && break
16118     done
16119     test -z "$as_dirs" || eval "mkdir $as_dirs"
16120   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16121
16122
16123 } # as_fn_mkdir_p
16124 if mkdir -p . 2>/dev/null; then
16125   as_mkdir_p='mkdir -p "$as_dir"'
16126 else
16127   test -d ./-p && rmdir ./-p
16128   as_mkdir_p=false
16129 fi
16130
16131
16132 # as_fn_executable_p FILE
16133 # -----------------------
16134 # Test if FILE is an executable regular file.
16135 as_fn_executable_p ()
16136 {
16137   test -f "$1" && test -x "$1"
16138 } # as_fn_executable_p
16139 as_test_x='test -x'
16140 as_executable_p=as_fn_executable_p
16141
16142 # Sed expression to map a string onto a valid CPP name.
16143 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16144
16145 # Sed expression to map a string onto a valid variable name.
16146 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16147
16148
16149 exec 6>&1
16150 ## ----------------------------------- ##
16151 ## Main body of $CONFIG_STATUS script. ##
16152 ## ----------------------------------- ##
16153 _ASEOF
16154 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16155
16156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16157 # Save the log message, to keep $0 and so on meaningful, and to
16158 # report actual input values of CONFIG_FILES etc. instead of their
16159 # values after options handling.
16160 ac_log="
16161 This file was extended by package-unused $as_me version-unused, which was
16162 generated by GNU Autoconf 2.69.  Invocation command line was
16163
16164   CONFIG_FILES    = $CONFIG_FILES
16165   CONFIG_HEADERS  = $CONFIG_HEADERS
16166   CONFIG_LINKS    = $CONFIG_LINKS
16167   CONFIG_COMMANDS = $CONFIG_COMMANDS
16168   $ $0 $@
16169
16170 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16171 "
16172
16173 _ACEOF
16174
16175 case $ac_config_files in *"
16176 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16177 esac
16178
16179 case $ac_config_headers in *"
16180 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16181 esac
16182
16183
16184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16185 # Files that config.status was made for.
16186 config_files="$ac_config_files"
16187 config_headers="$ac_config_headers"
16188 config_commands="$ac_config_commands"
16189
16190 _ACEOF
16191
16192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16193 ac_cs_usage="\
16194 \`$as_me' instantiates files and other configuration actions
16195 from templates according to the current configuration.  Unless the files
16196 and actions are specified as TAGs, all are instantiated by default.
16197
16198 Usage: $0 [OPTION]... [TAG]...
16199
16200   -h, --help       print this help, then exit
16201   -V, --version    print version number and configuration settings, then exit
16202       --config     print configuration, then exit
16203   -q, --quiet, --silent
16204                    do not print progress messages
16205   -d, --debug      don't remove temporary files
16206       --recheck    update $as_me by reconfiguring in the same conditions
16207       --file=FILE[:TEMPLATE]
16208                    instantiate the configuration file FILE
16209       --header=FILE[:TEMPLATE]
16210                    instantiate the configuration header FILE
16211
16212 Configuration files:
16213 $config_files
16214
16215 Configuration headers:
16216 $config_headers
16217
16218 Configuration commands:
16219 $config_commands
16220
16221 Report bugs to the package provider."
16222
16223 _ACEOF
16224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16225 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16226 ac_cs_version="\\
16227 package-unused config.status version-unused
16228 configured by $0, generated by GNU Autoconf 2.69,
16229   with options \\"\$ac_cs_config\\"
16230
16231 Copyright (C) 2012 Free Software Foundation, Inc.
16232 This config.status script is free software; the Free Software Foundation
16233 gives unlimited permission to copy, distribute and modify it."
16234
16235 ac_pwd='$ac_pwd'
16236 srcdir='$srcdir'
16237 INSTALL='$INSTALL'
16238 MKDIR_P='$MKDIR_P'
16239 AWK='$AWK'
16240 test -n "\$AWK" || AWK=awk
16241 _ACEOF
16242
16243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16244 # The default lists apply if the user does not specify any file.
16245 ac_need_defaults=:
16246 while test $# != 0
16247 do
16248   case $1 in
16249   --*=?*)
16250     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16251     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16252     ac_shift=:
16253     ;;
16254   --*=)
16255     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16256     ac_optarg=
16257     ac_shift=:
16258     ;;
16259   *)
16260     ac_option=$1
16261     ac_optarg=$2
16262     ac_shift=shift
16263     ;;
16264   esac
16265
16266   case $ac_option in
16267   # Handling of the options.
16268   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16269     ac_cs_recheck=: ;;
16270   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16271     $as_echo "$ac_cs_version"; exit ;;
16272   --config | --confi | --conf | --con | --co | --c )
16273     $as_echo "$ac_cs_config"; exit ;;
16274   --debug | --debu | --deb | --de | --d | -d )
16275     debug=: ;;
16276   --file | --fil | --fi | --f )
16277     $ac_shift
16278     case $ac_optarg in
16279     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16280     '') as_fn_error $? "missing file argument" ;;
16281     esac
16282     as_fn_append CONFIG_FILES " '$ac_optarg'"
16283     ac_need_defaults=false;;
16284   --header | --heade | --head | --hea )
16285     $ac_shift
16286     case $ac_optarg in
16287     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16288     esac
16289     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16290     ac_need_defaults=false;;
16291   --he | --h)
16292     # Conflict between --help and --header
16293     as_fn_error $? "ambiguous option: \`$1'
16294 Try \`$0 --help' for more information.";;
16295   --help | --hel | -h )
16296     $as_echo "$ac_cs_usage"; exit ;;
16297   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16298   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16299     ac_cs_silent=: ;;
16300
16301   # This is an error.
16302   -*) as_fn_error $? "unrecognized option: \`$1'
16303 Try \`$0 --help' for more information." ;;
16304
16305   *) as_fn_append ac_config_targets " $1"
16306      ac_need_defaults=false ;;
16307
16308   esac
16309   shift
16310 done
16311
16312 ac_configure_extra_args=
16313
16314 if $ac_cs_silent; then
16315   exec 6>/dev/null
16316   ac_configure_extra_args="$ac_configure_extra_args --silent"
16317 fi
16318
16319 _ACEOF
16320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16321 if \$ac_cs_recheck; then
16322   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16323   shift
16324   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16325   CONFIG_SHELL='$SHELL'
16326   export CONFIG_SHELL
16327   exec "\$@"
16328 fi
16329
16330 _ACEOF
16331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16332 exec 5>>config.log
16333 {
16334   echo
16335   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16336 ## Running $as_me. ##
16337 _ASBOX
16338   $as_echo "$ac_log"
16339 } >&5
16340
16341 _ACEOF
16342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16343 #
16344 # INIT-COMMANDS
16345 #
16346
16347 srcdir="$srcdir"
16348 host="$host"
16349 target="$target"
16350 with_multisubdir="$with_multisubdir"
16351 with_multisrctop="$with_multisrctop"
16352 with_target_subdir="$with_target_subdir"
16353 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16354 multi_basedir="$multi_basedir"
16355 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16356 CC="$CC"
16357 CXX="$CXX"
16358 GFORTRAN="$GFORTRAN"
16359 GDC="$GDC"
16360
16361
16362 # The HP-UX ksh and POSIX shell print the target directory to stdout
16363 # if CDPATH is set.
16364 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16365
16366 sed_quote_subst='$sed_quote_subst'
16367 double_quote_subst='$double_quote_subst'
16368 delay_variable_subst='$delay_variable_subst'
16369 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16370 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16371 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16372 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16373 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16374 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16375 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16376 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16377 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16378 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16379 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16380 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16381 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16382 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16383 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16384 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16385 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16386 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16387 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16388 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16389 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16390 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16391 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16392 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16393 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16394 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16395 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16396 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16397 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16398 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16399 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16400 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16401 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16402 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16403 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16404 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16405 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16406 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16407 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16408 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16409 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16410 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16411 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16412 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16413 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16414 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16415 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16416 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16417 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"`'
16418 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16419 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16420 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16421 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16422 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16423 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16424 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16425 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16426 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16427 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16428 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16429 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16430 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16431 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16432 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16433 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16434 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16435 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16436 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16437 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16438 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16439 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16440 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16441 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16442 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16443 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16444 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16445 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16446 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16447 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16448 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16449 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16450 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16451 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16452 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16453 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16454 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16455 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16456 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16457 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16458 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16459 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16460 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16461 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16462 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16463 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16464 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16465 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16466 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16467 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16468 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16469 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16470 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16471 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16472 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16473 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16474 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16475 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16476 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16477 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16478 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16479 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16480 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16481 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16482 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16483 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16484 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16485 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16486 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16487 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16488 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16489 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16490 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16491 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16492 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16493 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16494 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16495 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16496 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16497 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16498 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16499 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16500 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16501 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16502 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16503 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16504 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16505 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16506 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16507 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16508 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16509 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16510 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16511 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16512 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16513 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16514 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16515 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16516 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16517 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16518 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16519 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16520 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16521 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16522 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16523 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16524 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16525 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16526 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16527 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16528 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16529 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16530 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16531 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16532
16533 LTCC='$LTCC'
16534 LTCFLAGS='$LTCFLAGS'
16535 compiler='$compiler_DEFAULT'
16536
16537 # A function that is used when there is no print builtin or printf.
16538 func_fallback_echo ()
16539 {
16540   eval 'cat <<_LTECHO_EOF
16541 \$1
16542 _LTECHO_EOF'
16543 }
16544
16545 # Quote evaled strings.
16546 for var in SHELL \
16547 ECHO \
16548 SED \
16549 GREP \
16550 EGREP \
16551 FGREP \
16552 LD \
16553 NM \
16554 LN_S \
16555 lt_SP2NL \
16556 lt_NL2SP \
16557 reload_flag \
16558 OBJDUMP \
16559 deplibs_check_method \
16560 file_magic_cmd \
16561 AR \
16562 AR_FLAGS \
16563 STRIP \
16564 RANLIB \
16565 CC \
16566 CFLAGS \
16567 compiler \
16568 lt_cv_sys_global_symbol_pipe \
16569 lt_cv_sys_global_symbol_to_cdecl \
16570 lt_cv_sys_global_symbol_to_c_name_address \
16571 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16572 lt_prog_compiler_no_builtin_flag \
16573 lt_prog_compiler_wl \
16574 lt_prog_compiler_pic \
16575 lt_prog_compiler_static \
16576 lt_cv_prog_compiler_c_o \
16577 need_locks \
16578 DSYMUTIL \
16579 NMEDIT \
16580 LIPO \
16581 OTOOL \
16582 OTOOL64 \
16583 shrext_cmds \
16584 export_dynamic_flag_spec \
16585 whole_archive_flag_spec \
16586 compiler_needs_object \
16587 with_gnu_ld \
16588 allow_undefined_flag \
16589 no_undefined_flag \
16590 hardcode_libdir_flag_spec \
16591 hardcode_libdir_flag_spec_ld \
16592 hardcode_libdir_separator \
16593 fix_srcfile_path \
16594 exclude_expsyms \
16595 include_expsyms \
16596 file_list_spec \
16597 variables_saved_for_relink \
16598 libname_spec \
16599 library_names_spec \
16600 soname_spec \
16601 install_override_mode \
16602 finish_eval \
16603 old_striplib \
16604 striplib \
16605 LD_D \
16606 reload_flag_D \
16607 compiler_D \
16608 lt_prog_compiler_no_builtin_flag_D \
16609 lt_prog_compiler_wl_D \
16610 lt_prog_compiler_pic_D \
16611 lt_prog_compiler_static_D \
16612 lt_cv_prog_compiler_c_o_D \
16613 export_dynamic_flag_spec_D \
16614 whole_archive_flag_spec_D \
16615 compiler_needs_object_D \
16616 with_gnu_ld_D \
16617 allow_undefined_flag_D \
16618 no_undefined_flag_D \
16619 hardcode_libdir_flag_spec_D \
16620 hardcode_libdir_flag_spec_ld_D \
16621 hardcode_libdir_separator_D \
16622 fix_srcfile_path_D \
16623 exclude_expsyms_D \
16624 include_expsyms_D \
16625 file_list_spec_D; do
16626     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16627     *[\\\\\\\`\\"\\\$]*)
16628       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16629       ;;
16630     *)
16631       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16632       ;;
16633     esac
16634 done
16635
16636 # Double-quote double-evaled strings.
16637 for var in reload_cmds \
16638 old_postinstall_cmds \
16639 old_postuninstall_cmds \
16640 old_archive_cmds \
16641 extract_expsyms_cmds \
16642 old_archive_from_new_cmds \
16643 old_archive_from_expsyms_cmds \
16644 archive_cmds \
16645 archive_expsym_cmds \
16646 module_cmds \
16647 module_expsym_cmds \
16648 export_symbols_cmds \
16649 prelink_cmds \
16650 postinstall_cmds \
16651 postuninstall_cmds \
16652 finish_cmds \
16653 sys_lib_search_path_spec \
16654 sys_lib_dlsearch_path_spec \
16655 reload_cmds_D \
16656 old_archive_cmds_D \
16657 old_archive_from_new_cmds_D \
16658 old_archive_from_expsyms_cmds_D \
16659 archive_cmds_D \
16660 archive_expsym_cmds_D \
16661 module_cmds_D \
16662 module_expsym_cmds_D \
16663 export_symbols_cmds_D \
16664 prelink_cmds_D; do
16665     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16666     *[\\\\\\\`\\"\\\$]*)
16667       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16668       ;;
16669     *)
16670       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16671       ;;
16672     esac
16673 done
16674
16675 ac_aux_dir='$ac_aux_dir'
16676 xsi_shell='$xsi_shell'
16677 lt_shell_append='$lt_shell_append'
16678
16679 # See if we are running on zsh, and set the options which allow our
16680 # commands through without removal of \ escapes INIT.
16681 if test -n "\${ZSH_VERSION+set}" ; then
16682    setopt NO_GLOB_SUBST
16683 fi
16684
16685
16686     PACKAGE='$PACKAGE'
16687     VERSION='$VERSION'
16688     TIMESTAMP='$TIMESTAMP'
16689     RM='$RM'
16690     ofile='$ofile'
16691
16692
16693
16694
16695
16696
16697 _ACEOF
16698
16699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16700
16701 # Handling of arguments.
16702 for ac_config_target in $ac_config_targets
16703 do
16704   case $ac_config_target in
16705     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16706     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16707     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16708     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16709     "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16710     "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16711     "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16712     "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16713     "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16714     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16715     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16716
16717   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16718   esac
16719 done
16720
16721
16722 # If the user did not use the arguments to specify the items to instantiate,
16723 # then the envvar interface is used.  Set only those that are not.
16724 # We use the long form for the default assignment because of an extremely
16725 # bizarre bug on SunOS 4.1.3.
16726 if $ac_need_defaults; then
16727   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16728   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16729   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16730 fi
16731
16732 # Have a temporary directory for convenience.  Make it in the build tree
16733 # simply because there is no reason against having it here, and in addition,
16734 # creating and moving files from /tmp can sometimes cause problems.
16735 # Hook for its removal unless debugging.
16736 # Note that there is a small window in which the directory will not be cleaned:
16737 # after its creation but before its name has been assigned to `$tmp'.
16738 $debug ||
16739 {
16740   tmp= ac_tmp=
16741   trap 'exit_status=$?
16742   : "${ac_tmp:=$tmp}"
16743   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16744 ' 0
16745   trap 'as_fn_exit 1' 1 2 13 15
16746 }
16747 # Create a (secure) tmp directory for tmp files.
16748
16749 {
16750   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16751   test -d "$tmp"
16752 }  ||
16753 {
16754   tmp=./conf$$-$RANDOM
16755   (umask 077 && mkdir "$tmp")
16756 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16757 ac_tmp=$tmp
16758
16759 # Set up the scripts for CONFIG_FILES section.
16760 # No need to generate them if there are no CONFIG_FILES.
16761 # This happens for instance with `./config.status config.h'.
16762 if test -n "$CONFIG_FILES"; then
16763
16764 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16765   ac_cs_awk_getline=:
16766   ac_cs_awk_pipe_init=
16767   ac_cs_awk_read_file='
16768       while ((getline aline < (F[key])) > 0)
16769         print(aline)
16770       close(F[key])'
16771   ac_cs_awk_pipe_fini=
16772 else
16773   ac_cs_awk_getline=false
16774   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16775   ac_cs_awk_read_file='
16776       print "|#_!!_#|"
16777       print "cat " F[key] " &&"
16778       '$ac_cs_awk_pipe_init
16779   # The final `:' finishes the AND list.
16780   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16781 fi
16782 ac_cr=`echo X | tr X '\015'`
16783 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16784 # But we know of no other shell where ac_cr would be empty at this
16785 # point, so we can use a bashism as a fallback.
16786 if test "x$ac_cr" = x; then
16787   eval ac_cr=\$\'\\r\'
16788 fi
16789 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16790 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16791   ac_cs_awk_cr='\\r'
16792 else
16793   ac_cs_awk_cr=$ac_cr
16794 fi
16795
16796 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16797 _ACEOF
16798
16799 # Create commands to substitute file output variables.
16800 {
16801   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16802   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16803   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16804   echo "_ACAWK" &&
16805   echo "_ACEOF"
16806 } >conf$$files.sh &&
16807 . ./conf$$files.sh ||
16808   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16809 rm -f conf$$files.sh
16810
16811 {
16812   echo "cat >conf$$subs.awk <<_ACEOF" &&
16813   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16814   echo "_ACEOF"
16815 } >conf$$subs.sh ||
16816   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16817 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16818 ac_delim='%!_!# '
16819 for ac_last_try in false false false false false :; do
16820   . ./conf$$subs.sh ||
16821     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16822
16823   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16824   if test $ac_delim_n = $ac_delim_num; then
16825     break
16826   elif $ac_last_try; then
16827     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16828   else
16829     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16830   fi
16831 done
16832 rm -f conf$$subs.sh
16833
16834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16835 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16836 _ACEOF
16837 sed -n '
16838 h
16839 s/^/S["/; s/!.*/"]=/
16840 p
16841 g
16842 s/^[^!]*!//
16843 :repl
16844 t repl
16845 s/'"$ac_delim"'$//
16846 t delim
16847 :nl
16848 h
16849 s/\(.\{148\}\)..*/\1/
16850 t more1
16851 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16852 p
16853 n
16854 b repl
16855 :more1
16856 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16857 p
16858 g
16859 s/.\{148\}//
16860 t nl
16861 :delim
16862 h
16863 s/\(.\{148\}\)..*/\1/
16864 t more2
16865 s/["\\]/\\&/g; s/^/"/; s/$/"/
16866 p
16867 b
16868 :more2
16869 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16870 p
16871 g
16872 s/.\{148\}//
16873 t delim
16874 ' <conf$$subs.awk | sed '
16875 /^[^""]/{
16876   N
16877   s/\n//
16878 }
16879 ' >>$CONFIG_STATUS || ac_write_fail=1
16880 rm -f conf$$subs.awk
16881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16882 _ACAWK
16883 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16884   for (key in S) S_is_set[key] = 1
16885   FS = "\a"
16886   \$ac_cs_awk_pipe_init
16887 }
16888 {
16889   line = $ 0
16890   nfields = split(line, field, "@")
16891   substed = 0
16892   len = length(field[1])
16893   for (i = 2; i < nfields; i++) {
16894     key = field[i]
16895     keylen = length(key)
16896     if (S_is_set[key]) {
16897       value = S[key]
16898       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16899       len += length(value) + length(field[++i])
16900       substed = 1
16901     } else
16902       len += 1 + keylen
16903   }
16904   if (nfields == 3 && !substed) {
16905     key = field[2]
16906     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16907       \$ac_cs_awk_read_file
16908       next
16909     }
16910   }
16911   print line
16912 }
16913 \$ac_cs_awk_pipe_fini
16914 _ACAWK
16915 _ACEOF
16916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16917 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16918   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16919 else
16920   cat
16921 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16922   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16923 _ACEOF
16924
16925 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16926 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16927 # trailing colons and then remove the whole line if VPATH becomes empty
16928 # (actually we leave an empty line to preserve line numbers).
16929 if test "x$srcdir" = x.; then
16930   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16931 h
16932 s///
16933 s/^/:/
16934 s/[      ]*$/:/
16935 s/:\$(srcdir):/:/g
16936 s/:\${srcdir}:/:/g
16937 s/:@srcdir@:/:/g
16938 s/^:*//
16939 s/:*$//
16940 x
16941 s/\(=[   ]*\).*/\1/
16942 G
16943 s/\n//
16944 s/^[^=]*=[       ]*$//
16945 }'
16946 fi
16947
16948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16949 fi # test -n "$CONFIG_FILES"
16950
16951 # Set up the scripts for CONFIG_HEADERS section.
16952 # No need to generate them if there are no CONFIG_HEADERS.
16953 # This happens for instance with `./config.status Makefile'.
16954 if test -n "$CONFIG_HEADERS"; then
16955 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16956 BEGIN {
16957 _ACEOF
16958
16959 # Transform confdefs.h into an awk script `defines.awk', embedded as
16960 # here-document in config.status, that substitutes the proper values into
16961 # config.h.in to produce config.h.
16962
16963 # Create a delimiter string that does not exist in confdefs.h, to ease
16964 # handling of long lines.
16965 ac_delim='%!_!# '
16966 for ac_last_try in false false :; do
16967   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16968   if test -z "$ac_tt"; then
16969     break
16970   elif $ac_last_try; then
16971     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16972   else
16973     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16974   fi
16975 done
16976
16977 # For the awk script, D is an array of macro values keyed by name,
16978 # likewise P contains macro parameters if any.  Preserve backslash
16979 # newline sequences.
16980
16981 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16982 sed -n '
16983 s/.\{148\}/&'"$ac_delim"'/g
16984 t rset
16985 :rset
16986 s/^[     ]*#[    ]*define[       ][      ]*/ /
16987 t def
16988 d
16989 :def
16990 s/\\$//
16991 t bsnl
16992 s/["\\]/\\&/g
16993 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16994 D["\1"]=" \3"/p
16995 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16996 d
16997 :bsnl
16998 s/["\\]/\\&/g
16999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17000 D["\1"]=" \3\\\\\\n"\\/p
17001 t cont
17002 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17003 t cont
17004 d
17005 :cont
17006 n
17007 s/.\{148\}/&'"$ac_delim"'/g
17008 t clear
17009 :clear
17010 s/\\$//
17011 t bsnlc
17012 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17013 d
17014 :bsnlc
17015 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17016 b cont
17017 ' <confdefs.h | sed '
17018 s/'"$ac_delim"'/"\\\
17019 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17020
17021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17022   for (key in D) D_is_set[key] = 1
17023   FS = "\a"
17024 }
17025 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17026   line = \$ 0
17027   split(line, arg, " ")
17028   if (arg[1] == "#") {
17029     defundef = arg[2]
17030     mac1 = arg[3]
17031   } else {
17032     defundef = substr(arg[1], 2)
17033     mac1 = arg[2]
17034   }
17035   split(mac1, mac2, "(") #)
17036   macro = mac2[1]
17037   prefix = substr(line, 1, index(line, defundef) - 1)
17038   if (D_is_set[macro]) {
17039     # Preserve the white space surrounding the "#".
17040     print prefix "define", macro P[macro] D[macro]
17041     next
17042   } else {
17043     # Replace #undef with comments.  This is necessary, for example,
17044     # in the case of _POSIX_SOURCE, which is predefined and required
17045     # on some systems where configure will not decide to define it.
17046     if (defundef == "undef") {
17047       print "/*", prefix defundef, macro, "*/"
17048       next
17049     }
17050   }
17051 }
17052 { print }
17053 _ACAWK
17054 _ACEOF
17055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17056   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17057 fi # test -n "$CONFIG_HEADERS"
17058
17059
17060 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17061 shift
17062 for ac_tag
17063 do
17064   case $ac_tag in
17065   :[FHLC]) ac_mode=$ac_tag; continue;;
17066   esac
17067   case $ac_mode$ac_tag in
17068   :[FHL]*:*);;
17069   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17070   :[FH]-) ac_tag=-:-;;
17071   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17072   esac
17073   ac_save_IFS=$IFS
17074   IFS=:
17075   set x $ac_tag
17076   IFS=$ac_save_IFS
17077   shift
17078   ac_file=$1
17079   shift
17080
17081   case $ac_mode in
17082   :L) ac_source=$1;;
17083   :[FH])
17084     ac_file_inputs=
17085     for ac_f
17086     do
17087       case $ac_f in
17088       -) ac_f="$ac_tmp/stdin";;
17089       *) # Look for the file first in the build tree, then in the source tree
17090          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17091          # because $ac_f cannot contain `:'.
17092          test -f "$ac_f" ||
17093            case $ac_f in
17094            [\\/$]*) false;;
17095            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17096            esac ||
17097            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17098       esac
17099       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17100       as_fn_append ac_file_inputs " '$ac_f'"
17101     done
17102
17103     # Let's still pretend it is `configure' which instantiates (i.e., don't
17104     # use $as_me), people would be surprised to read:
17105     #    /* config.h.  Generated by config.status.  */
17106     configure_input='Generated from '`
17107           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17108         `' by configure.'
17109     if test x"$ac_file" != x-; then
17110       configure_input="$ac_file.  $configure_input"
17111       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17112 $as_echo "$as_me: creating $ac_file" >&6;}
17113     fi
17114     # Neutralize special characters interpreted by sed in replacement strings.
17115     case $configure_input in #(
17116     *\&* | *\|* | *\\* )
17117        ac_sed_conf_input=`$as_echo "$configure_input" |
17118        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17119     *) ac_sed_conf_input=$configure_input;;
17120     esac
17121
17122     case $ac_tag in
17123     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17124       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17125     esac
17126     ;;
17127   esac
17128
17129   ac_dir=`$as_dirname -- "$ac_file" ||
17130 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17131          X"$ac_file" : 'X\(//\)[^/]' \| \
17132          X"$ac_file" : 'X\(//\)$' \| \
17133          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17134 $as_echo X"$ac_file" |
17135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17136             s//\1/
17137             q
17138           }
17139           /^X\(\/\/\)[^/].*/{
17140             s//\1/
17141             q
17142           }
17143           /^X\(\/\/\)$/{
17144             s//\1/
17145             q
17146           }
17147           /^X\(\/\).*/{
17148             s//\1/
17149             q
17150           }
17151           s/.*/./; q'`
17152   as_dir="$ac_dir"; as_fn_mkdir_p
17153   ac_builddir=.
17154
17155 case "$ac_dir" in
17156 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17157 *)
17158   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17159   # A ".." for each directory in $ac_dir_suffix.
17160   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17161   case $ac_top_builddir_sub in
17162   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17163   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17164   esac ;;
17165 esac
17166 ac_abs_top_builddir=$ac_pwd
17167 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17168 # for backward compatibility:
17169 ac_top_builddir=$ac_top_build_prefix
17170
17171 case $srcdir in
17172   .)  # We are building in place.
17173     ac_srcdir=.
17174     ac_top_srcdir=$ac_top_builddir_sub
17175     ac_abs_top_srcdir=$ac_pwd ;;
17176   [\\/]* | ?:[\\/]* )  # Absolute name.
17177     ac_srcdir=$srcdir$ac_dir_suffix;
17178     ac_top_srcdir=$srcdir
17179     ac_abs_top_srcdir=$srcdir ;;
17180   *) # Relative name.
17181     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17182     ac_top_srcdir=$ac_top_build_prefix$srcdir
17183     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17184 esac
17185 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17186
17187
17188   case $ac_mode in
17189   :F)
17190   #
17191   # CONFIG_FILE
17192   #
17193
17194   case $INSTALL in
17195   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17196   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17197   esac
17198   ac_MKDIR_P=$MKDIR_P
17199   case $MKDIR_P in
17200   [\\/$]* | ?:[\\/]* ) ;;
17201   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17202   esac
17203 _ACEOF
17204
17205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17206 # If the template does not know about datarootdir, expand it.
17207 # FIXME: This hack should be removed a few years after 2.60.
17208 ac_datarootdir_hack=; ac_datarootdir_seen=
17209 ac_sed_dataroot='
17210 /datarootdir/ {
17211   p
17212   q
17213 }
17214 /@datadir@/p
17215 /@docdir@/p
17216 /@infodir@/p
17217 /@localedir@/p
17218 /@mandir@/p'
17219 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17220 *datarootdir*) ac_datarootdir_seen=yes;;
17221 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17222   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17223 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17224 _ACEOF
17225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17226   ac_datarootdir_hack='
17227   s&@datadir@&$datadir&g
17228   s&@docdir@&$docdir&g
17229   s&@infodir@&$infodir&g
17230   s&@localedir@&$localedir&g
17231   s&@mandir@&$mandir&g
17232   s&\\\${datarootdir}&$datarootdir&g' ;;
17233 esac
17234 _ACEOF
17235
17236 # Neutralize VPATH when `$srcdir' = `.'.
17237 # Shell code in configure.ac might set extrasub.
17238 # FIXME: do we really want to maintain this feature?
17239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17240 ac_sed_extra="$ac_vpsub
17241 $extrasub
17242 _ACEOF
17243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17244 :t
17245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17246 s|@configure_input@|$ac_sed_conf_input|;t t
17247 s&@top_builddir@&$ac_top_builddir_sub&;t t
17248 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17249 s&@srcdir@&$ac_srcdir&;t t
17250 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17251 s&@top_srcdir@&$ac_top_srcdir&;t t
17252 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17253 s&@builddir@&$ac_builddir&;t t
17254 s&@abs_builddir@&$ac_abs_builddir&;t t
17255 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17256 s&@INSTALL@&$ac_INSTALL&;t t
17257 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17258 $ac_datarootdir_hack
17259 "
17260 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17261 if $ac_cs_awk_getline; then
17262   $AWK -f "$ac_tmp/subs.awk"
17263 else
17264   $AWK -f "$ac_tmp/subs.awk" | $SHELL
17265 fi \
17266   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17267
17268 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17269   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17270   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17271       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17272   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17273 which seems to be undefined.  Please make sure it is defined" >&5
17274 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17275 which seems to be undefined.  Please make sure it is defined" >&2;}
17276
17277   rm -f "$ac_tmp/stdin"
17278   case $ac_file in
17279   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17280   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17281   esac \
17282   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17283  ;;
17284   :H)
17285   #
17286   # CONFIG_HEADER
17287   #
17288   if test x"$ac_file" != x-; then
17289     {
17290       $as_echo "/* $configure_input  */" \
17291       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17292     } >"$ac_tmp/config.h" \
17293       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17294     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17295       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17296 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17297     else
17298       rm -f "$ac_file"
17299       mv "$ac_tmp/config.h" "$ac_file" \
17300         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17301     fi
17302   else
17303     $as_echo "/* $configure_input  */" \
17304       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17305       || as_fn_error $? "could not create -" "$LINENO" 5
17306   fi
17307 # Compute "$ac_file"'s index in $config_headers.
17308 _am_arg="$ac_file"
17309 _am_stamp_count=1
17310 for _am_header in $config_headers :; do
17311   case $_am_header in
17312     $_am_arg | $_am_arg:* )
17313       break ;;
17314     * )
17315       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17316   esac
17317 done
17318 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17319 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17320          X"$_am_arg" : 'X\(//\)[^/]' \| \
17321          X"$_am_arg" : 'X\(//\)$' \| \
17322          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17323 $as_echo X"$_am_arg" |
17324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17325             s//\1/
17326             q
17327           }
17328           /^X\(\/\/\)[^/].*/{
17329             s//\1/
17330             q
17331           }
17332           /^X\(\/\/\)$/{
17333             s//\1/
17334             q
17335           }
17336           /^X\(\/\).*/{
17337             s//\1/
17338             q
17339           }
17340           s/.*/./; q'`/stamp-h$_am_stamp_count
17341  ;;
17342
17343   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17344 $as_echo "$as_me: executing $ac_file commands" >&6;}
17345  ;;
17346   esac
17347
17348
17349   case $ac_file$ac_mode in
17350     "default-1":C)
17351 # Only add multilib support code if we just rebuilt the top-level
17352 # Makefile.
17353 case " $CONFIG_FILES " in
17354  *" Makefile "*)
17355    ac_file=Makefile . ${multi_basedir}/config-ml.in
17356    ;;
17357 esac ;;
17358     "libtool":C)
17359
17360     # See if we are running on zsh, and set the options which allow our
17361     # commands through without removal of \ escapes.
17362     if test -n "${ZSH_VERSION+set}" ; then
17363       setopt NO_GLOB_SUBST
17364     fi
17365
17366     cfgfile="${ofile}T"
17367     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17368     $RM "$cfgfile"
17369
17370     cat <<_LT_EOF >> "$cfgfile"
17371 #! $SHELL
17372
17373 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17374 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17375 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17376 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17377 #
17378 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17379 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17380 #   Written by Gordon Matzigkeit, 1996
17381 #
17382 #   This file is part of GNU Libtool.
17383 #
17384 # GNU Libtool is free software; you can redistribute it and/or
17385 # modify it under the terms of the GNU General Public License as
17386 # published by the Free Software Foundation; either version 2 of
17387 # the License, or (at your option) any later version.
17388 #
17389 # As a special exception to the GNU General Public License,
17390 # if you distribute this file as part of a program or library that
17391 # is built using GNU Libtool, you may include this file under the
17392 # same distribution terms that you use for the rest of that program.
17393 #
17394 # GNU Libtool is distributed in the hope that it will be useful,
17395 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17396 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17397 # GNU General Public License for more details.
17398 #
17399 # You should have received a copy of the GNU General Public License
17400 # along with GNU Libtool; see the file COPYING.  If not, a copy
17401 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17402 # obtained by writing to the Free Software Foundation, Inc.,
17403 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17404
17405
17406 # The names of the tagged configurations supported by this script.
17407 available_tags="D "
17408
17409 # ### BEGIN LIBTOOL CONFIG
17410
17411 # Which release of libtool.m4 was used?
17412 macro_version=$macro_version
17413 macro_revision=$macro_revision
17414
17415 # Whether or not to build shared libraries.
17416 build_libtool_libs=$enable_shared
17417
17418 # Whether or not to build static libraries.
17419 build_old_libs=$enable_static
17420
17421 # What type of objects to build.
17422 pic_mode=$pic_mode
17423
17424 # Whether or not to optimize for fast installation.
17425 fast_install=$enable_fast_install
17426
17427 # Shell to use when invoking shell scripts.
17428 SHELL=$lt_SHELL
17429
17430 # An echo program that protects backslashes.
17431 ECHO=$lt_ECHO
17432
17433 # The host system.
17434 host_alias=$host_alias
17435 host=$host
17436 host_os=$host_os
17437
17438 # The build system.
17439 build_alias=$build_alias
17440 build=$build
17441 build_os=$build_os
17442
17443 # A sed program that does not truncate output.
17444 SED=$lt_SED
17445
17446 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17447 Xsed="\$SED -e 1s/^X//"
17448
17449 # A grep program that handles long lines.
17450 GREP=$lt_GREP
17451
17452 # An ERE matcher.
17453 EGREP=$lt_EGREP
17454
17455 # A literal string matcher.
17456 FGREP=$lt_FGREP
17457
17458 # A BSD- or MS-compatible name lister.
17459 NM=$lt_NM
17460
17461 # Whether we need soft or hard links.
17462 LN_S=$lt_LN_S
17463
17464 # What is the maximum length of a command?
17465 max_cmd_len=$max_cmd_len
17466
17467 # Object file suffix (normally "o").
17468 objext=$ac_objext
17469
17470 # Executable file suffix (normally "").
17471 exeext=$exeext
17472
17473 # whether the shell understands "unset".
17474 lt_unset=$lt_unset
17475
17476 # turn spaces into newlines.
17477 SP2NL=$lt_lt_SP2NL
17478
17479 # turn newlines into spaces.
17480 NL2SP=$lt_lt_NL2SP
17481
17482 # An object symbol dumper.
17483 OBJDUMP=$lt_OBJDUMP
17484
17485 # Method to check whether dependent libraries are shared objects.
17486 deplibs_check_method=$lt_deplibs_check_method
17487
17488 # Command to use when deplibs_check_method == "file_magic".
17489 file_magic_cmd=$lt_file_magic_cmd
17490
17491 # The archiver.
17492 AR=$lt_AR
17493 AR_FLAGS=$lt_AR_FLAGS
17494
17495 # A symbol stripping program.
17496 STRIP=$lt_STRIP
17497
17498 # Commands used to install an old-style archive.
17499 RANLIB=$lt_RANLIB
17500 old_postinstall_cmds=$lt_old_postinstall_cmds
17501 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17502
17503 # Whether to use a lock for old archive extraction.
17504 lock_old_archive_extraction=$lock_old_archive_extraction
17505
17506 # A C compiler.
17507 LTCC=$lt_CC
17508
17509 # LTCC compiler flags.
17510 LTCFLAGS=$lt_CFLAGS
17511
17512 # Take the output of nm and produce a listing of raw symbols and C names.
17513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17514
17515 # Transform the output of nm in a proper C declaration.
17516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17517
17518 # Transform the output of nm in a C name address pair.
17519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17520
17521 # Transform the output of nm in a C name address pair when lib prefix is needed.
17522 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17523
17524 # The name of the directory that contains temporary libtool files.
17525 objdir=$objdir
17526
17527 # Used to examine libraries when file_magic_cmd begins with "file".
17528 MAGIC_CMD=$MAGIC_CMD
17529
17530 # Must we lock files when doing compilation?
17531 need_locks=$lt_need_locks
17532
17533 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17534 DSYMUTIL=$lt_DSYMUTIL
17535
17536 # Tool to change global to local symbols on Mac OS X.
17537 NMEDIT=$lt_NMEDIT
17538
17539 # Tool to manipulate fat objects and archives on Mac OS X.
17540 LIPO=$lt_LIPO
17541
17542 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17543 OTOOL=$lt_OTOOL
17544
17545 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17546 OTOOL64=$lt_OTOOL64
17547
17548 # Old archive suffix (normally "a").
17549 libext=$libext
17550
17551 # Shared library suffix (normally ".so").
17552 shrext_cmds=$lt_shrext_cmds
17553
17554 # The commands to extract the exported symbol list from a shared archive.
17555 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17556
17557 # Variables whose values should be saved in libtool wrapper scripts and
17558 # restored at link time.
17559 variables_saved_for_relink=$lt_variables_saved_for_relink
17560
17561 # Do we need the "lib" prefix for modules?
17562 need_lib_prefix=$need_lib_prefix
17563
17564 # Do we need a version for libraries?
17565 need_version=$need_version
17566
17567 # Library versioning type.
17568 version_type=$version_type
17569
17570 # Shared library runtime path variable.
17571 runpath_var=$runpath_var
17572
17573 # Shared library path variable.
17574 shlibpath_var=$shlibpath_var
17575
17576 # Is shlibpath searched before the hard-coded library search path?
17577 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17578
17579 # Format of library name prefix.
17580 libname_spec=$lt_libname_spec
17581
17582 # List of archive names.  First name is the real one, the rest are links.
17583 # The last name is the one that the linker finds with -lNAME
17584 library_names_spec=$lt_library_names_spec
17585
17586 # The coded name of the library, if different from the real name.
17587 soname_spec=$lt_soname_spec
17588
17589 # Permission mode override for installation of shared libraries.
17590 install_override_mode=$lt_install_override_mode
17591
17592 # Command to use after installation of a shared archive.
17593 postinstall_cmds=$lt_postinstall_cmds
17594
17595 # Command to use after uninstallation of a shared archive.
17596 postuninstall_cmds=$lt_postuninstall_cmds
17597
17598 # Commands used to finish a libtool library installation in a directory.
17599 finish_cmds=$lt_finish_cmds
17600
17601 # As "finish_cmds", except a single script fragment to be evaled but
17602 # not shown.
17603 finish_eval=$lt_finish_eval
17604
17605 # Whether we should hardcode library paths into libraries.
17606 hardcode_into_libs=$hardcode_into_libs
17607
17608 # Compile-time system search path for libraries.
17609 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17610
17611 # Run-time system search path for libraries.
17612 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17613
17614 # Whether dlopen is supported.
17615 dlopen_support=$enable_dlopen
17616
17617 # Whether dlopen of programs is supported.
17618 dlopen_self=$enable_dlopen_self
17619
17620 # Whether dlopen of statically linked programs is supported.
17621 dlopen_self_static=$enable_dlopen_self_static
17622
17623 # Commands to strip libraries.
17624 old_striplib=$lt_old_striplib
17625 striplib=$lt_striplib
17626
17627
17628 # The linker used to build libraries.
17629 LD=$lt_LD
17630
17631 # How to create reloadable object files.
17632 reload_flag=$lt_reload_flag
17633 reload_cmds=$lt_reload_cmds
17634
17635 # Commands used to build an old-style archive.
17636 old_archive_cmds=$lt_old_archive_cmds
17637
17638 # A language specific compiler.
17639 CC=$lt_compiler
17640
17641 # Is the compiler the GNU compiler?
17642 with_gcc=$GCC
17643
17644 # Compiler flag to turn off builtin functions.
17645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17646
17647 # How to pass a linker flag through the compiler.
17648 wl=$lt_lt_prog_compiler_wl
17649
17650 # Additional compiler flags for building library objects.
17651 pic_flag=$lt_lt_prog_compiler_pic
17652
17653 # Compiler flag to prevent dynamic linking.
17654 link_static_flag=$lt_lt_prog_compiler_static
17655
17656 # Does compiler simultaneously support -c and -o options?
17657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17658
17659 # Whether or not to add -lc for building shared libraries.
17660 build_libtool_need_lc=$archive_cmds_need_lc
17661
17662 # Whether or not to disallow shared libs when runtime libs are static.
17663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17664
17665 # Compiler flag to allow reflexive dlopens.
17666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17667
17668 # Compiler flag to generate shared objects directly from archives.
17669 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17670
17671 # Whether the compiler copes with passing no objects directly.
17672 compiler_needs_object=$lt_compiler_needs_object
17673
17674 # Create an old-style archive from a shared archive.
17675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17676
17677 # Create a temporary old-style archive to link instead of a shared archive.
17678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17679
17680 # Commands used to build a shared archive.
17681 archive_cmds=$lt_archive_cmds
17682 archive_expsym_cmds=$lt_archive_expsym_cmds
17683
17684 # Commands used to build a loadable module if different from building
17685 # a shared archive.
17686 module_cmds=$lt_module_cmds
17687 module_expsym_cmds=$lt_module_expsym_cmds
17688
17689 # Whether we are building with GNU ld or not.
17690 with_gnu_ld=$lt_with_gnu_ld
17691
17692 # Flag that allows shared libraries with undefined symbols to be built.
17693 allow_undefined_flag=$lt_allow_undefined_flag
17694
17695 # Flag that enforces no undefined symbols.
17696 no_undefined_flag=$lt_no_undefined_flag
17697
17698 # Flag to hardcode \$libdir into a binary during linking.
17699 # This must work even if \$libdir does not exist
17700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17701
17702 # If ld is used when linking, flag to hardcode \$libdir into a binary
17703 # during linking.  This must work even if \$libdir does not exist.
17704 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17705
17706 # Whether we need a single "-rpath" flag with a separated argument.
17707 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17708
17709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17710 # DIR into the resulting binary.
17711 hardcode_direct=$hardcode_direct
17712
17713 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17714 # DIR into the resulting binary and the resulting library dependency is
17715 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17716 # library is relocated.
17717 hardcode_direct_absolute=$hardcode_direct_absolute
17718
17719 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17720 # into the resulting binary.
17721 hardcode_minus_L=$hardcode_minus_L
17722
17723 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17724 # into the resulting binary.
17725 hardcode_shlibpath_var=$hardcode_shlibpath_var
17726
17727 # Set to "yes" if building a shared library automatically hardcodes DIR
17728 # into the library and all subsequent libraries and executables linked
17729 # against it.
17730 hardcode_automatic=$hardcode_automatic
17731
17732 # Set to yes if linker adds runtime paths of dependent libraries
17733 # to runtime path list.
17734 inherit_rpath=$inherit_rpath
17735
17736 # Whether libtool must link a program against all its dependency libraries.
17737 link_all_deplibs=$link_all_deplibs
17738
17739 # Fix the shell variable \$srcfile for the compiler.
17740 fix_srcfile_path=$lt_fix_srcfile_path
17741
17742 # Set to "yes" if exported symbols are required.
17743 always_export_symbols=$always_export_symbols
17744
17745 # The commands to list exported symbols.
17746 export_symbols_cmds=$lt_export_symbols_cmds
17747
17748 # Symbols that should not be listed in the preloaded symbols.
17749 exclude_expsyms=$lt_exclude_expsyms
17750
17751 # Symbols that must always be exported.
17752 include_expsyms=$lt_include_expsyms
17753
17754 # Commands necessary for linking programs (against libraries) with templates.
17755 prelink_cmds=$lt_prelink_cmds
17756
17757 # Specify filename containing input files.
17758 file_list_spec=$lt_file_list_spec
17759
17760 # How to hardcode a shared library path into an executable.
17761 hardcode_action=$hardcode_action
17762
17763 # ### END LIBTOOL CONFIG
17764
17765 _LT_EOF
17766
17767   case $host_os in
17768   aix3*)
17769     cat <<\_LT_EOF >> "$cfgfile"
17770 # AIX sometimes has problems with the GCC collect2 program.  For some
17771 # reason, if we set the COLLECT_NAMES environment variable, the problems
17772 # vanish in a puff of smoke.
17773 if test "X${COLLECT_NAMES+set}" != Xset; then
17774   COLLECT_NAMES=
17775   export COLLECT_NAMES
17776 fi
17777 _LT_EOF
17778     ;;
17779   esac
17780
17781
17782 ltmain="$ac_aux_dir/ltmain.sh"
17783
17784
17785   # We use sed instead of cat because bash on DJGPP gets confused if
17786   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17787   # text mode, it properly converts lines to CR/LF.  This bash problem
17788   # is reportedly fixed, but why not run on old versions too?
17789   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17790     || (rm -f "$cfgfile"; exit 1)
17791
17792   case $xsi_shell in
17793   yes)
17794     cat << \_LT_EOF >> "$cfgfile"
17795
17796 # func_dirname file append nondir_replacement
17797 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17798 # otherwise set result to NONDIR_REPLACEMENT.
17799 func_dirname ()
17800 {
17801   case ${1} in
17802     */*) func_dirname_result="${1%/*}${2}" ;;
17803     *  ) func_dirname_result="${3}" ;;
17804   esac
17805 }
17806
17807 # func_basename file
17808 func_basename ()
17809 {
17810   func_basename_result="${1##*/}"
17811 }
17812
17813 # func_dirname_and_basename file append nondir_replacement
17814 # perform func_basename and func_dirname in a single function
17815 # call:
17816 #   dirname:  Compute the dirname of FILE.  If nonempty,
17817 #             add APPEND to the result, otherwise set result
17818 #             to NONDIR_REPLACEMENT.
17819 #             value returned in "$func_dirname_result"
17820 #   basename: Compute filename of FILE.
17821 #             value retuned in "$func_basename_result"
17822 # Implementation must be kept synchronized with func_dirname
17823 # and func_basename. For efficiency, we do not delegate to
17824 # those functions but instead duplicate the functionality here.
17825 func_dirname_and_basename ()
17826 {
17827   case ${1} in
17828     */*) func_dirname_result="${1%/*}${2}" ;;
17829     *  ) func_dirname_result="${3}" ;;
17830   esac
17831   func_basename_result="${1##*/}"
17832 }
17833
17834 # func_stripname prefix suffix name
17835 # strip PREFIX and SUFFIX off of NAME.
17836 # PREFIX and SUFFIX must not contain globbing or regex special
17837 # characters, hashes, percent signs, but SUFFIX may contain a leading
17838 # dot (in which case that matches only a dot).
17839 func_stripname ()
17840 {
17841   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17842   # positional parameters, so assign one to ordinary parameter first.
17843   func_stripname_result=${3}
17844   func_stripname_result=${func_stripname_result#"${1}"}
17845   func_stripname_result=${func_stripname_result%"${2}"}
17846 }
17847
17848 # func_opt_split
17849 func_opt_split ()
17850 {
17851   func_opt_split_opt=${1%%=*}
17852   func_opt_split_arg=${1#*=}
17853 }
17854
17855 # func_lo2o object
17856 func_lo2o ()
17857 {
17858   case ${1} in
17859     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17860     *)    func_lo2o_result=${1} ;;
17861   esac
17862 }
17863
17864 # func_xform libobj-or-source
17865 func_xform ()
17866 {
17867   func_xform_result=${1%.*}.lo
17868 }
17869
17870 # func_arith arithmetic-term...
17871 func_arith ()
17872 {
17873   func_arith_result=$(( $* ))
17874 }
17875
17876 # func_len string
17877 # STRING may not start with a hyphen.
17878 func_len ()
17879 {
17880   func_len_result=${#1}
17881 }
17882
17883 _LT_EOF
17884     ;;
17885   *) # Bourne compatible functions.
17886     cat << \_LT_EOF >> "$cfgfile"
17887
17888 # func_dirname file append nondir_replacement
17889 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17890 # otherwise set result to NONDIR_REPLACEMENT.
17891 func_dirname ()
17892 {
17893   # Extract subdirectory from the argument.
17894   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17895   if test "X$func_dirname_result" = "X${1}"; then
17896     func_dirname_result="${3}"
17897   else
17898     func_dirname_result="$func_dirname_result${2}"
17899   fi
17900 }
17901
17902 # func_basename file
17903 func_basename ()
17904 {
17905   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17906 }
17907
17908
17909 # func_stripname prefix suffix name
17910 # strip PREFIX and SUFFIX off of NAME.
17911 # PREFIX and SUFFIX must not contain globbing or regex special
17912 # characters, hashes, percent signs, but SUFFIX may contain a leading
17913 # dot (in which case that matches only a dot).
17914 # func_strip_suffix prefix name
17915 func_stripname ()
17916 {
17917   case ${2} in
17918     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17919     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17920   esac
17921 }
17922
17923 # sed scripts:
17924 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17925 my_sed_long_arg='1s/^-[^=]*=//'
17926
17927 # func_opt_split
17928 func_opt_split ()
17929 {
17930   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17931   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17932 }
17933
17934 # func_lo2o object
17935 func_lo2o ()
17936 {
17937   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17938 }
17939
17940 # func_xform libobj-or-source
17941 func_xform ()
17942 {
17943   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17944 }
17945
17946 # func_arith arithmetic-term...
17947 func_arith ()
17948 {
17949   func_arith_result=`expr "$@"`
17950 }
17951
17952 # func_len string
17953 # STRING may not start with a hyphen.
17954 func_len ()
17955 {
17956   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17957 }
17958
17959 _LT_EOF
17960 esac
17961
17962 case $lt_shell_append in
17963   yes)
17964     cat << \_LT_EOF >> "$cfgfile"
17965
17966 # func_append var value
17967 # Append VALUE to the end of shell variable VAR.
17968 func_append ()
17969 {
17970   eval "$1+=\$2"
17971 }
17972 _LT_EOF
17973     ;;
17974   *)
17975     cat << \_LT_EOF >> "$cfgfile"
17976
17977 # func_append var value
17978 # Append VALUE to the end of shell variable VAR.
17979 func_append ()
17980 {
17981   eval "$1=\$$1\$2"
17982 }
17983
17984 _LT_EOF
17985     ;;
17986   esac
17987
17988
17989   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17990     || (rm -f "$cfgfile"; exit 1)
17991
17992   mv -f "$cfgfile" "$ofile" ||
17993     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17994   chmod +x "$ofile"
17995
17996
17997     cat <<_LT_EOF >> "$ofile"
17998
17999 # ### BEGIN LIBTOOL TAG CONFIG: D
18000
18001 # The linker used to build libraries.
18002 LD=$lt_LD_D
18003
18004 # How to create reloadable object files.
18005 reload_flag=$lt_reload_flag_D
18006 reload_cmds=$lt_reload_cmds_D
18007
18008 # Commands used to build an old-style archive.
18009 old_archive_cmds=$lt_old_archive_cmds_D
18010
18011 # A language specific compiler.
18012 CC=$lt_compiler_D
18013
18014 # Is the compiler the GNU compiler?
18015 with_gcc=$GCC_D
18016
18017 # Compiler flag to turn off builtin functions.
18018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18019
18020 # How to pass a linker flag through the compiler.
18021 wl=$lt_lt_prog_compiler_wl_D
18022
18023 # Additional compiler flags for building library objects.
18024 pic_flag=$lt_lt_prog_compiler_pic_D
18025
18026 # Compiler flag to prevent dynamic linking.
18027 link_static_flag=$lt_lt_prog_compiler_static_D
18028
18029 # Does compiler simultaneously support -c and -o options?
18030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18031
18032 # Whether or not to add -lc for building shared libraries.
18033 build_libtool_need_lc=$archive_cmds_need_lc_D
18034
18035 # Whether or not to disallow shared libs when runtime libs are static.
18036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18037
18038 # Compiler flag to allow reflexive dlopens.
18039 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18040
18041 # Compiler flag to generate shared objects directly from archives.
18042 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18043
18044 # Whether the compiler copes with passing no objects directly.
18045 compiler_needs_object=$lt_compiler_needs_object_D
18046
18047 # Create an old-style archive from a shared archive.
18048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18049
18050 # Create a temporary old-style archive to link instead of a shared archive.
18051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18052
18053 # Commands used to build a shared archive.
18054 archive_cmds=$lt_archive_cmds_D
18055 archive_expsym_cmds=$lt_archive_expsym_cmds_D
18056
18057 # Commands used to build a loadable module if different from building
18058 # a shared archive.
18059 module_cmds=$lt_module_cmds_D
18060 module_expsym_cmds=$lt_module_expsym_cmds_D
18061
18062 # Whether we are building with GNU ld or not.
18063 with_gnu_ld=$lt_with_gnu_ld_D
18064
18065 # Flag that allows shared libraries with undefined symbols to be built.
18066 allow_undefined_flag=$lt_allow_undefined_flag_D
18067
18068 # Flag that enforces no undefined symbols.
18069 no_undefined_flag=$lt_no_undefined_flag_D
18070
18071 # Flag to hardcode \$libdir into a binary during linking.
18072 # This must work even if \$libdir does not exist
18073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18074
18075 # If ld is used when linking, flag to hardcode \$libdir into a binary
18076 # during linking.  This must work even if \$libdir does not exist.
18077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18078
18079 # Whether we need a single "-rpath" flag with a separated argument.
18080 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18081
18082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18083 # DIR into the resulting binary.
18084 hardcode_direct=$hardcode_direct_D
18085
18086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18087 # DIR into the resulting binary and the resulting library dependency is
18088 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18089 # library is relocated.
18090 hardcode_direct_absolute=$hardcode_direct_absolute_D
18091
18092 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18093 # into the resulting binary.
18094 hardcode_minus_L=$hardcode_minus_L_D
18095
18096 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18097 # into the resulting binary.
18098 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18099
18100 # Set to "yes" if building a shared library automatically hardcodes DIR
18101 # into the library and all subsequent libraries and executables linked
18102 # against it.
18103 hardcode_automatic=$hardcode_automatic_D
18104
18105 # Set to yes if linker adds runtime paths of dependent libraries
18106 # to runtime path list.
18107 inherit_rpath=$inherit_rpath_D
18108
18109 # Whether libtool must link a program against all its dependency libraries.
18110 link_all_deplibs=$link_all_deplibs_D
18111
18112 # Fix the shell variable \$srcfile for the compiler.
18113 fix_srcfile_path=$lt_fix_srcfile_path_D
18114
18115 # Set to "yes" if exported symbols are required.
18116 always_export_symbols=$always_export_symbols_D
18117
18118 # The commands to list exported symbols.
18119 export_symbols_cmds=$lt_export_symbols_cmds_D
18120
18121 # Symbols that should not be listed in the preloaded symbols.
18122 exclude_expsyms=$lt_exclude_expsyms_D
18123
18124 # Symbols that must always be exported.
18125 include_expsyms=$lt_include_expsyms_D
18126
18127 # Commands necessary for linking programs (against libraries) with templates.
18128 prelink_cmds=$lt_prelink_cmds_D
18129
18130 # Specify filename containing input files.
18131 file_list_spec=$lt_file_list_spec_D
18132
18133 # How to hardcode a shared library path into an executable.
18134 hardcode_action=$hardcode_action_D
18135
18136 # ### END LIBTOOL TAG CONFIG: D
18137 _LT_EOF
18138
18139  ;;
18140     "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
18141     "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18142 s!`test -f '$<' || echo '$(srcdir)/'`!!
18143 _EOF
18144    sed -f vpsed$$ $ac_file > tmp$$
18145    mv tmp$$ $ac_file
18146    rm vpsed$$
18147    echo 'MULTISUBDIR =' >> $ac_file
18148    ml_norecursion=yes
18149    . ${multi_basedir}/config-ml.in
18150    { ml_norecursion=; unset ml_norecursion;}
18151  ;;
18152     "src/Makefile":F) cat > vpsed$$ << \_EOF
18153 s!`test -f '$<' || echo '$(srcdir)/'`!!
18154 _EOF
18155    sed -f vpsed$$ $ac_file > tmp$$
18156    mv tmp$$ $ac_file
18157    rm vpsed$$
18158    echo 'MULTISUBDIR =' >> $ac_file
18159    ml_norecursion=yes
18160    . ${multi_basedir}/config-ml.in
18161    { ml_norecursion=; unset ml_norecursion;}
18162  ;;
18163     "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18164 s!`test -f '$<' || echo '$(srcdir)/'`!!
18165 _EOF
18166    sed -f vpsed$$ $ac_file > tmp$$
18167    mv tmp$$ $ac_file
18168    rm vpsed$$
18169    echo 'MULTISUBDIR =' >> $ac_file
18170    ml_norecursion=yes
18171    . ${multi_basedir}/config-ml.in
18172    { ml_norecursion=; unset ml_norecursion;}
18173  ;;
18174
18175   esac
18176 done # for ac_tag
18177
18178
18179 as_fn_exit 0
18180 _ACEOF
18181 ac_clean_files=$ac_clean_files_save
18182
18183 test $ac_write_fail = 0 ||
18184   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18185
18186
18187 # configure is writing to config.log, and then calls config.status.
18188 # config.status does its own redirection, appending to config.log.
18189 # Unfortunately, on DOS this fails, as config.log is still kept open
18190 # by configure, so config.status won't be able to write to it; its
18191 # output is simply discarded.  So we exec the FD to /dev/null,
18192 # effectively closing config.log, so it can be properly (re)opened and
18193 # appended to by config.status.  When coming back to configure, we
18194 # need to make the FD available again.
18195 if test "$no_create" != yes; then
18196   ac_cs_success=:
18197   ac_config_status_args=
18198   test "$silent" = yes &&
18199     ac_config_status_args="$ac_config_status_args --quiet"
18200   exec 5>/dev/null
18201   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18202   exec 5>>config.log
18203   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18204   # would make configure fail if this is the last instruction.
18205   $ac_cs_success || as_fn_exit 1
18206 fi
18207 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18208   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18209 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18210 fi
18211