Debian Codegraph @

vendor/onigmo-source/configure~

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for onigmo 6.1.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] 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='onigmo'
589 PACKAGE_TARNAME='onigmo'
590 PACKAGE_VERSION='6.1.1'
591 PACKAGE_STRING='onigmo 6.1.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 ALLOCA
636 python_prog
637 LTVERSION
638 CPP
639 LT_SYS_LIBRARY_PATH
640 OTOOL64
641 OTOOL
642 LIPO
643 NMEDIT
644 DSYMUTIL
645 MANIFEST_TOOL
646 RANLIB
647 ac_ct_AR
648 AR
649 DLLTOOL
650 OBJDUMP
651 LN_S
652 NM
653 ac_ct_DUMPBIN
654 DUMPBIN
655 LD
656 FGREP
657 EGREP
658 GREP
659 SED
660 host_os
661 host_vendor
662 host_cpu
663 host
664 build_os
665 build_vendor
666 build_cpu
667 build
668 LIBTOOL
669 am__fastdepCC_FALSE
670 am__fastdepCC_TRUE
671 CCDEPMODE
672 am__nodep
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__quote
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 STATISTICS
687 RUBYDIR
688 am__untar
689 am__tar
690 AMTAR
691 am__leading_dot
692 SET_MAKE
693 AWK
694 mkdir_p
695 MKDIR_P
696 INSTALL_STRIP_PROGRAM
697 STRIP
698 install_sh
699 MAKEINFO
700 AUTOHEADER
701 AUTOMAKE
702 AUTOCONF
703 ACLOCAL
704 VERSION
705 PACKAGE
706 CYGPATH_W
707 am__isrc
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 target_alias
712 host_alias
713 build_alias
714 LIBS
715 ECHO_T
716 ECHO_N
717 ECHO_C
718 DEFS
719 mandir
720 localedir
721 libdir
722 psdir
723 pdfdir
724 dvidir
725 htmldir
726 infodir
727 docdir
728 oldincludedir
729 includedir
730 localstatedir
731 sharedstatedir
732 sysconfdir
733 datadir
734 datarootdir
735 libexecdir
736 sbindir
737 bindir
738 program_transform_name
739 prefix
740 exec_prefix
741 PACKAGE_URL
742 PACKAGE_BUGREPORT
743 PACKAGE_STRING
744 PACKAGE_VERSION
745 PACKAGE_TARNAME
746 PACKAGE_NAME
747 PATH_SEPARATOR
748 SHELL'
749 ac_subst_files=''
750 ac_user_opts='
751 enable_option_checking
752 with_rubydir
753 with_statistics
754 enable_combination_explosion_check
755 enable_crnl_as_line_terminator
756 enable_dependency_tracking
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_aix_soname
762 with_gnu_ld
763 with_sysroot
764 enable_libtool_lock
765 '
766 ac_precious_vars='build_alias
767 host_alias
768 target_alias
769 CC
770 CFLAGS
771 LDFLAGS
772 LIBS
773 CPPFLAGS
774 LT_SYS_LIBRARY_PATH
775 CPP'
776
777
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
825
826 ac_prev=
827 ac_dashdash=
828 for ac_option
829 do
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
835 fi
836
837 case $ac_option in
838 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *=) ac_optarg= ;;
840 *) ac_optarg=yes ;;
841 esac
842
843 # Accept the important Cygnus configure options, so we can diagnose typos.
844
845 case $ac_dashdash$ac_option in
846 --)
847 ac_dashdash=yes ;;
848
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
853
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
858
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
865
866 --config-cache | -C)
867 cache_file=config.cache ;;
868
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
873
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
880
881 -disable-* | --disable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=no ;;
896
897 -docdir | --docdir | --docdi | --doc | --do)
898 ac_prev=docdir ;;
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 docdir=$ac_optarg ;;
901
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 ac_prev=dvidir ;;
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 dvidir=$ac_optarg ;;
906
907 -enable-* | --enable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916 "enable_$ac_useropt"
917 "*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=\$ac_optarg ;;
922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
942
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
947
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 libdir=$ac_optarg ;;
970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
977
978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 mandir=$ac_optarg ;;
994
995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1015
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1051
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
1070 sbindir=$ac_optarg ;;
1071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
1081 sharedstatedir=$ac_optarg ;;
1082
1083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
1086 site=$ac_optarg ;;
1087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1092
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1099
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1110
1111 -with-* | --with-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=\$ac_optarg ;;
1126
1127 -without-* | --without-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=no ;;
1142
1143 --x)
1144 # Obsolete; use --with-x.
1145 with_x=yes ;;
1146
1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148 | --x-incl | --x-inc | --x-in | --x-i)
1149 ac_prev=x_includes ;;
1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152 x_includes=$ac_optarg ;;
1153
1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156 ac_prev=x_libraries ;;
1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159 x_libraries=$ac_optarg ;;
1160
1161 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information"
1163 ;;
1164
1165 *=*)
1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167 # Reject names that are not valid shell variable names.
1168 case $ac_envvar in #(
1169 '' | [0-9]* | *[!_$as_cr_alnum]* )
1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171 esac
1172 eval $ac_envvar=\$ac_optarg
1173 export $ac_envvar ;;
1174
1175 *)
1176 # FIXME: should be removed in autoconf 3.0.
1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181 ;;
1182
1183 esac
1184 done
1185
1186 if test -n "$ac_prev"; then
1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188 as_fn_error $? "missing argument to $ac_option"
1189 fi
1190
1191 if test -n "$ac_unrecognized_opts"; then
1192 case $enable_option_checking in
1193 no) ;;
1194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196 esac
1197 fi
1198
1199 # Check all directory arguments for consistency.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1204 do
1205 eval ac_val=\$$ac_var
1206 # Remove trailing slashes.
1207 case $ac_val in
1208 */ )
1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\$ac_val;;
1211 esac
1212 # Be sure to have absolute directory names.
1213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
1217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
1277 srcdir=$ac_confdir
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 srcdir=..
1280 fi
1281 else
1282 ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291 pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 srcdir=.
1295 fi
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1308
1309 #
1310 # Report the --help message.
1311 #
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1315 cat <<_ACEOF
1316 \`configure' configures onigmo 6.1.1 to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1322
1323 Defaults for the options are specified in brackets.
1324
1325 Configuration:
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking ...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1340 [PREFIX]
1341
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1346
1347 For better control, use the options below.
1348
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/onigmo]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1369 _ACEOF
1370
1371 cat <<\_ACEOF
1372
1373 Program names:
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1377
1378 System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of onigmo 6.1.1:";;
1387 esac
1388 cat <<\_ACEOF
1389
1390 Optional Features:
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-combination-explosion-check enable combination explosion check
1395 --enable-crnl-as-line-terminator enable CR+NL as line terminator
1396 --disable-dependency-tracking speeds up one-time build
1397 --enable-dependency-tracking do not reject slow dependency extractors
1398 --enable-shared[=PKGS] build shared libraries [default=yes]
1399 --enable-static[=PKGS] build static libraries [default=yes]
1400 --enable-fast-install[=PKGS]
1401 optimize for fast installation [default=yes]
1402 --disable-libtool-lock avoid locking (might break parallel builds)
1403
1404 Optional Packages:
1405 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1406 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1407 --with-rubydir=RUBYDIR specify value for RUBYDIR (default ..)
1408 --with-statistics take matching time statistical data
1409 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1410 both]
1411 --with-aix-soname=aix|svr4|both
1412 shared library versioning (aka "SONAME") variant to
1413 provide on AIX, [default=aix].
1414 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1415 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1416 compiler's sysroot if not specified).
1417
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 LT_SYS_LIBRARY_PATH
1427 User-defined run-time library search path.
1428 CPP C preprocessor
1429
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1432
1433 Report bugs to the package provider.
1434 _ACEOF
1435 ac_status=$?
1436 fi
1437
1438 if test "$ac_init_help" = "recursive"; then
1439 # If there are subdirs, report their specific --help.
1440 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1441 test -d "$ac_dir" ||
1442 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443 continue
1444 ac_builddir=.
1445
1446 case "$ac_dir" in
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *)
1449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1450 # A ".." for each directory in $ac_dir_suffix.
1451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1452 case $ac_top_builddir_sub in
1453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455 esac ;;
1456 esac
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1461
1462 case $srcdir in
1463 .) # We are building in place.
1464 ac_srcdir=.
1465 ac_top_srcdir=$ac_top_builddir_sub
1466 ac_abs_top_srcdir=$ac_pwd ;;
1467 [\\/]* | ?:[\\/]* ) # Absolute name.
1468 ac_srcdir=$srcdir$ac_dir_suffix;
1469 ac_top_srcdir=$srcdir
1470 ac_abs_top_srcdir=$srcdir ;;
1471 *) # Relative name.
1472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473 ac_top_srcdir=$ac_top_build_prefix$srcdir
1474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 esac
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477
1478 cd "$ac_dir" || { ac_status=$?; continue; }
1479 # Check for guested configure.
1480 if test -f "$ac_srcdir/configure.gnu"; then
1481 echo &&
1482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483 elif test -f "$ac_srcdir/configure"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure" --help=recursive
1486 else
1487 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 fi || ac_status=$?
1489 cd "$ac_pwd" || { ac_status=$?; break; }
1490 done
1491 fi
1492
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1495 cat <<\_ACEOF
1496 onigmo configure 6.1.1
1497 generated by GNU Autoconf 2.69
1498
1499 Copyright (C) 2012 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1502 _ACEOF
1503 exit
1504 fi
1505
1506 ## ------------------------ ##
1507 ## Autoconf initialization. ##
1508 ## ------------------------ ##
1509
1510 # ac_fn_c_try_compile LINENO
1511 # --------------------------
1512 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_compile ()
1514 {
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 rm -f conftest.$ac_objext
1517 if { { ac_try="$ac_compile"
1518 case "(($ac_try" in
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_compile") 2>conftest.err
1525 ac_status=$?
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1530 fi
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && {
1533 test -z "$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 } && test -s conftest.$ac_objext; then :
1536 ac_retval=0
1537 else
1538 $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1540
1541 ac_retval=1
1542 fi
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544 as_fn_set_status $ac_retval
1545
1546 } # ac_fn_c_try_compile
1547
1548 # ac_fn_c_try_link LINENO
1549 # -----------------------
1550 # Try to link conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_link ()
1552 {
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext conftest$ac_exeext
1555 if { { ac_try="$ac_link"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_link") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1568 fi
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest$ac_exeext && {
1574 test "$cross_compiling" = yes ||
1575 test -x conftest$ac_exeext
1576 }; then :
1577 ac_retval=0
1578 else
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.$ac_ext >&5
1581
1582 ac_retval=1
1583 fi
1584 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1585 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1586 # interfere with the next link command; also delete a directory that is
1587 # left behind by Apple's compiler. We do this before executing the actions.
1588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1591
1592 } # ac_fn_c_try_link
1593
1594 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1595 # -------------------------------------------------------
1596 # Tests whether HEADER exists and can be compiled using the include files in
1597 # INCLUDES, setting the cache variable VAR accordingly.
1598 ac_fn_c_check_header_compile ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 $as_echo_n "checking for $2... " >&6; }
1603 if eval \${$3+:} false; then :
1604 $as_echo_n "(cached) " >&6
1605 else
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607 /* end confdefs.h. */
1608 $4
1609 #include <$2>
1610 _ACEOF
1611 if ac_fn_c_try_compile "$LINENO"; then :
1612 eval "$3=yes"
1613 else
1614 eval "$3=no"
1615 fi
1616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617 fi
1618 eval ac_res=\$$3
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620 $as_echo "$ac_res" >&6; }
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623 } # ac_fn_c_check_header_compile
1624
1625 # ac_fn_c_try_cpp LINENO
1626 # ----------------------
1627 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_cpp ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if { { ac_try="$ac_cpp conftest.$ac_ext"
1632 case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } > conftest.i && {
1647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 }; then :
1650 ac_retval=0
1651 else
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 ac_retval=1
1656 fi
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_cpp
1661
1662 # ac_fn_c_try_run LINENO
1663 # ----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1665 # that executables *can* be run.
1666 ac_fn_c_try_run ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_link"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1680 { { case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_try") 2>&5
1687 ac_status=$?
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; }; }; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: program exited with status $ac_status" >&5
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=$ac_status
1697 fi
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_run
1703
1704 # ac_fn_c_check_func LINENO FUNC VAR
1705 # ----------------------------------
1706 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1707 ac_fn_c_check_func ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1719 #define $2 innocuous_$2
1720
1721 /* System header to define __stub macros and hopefully few prototypes,
1722 which can conflict with char $2 (); below.
1723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1724 <limits.h> exists even on freestanding compilers. */
1725
1726 #ifdef __STDC__
1727 # include <limits.h>
1728 #else
1729 # include <assert.h>
1730 #endif
1731
1732 #undef $2
1733
1734 /* Override any GCC internal prototype to avoid an error.
1735 Use char because int might match the return type of a GCC
1736 builtin and then its argument prototype would still apply. */
1737 #ifdef __cplusplus
1738 extern "C"
1739 #endif
1740 char $2 ();
1741 /* The GNU C library defines this for functions which it implements
1742 to always fail with ENOSYS. Some functions are actually named
1743 something starting with __ and the normal name is an alias. */
1744 #if defined __stub_$2 || defined __stub___$2
1745 choke me
1746 #endif
1747
1748 int
1749 main ()
1750 {
1751 return $2 ();
1752 ;
1753 return 0;
1754 }
1755 _ACEOF
1756 if ac_fn_c_try_link "$LINENO"; then :
1757 eval "$3=yes"
1758 else
1759 eval "$3=no"
1760 fi
1761 rm -f core conftest.err conftest.$ac_objext \
1762 conftest$ac_exeext conftest.$ac_ext
1763 fi
1764 eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769 } # ac_fn_c_check_func
1770
1771 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1774 # the include files in INCLUDES and setting the cache variable VAR
1775 # accordingly.
1776 ac_fn_c_check_header_mongrel ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if eval \${$3+:} false; then :
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1784 fi
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 else
1789 # Is the header compilable?
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1791 $as_echo_n "checking $2 usability... " >&6; }
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 $4
1795 #include <$2>
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798 ac_header_compiler=yes
1799 else
1800 ac_header_compiler=no
1801 fi
1802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1804 $as_echo "$ac_header_compiler" >&6; }
1805
1806 # Is the header present?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1808 $as_echo_n "checking $2 presence... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_cpp "$LINENO"; then :
1814 ac_header_preproc=yes
1815 else
1816 ac_header_preproc=no
1817 fi
1818 rm -f conftest.err conftest.i conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1820 $as_echo "$ac_header_preproc" >&6; }
1821
1822 # So? What about this header?
1823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1824 yes:no: )
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1826 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829 ;;
1830 no:yes:* )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1832 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1834 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1836 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1838 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1840 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 ;;
1842 esac
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 eval "$3=\$ac_header_compiler"
1849 fi
1850 eval ac_res=\$$3
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852 $as_echo "$ac_res" >&6; }
1853 fi
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855
1856 } # ac_fn_c_check_header_mongrel
1857
1858 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1859 # --------------------------------------------
1860 # Tries to find the compile-time value of EXPR in a program that includes
1861 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1862 # computed
1863 ac_fn_c_compute_int ()
1864 {
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if test "$cross_compiling" = yes; then
1867 # Depending upon the size, compute the lo and hi bounds.
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 $4
1871 int
1872 main ()
1873 {
1874 static int test_array [1 - 2 * !(($2) >= 0)];
1875 test_array [0] = 0;
1876 return test_array [0];
1877
1878 ;
1879 return 0;
1880 }
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883 ac_lo=0 ac_mid=0
1884 while :; do
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 $4
1888 int
1889 main ()
1890 {
1891 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1892 test_array [0] = 0;
1893 return test_array [0];
1894
1895 ;
1896 return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_hi=$ac_mid; break
1901 else
1902 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1903 if test $ac_lo -le $ac_mid; then
1904 ac_lo= ac_hi=
1905 break
1906 fi
1907 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 done
1911 else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 $4
1915 int
1916 main ()
1917 {
1918 static int test_array [1 - 2 * !(($2) < 0)];
1919 test_array [0] = 0;
1920 return test_array [0];
1921
1922 ;
1923 return 0;
1924 }
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 ac_hi=-1 ac_mid=-1
1928 while :; do
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1931 $4
1932 int
1933 main ()
1934 {
1935 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1936 test_array [0] = 0;
1937 return test_array [0];
1938
1939 ;
1940 return 0;
1941 }
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_lo=$ac_mid; break
1945 else
1946 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1947 if test $ac_mid -le $ac_hi; then
1948 ac_lo= ac_hi=
1949 break
1950 fi
1951 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 done
1955 else
1956 ac_lo= ac_hi=
1957 fi
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 # Binary search between lo and hi bounds.
1962 while test "x$ac_lo" != "x$ac_hi"; do
1963 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 $4
1967 int
1968 main ()
1969 {
1970 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1971 test_array [0] = 0;
1972 return test_array [0];
1973
1974 ;
1975 return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979 ac_hi=$ac_mid
1980 else
1981 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 done
1985 case $ac_lo in #((
1986 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1987 '') ac_retval=1 ;;
1988 esac
1989 else
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 $4
1993 static long int longval () { return $2; }
1994 static unsigned long int ulongval () { return $2; }
1995 #include <stdio.h>
1996 #include <stdlib.h>
1997 int
1998 main ()
1999 {
2000
2001 FILE *f = fopen ("conftest.val", "w");
2002 if (! f)
2003 return 1;
2004 if (($2) < 0)
2005 {
2006 long int i = longval ();
2007 if (i != ($2))
2008 return 1;
2009 fprintf (f, "%ld", i);
2010 }
2011 else
2012 {
2013 unsigned long int i = ulongval ();
2014 if (i != ($2))
2015 return 1;
2016 fprintf (f, "%lu", i);
2017 }
2018 /* Do not output a trailing newline, as this causes \r\n confusion
2019 on some platforms. */
2020 return ferror (f) || fclose (f) != 0;
2021
2022 ;
2023 return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_run "$LINENO"; then :
2027 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2028 else
2029 ac_retval=1
2030 fi
2031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2032 conftest.$ac_objext conftest.beam conftest.$ac_ext
2033 rm -f conftest.val
2034
2035 fi
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 as_fn_set_status $ac_retval
2038
2039 } # ac_fn_c_compute_int
2040
2041 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2042 # -------------------------------------------
2043 # Tests whether TYPE exists after having included INCLUDES, setting cache
2044 # variable VAR accordingly.
2045 ac_fn_c_check_type ()
2046 {
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 eval "$3=no"
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 $4
2057 int
2058 main ()
2059 {
2060 if (sizeof ($2))
2061 return 0;
2062 ;
2063 return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 $4
2070 int
2071 main ()
2072 {
2073 if (sizeof (($2)))
2074 return 0;
2075 ;
2076 return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080
2081 else
2082 eval "$3=yes"
2083 fi
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 fi
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 fi
2088 eval ac_res=\$$3
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092
2093 } # ac_fn_c_check_type
2094 cat >config.log <<_ACEOF
2095 This file contains any messages produced by compilers while
2096 running configure, to aid debugging if configure makes a mistake.
2097
2098 It was created by onigmo $as_me 6.1.1, which was
2099 generated by GNU Autoconf 2.69. Invocation command line was
2100
2101 $ $0 $@
2102
2103 _ACEOF
2104 exec 5>>config.log
2105 {
2106 cat <<_ASUNAME
2107 ## --------- ##
2108 ## Platform. ##
2109 ## --------- ##
2110
2111 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2112 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2113 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2114 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2115 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2116
2117 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2118 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2119
2120 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2121 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2122 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2123 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2124 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2125 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2126 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2127
2128 _ASUNAME
2129
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2132 do
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 $as_echo "PATH: $as_dir"
2136 done
2137 IFS=$as_save_IFS
2138
2139 } >&5
2140
2141 cat >&5 <<_ACEOF
2142
2143
2144 ## ----------- ##
2145 ## Core tests. ##
2146 ## ----------- ##
2147
2148 _ACEOF
2149
2150
2151 # Keep a trace of the command line.
2152 # Strip out --no-create and --no-recursion so they do not pile up.
2153 # Strip out --silent because we don't want to record it for future runs.
2154 # Also quote any args containing shell meta-characters.
2155 # Make two passes to allow for proper duplicate-argument suppression.
2156 ac_configure_args=
2157 ac_configure_args0=
2158 ac_configure_args1=
2159 ac_must_keep_next=false
2160 for ac_pass in 1 2
2161 do
2162 for ac_arg
2163 do
2164 case $ac_arg in
2165 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2167 | -silent | --silent | --silen | --sile | --sil)
2168 continue ;;
2169 *\'*)
2170 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2171 esac
2172 case $ac_pass in
2173 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2174 2)
2175 as_fn_append ac_configure_args1 " '$ac_arg'"
2176 if test $ac_must_keep_next = true; then
2177 ac_must_keep_next=false # Got value, back to normal.
2178 else
2179 case $ac_arg in
2180 *=* | --config-cache | -C | -disable-* | --disable-* \
2181 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2182 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2183 | -with-* | --with-* | -without-* | --without-* | --x)
2184 case "$ac_configure_args0 " in
2185 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2186 esac
2187 ;;
2188 -* ) ac_must_keep_next=true ;;
2189 esac
2190 fi
2191 as_fn_append ac_configure_args " '$ac_arg'"
2192 ;;
2193 esac
2194 done
2195 done
2196 { ac_configure_args0=; unset ac_configure_args0;}
2197 { ac_configure_args1=; unset ac_configure_args1;}
2198
2199 # When interrupted or exit'd, cleanup temporary files, and complete
2200 # config.log. We remove comments because anyway the quotes in there
2201 # would cause problems or look ugly.
2202 # WARNING: Use '\'' to represent an apostrophe within the trap.
2203 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2204 trap 'exit_status=$?
2205 # Save into config.log some information that might help in debugging.
2206 {
2207 echo
2208
2209 $as_echo "## ---------------- ##
2210 ## Cache variables. ##
2211 ## ---------------- ##"
2212 echo
2213 # The following way of writing the cache mishandles newlines in values,
2214 (
2215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2216 eval ac_val=\$$ac_var
2217 case $ac_val in #(
2218 *${as_nl}*)
2219 case $ac_var in #(
2220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2222 esac
2223 case $ac_var in #(
2224 _ | IFS | as_nl) ;; #(
2225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2226 *) { eval $ac_var=; unset $ac_var;} ;;
2227 esac ;;
2228 esac
2229 done
2230 (set) 2>&1 |
2231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2232 *${as_nl}ac_space=\ *)
2233 sed -n \
2234 "s/'\''/'\''\\\\'\'''\''/g;
2235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2236 ;; #(
2237 *)
2238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2239 ;;
2240 esac |
2241 sort
2242 )
2243 echo
2244
2245 $as_echo "## ----------------- ##
2246 ## Output variables. ##
2247 ## ----------------- ##"
2248 echo
2249 for ac_var in $ac_subst_vars
2250 do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in
2253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 esac
2255 $as_echo "$ac_var='\''$ac_val'\''"
2256 done | sort
2257 echo
2258
2259 if test -n "$ac_subst_files"; then
2260 $as_echo "## ------------------- ##
2261 ## File substitutions. ##
2262 ## ------------------- ##"
2263 echo
2264 for ac_var in $ac_subst_files
2265 do
2266 eval ac_val=\$$ac_var
2267 case $ac_val in
2268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269 esac
2270 $as_echo "$ac_var='\''$ac_val'\''"
2271 done | sort
2272 echo
2273 fi
2274
2275 if test -s confdefs.h; then
2276 $as_echo "## ----------- ##
2277 ## confdefs.h. ##
2278 ## ----------- ##"
2279 echo
2280 cat confdefs.h
2281 echo
2282 fi
2283 test "$ac_signal" != 0 &&
2284 $as_echo "$as_me: caught signal $ac_signal"
2285 $as_echo "$as_me: exit $exit_status"
2286 } >&5
2287 rm -f core *.core core.conftest.* &&
2288 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2289 exit $exit_status
2290 ' 0
2291 for ac_signal in 1 2 13 15; do
2292 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2293 done
2294 ac_signal=0
2295
2296 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2297 rm -f -r conftest* confdefs.h
2298
2299 $as_echo "/* confdefs.h */" > confdefs.h
2300
2301 # Predefined preprocessor variables.
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_NAME "$PACKAGE_NAME"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_STRING "$PACKAGE_STRING"
2317 _ACEOF
2318
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2321 _ACEOF
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_URL "$PACKAGE_URL"
2325 _ACEOF
2326
2327
2328 # Let the site file select an alternate cache file if it wants to.
2329 # Prefer an explicitly selected file to automatically selected ones.
2330 ac_site_file1=NONE
2331 ac_site_file2=NONE
2332 if test -n "$CONFIG_SITE"; then
2333 # We do not want a PATH search for config.site.
2334 case $CONFIG_SITE in #((
2335 -*) ac_site_file1=./$CONFIG_SITE;;
2336 */*) ac_site_file1=$CONFIG_SITE;;
2337 *) ac_site_file1=./$CONFIG_SITE;;
2338 esac
2339 elif test "x$prefix" != xNONE; then
2340 ac_site_file1=$prefix/share/config.site
2341 ac_site_file2=$prefix/etc/config.site
2342 else
2343 ac_site_file1=$ac_default_prefix/share/config.site
2344 ac_site_file2=$ac_default_prefix/etc/config.site
2345 fi
2346 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2347 do
2348 test "x$ac_site_file" = xNONE && continue
2349 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2351 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2352 sed 's/^/| /' "$ac_site_file" >&5
2353 . "$ac_site_file" \
2354 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2356 as_fn_error $? "failed to load site script $ac_site_file
2357 See \`config.log' for more details" "$LINENO" 5; }
2358 fi
2359 done
2360
2361 if test -r "$cache_file"; then
2362 # Some versions of bash will fail to source /dev/null (special files
2363 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2366 $as_echo "$as_me: loading cache $cache_file" >&6;}
2367 case $cache_file in
2368 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369 *) . "./$cache_file";;
2370 esac
2371 fi
2372 else
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2374 $as_echo "$as_me: creating cache $cache_file" >&6;}
2375 >$cache_file
2376 fi
2377
2378 # Check that the precious variables saved in the cache have kept the same
2379 # value.
2380 ac_cache_corrupted=false
2381 for ac_var in $ac_precious_vars; do
2382 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2383 eval ac_new_set=\$ac_env_${ac_var}_set
2384 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2385 eval ac_new_val=\$ac_env_${ac_var}_value
2386 case $ac_old_set,$ac_new_set in
2387 set,)
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2389 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2390 ac_cache_corrupted=: ;;
2391 ,set)
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2393 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2394 ac_cache_corrupted=: ;;
2395 ,);;
2396 *)
2397 if test "x$ac_old_val" != "x$ac_new_val"; then
2398 # differences in whitespace do not lead to failure.
2399 ac_old_val_w=`echo x $ac_old_val`
2400 ac_new_val_w=`echo x $ac_new_val`
2401 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2403 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2404 ac_cache_corrupted=:
2405 else
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2407 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2408 eval $ac_var=\$ac_old_val
2409 fi
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2411 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2413 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2414 fi;;
2415 esac
2416 # Pass precious variables to config.status.
2417 if test "$ac_new_set" = set; then
2418 case $ac_new_val in
2419 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2420 *) ac_arg=$ac_var=$ac_new_val ;;
2421 esac
2422 case " $ac_configure_args " in
2423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2424 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2425 esac
2426 fi
2427 done
2428 if $ac_cache_corrupted; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2432 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2433 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2434 fi
2435 ## -------------------- ##
2436 ## Main body of script. ##
2437 ## -------------------- ##
2438
2439 ac_ext=c
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444
2445
2446
2447
2448
2449 am__api_version='1.11'
2450
2451 ac_aux_dir=
2452 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2453 if test -f "$ac_dir/install-sh"; then
2454 ac_aux_dir=$ac_dir
2455 ac_install_sh="$ac_aux_dir/install-sh -c"
2456 break
2457 elif test -f "$ac_dir/install.sh"; then
2458 ac_aux_dir=$ac_dir
2459 ac_install_sh="$ac_aux_dir/install.sh -c"
2460 break
2461 elif test -f "$ac_dir/shtool"; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/shtool install -c"
2464 break
2465 fi
2466 done
2467 if test -z "$ac_aux_dir"; then
2468 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2469 fi
2470
2471 # These three variables are undocumented and unsupported,
2472 # and are intended to be withdrawn in a future Autoconf release.
2473 # They can cause serious problems if a builder's source tree is in a directory
2474 # whose full name contains unusual characters.
2475 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2476 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2477 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2478
2479
2480 # Find a good install program. We prefer a C program (faster),
2481 # so one script is as good as another. But avoid the broken or
2482 # incompatible versions:
2483 # SysV /etc/install, /usr/sbin/install
2484 # SunOS /usr/etc/install
2485 # IRIX /sbin/install
2486 # AIX /bin/install
2487 # AmigaOS /C/install, which installs bootblocks on floppy discs
2488 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2489 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2490 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2491 # OS/2's system install, which has a completely different semantic
2492 # ./install, which can be erroneously created by make from ./install.sh.
2493 # Reject install programs that cannot install multiple files.
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2495 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2496 if test -z "$INSTALL"; then
2497 if ${ac_cv_path_install+:} false; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 # Account for people who put trailing slashes in PATH elements.
2506 case $as_dir/ in #((
2507 ./ | .// | /[cC]/* | \
2508 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2509 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2510 /usr/ucb/* ) ;;
2511 *)
2512 # OSF1 and SCO ODT 3.0 have their own names for install.
2513 # Don't use installbsd from OSF since it installs stuff as root
2514 # by default.
2515 for ac_prog in ginstall scoinst install; do
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2518 if test $ac_prog = install &&
2519 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2520 # AIX install. It has an incompatible calling convention.
2521 :
2522 elif test $ac_prog = install &&
2523 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524 # program-specific install script used by HP pwplus--don't use.
2525 :
2526 else
2527 rm -rf conftest.one conftest.two conftest.dir
2528 echo one > conftest.one
2529 echo two > conftest.two
2530 mkdir conftest.dir
2531 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2532 test -s conftest.one && test -s conftest.two &&
2533 test -s conftest.dir/conftest.one &&
2534 test -s conftest.dir/conftest.two
2535 then
2536 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537 break 3
2538 fi
2539 fi
2540 fi
2541 done
2542 done
2543 ;;
2544 esac
2545
2546 done
2547 IFS=$as_save_IFS
2548
2549 rm -rf conftest.one conftest.two conftest.dir
2550
2551 fi
2552 if test "${ac_cv_path_install+set}" = set; then
2553 INSTALL=$ac_cv_path_install
2554 else
2555 # As a last resort, use the slow shell script. Don't cache a
2556 # value for INSTALL within a source directory, because that will
2557 # break other packages using the cache if that directory is
2558 # removed, or if the value is a relative name.
2559 INSTALL=$ac_install_sh
2560 fi
2561 fi
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2563 $as_echo "$INSTALL" >&6; }
2564
2565 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2566 # It thinks the first close brace ends the variable substitution.
2567 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2568
2569 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2570
2571 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2572
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2574 $as_echo_n "checking whether build environment is sane... " >&6; }
2575 # Just in case
2576 sleep 1
2577 echo timestamp > conftest.file
2578 # Reject unsafe characters in $srcdir or the absolute working directory
2579 # name. Accept space and tab only in the latter.
2580 am_lf='
2581 '
2582 case `pwd` in
2583 *[\\\"\#\$\&\'\`$am_lf]*)
2584 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2585 esac
2586 case $srcdir in
2587 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2588 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2589 esac
2590
2591 # Do `set' in a subshell so we don't clobber the current shell's
2592 # arguments. Must try -L first in case configure is actually a
2593 # symlink; some systems play weird games with the mod time of symlinks
2594 # (eg FreeBSD returns the mod time of the symlink's containing
2595 # directory).
2596 if (
2597 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2598 if test "$*" = "X"; then
2599 # -L didn't work.
2600 set X `ls -t "$srcdir/configure" conftest.file`
2601 fi
2602 rm -f conftest.file
2603 if test "$*" != "X $srcdir/configure conftest.file" \
2604 && test "$*" != "X conftest.file $srcdir/configure"; then
2605
2606 # If neither matched, then we have a broken ls. This can happen
2607 # if, for instance, CONFIG_SHELL is bash and it inherits a
2608 # broken ls alias from the environment. This has actually
2609 # happened. Such a system could not be considered "sane".
2610 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2611 alias in your environment" "$LINENO" 5
2612 fi
2613
2614 test "$2" = conftest.file
2615 )
2616 then
2617 # Ok.
2618 :
2619 else
2620 as_fn_error $? "newly created file is older than distributed files!
2621 Check your system clock" "$LINENO" 5
2622 fi
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624 $as_echo "yes" >&6; }
2625 test "$program_prefix" != NONE &&
2626 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2627 # Use a double $ so make ignores it.
2628 test "$program_suffix" != NONE &&
2629 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2630 # Double any \ or $.
2631 # By default was `s,x,x', remove it if useless.
2632 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2633 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2634
2635 # expand $ac_aux_dir to an absolute path
2636 am_aux_dir=`cd $ac_aux_dir && pwd`
2637
2638 if test x"${MISSING+set}" != xset; then
2639 case $am_aux_dir in
2640 *\ * | *\ *)
2641 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2642 *)
2643 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2644 esac
2645 fi
2646 # Use eval to expand $SHELL
2647 if eval "$MISSING --run true"; then
2648 am_missing_run="$MISSING --run "
2649 else
2650 am_missing_run=
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2652 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2653 fi
2654
2655 if test x"${install_sh}" != xset; then
2656 case $am_aux_dir in
2657 *\ * | *\ *)
2658 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2659 *)
2660 install_sh="\${SHELL} $am_aux_dir/install-sh"
2661 esac
2662 fi
2663
2664 # Installed binaries are usually stripped using `strip' when the user
2665 # run `make install-strip'. However `strip' might not be the right
2666 # tool to use in cross-compilation environments, therefore Automake
2667 # will honor the `STRIP' environment variable to overrule this program.
2668 if test "$cross_compiling" != no; then
2669 if test -n "$ac_tool_prefix"; then
2670 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2671 set dummy ${ac_tool_prefix}strip; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_STRIP+:} false; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 if test -n "$STRIP"; then
2678 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2690 fi
2691 done
2692 done
2693 IFS=$as_save_IFS
2694
2695 fi
2696 fi
2697 STRIP=$ac_cv_prog_STRIP
2698 if test -n "$STRIP"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2700 $as_echo "$STRIP" >&6; }
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704 fi
2705
2706
2707 fi
2708 if test -z "$ac_cv_prog_STRIP"; then
2709 ac_ct_STRIP=$STRIP
2710 # Extract the first word of "strip", so it can be a program name with args.
2711 set dummy strip; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2715 $as_echo_n "(cached) " >&6
2716 else
2717 if test -n "$ac_ct_STRIP"; then
2718 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2719 else
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2722 do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2727 ac_cv_prog_ac_ct_STRIP="strip"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731 done
2732 done
2733 IFS=$as_save_IFS
2734
2735 fi
2736 fi
2737 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2738 if test -n "$ac_ct_STRIP"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2740 $as_echo "$ac_ct_STRIP" >&6; }
2741 else
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2744 fi
2745
2746 if test "x$ac_ct_STRIP" = x; then
2747 STRIP=":"
2748 else
2749 case $cross_compiling:$ac_tool_warned in
2750 yes:)
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2753 ac_tool_warned=yes ;;
2754 esac
2755 STRIP=$ac_ct_STRIP
2756 fi
2757 else
2758 STRIP="$ac_cv_prog_STRIP"
2759 fi
2760
2761 fi
2762 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2763
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2765 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2766 if test -z "$MKDIR_P"; then
2767 if ${ac_cv_path_mkdir+:} false; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2772 do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_prog in mkdir gmkdir; do
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2778 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2779 'mkdir (GNU coreutils) '* | \
2780 'mkdir (coreutils) '* | \
2781 'mkdir (fileutils) '4.1*)
2782 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2783 break 3;;
2784 esac
2785 done
2786 done
2787 done
2788 IFS=$as_save_IFS
2789
2790 fi
2791
2792 test -d ./--version && rmdir ./--version
2793 if test "${ac_cv_path_mkdir+set}" = set; then
2794 MKDIR_P="$ac_cv_path_mkdir -p"
2795 else
2796 # As a last resort, use the slow shell script. Don't cache a
2797 # value for MKDIR_P within a source directory, because that will
2798 # break other packages using the cache if that directory is
2799 # removed, or if the value is a relative name.
2800 MKDIR_P="$ac_install_sh -d"
2801 fi
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2804 $as_echo "$MKDIR_P" >&6; }
2805
2806 mkdir_p="$MKDIR_P"
2807 case $mkdir_p in
2808 [\\/$]* | ?:[\\/]*) ;;
2809 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2810 esac
2811
2812 for ac_prog in gawk mawk nawk awk
2813 do
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_AWK+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$AWK"; then
2822 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_AWK="$ac_prog"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835 done
2836 done
2837 IFS=$as_save_IFS
2838
2839 fi
2840 fi
2841 AWK=$ac_cv_prog_AWK
2842 if test -n "$AWK"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2844 $as_echo "$AWK" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2848 fi
2849
2850
2851 test -n "$AWK" && break
2852 done
2853
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2855 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2856 set x ${MAKE-make}
2857 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2858 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 cat >conftest.make <<\_ACEOF
2862 SHELL = /bin/sh
2863 all:
2864 @echo '@@@%%%=$(MAKE)=@@@%%%'
2865 _ACEOF
2866 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2867 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2868 *@@@%%%=?*=@@@%%%*)
2869 eval ac_cv_prog_make_${ac_make}_set=yes;;
2870 *)
2871 eval ac_cv_prog_make_${ac_make}_set=no;;
2872 esac
2873 rm -f conftest.make
2874 fi
2875 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2877 $as_echo "yes" >&6; }
2878 SET_MAKE=
2879 else
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 SET_MAKE="MAKE=${MAKE-make}"
2883 fi
2884
2885 rm -rf .tst 2>/dev/null
2886 mkdir .tst 2>/dev/null
2887 if test -d .tst; then
2888 am__leading_dot=.
2889 else
2890 am__leading_dot=_
2891 fi
2892 rmdir .tst 2>/dev/null
2893
2894 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2895 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2896 # is not polluted with repeated "-I."
2897 am__isrc=' -I$(srcdir)'
2898 # test to see if srcdir already configured
2899 if test -f $srcdir/config.status; then
2900 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2901 fi
2902 fi
2903
2904 # test whether we have cygpath
2905 if test -z "$CYGPATH_W"; then
2906 if (cygpath --version) >/dev/null 2>/dev/null; then
2907 CYGPATH_W='cygpath -w'
2908 else
2909 CYGPATH_W=echo
2910 fi
2911 fi
2912
2913
2914 # Define the identity of the package.
2915 PACKAGE='onigmo'
2916 VERSION='6.1.1'
2917
2918
2919 cat >>confdefs.h <<_ACEOF
2920 #define PACKAGE "$PACKAGE"
2921 _ACEOF
2922
2923
2924 cat >>confdefs.h <<_ACEOF
2925 #define VERSION "$VERSION"
2926 _ACEOF
2927
2928 # Some tools Automake needs.
2929
2930 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2931
2932
2933 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2934
2935
2936 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2937
2938
2939 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2940
2941
2942 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2943
2944 # We need awk for the "check" target. The system "awk" is bad on
2945 # some platforms.
2946 # Always define AMTAR for backward compatibility. Yes, it's still used
2947 # in the wild :-( We should find a proper way to deprecate it ...
2948 AMTAR='$${TAR-tar}'
2949
2950 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2951
2952
2953
2954
2955
2956 ac_config_headers="$ac_config_headers config.h"
2957
2958
2959
2960 RUBYDIR=".."
2961
2962 # Check whether --with-rubydir was given.
2963 if test "${with_rubydir+set}" = set; then :
2964 withval=$with_rubydir; RUBYDIR=$withval
2965 fi
2966
2967
2968
2969 STATISTICS=""
2970
2971 # Check whether --with-statistics was given.
2972 if test "${with_statistics+set}" = set; then :
2973 withval=$with_statistics; STATISTICS=-DONIG_DEBUG_STATISTICS
2974 fi
2975
2976
2977
2978 # Check whether --enable-combination-explosion-check was given.
2979 if test "${enable_combination_explosion_check+set}" = set; then :
2980 enableval=$enable_combination_explosion_check; comb_expl_check=$enableval
2981 fi
2982
2983 if test "${comb_expl_check}" = yes; then
2984
2985 $as_echo "#define USE_COMBINATION_EXPLOSION_CHECK 1" >>confdefs.h
2986
2987 fi
2988
2989 # Check whether --enable-crnl-as-line-terminator was given.
2990 if test "${enable_crnl_as_line_terminator+set}" = set; then :
2991 enableval=$enable_crnl_as_line_terminator; crnl_as_line_terminator=$enableval
2992 fi
2993
2994 if test "${crnl_as_line_terminator}" = yes; then
2995
2996 $as_echo "#define USE_CRNL_AS_LINE_TERMINATOR 1" >>confdefs.h
2997
2998 fi
2999
3000
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006 if test -n "$ac_tool_prefix"; then
3007 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3008 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if ${ac_cv_prog_CC+:} false; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$CC"; then
3015 ac_cv_prog_CC="$CC" # Let the user override the test.
3016 else
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 for as_dir in $PATH
3019 do
3020 IFS=$as_save_IFS
3021 test -z "$as_dir" && as_dir=.
3022 for ac_exec_ext in '' $ac_executable_extensions; do
3023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3024 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028 done
3029 done
3030 IFS=$as_save_IFS
3031
3032 fi
3033 fi
3034 CC=$ac_cv_prog_CC
3035 if test -n "$CC"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3037 $as_echo "$CC" >&6; }
3038 else
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3041 fi
3042
3043
3044 fi
3045 if test -z "$ac_cv_prog_CC"; then
3046 ac_ct_CC=$CC
3047 # Extract the first word of "gcc", so it can be a program name with args.
3048 set dummy gcc; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 if test -n "$ac_ct_CC"; then
3055 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_ac_ct_CC="gcc"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3067 fi
3068 done
3069 done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3075 if test -n "$ac_ct_CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3077 $as_echo "$ac_ct_CC" >&6; }
3078 else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083 if test "x$ac_ct_CC" = x; then
3084 CC=""
3085 else
3086 case $cross_compiling:$ac_tool_warned in
3087 yes:)
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3090 ac_tool_warned=yes ;;
3091 esac
3092 CC=$ac_ct_CC
3093 fi
3094 else
3095 CC="$ac_cv_prog_CC"
3096 fi
3097
3098 if test -z "$CC"; then
3099 if test -n "$ac_tool_prefix"; then
3100 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3101 set dummy ${ac_tool_prefix}cc; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_CC+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_CC="${ac_tool_prefix}cc"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121 done
3122 done
3123 IFS=$as_save_IFS
3124
3125 fi
3126 fi
3127 CC=$ac_cv_prog_CC
3128 if test -n "$CC"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130 $as_echo "$CC" >&6; }
3131 else
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136
3137 fi
3138 fi
3139 if test -z "$CC"; then
3140 # Extract the first word of "cc", so it can be a program name with args.
3141 set dummy cc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_CC+:} false; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test -n "$CC"; then
3148 ac_cv_prog_CC="$CC" # Let the user override the test.
3149 else
3150 ac_prog_rejected=no
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3159 ac_prog_rejected=yes
3160 continue
3161 fi
3162 ac_cv_prog_CC="cc"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3164 break 2
3165 fi
3166 done
3167 done
3168 IFS=$as_save_IFS
3169
3170 if test $ac_prog_rejected = yes; then
3171 # We found a bogon in the path, so make sure we never use it.
3172 set dummy $ac_cv_prog_CC
3173 shift
3174 if test $# != 0; then
3175 # We chose a different compiler from the bogus one.
3176 # However, it has the same basename, so the bogon will be chosen
3177 # first if we set CC to just the basename; use the full file name.
3178 shift
3179 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3180 fi
3181 fi
3182 fi
3183 fi
3184 CC=$ac_cv_prog_CC
3185 if test -n "$CC"; then
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3187 $as_echo "$CC" >&6; }
3188 else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 fi
3192
3193
3194 fi
3195 if test -z "$CC"; then
3196 if test -n "$ac_tool_prefix"; then
3197 for ac_prog in cl.exe
3198 do
3199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_CC+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 if test -n "$CC"; then
3207 ac_cv_prog_CC="$CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 CC=$ac_cv_prog_CC
3227 if test -n "$CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229 $as_echo "$CC" >&6; }
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235
3236 test -n "$CC" && break
3237 done
3238 fi
3239 if test -z "$CC"; then
3240 ac_ct_CC=$CC
3241 for ac_prog in cl.exe
3242 do
3243 # Extract the first word of "$ac_prog", so it can be a program name with args.
3244 set dummy $ac_prog; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 if test -n "$ac_ct_CC"; then
3251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_ac_ct_CC="$ac_prog"
3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3263 fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3271 if test -n "$ac_ct_CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3273 $as_echo "$ac_ct_CC" >&6; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280 test -n "$ac_ct_CC" && break
3281 done
3282
3283 if test "x$ac_ct_CC" = x; then
3284 CC=""
3285 else
3286 case $cross_compiling:$ac_tool_warned in
3287 yes:)
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3290 ac_tool_warned=yes ;;
3291 esac
3292 CC=$ac_ct_CC
3293 fi
3294 fi
3295
3296 fi
3297
3298
3299 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error $? "no acceptable C compiler found in \$PATH
3302 See \`config.log' for more details" "$LINENO" 5; }
3303
3304 # Provide some information about the compiler.
3305 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3306 set X $ac_compile
3307 ac_compiler=$2
3308 for ac_option in --version -v -V -qversion; do
3309 { { ac_try="$ac_compiler $ac_option >&5"
3310 case "(($ac_try" in
3311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312 *) ac_try_echo=$ac_try;;
3313 esac
3314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3315 $as_echo "$ac_try_echo"; } >&5
3316 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3317 ac_status=$?
3318 if test -s conftest.err; then
3319 sed '10a\
3320 ... rest of stderr output deleted ...
3321 10q' conftest.err >conftest.er1
3322 cat conftest.er1 >&5
3323 fi
3324 rm -f conftest.er1 conftest.err
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }
3327 done
3328
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331
3332 int
3333 main ()
3334 {
3335
3336 ;
3337 return 0;
3338 }
3339 _ACEOF
3340 ac_clean_files_save=$ac_clean_files
3341 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3342 # Try to create an executable without -o first, disregard a.out.
3343 # It will help us diagnose broken compilers, and finding out an intuition
3344 # of exeext.
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3346 $as_echo_n "checking whether the C compiler works... " >&6; }
3347 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3348
3349 # The possible output files:
3350 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3351
3352 ac_rmfiles=
3353 for ac_file in $ac_files
3354 do
3355 case $ac_file in
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3357 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3358 esac
3359 done
3360 rm -f $ac_rmfiles
3361
3362 if { { ac_try="$ac_link_default"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_link_default") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; then :
3373 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3374 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3375 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3376 # so that the user can short-circuit this test for compilers unknown to
3377 # Autoconf.
3378 for ac_file in $ac_files ''
3379 do
3380 test -f "$ac_file" || continue
3381 case $ac_file in
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3383 ;;
3384 [ab].out )
3385 # We found the default executable, but exeext='' is most
3386 # certainly right.
3387 break;;
3388 *.* )
3389 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3390 then :; else
3391 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3392 fi
3393 # We set ac_cv_exeext here because the later test for it is not
3394 # safe: cross compilers may not add the suffix if given an `-o'
3395 # argument, so we may need to know it at that point already.
3396 # Even if this section looks crufty: it has the advantage of
3397 # actually working.
3398 break;;
3399 * )
3400 break;;
3401 esac
3402 done
3403 test "$ac_cv_exeext" = no && ac_cv_exeext=
3404
3405 else
3406 ac_file=''
3407 fi
3408 if test -z "$ac_file"; then :
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 $as_echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error 77 "C compiler cannot create executables
3417 See \`config.log' for more details" "$LINENO" 5; }
3418 else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3420 $as_echo "yes" >&6; }
3421 fi
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3423 $as_echo_n "checking for C compiler default output file name... " >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3425 $as_echo "$ac_file" >&6; }
3426 ac_exeext=$ac_cv_exeext
3427
3428 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3429 ac_clean_files=$ac_clean_files_save
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3431 $as_echo_n "checking for suffix of executables... " >&6; }
3432 if { { ac_try="$ac_link"
3433 case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_link") 2>&5
3440 ac_status=$?
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }; then :
3443 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3444 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3445 # work properly (i.e., refer to `conftest.exe'), while it won't with
3446 # `rm'.
3447 for ac_file in conftest.exe conftest conftest.*; do
3448 test -f "$ac_file" || continue
3449 case $ac_file in
3450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 break;;
3453 * ) break;;
3454 esac
3455 done
3456 else
3457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3460 See \`config.log' for more details" "$LINENO" 5; }
3461 fi
3462 rm -f conftest conftest$ac_cv_exeext
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3464 $as_echo "$ac_cv_exeext" >&6; }
3465
3466 rm -f conftest.$ac_ext
3467 EXEEXT=$ac_cv_exeext
3468 ac_exeext=$EXEEXT
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3471 #include <stdio.h>
3472 int
3473 main ()
3474 {
3475 FILE *f = fopen ("conftest.out", "w");
3476 return ferror (f) || fclose (f) != 0;
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 ac_clean_files="$ac_clean_files conftest.out"
3483 # Check that the compiler produces executables we can run. If not, either
3484 # the compiler is broken, or we cross compile.
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3486 $as_echo_n "checking whether we are cross compiling... " >&6; }
3487 if test "$cross_compiling" != yes; then
3488 { { ac_try="$ac_link"
3489 case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492 esac
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_link") 2>&5
3496 ac_status=$?
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }
3499 if { ac_try='./conftest$ac_cv_exeext'
3500 { { case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_try") 2>&5
3507 ac_status=$?
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }; }; then
3510 cross_compiling=no
3511 else
3512 if test "$cross_compiling" = maybe; then
3513 cross_compiling=yes
3514 else
3515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 as_fn_error $? "cannot run C compiled programs.
3518 If you meant to cross compile, use \`--host'.
3519 See \`config.log' for more details" "$LINENO" 5; }
3520 fi
3521 fi
3522 fi
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3524 $as_echo "$cross_compiling" >&6; }
3525
3526 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3527 ac_clean_files=$ac_clean_files_save
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3529 $as_echo_n "checking for suffix of object files... " >&6; }
3530 if ${ac_cv_objext+:} false; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535
3536 int
3537 main ()
3538 {
3539
3540 ;
3541 return 0;
3542 }
3543 _ACEOF
3544 rm -f conftest.o conftest.obj
3545 if { { ac_try="$ac_compile"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552 (eval "$ac_compile") 2>&5
3553 ac_status=$?
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }; then :
3556 for ac_file in conftest.o conftest.obj conftest.*; do
3557 test -f "$ac_file" || continue;
3558 case $ac_file in
3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3560 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3561 break;;
3562 esac
3563 done
3564 else
3565 $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 as_fn_error $? "cannot compute suffix of object files: cannot compile
3571 See \`config.log' for more details" "$LINENO" 5; }
3572 fi
3573 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3574 fi
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3576 $as_echo "$ac_cv_objext" >&6; }
3577 OBJEXT=$ac_cv_objext
3578 ac_objext=$OBJEXT
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3580 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3581 if ${ac_cv_c_compiler_gnu+:} false; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586
3587 int
3588 main ()
3589 {
3590 #ifndef __GNUC__
3591 choke me
3592 #endif
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 if ac_fn_c_try_compile "$LINENO"; then :
3599 ac_compiler_gnu=yes
3600 else
3601 ac_compiler_gnu=no
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3605
3606 fi
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3608 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3609 if test $ac_compiler_gnu = yes; then
3610 GCC=yes
3611 else
3612 GCC=
3613 fi
3614 ac_test_CFLAGS=${CFLAGS+set}
3615 ac_save_CFLAGS=$CFLAGS
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3617 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3618 if ${ac_cv_prog_cc_g+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 ac_save_c_werror_flag=$ac_c_werror_flag
3622 ac_c_werror_flag=yes
3623 ac_cv_prog_cc_g=no
3624 CFLAGS="-g"
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3627
3628 int
3629 main ()
3630 {
3631
3632 ;
3633 return 0;
3634 }
3635 _ACEOF
3636 if ac_fn_c_try_compile "$LINENO"; then :
3637 ac_cv_prog_cc_g=yes
3638 else
3639 CFLAGS=""
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3642
3643 int
3644 main ()
3645 {
3646
3647 ;
3648 return 0;
3649 }
3650 _ACEOF
3651 if ac_fn_c_try_compile "$LINENO"; then :
3652
3653 else
3654 ac_c_werror_flag=$ac_save_c_werror_flag
3655 CFLAGS="-g"
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658
3659 int
3660 main ()
3661 {
3662
3663 ;
3664 return 0;
3665 }
3666 _ACEOF
3667 if ac_fn_c_try_compile "$LINENO"; then :
3668 ac_cv_prog_cc_g=yes
3669 fi
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 fi
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 fi
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 ac_c_werror_flag=$ac_save_c_werror_flag
3676 fi
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3678 $as_echo "$ac_cv_prog_cc_g" >&6; }
3679 if test "$ac_test_CFLAGS" = set; then
3680 CFLAGS=$ac_save_CFLAGS
3681 elif test $ac_cv_prog_cc_g = yes; then
3682 if test "$GCC" = yes; then
3683 CFLAGS="-g -O2"
3684 else
3685 CFLAGS="-g"
3686 fi
3687 else
3688 if test "$GCC" = yes; then
3689 CFLAGS="-O2"
3690 else
3691 CFLAGS=
3692 fi
3693 fi
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3695 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3696 if ${ac_cv_prog_cc_c89+:} false; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 ac_cv_prog_cc_c89=no
3700 ac_save_CC=$CC
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3703 #include <stdarg.h>
3704 #include <stdio.h>
3705 struct stat;
3706 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3707 struct buf { int x; };
3708 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3709 static char *e (p, i)
3710 char **p;
3711 int i;
3712 {
3713 return p[i];
3714 }
3715 static char *f (char * (*g) (char **, int), char **p, ...)
3716 {
3717 char *s;
3718 va_list v;
3719 va_start (v,p);
3720 s = g (p, va_arg (v,int));
3721 va_end (v);
3722 return s;
3723 }
3724
3725 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3726 function prototypes and stuff, but not '\xHH' hex character constants.
3727 These don't provoke an error unfortunately, instead are silently treated
3728 as 'x'. The following induces an error, until -std is added to get
3729 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3730 array size at least. It's necessary to write '\x00'==0 to get something
3731 that's true only with -std. */
3732 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3733
3734 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3735 inside strings and character constants. */
3736 #define FOO(x) 'x'
3737 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3738
3739 int test (int i, double x);
3740 struct s1 {int (*f) (int a);};
3741 struct s2 {int (*f) (double a);};
3742 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3743 int argc;
3744 char **argv;
3745 int
3746 main ()
3747 {
3748 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3754 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3755 do
3756 CC="$ac_save_CC $ac_arg"
3757 if ac_fn_c_try_compile "$LINENO"; then :
3758 ac_cv_prog_cc_c89=$ac_arg
3759 fi
3760 rm -f core conftest.err conftest.$ac_objext
3761 test "x$ac_cv_prog_cc_c89" != "xno" && break
3762 done
3763 rm -f conftest.$ac_ext
3764 CC=$ac_save_CC
3765
3766 fi
3767 # AC_CACHE_VAL
3768 case "x$ac_cv_prog_cc_c89" in
3769 x)
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3771 $as_echo "none needed" >&6; } ;;
3772 xno)
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3774 $as_echo "unsupported" >&6; } ;;
3775 *)
3776 CC="$CC $ac_cv_prog_cc_c89"
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3778 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3779 esac
3780 if test "x$ac_cv_prog_cc_c89" != xno; then :
3781
3782 fi
3783
3784 ac_ext=c
3785 ac_cpp='$CPP $CPPFLAGS'
3786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789 DEPDIR="${am__leading_dot}deps"
3790
3791 ac_config_commands="$ac_config_commands depfiles"
3792
3793
3794 am_make=${MAKE-make}
3795 cat > confinc << 'END'
3796 am__doit:
3797 @echo this is the am__doit target
3798 .PHONY: am__doit
3799 END
3800 # If we don't find an include directive, just comment out the code.
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3802 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3803 am__include="#"
3804 am__quote=
3805 _am_result=none
3806 # First try GNU make style include.
3807 echo "include confinc" > confmf
3808 # Ignore all kinds of additional output from `make'.
3809 case `$am_make -s -f confmf 2> /dev/null` in #(
3810 *the\ am__doit\ target*)
3811 am__include=include
3812 am__quote=
3813 _am_result=GNU
3814 ;;
3815 esac
3816 # Now try BSD make style include.
3817 if test "$am__include" = "#"; then
3818 echo '.include "confinc"' > confmf
3819 case `$am_make -s -f confmf 2> /dev/null` in #(
3820 *the\ am__doit\ target*)
3821 am__include=.include
3822 am__quote="\""
3823 _am_result=BSD
3824 ;;
3825 esac
3826 fi
3827
3828
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3830 $as_echo "$_am_result" >&6; }
3831 rm -f confinc confmf
3832
3833 # Check whether --enable-dependency-tracking was given.
3834 if test "${enable_dependency_tracking+set}" = set; then :
3835 enableval=$enable_dependency_tracking;
3836 fi
3837
3838 if test "x$enable_dependency_tracking" != xno; then
3839 am_depcomp="$ac_aux_dir/depcomp"
3840 AMDEPBACKSLASH='\'
3841 am__nodep='_no'
3842 fi
3843 if test "x$enable_dependency_tracking" != xno; then
3844 AMDEP_TRUE=
3845 AMDEP_FALSE='#'
3846 else
3847 AMDEP_TRUE='#'
3848 AMDEP_FALSE=
3849 fi
3850
3851
3852
3853 depcc="$CC" am_compiler_list=
3854
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3856 $as_echo_n "checking dependency style of $depcc... " >&6; }
3857 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3861 # We make a subdir and do the tests there. Otherwise we can end up
3862 # making bogus files that we don't know about and never remove. For
3863 # instance it was reported that on HP-UX the gcc test will end up
3864 # making a dummy file named `D' -- because `-MD' means `put the output
3865 # in D'.
3866 rm -rf conftest.dir
3867 mkdir conftest.dir
3868 # Copy depcomp to subdir because otherwise we won't find it if we're
3869 # using a relative directory.
3870 cp "$am_depcomp" conftest.dir
3871 cd conftest.dir
3872 # We will build objects and dependencies in a subdirectory because
3873 # it helps to detect inapplicable dependency modes. For instance
3874 # both Tru64's cc and ICC support -MD to output dependencies as a
3875 # side effect of compilation, but ICC will put the dependencies in
3876 # the current directory while Tru64 will put them in the object
3877 # directory.
3878 mkdir sub
3879
3880 am_cv_CC_dependencies_compiler_type=none
3881 if test "$am_compiler_list" = ""; then
3882 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3883 fi
3884 am__universal=false
3885 case " $depcc " in #(
3886 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3887 esac
3888
3889 for depmode in $am_compiler_list; do
3890 # Setup a source with many dependencies, because some compilers
3891 # like to wrap large dependency lists on column 80 (with \), and
3892 # we should not choose a depcomp mode which is confused by this.
3893 #
3894 # We need to recreate these files for each test, as the compiler may
3895 # overwrite some of them when testing with obscure command lines.
3896 # This happens at least with the AIX C compiler.
3897 : > sub/conftest.c
3898 for i in 1 2 3 4 5 6; do
3899 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3900 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3901 # Solaris 8's {/usr,}/bin/sh.
3902 touch sub/conftst$i.h
3903 done
3904 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3905
3906 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3907 # mode. It turns out that the SunPro C++ compiler does not properly
3908 # handle `-M -o', and we need to detect this. Also, some Intel
3909 # versions had trouble with output in subdirs
3910 am__obj=sub/conftest.${OBJEXT-o}
3911 am__minus_obj="-o $am__obj"
3912 case $depmode in
3913 gcc)
3914 # This depmode causes a compiler race in universal mode.
3915 test "$am__universal" = false || continue
3916 ;;
3917 nosideeffect)
3918 # after this tag, mechanisms are not by side-effect, so they'll
3919 # only be used when explicitly requested
3920 if test "x$enable_dependency_tracking" = xyes; then
3921 continue
3922 else
3923 break
3924 fi
3925 ;;
3926 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3927 # This compiler won't grok `-c -o', but also, the minuso test has
3928 # not run yet. These depmodes are late enough in the game, and
3929 # so weak that their functioning should not be impacted.
3930 am__obj=conftest.${OBJEXT-o}
3931 am__minus_obj=
3932 ;;
3933 none) break ;;
3934 esac
3935 if depmode=$depmode \
3936 source=sub/conftest.c object=$am__obj \
3937 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3938 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3939 >/dev/null 2>conftest.err &&
3940 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3941 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3942 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3943 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3944 # icc doesn't choke on unknown options, it will just issue warnings
3945 # or remarks (even with -Werror). So we grep stderr for any message
3946 # that says an option was ignored or not supported.
3947 # When given -MP, icc 7.0 and 7.1 complain thusly:
3948 # icc: Command line warning: ignoring option '-M'; no argument required
3949 # The diagnosis changed in icc 8.0:
3950 # icc: Command line remark: option '-MP' not supported
3951 if (grep 'ignoring option' conftest.err ||
3952 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3953 am_cv_CC_dependencies_compiler_type=$depmode
3954 break
3955 fi
3956 fi
3957 done
3958
3959 cd ..
3960 rm -rf conftest.dir
3961 else
3962 am_cv_CC_dependencies_compiler_type=none
3963 fi
3964
3965 fi
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3967 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3968 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3969
3970 if
3971 test "x$enable_dependency_tracking" != xno \
3972 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3973 am__fastdepCC_TRUE=
3974 am__fastdepCC_FALSE='#'
3975 else
3976 am__fastdepCC_TRUE='#'
3977 am__fastdepCC_FALSE=
3978 fi
3979
3980
3981 case `pwd` in
3982 *\ * | *\ *)
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3984 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3985 esac
3986
3987
3988
3989 macro_version='2.4.6'
3990 macro_revision='2.4.6'
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004 ltmain=$ac_aux_dir/ltmain.sh
4005
4006 # Make sure we can run config.sub.
4007 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4008 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4009
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4011 $as_echo_n "checking build system type... " >&6; }
4012 if ${ac_cv_build+:} false; then :
4013 $as_echo_n "(cached) " >&6
4014 else
4015 ac_build_alias=$build_alias
4016 test "x$ac_build_alias" = x &&
4017 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4018 test "x$ac_build_alias" = x &&
4019 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4020 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4021 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4022
4023 fi
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4025 $as_echo "$ac_cv_build" >&6; }
4026 case $ac_cv_build in
4027 *-*-*) ;;
4028 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4029 esac
4030 build=$ac_cv_build
4031 ac_save_IFS=$IFS; IFS='-'
4032 set x $ac_cv_build
4033 shift
4034 build_cpu=$1
4035 build_vendor=$2
4036 shift; shift
4037 # Remember, the first character of IFS is used to create $*,
4038 # except with old shells:
4039 build_os=$*
4040 IFS=$ac_save_IFS
4041 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4042
4043
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4045 $as_echo_n "checking host system type... " >&6; }
4046 if ${ac_cv_host+:} false; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 if test "x$host_alias" = x; then
4050 ac_cv_host=$ac_cv_build
4051 else
4052 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4053 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4054 fi
4055
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4058 $as_echo "$ac_cv_host" >&6; }
4059 case $ac_cv_host in
4060 *-*-*) ;;
4061 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4062 esac
4063 host=$ac_cv_host
4064 ac_save_IFS=$IFS; IFS='-'
4065 set x $ac_cv_host
4066 shift
4067 host_cpu=$1
4068 host_vendor=$2
4069 shift; shift
4070 # Remember, the first character of IFS is used to create $*,
4071 # except with old shells:
4072 host_os=$*
4073 IFS=$ac_save_IFS
4074 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4075
4076
4077 # Backslashify metacharacters that are still active within
4078 # double-quoted strings.
4079 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4080
4081 # Same as above, but do not quote variable references.
4082 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4083
4084 # Sed substitution to delay expansion of an escaped shell variable in a
4085 # double_quote_subst'ed string.
4086 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4087
4088 # Sed substitution to delay expansion of an escaped single quote.
4089 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4090
4091 # Sed substitution to avoid accidental globbing in evaled expressions
4092 no_glob_subst='s/\*/\\\*/g'
4093
4094 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4095 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4096 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4097
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4099 $as_echo_n "checking how to print strings... " >&6; }
4100 # Test print first, because it will be a builtin if present.
4101 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4102 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4103 ECHO='print -r --'
4104 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4105 ECHO='printf %s\n'
4106 else
4107 # Use this function as a fallback that always works.
4108 func_fallback_echo ()
4109 {
4110 eval 'cat <<_LTECHO_EOF
4111 $1
4112 _LTECHO_EOF'
4113 }
4114 ECHO='func_fallback_echo'
4115 fi
4116
4117 # func_echo_all arg...
4118 # Invoke $ECHO with all args, space-separated.
4119 func_echo_all ()
4120 {
4121 $ECHO ""
4122 }
4123
4124 case $ECHO in
4125 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4126 $as_echo "printf" >&6; } ;;
4127 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4128 $as_echo "print -r" >&6; } ;;
4129 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4130 $as_echo "cat" >&6; } ;;
4131 esac
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4147 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4148 if ${ac_cv_path_SED+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4152 for ac_i in 1 2 3 4 5 6 7; do
4153 ac_script="$ac_script$as_nl$ac_script"
4154 done
4155 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4156 { ac_script=; unset ac_script;}
4157 if test -z "$SED"; then
4158 ac_path_SED_found=false
4159 # Loop through the user's path and test for each of PROGNAME-LIST
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_prog in sed gsed; do
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4168 as_fn_executable_p "$ac_path_SED" || continue
4169 # Check for GNU ac_path_SED and select it if it is found.
4170 # Check for GNU $ac_path_SED
4171 case `"$ac_path_SED" --version 2>&1` in
4172 *GNU*)
4173 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4174 *)
4175 ac_count=0
4176 $as_echo_n 0123456789 >"conftest.in"
4177 while :
4178 do
4179 cat "conftest.in" "conftest.in" >"conftest.tmp"
4180 mv "conftest.tmp" "conftest.in"
4181 cp "conftest.in" "conftest.nl"
4182 $as_echo '' >> "conftest.nl"
4183 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185 as_fn_arith $ac_count + 1 && ac_count=$as_val
4186 if test $ac_count -gt ${ac_path_SED_max-0}; then
4187 # Best one so far, save it but keep looking for a better one
4188 ac_cv_path_SED="$ac_path_SED"
4189 ac_path_SED_max=$ac_count
4190 fi
4191 # 10*(2^10) chars as input seems more than enough
4192 test $ac_count -gt 10 && break
4193 done
4194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195 esac
4196
4197 $ac_path_SED_found && break 3
4198 done
4199 done
4200 done
4201 IFS=$as_save_IFS
4202 if test -z "$ac_cv_path_SED"; then
4203 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4204 fi
4205 else
4206 ac_cv_path_SED=$SED
4207 fi
4208
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4211 $as_echo "$ac_cv_path_SED" >&6; }
4212 SED="$ac_cv_path_SED"
4213 rm -f conftest.sed
4214
4215 test -z "$SED" && SED=sed
4216 Xsed="$SED -e 1s/^X//"
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4229 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4230 if ${ac_cv_path_GREP+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 if test -z "$GREP"; then
4234 ac_path_GREP_found=false
4235 # Loop through the user's path and test for each of PROGNAME-LIST
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4238 do
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_prog in grep ggrep; do
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4244 as_fn_executable_p "$ac_path_GREP" || continue
4245 # Check for GNU ac_path_GREP and select it if it is found.
4246 # Check for GNU $ac_path_GREP
4247 case `"$ac_path_GREP" --version 2>&1` in
4248 *GNU*)
4249 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4250 *)
4251 ac_count=0
4252 $as_echo_n 0123456789 >"conftest.in"
4253 while :
4254 do
4255 cat "conftest.in" "conftest.in" >"conftest.tmp"
4256 mv "conftest.tmp" "conftest.in"
4257 cp "conftest.in" "conftest.nl"
4258 $as_echo 'GREP' >> "conftest.nl"
4259 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4261 as_fn_arith $ac_count + 1 && ac_count=$as_val
4262 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4263 # Best one so far, save it but keep looking for a better one
4264 ac_cv_path_GREP="$ac_path_GREP"
4265 ac_path_GREP_max=$ac_count
4266 fi
4267 # 10*(2^10) chars as input seems more than enough
4268 test $ac_count -gt 10 && break
4269 done
4270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4271 esac
4272
4273 $ac_path_GREP_found && break 3
4274 done
4275 done
4276 done
4277 IFS=$as_save_IFS
4278 if test -z "$ac_cv_path_GREP"; then
4279 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4280 fi
4281 else
4282 ac_cv_path_GREP=$GREP
4283 fi
4284
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4287 $as_echo "$ac_cv_path_GREP" >&6; }
4288 GREP="$ac_cv_path_GREP"
4289
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4292 $as_echo_n "checking for egrep... " >&6; }
4293 if ${ac_cv_path_EGREP+:} false; then :
4294 $as_echo_n "(cached) " >&6
4295 else
4296 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4297 then ac_cv_path_EGREP="$GREP -E"
4298 else
4299 if test -z "$EGREP"; then
4300 ac_path_EGREP_found=false
4301 # Loop through the user's path and test for each of PROGNAME-LIST
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4304 do
4305 IFS=$as_save_IFS
4306 test -z "$as_dir" && as_dir=.
4307 for ac_prog in egrep; do
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4310 as_fn_executable_p "$ac_path_EGREP" || continue
4311 # Check for GNU ac_path_EGREP and select it if it is found.
4312 # Check for GNU $ac_path_EGREP
4313 case `"$ac_path_EGREP" --version 2>&1` in
4314 *GNU*)
4315 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4316 *)
4317 ac_count=0
4318 $as_echo_n 0123456789 >"conftest.in"
4319 while :
4320 do
4321 cat "conftest.in" "conftest.in" >"conftest.tmp"
4322 mv "conftest.tmp" "conftest.in"
4323 cp "conftest.in" "conftest.nl"
4324 $as_echo 'EGREP' >> "conftest.nl"
4325 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4326 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4327 as_fn_arith $ac_count + 1 && ac_count=$as_val
4328 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4329 # Best one so far, save it but keep looking for a better one
4330 ac_cv_path_EGREP="$ac_path_EGREP"
4331 ac_path_EGREP_max=$ac_count
4332 fi
4333 # 10*(2^10) chars as input seems more than enough
4334 test $ac_count -gt 10 && break
4335 done
4336 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4337 esac
4338
4339 $ac_path_EGREP_found && break 3
4340 done
4341 done
4342 done
4343 IFS=$as_save_IFS
4344 if test -z "$ac_cv_path_EGREP"; then
4345 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4346 fi
4347 else
4348 ac_cv_path_EGREP=$EGREP
4349 fi
4350
4351 fi
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4354 $as_echo "$ac_cv_path_EGREP" >&6; }
4355 EGREP="$ac_cv_path_EGREP"
4356
4357
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4359 $as_echo_n "checking for fgrep... " >&6; }
4360 if ${ac_cv_path_FGREP+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4364 then ac_cv_path_FGREP="$GREP -F"
4365 else
4366 if test -z "$FGREP"; then
4367 ac_path_FGREP_found=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_prog in fgrep; do
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4377 as_fn_executable_p "$ac_path_FGREP" || continue
4378 # Check for GNU ac_path_FGREP and select it if it is found.
4379 # Check for GNU $ac_path_FGREP
4380 case `"$ac_path_FGREP" --version 2>&1` in
4381 *GNU*)
4382 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4383 *)
4384 ac_count=0
4385 $as_echo_n 0123456789 >"conftest.in"
4386 while :
4387 do
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 $as_echo 'FGREP' >> "conftest.nl"
4392 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394 as_fn_arith $ac_count + 1 && ac_count=$as_val
4395 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_FGREP="$ac_path_FGREP"
4398 ac_path_FGREP_max=$ac_count
4399 fi
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4402 done
4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404 esac
4405
4406 $ac_path_FGREP_found && break 3
4407 done
4408 done
4409 done
4410 IFS=$as_save_IFS
4411 if test -z "$ac_cv_path_FGREP"; then
4412 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4413 fi
4414 else
4415 ac_cv_path_FGREP=$FGREP
4416 fi
4417
4418 fi
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4421 $as_echo "$ac_cv_path_FGREP" >&6; }
4422 FGREP="$ac_cv_path_FGREP"
4423
4424
4425 test -z "$GREP" && GREP=grep
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445 # Check whether --with-gnu-ld was given.
4446 if test "${with_gnu_ld+set}" = set; then :
4447 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4448 else
4449 with_gnu_ld=no
4450 fi
4451
4452 ac_prog=ld
4453 if test yes = "$GCC"; then
4454 # Check if gcc -print-prog-name=ld gives a path.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4456 $as_echo_n "checking for ld used by $CC... " >&6; }
4457 case $host in
4458 *-*-mingw*)
4459 # gcc leaves a trailing carriage return, which upsets mingw
4460 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4461 *)
4462 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4463 esac
4464 case $ac_prog in
4465 # Accept absolute paths.
4466 [\\/]* | ?:[\\/]*)
4467 re_direlt='/[^/][^/]*/\.\./'
4468 # Canonicalize the pathname of ld
4469 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4470 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4471 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4472 done
4473 test -z "$LD" && LD=$ac_prog
4474 ;;
4475 "")
4476 # If it fails, then pretend we aren't using GCC.
4477 ac_prog=ld
4478 ;;
4479 *)
4480 # If it is relative, then search for the first ld in PATH.
4481 with_gnu_ld=unknown
4482 ;;
4483 esac
4484 elif test yes = "$with_gnu_ld"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4486 $as_echo_n "checking for GNU ld... " >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4489 $as_echo_n "checking for non-GNU ld... " >&6; }
4490 fi
4491 if ${lt_cv_path_LD+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 if test -z "$LD"; then
4495 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4496 for ac_dir in $PATH; do
4497 IFS=$lt_save_ifs
4498 test -z "$ac_dir" && ac_dir=.
4499 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4500 lt_cv_path_LD=$ac_dir/$ac_prog
4501 # Check to see if the program is GNU ld. I'd rather use --version,
4502 # but apparently some variants of GNU ld only accept -v.
4503 # Break only if it was the GNU/non-GNU ld that we prefer.
4504 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4505 *GNU* | *'with BFD'*)
4506 test no != "$with_gnu_ld" && break
4507 ;;
4508 *)
4509 test yes != "$with_gnu_ld" && break
4510 ;;
4511 esac
4512 fi
4513 done
4514 IFS=$lt_save_ifs
4515 else
4516 lt_cv_path_LD=$LD # Let the user override the test with a path.
4517 fi
4518 fi
4519
4520 LD=$lt_cv_path_LD
4521 if test -n "$LD"; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4523 $as_echo "$LD" >&6; }
4524 else
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4526 $as_echo "no" >&6; }
4527 fi
4528 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4530 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4531 if ${lt_cv_prog_gnu_ld+:} false; then :
4532 $as_echo_n "(cached) " >&6
4533 else
4534 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4535 case `$LD -v 2>&1 </dev/null` in
4536 *GNU* | *'with BFD'*)
4537 lt_cv_prog_gnu_ld=yes
4538 ;;
4539 *)
4540 lt_cv_prog_gnu_ld=no
4541 ;;
4542 esac
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4545 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4546 with_gnu_ld=$lt_cv_prog_gnu_ld
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4557 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4558 if ${lt_cv_path_NM+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$NM"; then
4562 # Let the user override the test.
4563 lt_cv_path_NM=$NM
4564 else
4565 lt_nm_to_check=${ac_tool_prefix}nm
4566 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4567 lt_nm_to_check="$lt_nm_to_check nm"
4568 fi
4569 for lt_tmp_nm in $lt_nm_to_check; do
4570 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4571 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4572 IFS=$lt_save_ifs
4573 test -z "$ac_dir" && ac_dir=.
4574 tmp_nm=$ac_dir/$lt_tmp_nm
4575 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4576 # Check to see if the nm accepts a BSD-compat flag.
4577 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4578 # nm: unknown option "B" ignored
4579 # Tru64's nm complains that /dev/null is an invalid object file
4580 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4581 case $build_os in
4582 mingw*) lt_bad_file=conftest.nm/nofile ;;
4583 *) lt_bad_file=/dev/null ;;
4584 esac
4585 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4586 *$lt_bad_file* | *'Invalid file or object type'*)
4587 lt_cv_path_NM="$tmp_nm -B"
4588 break 2
4589 ;;
4590 *)
4591 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4592 */dev/null*)
4593 lt_cv_path_NM="$tmp_nm -p"
4594 break 2
4595 ;;
4596 *)
4597 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4598 continue # so that we can try to find one that supports BSD flags
4599 ;;
4600 esac
4601 ;;
4602 esac
4603 fi
4604 done
4605 IFS=$lt_save_ifs
4606 done
4607 : ${lt_cv_path_NM=no}
4608 fi
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4611 $as_echo "$lt_cv_path_NM" >&6; }
4612 if test no != "$lt_cv_path_NM"; then
4613 NM=$lt_cv_path_NM
4614 else
4615 # Didn't find any BSD compatible name lister, look for dumpbin.
4616 if test -n "$DUMPBIN"; then :
4617 # Let the user override the test.
4618 else
4619 if test -n "$ac_tool_prefix"; then
4620 for ac_prog in dumpbin "link -dump"
4621 do
4622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4623 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4625 $as_echo_n "checking for $ac_word... " >&6; }
4626 if ${ac_cv_prog_DUMPBIN+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 if test -n "$DUMPBIN"; then
4630 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4631 else
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4634 do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4642 fi
4643 done
4644 done
4645 IFS=$as_save_IFS
4646
4647 fi
4648 fi
4649 DUMPBIN=$ac_cv_prog_DUMPBIN
4650 if test -n "$DUMPBIN"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4652 $as_echo "$DUMPBIN" >&6; }
4653 else
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4656 fi
4657
4658
4659 test -n "$DUMPBIN" && break
4660 done
4661 fi
4662 if test -z "$DUMPBIN"; then
4663 ac_ct_DUMPBIN=$DUMPBIN
4664 for ac_prog in dumpbin "link -dump"
4665 do
4666 # Extract the first word of "$ac_prog", so it can be a program name with args.
4667 set dummy $ac_prog; ac_word=$2
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669 $as_echo_n "checking for $ac_word... " >&6; }
4670 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4671 $as_echo_n "(cached) " >&6
4672 else
4673 if test -n "$ac_ct_DUMPBIN"; then
4674 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4675 else
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4678 do
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4683 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 break 2
4686 fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691 fi
4692 fi
4693 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4694 if test -n "$ac_ct_DUMPBIN"; then
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4696 $as_echo "$ac_ct_DUMPBIN" >&6; }
4697 else
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699 $as_echo "no" >&6; }
4700 fi
4701
4702
4703 test -n "$ac_ct_DUMPBIN" && break
4704 done
4705
4706 if test "x$ac_ct_DUMPBIN" = x; then
4707 DUMPBIN=":"
4708 else
4709 case $cross_compiling:$ac_tool_warned in
4710 yes:)
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4713 ac_tool_warned=yes ;;
4714 esac
4715 DUMPBIN=$ac_ct_DUMPBIN
4716 fi
4717 fi
4718
4719 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4720 *COFF*)
4721 DUMPBIN="$DUMPBIN -symbols -headers"
4722 ;;
4723 *)
4724 DUMPBIN=:
4725 ;;
4726 esac
4727 fi
4728
4729 if test : != "$DUMPBIN"; then
4730 NM=$DUMPBIN
4731 fi
4732 fi
4733 test -z "$NM" && NM=nm
4734
4735
4736
4737
4738
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4741 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4742 if ${lt_cv_nm_interface+:} false; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 lt_cv_nm_interface="BSD nm"
4746 echo "int some_variable = 0;" > conftest.$ac_ext
4747 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4748 (eval "$ac_compile" 2>conftest.err)
4749 cat conftest.err >&5
4750 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4751 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4752 cat conftest.err >&5
4753 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4754 cat conftest.out >&5
4755 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4756 lt_cv_nm_interface="MS dumpbin"
4757 fi
4758 rm -f conftest*
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4761 $as_echo "$lt_cv_nm_interface" >&6; }
4762
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4764 $as_echo_n "checking whether ln -s works... " >&6; }
4765 LN_S=$as_ln_s
4766 if test "$LN_S" = "ln -s"; then
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4768 $as_echo "yes" >&6; }
4769 else
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4771 $as_echo "no, using $LN_S" >&6; }
4772 fi
4773
4774 # find the maximum length of command line arguments
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4776 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4777 if ${lt_cv_sys_max_cmd_len+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 i=0
4781 teststring=ABCD
4782
4783 case $build_os in
4784 msdosdjgpp*)
4785 # On DJGPP, this test can blow up pretty badly due to problems in libc
4786 # (any single argument exceeding 2000 bytes causes a buffer overrun
4787 # during glob expansion). Even if it were fixed, the result of this
4788 # check would be larger than it should be.
4789 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4790 ;;
4791
4792 gnu*)
4793 # Under GNU Hurd, this test is not required because there is
4794 # no limit to the length of command line arguments.
4795 # Libtool will interpret -1 as no limit whatsoever
4796 lt_cv_sys_max_cmd_len=-1;
4797 ;;
4798
4799 cygwin* | mingw* | cegcc*)
4800 # On Win9x/ME, this test blows up -- it succeeds, but takes
4801 # about 5 minutes as the teststring grows exponentially.
4802 # Worse, since 9x/ME are not pre-emptively multitasking,
4803 # you end up with a "frozen" computer, even though with patience
4804 # the test eventually succeeds (with a max line length of 256k).
4805 # Instead, let's just punt: use the minimum linelength reported by
4806 # all of the supported platforms: 8192 (on NT/2K/XP).
4807 lt_cv_sys_max_cmd_len=8192;
4808 ;;
4809
4810 mint*)
4811 # On MiNT this can take a long time and run out of memory.
4812 lt_cv_sys_max_cmd_len=8192;
4813 ;;
4814
4815 amigaos*)
4816 # On AmigaOS with pdksh, this test takes hours, literally.
4817 # So we just punt and use a minimum line length of 8192.
4818 lt_cv_sys_max_cmd_len=8192;
4819 ;;
4820
4821 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4822 # This has been around since 386BSD, at least. Likely further.
4823 if test -x /sbin/sysctl; then
4824 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4825 elif test -x /usr/sbin/sysctl; then
4826 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4827 else
4828 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4829 fi
4830 # And add a safety zone
4831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4833 ;;
4834
4835 interix*)
4836 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4837 lt_cv_sys_max_cmd_len=196608
4838 ;;
4839
4840 os2*)
4841 # The test takes a long time on OS/2.
4842 lt_cv_sys_max_cmd_len=8192
4843 ;;
4844
4845 osf*)
4846 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4847 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4848 # nice to cause kernel panics so lets avoid the loop below.
4849 # First set a reasonable default.
4850 lt_cv_sys_max_cmd_len=16384
4851 #
4852 if test -x /sbin/sysconfig; then
4853 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4854 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4855 esac
4856 fi
4857 ;;
4858 sco3.2v5*)
4859 lt_cv_sys_max_cmd_len=102400
4860 ;;
4861 sysv5* | sco5v6* | sysv4.2uw2*)
4862 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4863 if test -n "$kargmax"; then
4864 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4865 else
4866 lt_cv_sys_max_cmd_len=32768
4867 fi
4868 ;;
4869 *)
4870 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4871 if test -n "$lt_cv_sys_max_cmd_len" && \
4872 test undefined != "$lt_cv_sys_max_cmd_len"; then
4873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4875 else
4876 # Make teststring a little bigger before we do anything with it.
4877 # a 1K string should be a reasonable start.
4878 for i in 1 2 3 4 5 6 7 8; do
4879 teststring=$teststring$teststring
4880 done
4881 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4882 # If test is not a shell built-in, we'll probably end up computing a
4883 # maximum length that is only half of the actual maximum length, but
4884 # we can't tell.
4885 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4886 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4887 test 17 != "$i" # 1/2 MB should be enough
4888 do
4889 i=`expr $i + 1`
4890 teststring=$teststring$teststring
4891 done
4892 # Only check the string length outside the loop.
4893 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4894 teststring=
4895 # Add a significant safety factor because C++ compilers can tack on
4896 # massive amounts of additional arguments before passing them to the
4897 # linker. It appears as though 1/2 is a usable value.
4898 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4899 fi
4900 ;;
4901 esac
4902
4903 fi
4904
4905 if test -n "$lt_cv_sys_max_cmd_len"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4907 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4910 $as_echo "none" >&6; }
4911 fi
4912 max_cmd_len=$lt_cv_sys_max_cmd_len
4913
4914
4915
4916
4917
4918
4919 : ${CP="cp -f"}
4920 : ${MV="mv -f"}
4921 : ${RM="rm -f"}
4922
4923 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4924 lt_unset=unset
4925 else
4926 lt_unset=false
4927 fi
4928
4929
4930
4931
4932
4933 # test EBCDIC or ASCII
4934 case `echo X|tr X '\101'` in
4935 A) # ASCII based system
4936 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4937 lt_SP2NL='tr \040 \012'
4938 lt_NL2SP='tr \015\012 \040\040'
4939 ;;
4940 *) # EBCDIC based system
4941 lt_SP2NL='tr \100 \n'
4942 lt_NL2SP='tr \r\n \100\100'
4943 ;;
4944 esac
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4955 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4956 if ${lt_cv_to_host_file_cmd+:} false; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 case $host in
4960 *-*-mingw* )
4961 case $build in
4962 *-*-mingw* ) # actually msys
4963 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4964 ;;
4965 *-*-cygwin* )
4966 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4967 ;;
4968 * ) # otherwise, assume *nix
4969 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4970 ;;
4971 esac
4972 ;;
4973 *-*-cygwin* )
4974 case $build in
4975 *-*-mingw* ) # actually msys
4976 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4977 ;;
4978 *-*-cygwin* )
4979 lt_cv_to_host_file_cmd=func_convert_file_noop
4980 ;;
4981 * ) # otherwise, assume *nix
4982 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4983 ;;
4984 esac
4985 ;;
4986 * ) # unhandled hosts (and "normal" native builds)
4987 lt_cv_to_host_file_cmd=func_convert_file_noop
4988 ;;
4989 esac
4990
4991 fi
4992
4993 to_host_file_cmd=$lt_cv_to_host_file_cmd
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4995 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4996
4997
4998
4999
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5002 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5003 if ${lt_cv_to_tool_file_cmd+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 #assume ordinary cross tools, or native build.
5007 lt_cv_to_tool_file_cmd=func_convert_file_noop
5008 case $host in
5009 *-*-mingw* )
5010 case $build in
5011 *-*-mingw* ) # actually msys
5012 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5013 ;;
5014 esac
5015 ;;
5016 esac
5017
5018 fi
5019
5020 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5022 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5023
5024
5025
5026
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5029 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5030 if ${lt_cv_ld_reload_flag+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 lt_cv_ld_reload_flag='-r'
5034 fi
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5036 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5037 reload_flag=$lt_cv_ld_reload_flag
5038 case $reload_flag in
5039 "" | " "*) ;;
5040 *) reload_flag=" $reload_flag" ;;
5041 esac
5042 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5043 case $host_os in
5044 cygwin* | mingw* | pw32* | cegcc*)
5045 if test yes != "$GCC"; then
5046 reload_cmds=false
5047 fi
5048 ;;
5049 darwin*)
5050 if test yes = "$GCC"; then
5051 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5052 else
5053 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5054 fi
5055 ;;
5056 esac
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066 if test -n "$ac_tool_prefix"; then
5067 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5068 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 $as_echo_n "checking for $ac_word... " >&6; }
5071 if ${ac_cv_prog_OBJDUMP+:} false; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 if test -n "$OBJDUMP"; then
5075 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5087 fi
5088 done
5089 done
5090 IFS=$as_save_IFS
5091
5092 fi
5093 fi
5094 OBJDUMP=$ac_cv_prog_OBJDUMP
5095 if test -n "$OBJDUMP"; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5097 $as_echo "$OBJDUMP" >&6; }
5098 else
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101 fi
5102
5103
5104 fi
5105 if test -z "$ac_cv_prog_OBJDUMP"; then
5106 ac_ct_OBJDUMP=$OBJDUMP
5107 # Extract the first word of "objdump", so it can be a program name with args.
5108 set dummy objdump; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -n "$ac_ct_OBJDUMP"; then
5115 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5124 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5127 fi
5128 done
5129 done
5130 IFS=$as_save_IFS
5131
5132 fi
5133 fi
5134 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5135 if test -n "$ac_ct_OBJDUMP"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5137 $as_echo "$ac_ct_OBJDUMP" >&6; }
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5141 fi
5142
5143 if test "x$ac_ct_OBJDUMP" = x; then
5144 OBJDUMP="false"
5145 else
5146 case $cross_compiling:$ac_tool_warned in
5147 yes:)
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5150 ac_tool_warned=yes ;;
5151 esac
5152 OBJDUMP=$ac_ct_OBJDUMP
5153 fi
5154 else
5155 OBJDUMP="$ac_cv_prog_OBJDUMP"
5156 fi
5157
5158 test -z "$OBJDUMP" && OBJDUMP=objdump
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5169 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5170 if ${lt_cv_deplibs_check_method+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 lt_cv_file_magic_cmd='$MAGIC_CMD'
5174 lt_cv_file_magic_test_file=
5175 lt_cv_deplibs_check_method='unknown'
5176 # Need to set the preceding variable on all platforms that support
5177 # interlibrary dependencies.
5178 # 'none' -- dependencies not supported.
5179 # 'unknown' -- same as none, but documents that we really don't know.
5180 # 'pass_all' -- all dependencies passed with no checks.
5181 # 'test_compile' -- check by making test program.
5182 # 'file_magic [[regex]]' -- check by looking for files in library path
5183 # that responds to the $file_magic_cmd with a given extended regex.
5184 # If you have 'file' or equivalent on your system and you're not sure
5185 # whether 'pass_all' will *always* work, you probably want this one.
5186
5187 case $host_os in
5188 aix[4-9]*)
5189 lt_cv_deplibs_check_method=pass_all
5190 ;;
5191
5192 beos*)
5193 lt_cv_deplibs_check_method=pass_all
5194 ;;
5195
5196 bsdi[45]*)
5197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5198 lt_cv_file_magic_cmd='/usr/bin/file -L'
5199 lt_cv_file_magic_test_file=/shlib/libc.so
5200 ;;
5201
5202 cygwin*)
5203 # func_win32_libid is a shell function defined in ltmain.sh
5204 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5205 lt_cv_file_magic_cmd='func_win32_libid'
5206 ;;
5207
5208 mingw* | pw32*)
5209 # Base MSYS/MinGW do not provide the 'file' command needed by
5210 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5211 # unless we find 'file', for example because we are cross-compiling.
5212 if ( file / ) >/dev/null 2>&1; then
5213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5214 lt_cv_file_magic_cmd='func_win32_libid'
5215 else
5216 # Keep this pattern in sync with the one in func_win32_libid.
5217 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5218 lt_cv_file_magic_cmd='$OBJDUMP -f'
5219 fi
5220 ;;
5221
5222 cegcc*)
5223 # use the weaker test based on 'objdump'. See mingw*.
5224 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5225 lt_cv_file_magic_cmd='$OBJDUMP -f'
5226 ;;
5227
5228 darwin* | rhapsody*)
5229 lt_cv_deplibs_check_method=pass_all
5230 ;;
5231
5232 freebsd* | dragonfly*)
5233 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5234 case $host_cpu in
5235 i*86 )
5236 # Not sure whether the presence of OpenBSD here was a mistake.
5237 # Let's accept both of them until this is cleared up.
5238 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5239 lt_cv_file_magic_cmd=/usr/bin/file
5240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5241 ;;
5242 esac
5243 else
5244 lt_cv_deplibs_check_method=pass_all
5245 fi
5246 ;;
5247
5248 haiku*)
5249 lt_cv_deplibs_check_method=pass_all
5250 ;;
5251
5252 hpux10.20* | hpux11*)
5253 lt_cv_file_magic_cmd=/usr/bin/file
5254 case $host_cpu in
5255 ia64*)
5256 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5257 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5258 ;;
5259 hppa*64*)
5260 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]'
5261 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5262 ;;
5263 *)
5264 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5265 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5266 ;;
5267 esac
5268 ;;
5269
5270 interix[3-9]*)
5271 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5272 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5273 ;;
5274
5275 irix5* | irix6* | nonstopux*)
5276 case $LD in
5277 *-32|*"-32 ") libmagic=32-bit;;
5278 *-n32|*"-n32 ") libmagic=N32;;
5279 *-64|*"-64 ") libmagic=64-bit;;
5280 *) libmagic=never-match;;
5281 esac
5282 lt_cv_deplibs_check_method=pass_all
5283 ;;
5284
5285 # This must be glibc/ELF.
5286 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5287 lt_cv_deplibs_check_method=pass_all
5288 ;;
5289
5290 netbsd*)
5291 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5293 else
5294 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5295 fi
5296 ;;
5297
5298 newos6*)
5299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5300 lt_cv_file_magic_cmd=/usr/bin/file
5301 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5302 ;;
5303
5304 *nto* | *qnx*)
5305 lt_cv_deplibs_check_method=pass_all
5306 ;;
5307
5308 openbsd* | bitrig*)
5309 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5311 else
5312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5313 fi
5314 ;;
5315
5316 osf3* | osf4* | osf5*)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319
5320 rdos*)
5321 lt_cv_deplibs_check_method=pass_all
5322 ;;
5323
5324 solaris*)
5325 lt_cv_deplibs_check_method=pass_all
5326 ;;
5327
5328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331
5332 sysv4 | sysv4.3*)
5333 case $host_vendor in
5334 motorola)
5335 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]'
5336 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5337 ;;
5338 ncr)
5339 lt_cv_deplibs_check_method=pass_all
5340 ;;
5341 sequent)
5342 lt_cv_file_magic_cmd='/bin/file'
5343 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5344 ;;
5345 sni)
5346 lt_cv_file_magic_cmd='/bin/file'
5347 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5348 lt_cv_file_magic_test_file=/lib/libc.so
5349 ;;
5350 siemens)
5351 lt_cv_deplibs_check_method=pass_all
5352 ;;
5353 pc)
5354 lt_cv_deplibs_check_method=pass_all
5355 ;;
5356 esac
5357 ;;
5358
5359 tpf*)
5360 lt_cv_deplibs_check_method=pass_all
5361 ;;
5362 os2*)
5363 lt_cv_deplibs_check_method=pass_all
5364 ;;
5365 esac
5366
5367 fi
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5369 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5370
5371 file_magic_glob=
5372 want_nocaseglob=no
5373 if test "$build" = "$host"; then
5374 case $host_os in
5375 mingw* | pw32*)
5376 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5377 want_nocaseglob=yes
5378 else
5379 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5380 fi
5381 ;;
5382 esac
5383 fi
5384
5385 file_magic_cmd=$lt_cv_file_magic_cmd
5386 deplibs_check_method=$lt_cv_deplibs_check_method
5387 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410 if test -n "$ac_tool_prefix"; then
5411 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5412 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414 $as_echo_n "checking for $ac_word... " >&6; }
5415 if ${ac_cv_prog_DLLTOOL+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 if test -n "$DLLTOOL"; then
5419 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5420 else
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422 for as_dir in $PATH
5423 do
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 break 2
5431 fi
5432 done
5433 done
5434 IFS=$as_save_IFS
5435
5436 fi
5437 fi
5438 DLLTOOL=$ac_cv_prog_DLLTOOL
5439 if test -n "$DLLTOOL"; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5441 $as_echo "$DLLTOOL" >&6; }
5442 else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5445 fi
5446
5447
5448 fi
5449 if test -z "$ac_cv_prog_DLLTOOL"; then
5450 ac_ct_DLLTOOL=$DLLTOOL
5451 # Extract the first word of "dlltool", so it can be a program name with args.
5452 set dummy dlltool; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 if test -n "$ac_ct_DLLTOOL"; then
5459 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472 done
5473 done
5474 IFS=$as_save_IFS
5475
5476 fi
5477 fi
5478 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5479 if test -n "$ac_ct_DLLTOOL"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5481 $as_echo "$ac_ct_DLLTOOL" >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487 if test "x$ac_ct_DLLTOOL" = x; then
5488 DLLTOOL="false"
5489 else
5490 case $cross_compiling:$ac_tool_warned in
5491 yes:)
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494 ac_tool_warned=yes ;;
5495 esac
5496 DLLTOOL=$ac_ct_DLLTOOL
5497 fi
5498 else
5499 DLLTOOL="$ac_cv_prog_DLLTOOL"
5500 fi
5501
5502 test -z "$DLLTOOL" && DLLTOOL=dlltool
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5514 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5515 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5516 $as_echo_n "(cached) " >&6
5517 else
5518 lt_cv_sharedlib_from_linklib_cmd='unknown'
5519
5520 case $host_os in
5521 cygwin* | mingw* | pw32* | cegcc*)
5522 # two different shell functions defined in ltmain.sh;
5523 # decide which one to use based on capabilities of $DLLTOOL
5524 case `$DLLTOOL --help 2>&1` in
5525 *--identify-strict*)
5526 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5527 ;;
5528 *)
5529 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5530 ;;
5531 esac
5532 ;;
5533 *)
5534 # fallback: assume linklib IS sharedlib
5535 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5536 ;;
5537 esac
5538
5539 fi
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5541 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5542 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5543 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5544
5545
5546
5547
5548
5549
5550
5551
5552 if test -n "$ac_tool_prefix"; then
5553 for ac_prog in ar
5554 do
5555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_prog_AR+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 if test -n "$AR"; then
5563 ac_cv_prog_AR="$AR" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5575 fi
5576 done
5577 done
5578 IFS=$as_save_IFS
5579
5580 fi
5581 fi
5582 AR=$ac_cv_prog_AR
5583 if test -n "$AR"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5585 $as_echo "$AR" >&6; }
5586 else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5589 fi
5590
5591
5592 test -n "$AR" && break
5593 done
5594 fi
5595 if test -z "$AR"; then
5596 ac_ct_AR=$AR
5597 for ac_prog in ar
5598 do
5599 # Extract the first word of "$ac_prog", so it can be a program name with args.
5600 set dummy $ac_prog; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if test -n "$ac_ct_AR"; then
5607 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5611 do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_ac_ct_AR="$ac_prog"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620 done
5621 done
5622 IFS=$as_save_IFS
5623
5624 fi
5625 fi
5626 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5627 if test -n "$ac_ct_AR"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5629 $as_echo "$ac_ct_AR" >&6; }
5630 else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635
5636 test -n "$ac_ct_AR" && break
5637 done
5638
5639 if test "x$ac_ct_AR" = x; then
5640 AR="false"
5641 else
5642 case $cross_compiling:$ac_tool_warned in
5643 yes:)
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646 ac_tool_warned=yes ;;
5647 esac
5648 AR=$ac_ct_AR
5649 fi
5650 fi
5651
5652 : ${AR=ar}
5653 : ${AR_FLAGS=cru}
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5666 $as_echo_n "checking for archiver @FILE support... " >&6; }
5667 if ${lt_cv_ar_at_file+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 lt_cv_ar_at_file=no
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h. */
5673
5674 int
5675 main ()
5676 {
5677
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 if ac_fn_c_try_compile "$LINENO"; then :
5683 echo conftest.$ac_objext > conftest.lst
5684 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5686 (eval $lt_ar_try) 2>&5
5687 ac_status=$?
5688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5689 test $ac_status = 0; }
5690 if test 0 -eq "$ac_status"; then
5691 # Ensure the archiver fails upon bogus file names.
5692 rm -f conftest.$ac_objext libconftest.a
5693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5694 (eval $lt_ar_try) 2>&5
5695 ac_status=$?
5696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5697 test $ac_status = 0; }
5698 if test 0 -ne "$ac_status"; then
5699 lt_cv_ar_at_file=@
5700 fi
5701 fi
5702 rm -f conftest.* libconftest.a
5703
5704 fi
5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5709 $as_echo "$lt_cv_ar_at_file" >&6; }
5710
5711 if test no = "$lt_cv_ar_at_file"; then
5712 archiver_list_spec=
5713 else
5714 archiver_list_spec=$lt_cv_ar_at_file
5715 fi
5716
5717
5718
5719
5720
5721
5722
5723 if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}strip; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_STRIP+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -n "$STRIP"; then
5732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5744 fi
5745 done
5746 done
5747 IFS=$as_save_IFS
5748
5749 fi
5750 fi
5751 STRIP=$ac_cv_prog_STRIP
5752 if test -n "$STRIP"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5754 $as_echo "$STRIP" >&6; }
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759
5760
5761 fi
5762 if test -z "$ac_cv_prog_STRIP"; then
5763 ac_ct_STRIP=$STRIP
5764 # Extract the first word of "strip", so it can be a program name with args.
5765 set dummy strip; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 if test -n "$ac_ct_STRIP"; then
5772 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_ac_ct_STRIP="strip"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5784 fi
5785 done
5786 done
5787 IFS=$as_save_IFS
5788
5789 fi
5790 fi
5791 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5792 if test -n "$ac_ct_STRIP"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5794 $as_echo "$ac_ct_STRIP" >&6; }
5795 else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5798 fi
5799
5800 if test "x$ac_ct_STRIP" = x; then
5801 STRIP=":"
5802 else
5803 case $cross_compiling:$ac_tool_warned in
5804 yes:)
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5807 ac_tool_warned=yes ;;
5808 esac
5809 STRIP=$ac_ct_STRIP
5810 fi
5811 else
5812 STRIP="$ac_cv_prog_STRIP"
5813 fi
5814
5815 test -z "$STRIP" && STRIP=:
5816
5817
5818
5819
5820
5821
5822 if test -n "$ac_tool_prefix"; then
5823 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5824 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826 $as_echo_n "checking for $ac_word... " >&6; }
5827 if ${ac_cv_prog_RANLIB+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 if test -n "$RANLIB"; then
5831 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5843 fi
5844 done
5845 done
5846 IFS=$as_save_IFS
5847
5848 fi
5849 fi
5850 RANLIB=$ac_cv_prog_RANLIB
5851 if test -n "$RANLIB"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5853 $as_echo "$RANLIB" >&6; }
5854 else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5857 fi
5858
5859
5860 fi
5861 if test -z "$ac_cv_prog_RANLIB"; then
5862 ac_ct_RANLIB=$RANLIB
5863 # Extract the first word of "ranlib", so it can be a program name with args.
5864 set dummy ranlib; ac_word=$2
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866 $as_echo_n "checking for $ac_word... " >&6; }
5867 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5868 $as_echo_n "(cached) " >&6
5869 else
5870 if test -n "$ac_ct_RANLIB"; then
5871 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5872 else
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_ac_ct_RANLIB="ranlib"
5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 break 2
5883 fi
5884 done
5885 done
5886 IFS=$as_save_IFS
5887
5888 fi
5889 fi
5890 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5891 if test -n "$ac_ct_RANLIB"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5893 $as_echo "$ac_ct_RANLIB" >&6; }
5894 else
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 $as_echo "no" >&6; }
5897 fi
5898
5899 if test "x$ac_ct_RANLIB" = x; then
5900 RANLIB=":"
5901 else
5902 case $cross_compiling:$ac_tool_warned in
5903 yes:)
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5906 ac_tool_warned=yes ;;
5907 esac
5908 RANLIB=$ac_ct_RANLIB
5909 fi
5910 else
5911 RANLIB="$ac_cv_prog_RANLIB"
5912 fi
5913
5914 test -z "$RANLIB" && RANLIB=:
5915
5916
5917
5918
5919
5920
5921 # Determine commands to create old-style static archives.
5922 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5923 old_postinstall_cmds='chmod 644 $oldlib'
5924 old_postuninstall_cmds=
5925
5926 if test -n "$RANLIB"; then
5927 case $host_os in
5928 bitrig* | openbsd*)
5929 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5930 ;;
5931 *)
5932 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5933 ;;
5934 esac
5935 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5936 fi
5937
5938 case $host_os in
5939 darwin*)
5940 lock_old_archive_extraction=yes ;;
5941 *)
5942 lock_old_archive_extraction=no ;;
5943 esac
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983 # If no C compiler was specified, use CC.
5984 LTCC=${LTCC-"$CC"}
5985
5986 # If no C compiler flags were specified, use CFLAGS.
5987 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5988
5989 # Allow CC to be a program name with arguments.
5990 compiler=$CC
5991
5992
5993 # Check for command to grab the raw symbol name followed by C symbol from nm.
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5995 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5996 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999
6000 # These are sane defaults that work on at least a few old systems.
6001 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6002
6003 # Character class describing NM global symbol codes.
6004 symcode='[BCDEGRST]'
6005
6006 # Regexp to match symbols that can be accessed directly from C.
6007 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6008
6009 # Define system-specific variables.
6010 case $host_os in
6011 aix*)
6012 symcode='[BCDT]'
6013 ;;
6014 cygwin* | mingw* | pw32* | cegcc*)
6015 symcode='[ABCDGISTW]'
6016 ;;
6017 hpux*)
6018 if test ia64 = "$host_cpu"; then
6019 symcode='[ABCDEGRST]'
6020 fi
6021 ;;
6022 irix* | nonstopux*)
6023 symcode='[BCDEGRST]'
6024 ;;
6025 osf*)
6026 symcode='[BCDEGQRST]'
6027 ;;
6028 solaris*)
6029 symcode='[BDRT]'
6030 ;;
6031 sco3.2v5*)
6032 symcode='[DT]'
6033 ;;
6034 sysv4.2uw2*)
6035 symcode='[DT]'
6036 ;;
6037 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6038 symcode='[ABDT]'
6039 ;;
6040 sysv4)
6041 symcode='[DFNSTU]'
6042 ;;
6043 esac
6044
6045 # If we're using GNU nm, then use its standard symbol codes.
6046 case `$NM -V 2>&1` in
6047 *GNU* | *'with BFD'*)
6048 symcode='[ABCDGIRSTW]' ;;
6049 esac
6050
6051 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6052 # Gets list of data symbols to import.
6053 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6054 # Adjust the below global symbol transforms to fixup imported variables.
6055 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6056 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6057 lt_c_name_lib_hook="\
6058 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6059 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6060 else
6061 # Disable hooks by default.
6062 lt_cv_sys_global_symbol_to_import=
6063 lt_cdecl_hook=
6064 lt_c_name_hook=
6065 lt_c_name_lib_hook=
6066 fi
6067
6068 # Transform an extracted symbol line into a proper C declaration.
6069 # Some systems (esp. on ia64) link data and code symbols differently,
6070 # so use this general approach.
6071 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6072 $lt_cdecl_hook\
6073 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6074 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6075
6076 # Transform an extracted symbol line into symbol name and symbol address
6077 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6078 $lt_c_name_hook\
6079 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6080 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6081
6082 # Transform an extracted symbol line into symbol name with lib prefix and
6083 # symbol address.
6084 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6085 $lt_c_name_lib_hook\
6086 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6087 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6088 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6089
6090 # Handle CRLF in mingw tool chain
6091 opt_cr=
6092 case $build_os in
6093 mingw*)
6094 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6095 ;;
6096 esac
6097
6098 # Try without a prefix underscore, then with it.
6099 for ac_symprfx in "" "_"; do
6100
6101 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6102 symxfrm="\\1 $ac_symprfx\\2 \\2"
6103
6104 # Write the raw and C identifiers.
6105 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6106 # Fake it for dumpbin and say T for any non-static function,
6107 # D for any global variable and I for any imported variable.
6108 # Also find C++ and __fastcall symbols from MSVC++,
6109 # which start with @ or ?.
6110 lt_cv_sys_global_symbol_pipe="$AWK '"\
6111 " {last_section=section; section=\$ 3};"\
6112 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6113 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6114 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6115 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6116 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6117 " \$ 0!~/External *\|/{next};"\
6118 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6119 " {if(hide[section]) next};"\
6120 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6121 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6122 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6123 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6124 " ' prfx=^$ac_symprfx"
6125 else
6126 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6127 fi
6128 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6129
6130 # Check to see that the pipe works correctly.
6131 pipe_works=no
6132
6133 rm -f conftest*
6134 cat > conftest.$ac_ext <<_LT_EOF
6135 #ifdef __cplusplus
6136 extern "C" {
6137 #endif
6138 char nm_test_var;
6139 void nm_test_func(void);
6140 void nm_test_func(void){}
6141 #ifdef __cplusplus
6142 }
6143 #endif
6144 int main(){nm_test_var='a';nm_test_func();return(0);}
6145 _LT_EOF
6146
6147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6148 (eval $ac_compile) 2>&5
6149 ac_status=$?
6150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6151 test $ac_status = 0; }; then
6152 # Now try to grab the symbols.
6153 nlist=conftest.nm
6154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6155 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6156 ac_status=$?
6157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6158 test $ac_status = 0; } && test -s "$nlist"; then
6159 # Try sorting and uniquifying the output.
6160 if sort "$nlist" | uniq > "$nlist"T; then
6161 mv -f "$nlist"T "$nlist"
6162 else
6163 rm -f "$nlist"T
6164 fi
6165
6166 # Make sure that we snagged all the symbols we need.
6167 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6168 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6169 cat <<_LT_EOF > conftest.$ac_ext
6170 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6171 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6172 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6173 relocations are performed -- see ld's documentation on pseudo-relocs. */
6174 # define LT_DLSYM_CONST
6175 #elif defined __osf__
6176 /* This system does not cope well with relocations in const data. */
6177 # define LT_DLSYM_CONST
6178 #else
6179 # define LT_DLSYM_CONST const
6180 #endif
6181
6182 #ifdef __cplusplus
6183 extern "C" {
6184 #endif
6185
6186 _LT_EOF
6187 # Now generate the symbol file.
6188 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6189
6190 cat <<_LT_EOF >> conftest.$ac_ext
6191
6192 /* The mapping between symbol names and symbols. */
6193 LT_DLSYM_CONST struct {
6194 const char *name;
6195 void *address;
6196 }
6197 lt__PROGRAM__LTX_preloaded_symbols[] =
6198 {
6199 { "@PROGRAM@", (void *) 0 },
6200 _LT_EOF
6201 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6202 cat <<\_LT_EOF >> conftest.$ac_ext
6203 {0, (void *) 0}
6204 };
6205
6206 /* This works around a problem in FreeBSD linker */
6207 #ifdef FREEBSD_WORKAROUND
6208 static const void *lt_preloaded_setup() {
6209 return lt__PROGRAM__LTX_preloaded_symbols;
6210 }
6211 #endif
6212
6213 #ifdef __cplusplus
6214 }
6215 #endif
6216 _LT_EOF
6217 # Now try linking the two files.
6218 mv conftest.$ac_objext conftstm.$ac_objext
6219 lt_globsym_save_LIBS=$LIBS
6220 lt_globsym_save_CFLAGS=$CFLAGS
6221 LIBS=conftstm.$ac_objext
6222 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6224 (eval $ac_link) 2>&5
6225 ac_status=$?
6226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6227 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6228 pipe_works=yes
6229 fi
6230 LIBS=$lt_globsym_save_LIBS
6231 CFLAGS=$lt_globsym_save_CFLAGS
6232 else
6233 echo "cannot find nm_test_func in $nlist" >&5
6234 fi
6235 else
6236 echo "cannot find nm_test_var in $nlist" >&5
6237 fi
6238 else
6239 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6240 fi
6241 else
6242 echo "$progname: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6244 fi
6245 rm -rf conftest* conftst*
6246
6247 # Do not use the global_symbol_pipe unless it works.
6248 if test yes = "$pipe_works"; then
6249 break
6250 else
6251 lt_cv_sys_global_symbol_pipe=
6252 fi
6253 done
6254
6255 fi
6256
6257 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6258 lt_cv_sys_global_symbol_to_cdecl=
6259 fi
6260 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6262 $as_echo "failed" >&6; }
6263 else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6265 $as_echo "ok" >&6; }
6266 fi
6267
6268 # Response file support.
6269 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6270 nm_file_list_spec='@'
6271 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6272 nm_file_list_spec='@'
6273 fi
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6312 $as_echo_n "checking for sysroot... " >&6; }
6313
6314 # Check whether --with-sysroot was given.
6315 if test "${with_sysroot+set}" = set; then :
6316 withval=$with_sysroot;
6317 else
6318 with_sysroot=no
6319 fi
6320
6321
6322 lt_sysroot=
6323 case $with_sysroot in #(
6324 yes)
6325 if test yes = "$GCC"; then
6326 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6327 fi
6328 ;; #(
6329 /*)
6330 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6331 ;; #(
6332 no|'')
6333 ;; #(
6334 *)
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6336 $as_echo "$with_sysroot" >&6; }
6337 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6338 ;;
6339 esac
6340
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6342 $as_echo "${lt_sysroot:-no}" >&6; }
6343
6344
6345
6346
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6349 $as_echo_n "checking for a working dd... " >&6; }
6350 if ${ac_cv_path_lt_DD+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 printf 0123456789abcdef0123456789abcdef >conftest.i
6354 cat conftest.i conftest.i >conftest2.i
6355 : ${lt_DD:=$DD}
6356 if test -z "$lt_DD"; then
6357 ac_path_lt_DD_found=false
6358 # Loop through the user's path and test for each of PROGNAME-LIST
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_prog in dd; do
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6367 as_fn_executable_p "$ac_path_lt_DD" || continue
6368 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6369 cmp -s conftest.i conftest.out \
6370 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6371 fi
6372 $ac_path_lt_DD_found && break 3
6373 done
6374 done
6375 done
6376 IFS=$as_save_IFS
6377 if test -z "$ac_cv_path_lt_DD"; then
6378 :
6379 fi
6380 else
6381 ac_cv_path_lt_DD=$lt_DD
6382 fi
6383
6384 rm -f conftest.i conftest2.i conftest.out
6385 fi
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6387 $as_echo "$ac_cv_path_lt_DD" >&6; }
6388
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6391 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6392 if ${lt_cv_truncate_bin+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 printf 0123456789abcdef0123456789abcdef >conftest.i
6396 cat conftest.i conftest.i >conftest2.i
6397 lt_cv_truncate_bin=
6398 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6399 cmp -s conftest.i conftest.out \
6400 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6401 fi
6402 rm -f conftest.i conftest2.i conftest.out
6403 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6404 fi
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6406 $as_echo "$lt_cv_truncate_bin" >&6; }
6407
6408
6409
6410
6411
6412
6413
6414 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6415 func_cc_basename ()
6416 {
6417 for cc_temp in $*""; do
6418 case $cc_temp in
6419 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6420 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6421 \-*) ;;
6422 *) break;;
6423 esac
6424 done
6425 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6426 }
6427
6428 # Check whether --enable-libtool-lock was given.
6429 if test "${enable_libtool_lock+set}" = set; then :
6430 enableval=$enable_libtool_lock;
6431 fi
6432
6433 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6434
6435 # Some flags need to be propagated to the compiler or linker for good
6436 # libtool support.
6437 case $host in
6438 ia64-*-hpux*)
6439 # Find out what ABI is being produced by ac_compile, and set mode
6440 # options accordingly.
6441 echo 'int i;' > conftest.$ac_ext
6442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6443 (eval $ac_compile) 2>&5
6444 ac_status=$?
6445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; }; then
6447 case `/usr/bin/file conftest.$ac_objext` in
6448 *ELF-32*)
6449 HPUX_IA64_MODE=32
6450 ;;
6451 *ELF-64*)
6452 HPUX_IA64_MODE=64
6453 ;;
6454 esac
6455 fi
6456 rm -rf conftest*
6457 ;;
6458 *-*-irix6*)
6459 # Find out what ABI is being produced by ac_compile, and set linker
6460 # options accordingly.
6461 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463 (eval $ac_compile) 2>&5
6464 ac_status=$?
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; }; then
6467 if test yes = "$lt_cv_prog_gnu_ld"; then
6468 case `/usr/bin/file conftest.$ac_objext` in
6469 *32-bit*)
6470 LD="${LD-ld} -melf32bsmip"
6471 ;;
6472 *N32*)
6473 LD="${LD-ld} -melf32bmipn32"
6474 ;;
6475 *64-bit*)
6476 LD="${LD-ld} -melf64bmip"
6477 ;;
6478 esac
6479 else
6480 case `/usr/bin/file conftest.$ac_objext` in
6481 *32-bit*)
6482 LD="${LD-ld} -32"
6483 ;;
6484 *N32*)
6485 LD="${LD-ld} -n32"
6486 ;;
6487 *64-bit*)
6488 LD="${LD-ld} -64"
6489 ;;
6490 esac
6491 fi
6492 fi
6493 rm -rf conftest*
6494 ;;
6495
6496 mips64*-*linux*)
6497 # Find out what ABI is being produced by ac_compile, and set linker
6498 # options accordingly.
6499 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6501 (eval $ac_compile) 2>&5
6502 ac_status=$?
6503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6504 test $ac_status = 0; }; then
6505 emul=elf
6506 case `/usr/bin/file conftest.$ac_objext` in
6507 *32-bit*)
6508 emul="${emul}32"
6509 ;;
6510 *64-bit*)
6511 emul="${emul}64"
6512 ;;
6513 esac
6514 case `/usr/bin/file conftest.$ac_objext` in
6515 *MSB*)
6516 emul="${emul}btsmip"
6517 ;;
6518 *LSB*)
6519 emul="${emul}ltsmip"
6520 ;;
6521 esac
6522 case `/usr/bin/file conftest.$ac_objext` in
6523 *N32*)
6524 emul="${emul}n32"
6525 ;;
6526 esac
6527 LD="${LD-ld} -m $emul"
6528 fi
6529 rm -rf conftest*
6530 ;;
6531
6532 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6533 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6534 # Find out what ABI is being produced by ac_compile, and set linker
6535 # options accordingly. Note that the listed cases only cover the
6536 # situations where additional linker options are needed (such as when
6537 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6538 # vice versa); the common cases where no linker options are needed do
6539 # not appear in the list.
6540 echo 'int i;' > conftest.$ac_ext
6541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6542 (eval $ac_compile) 2>&5
6543 ac_status=$?
6544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545 test $ac_status = 0; }; then
6546 case `/usr/bin/file conftest.o` in
6547 *32-bit*)
6548 case $host in
6549 x86_64-*kfreebsd*-gnu)
6550 LD="${LD-ld} -m elf_i386_fbsd"
6551 ;;
6552 x86_64-*linux*)
6553 case `/usr/bin/file conftest.o` in
6554 *x86-64*)
6555 LD="${LD-ld} -m elf32_x86_64"
6556 ;;
6557 *)
6558 LD="${LD-ld} -m elf_i386"
6559 ;;
6560 esac
6561 ;;
6562 powerpc64le-*linux*)
6563 LD="${LD-ld} -m elf32lppclinux"
6564 ;;
6565 powerpc64-*linux*)
6566 LD="${LD-ld} -m elf32ppclinux"
6567 ;;
6568 s390x-*linux*)
6569 LD="${LD-ld} -m elf_s390"
6570 ;;
6571 sparc64-*linux*)
6572 LD="${LD-ld} -m elf32_sparc"
6573 ;;
6574 esac
6575 ;;
6576 *64-bit*)
6577 case $host in
6578 x86_64-*kfreebsd*-gnu)
6579 LD="${LD-ld} -m elf_x86_64_fbsd"
6580 ;;
6581 x86_64-*linux*)
6582 LD="${LD-ld} -m elf_x86_64"
6583 ;;
6584 powerpcle-*linux*)
6585 LD="${LD-ld} -m elf64lppc"
6586 ;;
6587 powerpc-*linux*)
6588 LD="${LD-ld} -m elf64ppc"
6589 ;;
6590 s390*-*linux*|s390*-*tpf*)
6591 LD="${LD-ld} -m elf64_s390"
6592 ;;
6593 sparc*-*linux*)
6594 LD="${LD-ld} -m elf64_sparc"
6595 ;;
6596 esac
6597 ;;
6598 esac
6599 fi
6600 rm -rf conftest*
6601 ;;
6602
6603 *-*-sco3.2v5*)
6604 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6605 SAVE_CFLAGS=$CFLAGS
6606 CFLAGS="$CFLAGS -belf"
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6608 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6609 if ${lt_cv_cc_needs_belf+:} false; then :
6610 $as_echo_n "(cached) " >&6
6611 else
6612 ac_ext=c
6613 ac_cpp='$CPP $CPPFLAGS'
6614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6617
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6620
6621 int
6622 main ()
6623 {
6624
6625 ;
6626 return 0;
6627 }
6628 _ACEOF
6629 if ac_fn_c_try_link "$LINENO"; then :
6630 lt_cv_cc_needs_belf=yes
6631 else
6632 lt_cv_cc_needs_belf=no
6633 fi
6634 rm -f core conftest.err conftest.$ac_objext \
6635 conftest$ac_exeext conftest.$ac_ext
6636 ac_ext=c
6637 ac_cpp='$CPP $CPPFLAGS'
6638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6641
6642 fi
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6644 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6645 if test yes != "$lt_cv_cc_needs_belf"; then
6646 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6647 CFLAGS=$SAVE_CFLAGS
6648 fi
6649 ;;
6650 *-*solaris*)
6651 # Find out what ABI is being produced by ac_compile, and set linker
6652 # options accordingly.
6653 echo 'int i;' > conftest.$ac_ext
6654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6655 (eval $ac_compile) 2>&5
6656 ac_status=$?
6657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6658 test $ac_status = 0; }; then
6659 case `/usr/bin/file conftest.o` in
6660 *64-bit*)
6661 case $lt_cv_prog_gnu_ld in
6662 yes*)
6663 case $host in
6664 i?86-*-solaris*|x86_64-*-solaris*)
6665 LD="${LD-ld} -m elf_x86_64"
6666 ;;
6667 sparc*-*-solaris*)
6668 LD="${LD-ld} -m elf64_sparc"
6669 ;;
6670 esac
6671 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6672 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6673 LD=${LD-ld}_sol2
6674 fi
6675 ;;
6676 *)
6677 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6678 LD="${LD-ld} -64"
6679 fi
6680 ;;
6681 esac
6682 ;;
6683 esac
6684 fi
6685 rm -rf conftest*
6686 ;;
6687 esac
6688
6689 need_locks=$enable_libtool_lock
6690
6691 if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6693 set dummy ${ac_tool_prefix}mt; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 if test -n "$MANIFEST_TOOL"; then
6700 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6720 if test -n "$MANIFEST_TOOL"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6722 $as_echo "$MANIFEST_TOOL" >&6; }
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728
6729 fi
6730 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6731 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6732 # Extract the first word of "mt", so it can be a program name with args.
6733 set dummy mt; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$ac_ct_MANIFEST_TOOL"; then
6740 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6760 if test -n "$ac_ct_MANIFEST_TOOL"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6762 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6769 MANIFEST_TOOL=":"
6770 else
6771 case $cross_compiling:$ac_tool_warned in
6772 yes:)
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775 ac_tool_warned=yes ;;
6776 esac
6777 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6778 fi
6779 else
6780 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6781 fi
6782
6783 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6785 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6786 if ${lt_cv_path_mainfest_tool+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 lt_cv_path_mainfest_tool=no
6790 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6791 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6792 cat conftest.err >&5
6793 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6794 lt_cv_path_mainfest_tool=yes
6795 fi
6796 rm -f conftest*
6797 fi
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6799 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6800 if test yes != "$lt_cv_path_mainfest_tool"; then
6801 MANIFEST_TOOL=:
6802 fi
6803
6804
6805
6806
6807
6808
6809 case $host_os in
6810 rhapsody* | darwin*)
6811 if test -n "$ac_tool_prefix"; then
6812 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 if test -n "$DSYMUTIL"; then
6820 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6840 if test -n "$DSYMUTIL"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6842 $as_echo "$DSYMUTIL" >&6; }
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847
6848
6849 fi
6850 if test -z "$ac_cv_prog_DSYMUTIL"; then
6851 ac_ct_DSYMUTIL=$DSYMUTIL
6852 # Extract the first word of "dsymutil", so it can be a program name with args.
6853 set dummy dsymutil; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 if test -n "$ac_ct_DSYMUTIL"; then
6860 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6880 if test -n "$ac_ct_DSYMUTIL"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6882 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6883 else
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6886 fi
6887
6888 if test "x$ac_ct_DSYMUTIL" = x; then
6889 DSYMUTIL=":"
6890 else
6891 case $cross_compiling:$ac_tool_warned in
6892 yes:)
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6895 ac_tool_warned=yes ;;
6896 esac
6897 DSYMUTIL=$ac_ct_DSYMUTIL
6898 fi
6899 else
6900 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6901 fi
6902
6903 if test -n "$ac_tool_prefix"; then
6904 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6905 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_NMEDIT+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 if test -n "$NMEDIT"; then
6912 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6924 fi
6925 done
6926 done
6927 IFS=$as_save_IFS
6928
6929 fi
6930 fi
6931 NMEDIT=$ac_cv_prog_NMEDIT
6932 if test -n "$NMEDIT"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6934 $as_echo "$NMEDIT" >&6; }
6935 else
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939
6940
6941 fi
6942 if test -z "$ac_cv_prog_NMEDIT"; then
6943 ac_ct_NMEDIT=$NMEDIT
6944 # Extract the first word of "nmedit", so it can be a program name with args.
6945 set dummy nmedit; ac_word=$2
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 $as_echo_n "checking for $ac_word... " >&6; }
6948 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 if test -n "$ac_ct_NMEDIT"; then
6952 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6953 else
6954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955 for as_dir in $PATH
6956 do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6964 fi
6965 done
6966 done
6967 IFS=$as_save_IFS
6968
6969 fi
6970 fi
6971 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6972 if test -n "$ac_ct_NMEDIT"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6974 $as_echo "$ac_ct_NMEDIT" >&6; }
6975 else
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 $as_echo "no" >&6; }
6978 fi
6979
6980 if test "x$ac_ct_NMEDIT" = x; then
6981 NMEDIT=":"
6982 else
6983 case $cross_compiling:$ac_tool_warned in
6984 yes:)
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987 ac_tool_warned=yes ;;
6988 esac
6989 NMEDIT=$ac_ct_NMEDIT
6990 fi
6991 else
6992 NMEDIT="$ac_cv_prog_NMEDIT"
6993 fi
6994
6995 if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_LIPO+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 if test -n "$LIPO"; then
7004 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 LIPO=$ac_cv_prog_LIPO
7024 if test -n "$LIPO"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7026 $as_echo "$LIPO" >&6; }
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031
7032
7033 fi
7034 if test -z "$ac_cv_prog_LIPO"; then
7035 ac_ct_LIPO=$LIPO
7036 # Extract the first word of "lipo", so it can be a program name with args.
7037 set dummy lipo; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 if test -n "$ac_ct_LIPO"; then
7044 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_ac_ct_LIPO="lipo"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061 fi
7062 fi
7063 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7064 if test -n "$ac_ct_LIPO"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7066 $as_echo "$ac_ct_LIPO" >&6; }
7067 else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070 fi
7071
7072 if test "x$ac_ct_LIPO" = x; then
7073 LIPO=":"
7074 else
7075 case $cross_compiling:$ac_tool_warned in
7076 yes:)
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079 ac_tool_warned=yes ;;
7080 esac
7081 LIPO=$ac_ct_LIPO
7082 fi
7083 else
7084 LIPO="$ac_cv_prog_LIPO"
7085 fi
7086
7087 if test -n "$ac_tool_prefix"; then
7088 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7089 set dummy ${ac_tool_prefix}otool; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_OTOOL+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 if test -n "$OTOOL"; then
7096 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7112
7113 fi
7114 fi
7115 OTOOL=$ac_cv_prog_OTOOL
7116 if test -n "$OTOOL"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7118 $as_echo "$OTOOL" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7122 fi
7123
7124
7125 fi
7126 if test -z "$ac_cv_prog_OTOOL"; then
7127 ac_ct_OTOOL=$OTOOL
7128 # Extract the first word of "otool", so it can be a program name with args.
7129 set dummy otool; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 if test -n "$ac_ct_OTOOL"; then
7136 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_ac_ct_OTOOL="otool"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149 done
7150 done
7151 IFS=$as_save_IFS
7152
7153 fi
7154 fi
7155 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7156 if test -n "$ac_ct_OTOOL"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7158 $as_echo "$ac_ct_OTOOL" >&6; }
7159 else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7162 fi
7163
7164 if test "x$ac_ct_OTOOL" = x; then
7165 OTOOL=":"
7166 else
7167 case $cross_compiling:$ac_tool_warned in
7168 yes:)
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7171 ac_tool_warned=yes ;;
7172 esac
7173 OTOOL=$ac_ct_OTOOL
7174 fi
7175 else
7176 OTOOL="$ac_cv_prog_OTOOL"
7177 fi
7178
7179 if test -n "$ac_tool_prefix"; then
7180 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7181 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_OTOOL64+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 if test -n "$OTOOL64"; then
7188 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7200 fi
7201 done
7202 done
7203 IFS=$as_save_IFS
7204
7205 fi
7206 fi
7207 OTOOL64=$ac_cv_prog_OTOOL64
7208 if test -n "$OTOOL64"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7210 $as_echo "$OTOOL64" >&6; }
7211 else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7214 fi
7215
7216
7217 fi
7218 if test -z "$ac_cv_prog_OTOOL64"; then
7219 ac_ct_OTOOL64=$OTOOL64
7220 # Extract the first word of "otool64", so it can be a program name with args.
7221 set dummy otool64; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 if test -n "$ac_ct_OTOOL64"; then
7228 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7232 do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_ac_ct_OTOOL64="otool64"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7240 fi
7241 done
7242 done
7243 IFS=$as_save_IFS
7244
7245 fi
7246 fi
7247 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7248 if test -n "$ac_ct_OTOOL64"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7250 $as_echo "$ac_ct_OTOOL64" >&6; }
7251 else
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7254 fi
7255
7256 if test "x$ac_ct_OTOOL64" = x; then
7257 OTOOL64=":"
7258 else
7259 case $cross_compiling:$ac_tool_warned in
7260 yes:)
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned=yes ;;
7264 esac
7265 OTOOL64=$ac_ct_OTOOL64
7266 fi
7267 else
7268 OTOOL64="$ac_cv_prog_OTOOL64"
7269 fi
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7298 $as_echo_n "checking for -single_module linker flag... " >&6; }
7299 if ${lt_cv_apple_cc_single_mod+:} false; then :
7300 $as_echo_n "(cached) " >&6
7301 else
7302 lt_cv_apple_cc_single_mod=no
7303 if test -z "$LT_MULTI_MODULE"; then
7304 # By default we will add the -single_module flag. You can override
7305 # by either setting the environment variable LT_MULTI_MODULE
7306 # non-empty at configure time, or by adding -multi_module to the
7307 # link flags.
7308 rm -rf libconftest.dylib*
7309 echo "int foo(void){return 1;}" > conftest.c
7310 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7311 -dynamiclib -Wl,-single_module conftest.c" >&5
7312 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7313 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7314 _lt_result=$?
7315 # If there is a non-empty error log, and "single_module"
7316 # appears in it, assume the flag caused a linker warning
7317 if test -s conftest.err && $GREP single_module conftest.err; then
7318 cat conftest.err >&5
7319 # Otherwise, if the output was created with a 0 exit code from
7320 # the compiler, it worked.
7321 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7322 lt_cv_apple_cc_single_mod=yes
7323 else
7324 cat conftest.err >&5
7325 fi
7326 rm -rf libconftest.dylib*
7327 rm -f conftest.*
7328 fi
7329 fi
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7331 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7332
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7334 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7335 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7338 lt_cv_ld_exported_symbols_list=no
7339 save_LDFLAGS=$LDFLAGS
7340 echo "_main" > conftest.sym
7341 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344
7345 int
7346 main ()
7347 {
7348
7349 ;
7350 return 0;
7351 }
7352 _ACEOF
7353 if ac_fn_c_try_link "$LINENO"; then :
7354 lt_cv_ld_exported_symbols_list=yes
7355 else
7356 lt_cv_ld_exported_symbols_list=no
7357 fi
7358 rm -f core conftest.err conftest.$ac_objext \
7359 conftest$ac_exeext conftest.$ac_ext
7360 LDFLAGS=$save_LDFLAGS
7361
7362 fi
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7364 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7365
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7367 $as_echo_n "checking for -force_load linker flag... " >&6; }
7368 if ${lt_cv_ld_force_load+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 lt_cv_ld_force_load=no
7372 cat > conftest.c << _LT_EOF
7373 int forced_loaded() { return 2;}
7374 _LT_EOF
7375 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7376 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7377 echo "$AR cru libconftest.a conftest.o" >&5
7378 $AR cru libconftest.a conftest.o 2>&5
7379 echo "$RANLIB libconftest.a" >&5
7380 $RANLIB libconftest.a 2>&5
7381 cat > conftest.c << _LT_EOF
7382 int main() { return 0;}
7383 _LT_EOF
7384 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7385 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7386 _lt_result=$?
7387 if test -s conftest.err && $GREP force_load conftest.err; then
7388 cat conftest.err >&5
7389 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7390 lt_cv_ld_force_load=yes
7391 else
7392 cat conftest.err >&5
7393 fi
7394 rm -f conftest.err libconftest.a conftest conftest.c
7395 rm -rf conftest.dSYM
7396
7397 fi
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7399 $as_echo "$lt_cv_ld_force_load" >&6; }
7400 case $host_os in
7401 rhapsody* | darwin1.[012])
7402 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7403 darwin1.*)
7404 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7405 darwin*) # darwin 5.x on
7406 # if running on 10.5 or later, the deployment target defaults
7407 # to the OS version, if on x86, and 10.4, the deployment
7408 # target defaults to 10.4. Don't you love it?
7409 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7410 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7411 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7412 10.[012][,.]*)
7413 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7414 10.*)
7415 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7416 esac
7417 ;;
7418 esac
7419 if test yes = "$lt_cv_apple_cc_single_mod"; then
7420 _lt_dar_single_mod='$single_module'
7421 fi
7422 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7423 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7424 else
7425 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7426 fi
7427 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7428 _lt_dsymutil='~$DSYMUTIL $lib || :'
7429 else
7430 _lt_dsymutil=
7431 fi
7432 ;;
7433 esac
7434
7435 # func_munge_path_list VARIABLE PATH
7436 # -----------------------------------
7437 # VARIABLE is name of variable containing _space_ separated list of
7438 # directories to be munged by the contents of PATH, which is string
7439 # having a format:
7440 # "DIR[:DIR]:"
7441 # string "DIR[ DIR]" will be prepended to VARIABLE
7442 # ":DIR[:DIR]"
7443 # string "DIR[ DIR]" will be appended to VARIABLE
7444 # "DIRP[:DIRP]::[DIRA:]DIRA"
7445 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7446 # "DIRA[ DIRA]" will be appended to VARIABLE
7447 # "DIR[:DIR]"
7448 # VARIABLE will be replaced by "DIR[ DIR]"
7449 func_munge_path_list ()
7450 {
7451 case x$2 in
7452 x)
7453 ;;
7454 *:)
7455 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7456 ;;
7457 x:*)
7458 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7459 ;;
7460 *::*)
7461 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7462 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7463 ;;
7464 *)
7465 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7466 ;;
7467 esac
7468 }
7469
7470 ac_ext=c
7471 ac_cpp='$CPP $CPPFLAGS'
7472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7476 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7477 # On Suns, sometimes $CPP names a directory.
7478 if test -n "$CPP" && test -d "$CPP"; then
7479 CPP=
7480 fi
7481 if test -z "$CPP"; then
7482 if ${ac_cv_prog_CPP+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 # Double quotes because CPP needs to be expanded
7486 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7487 do
7488 ac_preproc_ok=false
7489 for ac_c_preproc_warn_flag in '' yes
7490 do
7491 # Use a header file that comes with gcc, so configuring glibc
7492 # with a fresh cross-compiler works.
7493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7494 # <limits.h> exists even on freestanding compilers.
7495 # On the NeXT, cc -E runs the code through the compiler's parser,
7496 # not just through cpp. "Syntax error" is here to catch this case.
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7499 #ifdef __STDC__
7500 # include <limits.h>
7501 #else
7502 # include <assert.h>
7503 #endif
7504 Syntax error
7505 _ACEOF
7506 if ac_fn_c_try_cpp "$LINENO"; then :
7507
7508 else
7509 # Broken: fails on valid input.
7510 continue
7511 fi
7512 rm -f conftest.err conftest.i conftest.$ac_ext
7513
7514 # OK, works on sane cases. Now check whether nonexistent headers
7515 # can be detected and how.
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 #include <ac_nonexistent.h>
7519 _ACEOF
7520 if ac_fn_c_try_cpp "$LINENO"; then :
7521 # Broken: success on invalid input.
7522 continue
7523 else
7524 # Passes both tests.
7525 ac_preproc_ok=:
7526 break
7527 fi
7528 rm -f conftest.err conftest.i conftest.$ac_ext
7529
7530 done
7531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7532 rm -f conftest.i conftest.err conftest.$ac_ext
7533 if $ac_preproc_ok; then :
7534 break
7535 fi
7536
7537 done
7538 ac_cv_prog_CPP=$CPP
7539
7540 fi
7541 CPP=$ac_cv_prog_CPP
7542 else
7543 ac_cv_prog_CPP=$CPP
7544 fi
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7546 $as_echo "$CPP" >&6; }
7547 ac_preproc_ok=false
7548 for ac_c_preproc_warn_flag in '' yes
7549 do
7550 # Use a header file that comes with gcc, so configuring glibc
7551 # with a fresh cross-compiler works.
7552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7553 # <limits.h> exists even on freestanding compilers.
7554 # On the NeXT, cc -E runs the code through the compiler's parser,
7555 # not just through cpp. "Syntax error" is here to catch this case.
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 #ifdef __STDC__
7559 # include <limits.h>
7560 #else
7561 # include <assert.h>
7562 #endif
7563 Syntax error
7564 _ACEOF
7565 if ac_fn_c_try_cpp "$LINENO"; then :
7566
7567 else
7568 # Broken: fails on valid input.
7569 continue
7570 fi
7571 rm -f conftest.err conftest.i conftest.$ac_ext
7572
7573 # OK, works on sane cases. Now check whether nonexistent headers
7574 # can be detected and how.
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h. */
7577 #include <ac_nonexistent.h>
7578 _ACEOF
7579 if ac_fn_c_try_cpp "$LINENO"; then :
7580 # Broken: success on invalid input.
7581 continue
7582 else
7583 # Passes both tests.
7584 ac_preproc_ok=:
7585 break
7586 fi
7587 rm -f conftest.err conftest.i conftest.$ac_ext
7588
7589 done
7590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7591 rm -f conftest.i conftest.err conftest.$ac_ext
7592 if $ac_preproc_ok; then :
7593
7594 else
7595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7597 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7598 See \`config.log' for more details" "$LINENO" 5; }
7599 fi
7600
7601 ac_ext=c
7602 ac_cpp='$CPP $CPPFLAGS'
7603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7606
7607
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7609 $as_echo_n "checking for ANSI C header files... " >&6; }
7610 if ${ac_cv_header_stdc+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7615 #include <stdlib.h>
7616 #include <stdarg.h>
7617 #include <string.h>
7618 #include <float.h>
7619
7620 int
7621 main ()
7622 {
7623
7624 ;
7625 return 0;
7626 }
7627 _ACEOF
7628 if ac_fn_c_try_compile "$LINENO"; then :
7629 ac_cv_header_stdc=yes
7630 else
7631 ac_cv_header_stdc=no
7632 fi
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634
7635 if test $ac_cv_header_stdc = yes; then
7636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638 /* end confdefs.h. */
7639 #include <string.h>
7640
7641 _ACEOF
7642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7643 $EGREP "memchr" >/dev/null 2>&1; then :
7644
7645 else
7646 ac_cv_header_stdc=no
7647 fi
7648 rm -f conftest*
7649
7650 fi
7651
7652 if test $ac_cv_header_stdc = yes; then
7653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7656 #include <stdlib.h>
7657
7658 _ACEOF
7659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7660 $EGREP "free" >/dev/null 2>&1; then :
7661
7662 else
7663 ac_cv_header_stdc=no
7664 fi
7665 rm -f conftest*
7666
7667 fi
7668
7669 if test $ac_cv_header_stdc = yes; then
7670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7671 if test "$cross_compiling" = yes; then :
7672 :
7673 else
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 #include <ctype.h>
7677 #include <stdlib.h>
7678 #if ((' ' & 0x0FF) == 0x020)
7679 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7680 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7681 #else
7682 # define ISLOWER(c) \
7683 (('a' <= (c) && (c) <= 'i') \
7684 || ('j' <= (c) && (c) <= 'r') \
7685 || ('s' <= (c) && (c) <= 'z'))
7686 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7687 #endif
7688
7689 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7690 int
7691 main ()
7692 {
7693 int i;
7694 for (i = 0; i < 256; i++)
7695 if (XOR (islower (i), ISLOWER (i))
7696 || toupper (i) != TOUPPER (i))
7697 return 2;
7698 return 0;
7699 }
7700 _ACEOF
7701 if ac_fn_c_try_run "$LINENO"; then :
7702
7703 else
7704 ac_cv_header_stdc=no
7705 fi
7706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7707 conftest.$ac_objext conftest.beam conftest.$ac_ext
7708 fi
7709
7710 fi
7711 fi
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7713 $as_echo "$ac_cv_header_stdc" >&6; }
7714 if test $ac_cv_header_stdc = yes; then
7715
7716 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7717
7718 fi
7719
7720 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7721 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7722 inttypes.h stdint.h unistd.h
7723 do :
7724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7725 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7726 "
7727 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7728 cat >>confdefs.h <<_ACEOF
7729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7730 _ACEOF
7731
7732 fi
7733
7734 done
7735
7736
7737 for ac_header in dlfcn.h
7738 do :
7739 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7740 "
7741 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7742 cat >>confdefs.h <<_ACEOF
7743 #define HAVE_DLFCN_H 1
7744 _ACEOF
7745
7746 fi
7747
7748 done
7749
7750
7751
7752
7753
7754 # Set options
7755
7756
7757
7758 enable_dlopen=no
7759
7760
7761 enable_win32_dll=no
7762
7763
7764 # Check whether --enable-shared was given.
7765 if test "${enable_shared+set}" = set; then :
7766 enableval=$enable_shared; p=${PACKAGE-default}
7767 case $enableval in
7768 yes) enable_shared=yes ;;
7769 no) enable_shared=no ;;
7770 *)
7771 enable_shared=no
7772 # Look at the argument we got. We use all the common list separators.
7773 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7774 for pkg in $enableval; do
7775 IFS=$lt_save_ifs
7776 if test "X$pkg" = "X$p"; then
7777 enable_shared=yes
7778 fi
7779 done
7780 IFS=$lt_save_ifs
7781 ;;
7782 esac
7783 else
7784 enable_shared=yes
7785 fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795 # Check whether --enable-static was given.
7796 if test "${enable_static+set}" = set; then :
7797 enableval=$enable_static; p=${PACKAGE-default}
7798 case $enableval in
7799 yes) enable_static=yes ;;
7800 no) enable_static=no ;;
7801 *)
7802 enable_static=no
7803 # Look at the argument we got. We use all the common list separators.
7804 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7805 for pkg in $enableval; do
7806 IFS=$lt_save_ifs
7807 if test "X$pkg" = "X$p"; then
7808 enable_static=yes
7809 fi
7810 done
7811 IFS=$lt_save_ifs
7812 ;;
7813 esac
7814 else
7815 enable_static=yes
7816 fi
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827 # Check whether --with-pic was given.
7828 if test "${with_pic+set}" = set; then :
7829 withval=$with_pic; lt_p=${PACKAGE-default}
7830 case $withval in
7831 yes|no) pic_mode=$withval ;;
7832 *)
7833 pic_mode=default
7834 # Look at the argument we got. We use all the common list separators.
7835 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7836 for lt_pkg in $withval; do
7837 IFS=$lt_save_ifs
7838 if test "X$lt_pkg" = "X$lt_p"; then
7839 pic_mode=yes
7840 fi
7841 done
7842 IFS=$lt_save_ifs
7843 ;;
7844 esac
7845 else
7846 pic_mode=default
7847 fi
7848
7849
7850
7851
7852
7853
7854
7855
7856 # Check whether --enable-fast-install was given.
7857 if test "${enable_fast_install+set}" = set; then :
7858 enableval=$enable_fast_install; p=${PACKAGE-default}
7859 case $enableval in
7860 yes) enable_fast_install=yes ;;
7861 no) enable_fast_install=no ;;
7862 *)
7863 enable_fast_install=no
7864 # Look at the argument we got. We use all the common list separators.
7865 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7866 for pkg in $enableval; do
7867 IFS=$lt_save_ifs
7868 if test "X$pkg" = "X$p"; then
7869 enable_fast_install=yes
7870 fi
7871 done
7872 IFS=$lt_save_ifs
7873 ;;
7874 esac
7875 else
7876 enable_fast_install=yes
7877 fi
7878
7879
7880
7881
7882
7883
7884
7885
7886 shared_archive_member_spec=
7887 case $host,$enable_shared in
7888 power*-*-aix[5-9]*,yes)
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7890 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7891
7892 # Check whether --with-aix-soname was given.
7893 if test "${with_aix_soname+set}" = set; then :
7894 withval=$with_aix_soname; case $withval in
7895 aix|svr4|both)
7896 ;;
7897 *)
7898 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7899 ;;
7900 esac
7901 lt_cv_with_aix_soname=$with_aix_soname
7902 else
7903 if ${lt_cv_with_aix_soname+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 lt_cv_with_aix_soname=aix
7907 fi
7908
7909 with_aix_soname=$lt_cv_with_aix_soname
7910 fi
7911
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7913 $as_echo "$with_aix_soname" >&6; }
7914 if test aix != "$with_aix_soname"; then
7915 # For the AIX way of multilib, we name the shared archive member
7916 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7917 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7918 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7919 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7920 if test 64 = "${OBJECT_MODE-32}"; then
7921 shared_archive_member_spec=shr_64
7922 else
7923 shared_archive_member_spec=shr
7924 fi
7925 fi
7926 ;;
7927 *)
7928 with_aix_soname=aix
7929 ;;
7930 esac
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941 # This can be used to rebuild libtool when needed
7942 LIBTOOL_DEPS=$ltmain
7943
7944 # Always use our own libtool.
7945 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976 test -z "$LN_S" && LN_S="ln -s"
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991 if test -n "${ZSH_VERSION+set}"; then
7992 setopt NO_GLOB_SUBST
7993 fi
7994
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7996 $as_echo_n "checking for objdir... " >&6; }
7997 if ${lt_cv_objdir+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 rm -f .libs 2>/dev/null
8001 mkdir .libs 2>/dev/null
8002 if test -d .libs; then
8003 lt_cv_objdir=.libs
8004 else
8005 # MS-DOS does not allow filenames that begin with a dot.
8006 lt_cv_objdir=_libs
8007 fi
8008 rmdir .libs 2>/dev/null
8009 fi
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8011 $as_echo "$lt_cv_objdir" >&6; }
8012 objdir=$lt_cv_objdir
8013
8014
8015
8016
8017
8018 cat >>confdefs.h <<_ACEOF
8019 #define LT_OBJDIR "$lt_cv_objdir/"
8020 _ACEOF
8021
8022
8023
8024
8025 case $host_os in
8026 aix3*)
8027 # AIX sometimes has problems with the GCC collect2 program. For some
8028 # reason, if we set the COLLECT_NAMES environment variable, the problems
8029 # vanish in a puff of smoke.
8030 if test set != "${COLLECT_NAMES+set}"; then
8031 COLLECT_NAMES=
8032 export COLLECT_NAMES
8033 fi
8034 ;;
8035 esac
8036
8037 # Global variables:
8038 ofile=libtool
8039 can_build_shared=yes
8040
8041 # All known linkers require a '.a' archive for static linking (except MSVC,
8042 # which needs '.lib').
8043 libext=a
8044
8045 with_gnu_ld=$lt_cv_prog_gnu_ld
8046
8047 old_CC=$CC
8048 old_CFLAGS=$CFLAGS
8049
8050 # Set sane defaults for various variables
8051 test -z "$CC" && CC=cc
8052 test -z "$LTCC" && LTCC=$CC
8053 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8054 test -z "$LD" && LD=ld
8055 test -z "$ac_objext" && ac_objext=o
8056
8057 func_cc_basename $compiler
8058 cc_basename=$func_cc_basename_result
8059
8060
8061 # Only perform the check for file, if the check method requires it
8062 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8063 case $deplibs_check_method in
8064 file_magic*)
8065 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8067 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8068 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8069 $as_echo_n "(cached) " >&6
8070 else
8071 case $MAGIC_CMD in
8072 [\\/*] | ?:[\\/]*)
8073 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8074 ;;
8075 *)
8076 lt_save_MAGIC_CMD=$MAGIC_CMD
8077 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8078 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8079 for ac_dir in $ac_dummy; do
8080 IFS=$lt_save_ifs
8081 test -z "$ac_dir" && ac_dir=.
8082 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8083 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8084 if test -n "$file_magic_test_file"; then
8085 case $deplibs_check_method in
8086 "file_magic "*)
8087 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8088 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8089 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8090 $EGREP "$file_magic_regex" > /dev/null; then
8091 :
8092 else
8093 cat <<_LT_EOF 1>&2
8094
8095 *** Warning: the command libtool uses to detect shared libraries,
8096 *** $file_magic_cmd, produces output that libtool cannot recognize.
8097 *** The result is that libtool may fail to recognize shared libraries
8098 *** as such. This will affect the creation of libtool libraries that
8099 *** depend on shared libraries, but programs linked with such libtool
8100 *** libraries will work regardless of this problem. Nevertheless, you
8101 *** may want to report the problem to your system manager and/or to
8102 *** [email protected]
8103
8104 _LT_EOF
8105 fi ;;
8106 esac
8107 fi
8108 break
8109 fi
8110 done
8111 IFS=$lt_save_ifs
8112 MAGIC_CMD=$lt_save_MAGIC_CMD
8113 ;;
8114 esac
8115 fi
8116
8117 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8118 if test -n "$MAGIC_CMD"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8120 $as_echo "$MAGIC_CMD" >&6; }
8121 else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8124 fi
8125
8126
8127
8128
8129
8130 if test -z "$lt_cv_path_MAGIC_CMD"; then
8131 if test -n "$ac_tool_prefix"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8133 $as_echo_n "checking for file... " >&6; }
8134 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 case $MAGIC_CMD in
8138 [\\/*] | ?:[\\/]*)
8139 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8140 ;;
8141 *)
8142 lt_save_MAGIC_CMD=$MAGIC_CMD
8143 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8145 for ac_dir in $ac_dummy; do
8146 IFS=$lt_save_ifs
8147 test -z "$ac_dir" && ac_dir=.
8148 if test -f "$ac_dir/file"; then
8149 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8150 if test -n "$file_magic_test_file"; then
8151 case $deplibs_check_method in
8152 "file_magic "*)
8153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8154 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8156 $EGREP "$file_magic_regex" > /dev/null; then
8157 :
8158 else
8159 cat <<_LT_EOF 1>&2
8160
8161 *** Warning: the command libtool uses to detect shared libraries,
8162 *** $file_magic_cmd, produces output that libtool cannot recognize.
8163 *** The result is that libtool may fail to recognize shared libraries
8164 *** as such. This will affect the creation of libtool libraries that
8165 *** depend on shared libraries, but programs linked with such libtool
8166 *** libraries will work regardless of this problem. Nevertheless, you
8167 *** may want to report the problem to your system manager and/or to
8168 *** [email protected]
8169
8170 _LT_EOF
8171 fi ;;
8172 esac
8173 fi
8174 break
8175 fi
8176 done
8177 IFS=$lt_save_ifs
8178 MAGIC_CMD=$lt_save_MAGIC_CMD
8179 ;;
8180 esac
8181 fi
8182
8183 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8184 if test -n "$MAGIC_CMD"; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8186 $as_echo "$MAGIC_CMD" >&6; }
8187 else
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8190 fi
8191
8192
8193 else
8194 MAGIC_CMD=:
8195 fi
8196 fi
8197
8198 fi
8199 ;;
8200 esac
8201
8202 # Use C for the default configuration in the libtool script
8203
8204 lt_save_CC=$CC
8205 ac_ext=c
8206 ac_cpp='$CPP $CPPFLAGS'
8207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8210
8211
8212 # Source file extension for C test sources.
8213 ac_ext=c
8214
8215 # Object file extension for compiled C test sources.
8216 objext=o
8217 objext=$objext
8218
8219 # Code to be used in simple compile tests
8220 lt_simple_compile_test_code="int some_variable = 0;"
8221
8222 # Code to be used in simple link tests
8223 lt_simple_link_test_code='int main(){return(0);}'
8224
8225
8226
8227
8228
8229
8230
8231 # If no C compiler was specified, use CC.
8232 LTCC=${LTCC-"$CC"}
8233
8234 # If no C compiler flags were specified, use CFLAGS.
8235 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8236
8237 # Allow CC to be a program name with arguments.
8238 compiler=$CC
8239
8240 # Save the default compiler, since it gets overwritten when the other
8241 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8242 compiler_DEFAULT=$CC
8243
8244 # save warnings/boilerplate of simple test code
8245 ac_outfile=conftest.$ac_objext
8246 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8247 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8248 _lt_compiler_boilerplate=`cat conftest.err`
8249 $RM conftest*
8250
8251 ac_outfile=conftest.$ac_objext
8252 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8253 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8254 _lt_linker_boilerplate=`cat conftest.err`
8255 $RM -r conftest*
8256
8257
8258 ## CAVEAT EMPTOR:
8259 ## There is no encapsulation within the following macros, do not change
8260 ## the running order or otherwise move them around unless you know exactly
8261 ## what you are doing...
8262 if test -n "$compiler"; then
8263
8264 lt_prog_compiler_no_builtin_flag=
8265
8266 if test yes = "$GCC"; then
8267 case $cc_basename in
8268 nvcc*)
8269 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8270 *)
8271 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8272 esac
8273
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8275 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8276 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 lt_cv_prog_compiler_rtti_exceptions=no
8280 ac_outfile=conftest.$ac_objext
8281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8282 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8283 # Insert the option either (1) after the last *FLAGS variable, or
8284 # (2) before a word containing "conftest.", or (3) at the end.
8285 # Note that $ac_compile itself does not contain backslashes and begins
8286 # with a dollar sign (not a hyphen), so the echo should work correctly.
8287 # The option is referenced via a variable to avoid confusing sed.
8288 lt_compile=`echo "$ac_compile" | $SED \
8289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8291 -e 's:$: $lt_compiler_flag:'`
8292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8293 (eval "$lt_compile" 2>conftest.err)
8294 ac_status=$?
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 if (exit $ac_status) && test -s "$ac_outfile"; then
8298 # The compiler can only warn and ignore the option if not recognized
8299 # So say no if there are warnings other than the usual output.
8300 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8303 lt_cv_prog_compiler_rtti_exceptions=yes
8304 fi
8305 fi
8306 $RM conftest*
8307
8308 fi
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8310 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8311
8312 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8313 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8314 else
8315 :
8316 fi
8317
8318 fi
8319
8320
8321
8322
8323
8324
8325 lt_prog_compiler_wl=
8326 lt_prog_compiler_pic=
8327 lt_prog_compiler_static=
8328
8329
8330 if test yes = "$GCC"; then
8331 lt_prog_compiler_wl='-Wl,'
8332 lt_prog_compiler_static='-static'
8333
8334 case $host_os in
8335 aix*)
8336 # All AIX code is PIC.
8337 if test ia64 = "$host_cpu"; then
8338 # AIX 5 now supports IA64 processor
8339 lt_prog_compiler_static='-Bstatic'
8340 fi
8341 lt_prog_compiler_pic='-fPIC'
8342 ;;
8343
8344 amigaos*)
8345 case $host_cpu in
8346 powerpc)
8347 # see comment about AmigaOS4 .so support
8348 lt_prog_compiler_pic='-fPIC'
8349 ;;
8350 m68k)
8351 # FIXME: we need at least 68020 code to build shared libraries, but
8352 # adding the '-m68020' flag to GCC prevents building anything better,
8353 # like '-m68040'.
8354 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8355 ;;
8356 esac
8357 ;;
8358
8359 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8360 # PIC is the default for these OSes.
8361 ;;
8362
8363 mingw* | cygwin* | pw32* | os2* | cegcc*)
8364 # This hack is so that the source file can tell whether it is being
8365 # built for inclusion in a dll (and should export symbols for example).
8366 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8367 # (--disable-auto-import) libraries
8368 lt_prog_compiler_pic='-DDLL_EXPORT'
8369 case $host_os in
8370 os2*)
8371 lt_prog_compiler_static='$wl-static'
8372 ;;
8373 esac
8374 ;;
8375
8376 darwin* | rhapsody*)
8377 # PIC is the default on this platform
8378 # Common symbols not allowed in MH_DYLIB files
8379 lt_prog_compiler_pic='-fno-common'
8380 ;;
8381
8382 haiku*)
8383 # PIC is the default for Haiku.
8384 # The "-static" flag exists, but is broken.
8385 lt_prog_compiler_static=
8386 ;;
8387
8388 hpux*)
8389 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8390 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8391 # sets the default TLS model and affects inlining.
8392 case $host_cpu in
8393 hppa*64*)
8394 # +Z the default
8395 ;;
8396 *)
8397 lt_prog_compiler_pic='-fPIC'
8398 ;;
8399 esac
8400 ;;
8401
8402 interix[3-9]*)
8403 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8404 # Instead, we relocate shared libraries at runtime.
8405 ;;
8406
8407 msdosdjgpp*)
8408 # Just because we use GCC doesn't mean we suddenly get shared libraries
8409 # on systems that don't support them.
8410 lt_prog_compiler_can_build_shared=no
8411 enable_shared=no
8412 ;;
8413
8414 *nto* | *qnx*)
8415 # QNX uses GNU C++, but need to define -shared option too, otherwise
8416 # it will coredump.
8417 lt_prog_compiler_pic='-fPIC -shared'
8418 ;;
8419
8420 sysv4*MP*)
8421 if test -d /usr/nec; then
8422 lt_prog_compiler_pic=-Kconform_pic
8423 fi
8424 ;;
8425
8426 *)
8427 lt_prog_compiler_pic='-fPIC'
8428 ;;
8429 esac
8430
8431 case $cc_basename in
8432 nvcc*) # Cuda Compiler Driver 2.2
8433 lt_prog_compiler_wl='-Xlinker '
8434 if test -n "$lt_prog_compiler_pic"; then
8435 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8436 fi
8437 ;;
8438 esac
8439 else
8440 # PORTME Check for flag to pass linker flags through the system compiler.
8441 case $host_os in
8442 aix*)
8443 lt_prog_compiler_wl='-Wl,'
8444 if test ia64 = "$host_cpu"; then
8445 # AIX 5 now supports IA64 processor
8446 lt_prog_compiler_static='-Bstatic'
8447 else
8448 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8449 fi
8450 ;;
8451
8452 darwin* | rhapsody*)
8453 # PIC is the default on this platform
8454 # Common symbols not allowed in MH_DYLIB files
8455 lt_prog_compiler_pic='-fno-common'
8456 case $cc_basename in
8457 nagfor*)
8458 # NAG Fortran compiler
8459 lt_prog_compiler_wl='-Wl,-Wl,,'
8460 lt_prog_compiler_pic='-PIC'
8461 lt_prog_compiler_static='-Bstatic'
8462 ;;
8463 esac
8464 ;;
8465
8466 mingw* | cygwin* | pw32* | os2* | cegcc*)
8467 # This hack is so that the source file can tell whether it is being
8468 # built for inclusion in a dll (and should export symbols for example).
8469 lt_prog_compiler_pic='-DDLL_EXPORT'
8470 case $host_os in
8471 os2*)
8472 lt_prog_compiler_static='$wl-static'
8473 ;;
8474 esac
8475 ;;
8476
8477 hpux9* | hpux10* | hpux11*)
8478 lt_prog_compiler_wl='-Wl,'
8479 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8480 # not for PA HP-UX.
8481 case $host_cpu in
8482 hppa*64*|ia64*)
8483 # +Z the default
8484 ;;
8485 *)
8486 lt_prog_compiler_pic='+Z'
8487 ;;
8488 esac
8489 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8490 lt_prog_compiler_static='$wl-a ${wl}archive'
8491 ;;
8492
8493 irix5* | irix6* | nonstopux*)
8494 lt_prog_compiler_wl='-Wl,'
8495 # PIC (with -KPIC) is the default.
8496 lt_prog_compiler_static='-non_shared'
8497 ;;
8498
8499 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8500 case $cc_basename in
8501 # old Intel for x86_64, which still supported -KPIC.
8502 ecc*)
8503 lt_prog_compiler_wl='-Wl,'
8504 lt_prog_compiler_pic='-KPIC'
8505 lt_prog_compiler_static='-static'
8506 ;;
8507 # icc used to be incompatible with GCC.
8508 # ICC 10 doesn't accept -KPIC any more.
8509 icc* | ifort*)
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_pic='-fPIC'
8512 lt_prog_compiler_static='-static'
8513 ;;
8514 # Lahey Fortran 8.1.
8515 lf95*)
8516 lt_prog_compiler_wl='-Wl,'
8517 lt_prog_compiler_pic='--shared'
8518 lt_prog_compiler_static='--static'
8519 ;;
8520 nagfor*)
8521 # NAG Fortran compiler
8522 lt_prog_compiler_wl='-Wl,-Wl,,'
8523 lt_prog_compiler_pic='-PIC'
8524 lt_prog_compiler_static='-Bstatic'
8525 ;;
8526 tcc*)
8527 # Fabrice Bellard et al's Tiny C Compiler
8528 lt_prog_compiler_wl='-Wl,'
8529 lt_prog_compiler_pic='-fPIC'
8530 lt_prog_compiler_static='-static'
8531 ;;
8532 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8533 # Portland Group compilers (*not* the Pentium gcc compiler,
8534 # which looks to be a dead project)
8535 lt_prog_compiler_wl='-Wl,'
8536 lt_prog_compiler_pic='-fpic'
8537 lt_prog_compiler_static='-Bstatic'
8538 ;;
8539 ccc*)
8540 lt_prog_compiler_wl='-Wl,'
8541 # All Alpha code is PIC.
8542 lt_prog_compiler_static='-non_shared'
8543 ;;
8544 xl* | bgxl* | bgf* | mpixl*)
8545 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='-qpic'
8548 lt_prog_compiler_static='-qstaticlink'
8549 ;;
8550 *)
8551 case `$CC -V 2>&1 | sed 5q` in
8552 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8553 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8554 lt_prog_compiler_pic='-KPIC'
8555 lt_prog_compiler_static='-Bstatic'
8556 lt_prog_compiler_wl=''
8557 ;;
8558 *Sun\ F* | *Sun*Fortran*)
8559 lt_prog_compiler_pic='-KPIC'
8560 lt_prog_compiler_static='-Bstatic'
8561 lt_prog_compiler_wl='-Qoption ld '
8562 ;;
8563 *Sun\ C*)
8564 # Sun C 5.9
8565 lt_prog_compiler_pic='-KPIC'
8566 lt_prog_compiler_static='-Bstatic'
8567 lt_prog_compiler_wl='-Wl,'
8568 ;;
8569 *Intel*\ [CF]*Compiler*)
8570 lt_prog_compiler_wl='-Wl,'
8571 lt_prog_compiler_pic='-fPIC'
8572 lt_prog_compiler_static='-static'
8573 ;;
8574 *Portland\ Group*)
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-fpic'
8577 lt_prog_compiler_static='-Bstatic'
8578 ;;
8579 esac
8580 ;;
8581 esac
8582 ;;
8583
8584 newsos6)
8585 lt_prog_compiler_pic='-KPIC'
8586 lt_prog_compiler_static='-Bstatic'
8587 ;;
8588
8589 *nto* | *qnx*)
8590 # QNX uses GNU C++, but need to define -shared option too, otherwise
8591 # it will coredump.
8592 lt_prog_compiler_pic='-fPIC -shared'
8593 ;;
8594
8595 osf3* | osf4* | osf5*)
8596 lt_prog_compiler_wl='-Wl,'
8597 # All OSF/1 code is PIC.
8598 lt_prog_compiler_static='-non_shared'
8599 ;;
8600
8601 rdos*)
8602 lt_prog_compiler_static='-non_shared'
8603 ;;
8604
8605 solaris*)
8606 lt_prog_compiler_pic='-KPIC'
8607 lt_prog_compiler_static='-Bstatic'
8608 case $cc_basename in
8609 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8610 lt_prog_compiler_wl='-Qoption ld ';;
8611 *)
8612 lt_prog_compiler_wl='-Wl,';;
8613 esac
8614 ;;
8615
8616 sunos4*)
8617 lt_prog_compiler_wl='-Qoption ld '
8618 lt_prog_compiler_pic='-PIC'
8619 lt_prog_compiler_static='-Bstatic'
8620 ;;
8621
8622 sysv4 | sysv4.2uw2* | sysv4.3*)
8623 lt_prog_compiler_wl='-Wl,'
8624 lt_prog_compiler_pic='-KPIC'
8625 lt_prog_compiler_static='-Bstatic'
8626 ;;
8627
8628 sysv4*MP*)
8629 if test -d /usr/nec; then
8630 lt_prog_compiler_pic='-Kconform_pic'
8631 lt_prog_compiler_static='-Bstatic'
8632 fi
8633 ;;
8634
8635 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8636 lt_prog_compiler_wl='-Wl,'
8637 lt_prog_compiler_pic='-KPIC'
8638 lt_prog_compiler_static='-Bstatic'
8639 ;;
8640
8641 unicos*)
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_can_build_shared=no
8644 ;;
8645
8646 uts4*)
8647 lt_prog_compiler_pic='-pic'
8648 lt_prog_compiler_static='-Bstatic'
8649 ;;
8650
8651 *)
8652 lt_prog_compiler_can_build_shared=no
8653 ;;
8654 esac
8655 fi
8656
8657 case $host_os in
8658 # For platforms that do not support PIC, -DPIC is meaningless:
8659 *djgpp*)
8660 lt_prog_compiler_pic=
8661 ;;
8662 *)
8663 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8664 ;;
8665 esac
8666
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8668 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8669 if ${lt_cv_prog_compiler_pic+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671 else
8672 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8673 fi
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8675 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8676 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8677
8678 #
8679 # Check to make sure the PIC flag actually works.
8680 #
8681 if test -n "$lt_prog_compiler_pic"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8683 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8684 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 lt_cv_prog_compiler_pic_works=no
8688 ac_outfile=conftest.$ac_objext
8689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8690 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8691 # Insert the option either (1) after the last *FLAGS variable, or
8692 # (2) before a word containing "conftest.", or (3) at the end.
8693 # Note that $ac_compile itself does not contain backslashes and begins
8694 # with a dollar sign (not a hyphen), so the echo should work correctly.
8695 # The option is referenced via a variable to avoid confusing sed.
8696 lt_compile=`echo "$ac_compile" | $SED \
8697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8699 -e 's:$: $lt_compiler_flag:'`
8700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8701 (eval "$lt_compile" 2>conftest.err)
8702 ac_status=$?
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 if (exit $ac_status) && test -s "$ac_outfile"; then
8706 # The compiler can only warn and ignore the option if not recognized
8707 # So say no if there are warnings other than the usual output.
8708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8710 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8711 lt_cv_prog_compiler_pic_works=yes
8712 fi
8713 fi
8714 $RM conftest*
8715
8716 fi
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8718 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8719
8720 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8721 case $lt_prog_compiler_pic in
8722 "" | " "*) ;;
8723 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8724 esac
8725 else
8726 lt_prog_compiler_pic=
8727 lt_prog_compiler_can_build_shared=no
8728 fi
8729
8730 fi
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742 #
8743 # Check to make sure the static flag actually works.
8744 #
8745 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8747 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8748 if ${lt_cv_prog_compiler_static_works+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 lt_cv_prog_compiler_static_works=no
8752 save_LDFLAGS=$LDFLAGS
8753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8754 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8756 # The linker can only warn and ignore the option if not recognized
8757 # So say no if there are warnings
8758 if test -s conftest.err; then
8759 # Append any errors to the config.log.
8760 cat conftest.err 1>&5
8761 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8763 if diff conftest.exp conftest.er2 >/dev/null; then
8764 lt_cv_prog_compiler_static_works=yes
8765 fi
8766 else
8767 lt_cv_prog_compiler_static_works=yes
8768 fi
8769 fi
8770 $RM -r conftest*
8771 LDFLAGS=$save_LDFLAGS
8772
8773 fi
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8775 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8776
8777 if test yes = "$lt_cv_prog_compiler_static_works"; then
8778 :
8779 else
8780 lt_prog_compiler_static=
8781 fi
8782
8783
8784
8785
8786
8787
8788
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8790 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8791 if ${lt_cv_prog_compiler_c_o+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 lt_cv_prog_compiler_c_o=no
8795 $RM -r conftest 2>/dev/null
8796 mkdir conftest
8797 cd conftest
8798 mkdir out
8799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8800
8801 lt_compiler_flag="-o out/conftest2.$ac_objext"
8802 # Insert the option either (1) after the last *FLAGS variable, or
8803 # (2) before a word containing "conftest.", or (3) at the end.
8804 # Note that $ac_compile itself does not contain backslashes and begins
8805 # with a dollar sign (not a hyphen), so the echo should work correctly.
8806 lt_compile=`echo "$ac_compile" | $SED \
8807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8809 -e 's:$: $lt_compiler_flag:'`
8810 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8811 (eval "$lt_compile" 2>out/conftest.err)
8812 ac_status=$?
8813 cat out/conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8816 then
8817 # The compiler can only warn and ignore the option if not recognized
8818 # So say no if there are warnings
8819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8822 lt_cv_prog_compiler_c_o=yes
8823 fi
8824 fi
8825 chmod u+w . 2>&5
8826 $RM conftest*
8827 # SGI C++ compiler will create directory out/ii_files/ for
8828 # template instantiation
8829 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8830 $RM out/* && rmdir out
8831 cd ..
8832 $RM -r conftest
8833 $RM conftest*
8834
8835 fi
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8837 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8838
8839
8840
8841
8842
8843
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8845 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8846 if ${lt_cv_prog_compiler_c_o+:} false; then :
8847 $as_echo_n "(cached) " >&6
8848 else
8849 lt_cv_prog_compiler_c_o=no
8850 $RM -r conftest 2>/dev/null
8851 mkdir conftest
8852 cd conftest
8853 mkdir out
8854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8855
8856 lt_compiler_flag="-o out/conftest2.$ac_objext"
8857 # Insert the option either (1) after the last *FLAGS variable, or
8858 # (2) before a word containing "conftest.", or (3) at the end.
8859 # Note that $ac_compile itself does not contain backslashes and begins
8860 # with a dollar sign (not a hyphen), so the echo should work correctly.
8861 lt_compile=`echo "$ac_compile" | $SED \
8862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8864 -e 's:$: $lt_compiler_flag:'`
8865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8866 (eval "$lt_compile" 2>out/conftest.err)
8867 ac_status=$?
8868 cat out/conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8871 then
8872 # The compiler can only warn and ignore the option if not recognized
8873 # So say no if there are warnings
8874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8877 lt_cv_prog_compiler_c_o=yes
8878 fi
8879 fi
8880 chmod u+w . 2>&5
8881 $RM conftest*
8882 # SGI C++ compiler will create directory out/ii_files/ for
8883 # template instantiation
8884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8885 $RM out/* && rmdir out
8886 cd ..
8887 $RM -r conftest
8888 $RM conftest*
8889
8890 fi
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8892 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8893
8894
8895
8896
8897 hard_links=nottested
8898 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8899 # do not overwrite the value of need_locks provided by the user
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8901 $as_echo_n "checking if we can lock with hard links... " >&6; }
8902 hard_links=yes
8903 $RM conftest*
8904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8905 touch conftest.a
8906 ln conftest.a conftest.b 2>&5 || hard_links=no
8907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8909 $as_echo "$hard_links" >&6; }
8910 if test no = "$hard_links"; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8912 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8913 need_locks=warn
8914 fi
8915 else
8916 need_locks=no
8917 fi
8918
8919
8920
8921
8922
8923
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8925 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8926
8927 runpath_var=
8928 allow_undefined_flag=
8929 always_export_symbols=no
8930 archive_cmds=
8931 archive_expsym_cmds=
8932 compiler_needs_object=no
8933 enable_shared_with_static_runtimes=no
8934 export_dynamic_flag_spec=
8935 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8936 hardcode_automatic=no
8937 hardcode_direct=no
8938 hardcode_direct_absolute=no
8939 hardcode_libdir_flag_spec=
8940 hardcode_libdir_separator=
8941 hardcode_minus_L=no
8942 hardcode_shlibpath_var=unsupported
8943 inherit_rpath=no
8944 link_all_deplibs=unknown
8945 module_cmds=
8946 module_expsym_cmds=
8947 old_archive_from_new_cmds=
8948 old_archive_from_expsyms_cmds=
8949 thread_safe_flag_spec=
8950 whole_archive_flag_spec=
8951 # include_expsyms should be a list of space-separated symbols to be *always*
8952 # included in the symbol list
8953 include_expsyms=
8954 # exclude_expsyms can be an extended regexp of symbols to exclude
8955 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8956 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8957 # as well as any symbol that contains 'd'.
8958 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8959 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8960 # platforms (ab)use it in PIC code, but their linkers get confused if
8961 # the symbol is explicitly referenced. Since portable code cannot
8962 # rely on this symbol name, it's probably fine to never include it in
8963 # preloaded symbol tables.
8964 # Exclude shared library initialization/finalization symbols.
8965 extract_expsyms_cmds=
8966
8967 case $host_os in
8968 cygwin* | mingw* | pw32* | cegcc*)
8969 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8970 # When not using gcc, we currently assume that we are using
8971 # Microsoft Visual C++.
8972 if test yes != "$GCC"; then
8973 with_gnu_ld=no
8974 fi
8975 ;;
8976 interix*)
8977 # we just hope/assume this is gcc and not c89 (= MSVC++)
8978 with_gnu_ld=yes
8979 ;;
8980 openbsd* | bitrig*)
8981 with_gnu_ld=no
8982 ;;
8983 esac
8984
8985 ld_shlibs=yes
8986
8987 # On some targets, GNU ld is compatible enough with the native linker
8988 # that we're better off using the native interface for both.
8989 lt_use_gnu_ld_interface=no
8990 if test yes = "$with_gnu_ld"; then
8991 case $host_os in
8992 aix*)
8993 # The AIX port of GNU ld has always aspired to compatibility
8994 # with the native linker. However, as the warning in the GNU ld
8995 # block says, versions before 2.19.5* couldn't really create working
8996 # shared libraries, regardless of the interface used.
8997 case `$LD -v 2>&1` in
8998 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8999 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9000 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9001 *)
9002 lt_use_gnu_ld_interface=yes
9003 ;;
9004 esac
9005 ;;
9006 *)
9007 lt_use_gnu_ld_interface=yes
9008 ;;
9009 esac
9010 fi
9011
9012 if test yes = "$lt_use_gnu_ld_interface"; then
9013 # If archive_cmds runs LD, not CC, wlarc should be empty
9014 wlarc='$wl'
9015
9016 # Set some defaults for GNU ld with shared library support. These
9017 # are reset later if shared libraries are not supported. Putting them
9018 # here allows them to be overridden if necessary.
9019 runpath_var=LD_RUN_PATH
9020 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9021 export_dynamic_flag_spec='$wl--export-dynamic'
9022 # ancient GNU ld didn't support --whole-archive et. al.
9023 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9024 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9025 else
9026 whole_archive_flag_spec=
9027 fi
9028 supports_anon_versioning=no
9029 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9030 *GNU\ gold*) supports_anon_versioning=yes ;;
9031 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9032 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9033 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9034 *\ 2.11.*) ;; # other 2.11 versions
9035 *) supports_anon_versioning=yes ;;
9036 esac
9037
9038 # See if GNU ld supports shared libraries.
9039 case $host_os in
9040 aix[3-9]*)
9041 # On AIX/PPC, the GNU linker is very broken
9042 if test ia64 != "$host_cpu"; then
9043 ld_shlibs=no
9044 cat <<_LT_EOF 1>&2
9045
9046 *** Warning: the GNU linker, at least up to release 2.19, is reported
9047 *** to be unable to reliably create shared libraries on AIX.
9048 *** Therefore, libtool is disabling shared libraries support. If you
9049 *** really care for shared libraries, you may want to install binutils
9050 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9051 *** You will then need to restart the configuration process.
9052
9053 _LT_EOF
9054 fi
9055 ;;
9056
9057 amigaos*)
9058 case $host_cpu in
9059 powerpc)
9060 # see comment about AmigaOS4 .so support
9061 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9062 archive_expsym_cmds=''
9063 ;;
9064 m68k)
9065 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)'
9066 hardcode_libdir_flag_spec='-L$libdir'
9067 hardcode_minus_L=yes
9068 ;;
9069 esac
9070 ;;
9071
9072 beos*)
9073 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9074 allow_undefined_flag=unsupported
9075 # Joseph Beckenbach <[email protected]> says some releases of gcc
9076 # support --undefined. This deserves some investigation. FIXME
9077 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9078 else
9079 ld_shlibs=no
9080 fi
9081 ;;
9082
9083 cygwin* | mingw* | pw32* | cegcc*)
9084 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9085 # as there is no search path for DLLs.
9086 hardcode_libdir_flag_spec='-L$libdir'
9087 export_dynamic_flag_spec='$wl--export-all-symbols'
9088 allow_undefined_flag=unsupported
9089 always_export_symbols=no
9090 enable_shared_with_static_runtimes=yes
9091 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9092 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9093
9094 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9096 # If the export-symbols file already is a .def file, use it as
9097 # is; otherwise, prepend EXPORTS...
9098 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9099 cp $export_symbols $output_objdir/$soname.def;
9100 else
9101 echo EXPORTS > $output_objdir/$soname.def;
9102 cat $export_symbols >> $output_objdir/$soname.def;
9103 fi~
9104 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9105 else
9106 ld_shlibs=no
9107 fi
9108 ;;
9109
9110 haiku*)
9111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9112 link_all_deplibs=yes
9113 ;;
9114
9115 os2*)
9116 hardcode_libdir_flag_spec='-L$libdir'
9117 hardcode_minus_L=yes
9118 allow_undefined_flag=unsupported
9119 shrext_cmds=.dll
9120 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9121 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9122 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9123 $ECHO EXPORTS >> $output_objdir/$libname.def~
9124 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9125 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9126 emximp -o $lib $output_objdir/$libname.def'
9127 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9128 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9129 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9130 $ECHO EXPORTS >> $output_objdir/$libname.def~
9131 prefix_cmds="$SED"~
9132 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9133 prefix_cmds="$prefix_cmds -e 1d";
9134 fi~
9135 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9136 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9137 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9138 emximp -o $lib $output_objdir/$libname.def'
9139 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9140 enable_shared_with_static_runtimes=yes
9141 ;;
9142
9143 interix[3-9]*)
9144 hardcode_direct=no
9145 hardcode_shlibpath_var=no
9146 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9147 export_dynamic_flag_spec='$wl-E'
9148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9149 # Instead, shared libraries are loaded at an image base (0x10000000 by
9150 # default) and relocated if they conflict, which is a slow very memory
9151 # consuming and fragmenting process. To avoid this, we pick a random,
9152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9153 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9154 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9155 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'
9156 ;;
9157
9158 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9159 tmp_diet=no
9160 if test linux-dietlibc = "$host_os"; then
9161 case $cc_basename in
9162 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9163 esac
9164 fi
9165 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9166 && test no = "$tmp_diet"
9167 then
9168 tmp_addflag=' $pic_flag'
9169 tmp_sharedflag='-shared'
9170 case $cc_basename,$host_cpu in
9171 pgcc*) # Portland Group C compiler
9172 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'
9173 tmp_addflag=' $pic_flag'
9174 ;;
9175 pgf77* | pgf90* | pgf95* | pgfortran*)
9176 # Portland Group f77 and f90 compilers
9177 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'
9178 tmp_addflag=' $pic_flag -Mnomain' ;;
9179 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9180 tmp_addflag=' -i_dynamic' ;;
9181 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9182 tmp_addflag=' -i_dynamic -nofor_main' ;;
9183 ifc* | ifort*) # Intel Fortran compiler
9184 tmp_addflag=' -nofor_main' ;;
9185 lf95*) # Lahey Fortran 8.1
9186 whole_archive_flag_spec=
9187 tmp_sharedflag='--shared' ;;
9188 nagfor*) # NAGFOR 5.3
9189 tmp_sharedflag='-Wl,-shared' ;;
9190 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9191 tmp_sharedflag='-qmkshrobj'
9192 tmp_addflag= ;;
9193 nvcc*) # Cuda Compiler Driver 2.2
9194 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'
9195 compiler_needs_object=yes
9196 ;;
9197 esac
9198 case `$CC -V 2>&1 | sed 5q` in
9199 *Sun\ C*) # Sun C 5.9
9200 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'
9201 compiler_needs_object=yes
9202 tmp_sharedflag='-G' ;;
9203 *Sun\ F*) # Sun Fortran 8.3
9204 tmp_sharedflag='-G' ;;
9205 esac
9206 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9207
9208 if test yes = "$supports_anon_versioning"; then
9209 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9210 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9211 echo "local: *; };" >> $output_objdir/$libname.ver~
9212 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9213 fi
9214
9215 case $cc_basename in
9216 tcc*)
9217 export_dynamic_flag_spec='-rdynamic'
9218 ;;
9219 xlf* | bgf* | bgxlf* | mpixlf*)
9220 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9221 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9222 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9223 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9224 if test yes = "$supports_anon_versioning"; then
9225 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9227 echo "local: *; };" >> $output_objdir/$libname.ver~
9228 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9229 fi
9230 ;;
9231 esac
9232 else
9233 ld_shlibs=no
9234 fi
9235 ;;
9236
9237 netbsd*)
9238 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9239 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9240 wlarc=
9241 else
9242 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9243 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9244 fi
9245 ;;
9246
9247 solaris*)
9248 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9249 ld_shlibs=no
9250 cat <<_LT_EOF 1>&2
9251
9252 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9253 *** create shared libraries on Solaris systems. Therefore, libtool
9254 *** is disabling shared libraries support. We urge you to upgrade GNU
9255 *** binutils to release 2.9.1 or newer. Another option is to modify
9256 *** your PATH or compiler configuration so that the native linker is
9257 *** used, and then restart.
9258
9259 _LT_EOF
9260 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9261 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9262 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9263 else
9264 ld_shlibs=no
9265 fi
9266 ;;
9267
9268 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9269 case `$LD -v 2>&1` in
9270 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9271 ld_shlibs=no
9272 cat <<_LT_EOF 1>&2
9273
9274 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9275 *** reliably create shared libraries on SCO systems. Therefore, libtool
9276 *** is disabling shared libraries support. We urge you to upgrade GNU
9277 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9278 *** your PATH or compiler configuration so that the native linker is
9279 *** used, and then restart.
9280
9281 _LT_EOF
9282 ;;
9283 *)
9284 # For security reasons, it is highly recommended that you always
9285 # use absolute paths for naming shared libraries, and exclude the
9286 # DT_RUNPATH tag from executables and libraries. But doing so
9287 # requires that you compile everything twice, which is a pain.
9288 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9289 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9292 else
9293 ld_shlibs=no
9294 fi
9295 ;;
9296 esac
9297 ;;
9298
9299 sunos4*)
9300 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9301 wlarc=
9302 hardcode_direct=yes
9303 hardcode_shlibpath_var=no
9304 ;;
9305
9306 *)
9307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9308 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9309 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9310 else
9311 ld_shlibs=no
9312 fi
9313 ;;
9314 esac
9315
9316 if test no = "$ld_shlibs"; then
9317 runpath_var=
9318 hardcode_libdir_flag_spec=
9319 export_dynamic_flag_spec=
9320 whole_archive_flag_spec=
9321 fi
9322 else
9323 # PORTME fill in a description of your system's linker (not GNU ld)
9324 case $host_os in
9325 aix3*)
9326 allow_undefined_flag=unsupported
9327 always_export_symbols=yes
9328 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'
9329 # Note: this linker hardcodes the directories in LIBPATH if there
9330 # are no directories specified by -L.
9331 hardcode_minus_L=yes
9332 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9333 # Neither direct hardcoding nor static linking is supported with a
9334 # broken collect2.
9335 hardcode_direct=unsupported
9336 fi
9337 ;;
9338
9339 aix[4-9]*)
9340 if test ia64 = "$host_cpu"; then
9341 # On IA64, the linker does run time linking by default, so we don't
9342 # have to do anything special.
9343 aix_use_runtimelinking=no
9344 exp_sym_flag='-Bexport'
9345 no_entry_flag=
9346 else
9347 # If we're using GNU nm, then we don't want the "-C" option.
9348 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9349 # Without the "-l" option, or with the "-B" option, AIX nm treats
9350 # weak defined symbols like other global defined symbols, whereas
9351 # GNU nm marks them as "W".
9352 # While the 'weak' keyword is ignored in the Export File, we need
9353 # it in the Import File for the 'aix-soname' feature, so we have
9354 # to replace the "-B" option with "-P" for AIX nm.
9355 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9356 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9357 else
9358 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9359 fi
9360 aix_use_runtimelinking=no
9361
9362 # Test if we are trying to use run time linking or normal
9363 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9364 # have runtime linking enabled, and use it for executables.
9365 # For shared libraries, we enable/disable runtime linking
9366 # depending on the kind of the shared library created -
9367 # when "with_aix_soname,aix_use_runtimelinking" is:
9368 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9369 # "aix,yes" lib.so shared, rtl:yes, for executables
9370 # lib.a static archive
9371 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9372 # lib.a(lib.so.V) shared, rtl:no, for executables
9373 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9374 # lib.a(lib.so.V) shared, rtl:no
9375 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9376 # lib.a static archive
9377 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9378 for ld_flag in $LDFLAGS; do
9379 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9380 aix_use_runtimelinking=yes
9381 break
9382 fi
9383 done
9384 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9385 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9386 # so we don't have lib.a shared libs to link our executables.
9387 # We have to force runtime linking in this case.
9388 aix_use_runtimelinking=yes
9389 LDFLAGS="$LDFLAGS -Wl,-brtl"
9390 fi
9391 ;;
9392 esac
9393
9394 exp_sym_flag='-bexport'
9395 no_entry_flag='-bnoentry'
9396 fi
9397
9398 # When large executables or shared objects are built, AIX ld can
9399 # have problems creating the table of contents. If linking a library
9400 # or program results in "error TOC overflow" add -mminimal-toc to
9401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9403
9404 archive_cmds=''
9405 hardcode_direct=yes
9406 hardcode_direct_absolute=yes
9407 hardcode_libdir_separator=':'
9408 link_all_deplibs=yes
9409 file_list_spec='$wl-f,'
9410 case $with_aix_soname,$aix_use_runtimelinking in
9411 aix,*) ;; # traditional, no import file
9412 svr4,* | *,yes) # use import file
9413 # The Import File defines what to hardcode.
9414 hardcode_direct=no
9415 hardcode_direct_absolute=no
9416 ;;
9417 esac
9418
9419 if test yes = "$GCC"; then
9420 case $host_os in aix4.[012]|aix4.[012].*)
9421 # We only want to do this on AIX 4.2 and lower, the check
9422 # below for broken collect2 doesn't work under 4.3+
9423 collect2name=`$CC -print-prog-name=collect2`
9424 if test -f "$collect2name" &&
9425 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9426 then
9427 # We have reworked collect2
9428 :
9429 else
9430 # We have old collect2
9431 hardcode_direct=unsupported
9432 # It fails to find uninstalled libraries when the uninstalled
9433 # path is not listed in the libpath. Setting hardcode_minus_L
9434 # to unsupported forces relinking
9435 hardcode_minus_L=yes
9436 hardcode_libdir_flag_spec='-L$libdir'
9437 hardcode_libdir_separator=
9438 fi
9439 ;;
9440 esac
9441 shared_flag='-shared'
9442 if test yes = "$aix_use_runtimelinking"; then
9443 shared_flag="$shared_flag "'$wl-G'
9444 fi
9445 # Need to ensure runtime linking is disabled for the traditional
9446 # shared library, or the linker may eventually find shared libraries
9447 # /with/ Import File - we do not want to mix them.
9448 shared_flag_aix='-shared'
9449 shared_flag_svr4='-shared $wl-G'
9450 else
9451 # not using gcc
9452 if test ia64 = "$host_cpu"; then
9453 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9454 # chokes on -Wl,-G. The following line is correct:
9455 shared_flag='-G'
9456 else
9457 if test yes = "$aix_use_runtimelinking"; then
9458 shared_flag='$wl-G'
9459 else
9460 shared_flag='$wl-bM:SRE'
9461 fi
9462 shared_flag_aix='$wl-bM:SRE'
9463 shared_flag_svr4='$wl-G'
9464 fi
9465 fi
9466
9467 export_dynamic_flag_spec='$wl-bexpall'
9468 # It seems that -bexpall does not export symbols beginning with
9469 # underscore (_), so it is better to generate a list of symbols to export.
9470 always_export_symbols=yes
9471 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9472 # Warning - without using the other runtime loading flags (-brtl),
9473 # -berok will link without error, but may produce a broken library.
9474 allow_undefined_flag='-berok'
9475 # Determine the default libpath from the value encoded in an
9476 # empty executable.
9477 if test set = "${lt_cv_aix_libpath+set}"; then
9478 aix_libpath=$lt_cv_aix_libpath
9479 else
9480 if ${lt_cv_aix_libpath_+:} false; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485
9486 int
9487 main ()
9488 {
9489
9490 ;
9491 return 0;
9492 }
9493 _ACEOF
9494 if ac_fn_c_try_link "$LINENO"; then :
9495
9496 lt_aix_libpath_sed='
9497 /Import File Strings/,/^$/ {
9498 /^0/ {
9499 s/^0 *\([^ ]*\) *$/\1/
9500 p
9501 }
9502 }'
9503 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9504 # Check for a 64-bit object if we didn't find anything.
9505 if test -z "$lt_cv_aix_libpath_"; then
9506 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9507 fi
9508 fi
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9511 if test -z "$lt_cv_aix_libpath_"; then
9512 lt_cv_aix_libpath_=/usr/lib:/lib
9513 fi
9514
9515 fi
9516
9517 aix_libpath=$lt_cv_aix_libpath_
9518 fi
9519
9520 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9521 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9522 else
9523 if test ia64 = "$host_cpu"; then
9524 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9525 allow_undefined_flag="-z nodefs"
9526 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"
9527 else
9528 # Determine the default libpath from the value encoded in an
9529 # empty executable.
9530 if test set = "${lt_cv_aix_libpath+set}"; then
9531 aix_libpath=$lt_cv_aix_libpath
9532 else
9533 if ${lt_cv_aix_libpath_+:} false; then :
9534 $as_echo_n "(cached) " >&6
9535 else
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9538
9539 int
9540 main ()
9541 {
9542
9543 ;
9544 return 0;
9545 }
9546 _ACEOF
9547 if ac_fn_c_try_link "$LINENO"; then :
9548
9549 lt_aix_libpath_sed='
9550 /Import File Strings/,/^$/ {
9551 /^0/ {
9552 s/^0 *\([^ ]*\) *$/\1/
9553 p
9554 }
9555 }'
9556 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9557 # Check for a 64-bit object if we didn't find anything.
9558 if test -z "$lt_cv_aix_libpath_"; then
9559 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9560 fi
9561 fi
9562 rm -f core conftest.err conftest.$ac_objext \
9563 conftest$ac_exeext conftest.$ac_ext
9564 if test -z "$lt_cv_aix_libpath_"; then
9565 lt_cv_aix_libpath_=/usr/lib:/lib
9566 fi
9567
9568 fi
9569
9570 aix_libpath=$lt_cv_aix_libpath_
9571 fi
9572
9573 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9574 # Warning - without using the other run time loading flags,
9575 # -berok will link without error, but may produce a broken library.
9576 no_undefined_flag=' $wl-bernotok'
9577 allow_undefined_flag=' $wl-berok'
9578 if test yes = "$with_gnu_ld"; then
9579 # We only use this code for GNU lds that support --whole-archive.
9580 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9581 else
9582 # Exported symbols can be pulled into shared objects from archives
9583 whole_archive_flag_spec='$convenience'
9584 fi
9585 archive_cmds_need_lc=yes
9586 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9587 # -brtl affects multiple linker settings, -berok does not and is overridden later
9588 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9589 if test svr4 != "$with_aix_soname"; then
9590 # This is similar to how AIX traditionally builds its shared libraries.
9591 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9592 fi
9593 if test aix != "$with_aix_soname"; then
9594 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9595 else
9596 # used by -dlpreopen to get the symbols
9597 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9598 fi
9599 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9600 fi
9601 fi
9602 ;;
9603
9604 amigaos*)
9605 case $host_cpu in
9606 powerpc)
9607 # see comment about AmigaOS4 .so support
9608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9609 archive_expsym_cmds=''
9610 ;;
9611 m68k)
9612 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)'
9613 hardcode_libdir_flag_spec='-L$libdir'
9614 hardcode_minus_L=yes
9615 ;;
9616 esac
9617 ;;
9618
9619 bsdi[45]*)
9620 export_dynamic_flag_spec=-rdynamic
9621 ;;
9622
9623 cygwin* | mingw* | pw32* | cegcc*)
9624 # When not using gcc, we currently assume that we are using
9625 # Microsoft Visual C++.
9626 # hardcode_libdir_flag_spec is actually meaningless, as there is
9627 # no search path for DLLs.
9628 case $cc_basename in
9629 cl*)
9630 # Native MSVC
9631 hardcode_libdir_flag_spec=' '
9632 allow_undefined_flag=unsupported
9633 always_export_symbols=yes
9634 file_list_spec='@'
9635 # Tell ltmain to make .lib files, not .a files.
9636 libext=lib
9637 # Tell ltmain to make .dll files, not .so files.
9638 shrext_cmds=.dll
9639 # FIXME: Setting linknames here is a bad hack.
9640 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9641 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9642 cp "$export_symbols" "$output_objdir/$soname.def";
9643 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9644 else
9645 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9646 fi~
9647 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9648 linknames='
9649 # The linker will not automatically build a static lib if we build a DLL.
9650 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9651 enable_shared_with_static_runtimes=yes
9652 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9653 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9654 # Don't use ranlib
9655 old_postinstall_cmds='chmod 644 $oldlib'
9656 postlink_cmds='lt_outputfile="@OUTPUT@"~
9657 lt_tool_outputfile="@TOOL_OUTPUT@"~
9658 case $lt_outputfile in
9659 *.exe|*.EXE) ;;
9660 *)
9661 lt_outputfile=$lt_outputfile.exe
9662 lt_tool_outputfile=$lt_tool_outputfile.exe
9663 ;;
9664 esac~
9665 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9666 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9667 $RM "$lt_outputfile.manifest";
9668 fi'
9669 ;;
9670 *)
9671 # Assume MSVC wrapper
9672 hardcode_libdir_flag_spec=' '
9673 allow_undefined_flag=unsupported
9674 # Tell ltmain to make .lib files, not .a files.
9675 libext=lib
9676 # Tell ltmain to make .dll files, not .so files.
9677 shrext_cmds=.dll
9678 # FIXME: Setting linknames here is a bad hack.
9679 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9680 # The linker will automatically build a .lib file if we build a DLL.
9681 old_archive_from_new_cmds='true'
9682 # FIXME: Should let the user specify the lib program.
9683 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9684 enable_shared_with_static_runtimes=yes
9685 ;;
9686 esac
9687 ;;
9688
9689 darwin* | rhapsody*)
9690
9691
9692 archive_cmds_need_lc=no
9693 hardcode_direct=no
9694 hardcode_automatic=yes
9695 hardcode_shlibpath_var=unsupported
9696 if test yes = "$lt_cv_ld_force_load"; then
9697 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\"`'
9698
9699 else
9700 whole_archive_flag_spec=''
9701 fi
9702 link_all_deplibs=yes
9703 allow_undefined_flag=$_lt_dar_allow_undefined
9704 case $cc_basename in
9705 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9706 *) _lt_dar_can_shared=$GCC ;;
9707 esac
9708 if test yes = "$_lt_dar_can_shared"; then
9709 output_verbose_link_cmd=func_echo_all
9710 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9711 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9712 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"
9713 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"
9714
9715 else
9716 ld_shlibs=no
9717 fi
9718
9719 ;;
9720
9721 dgux*)
9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_libdir_flag_spec='-L$libdir'
9724 hardcode_shlibpath_var=no
9725 ;;
9726
9727 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9728 # support. Future versions do this automatically, but an explicit c++rt0.o
9729 # does not break anything, and helps significantly (at the cost of a little
9730 # extra space).
9731 freebsd2.2*)
9732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9733 hardcode_libdir_flag_spec='-R$libdir'
9734 hardcode_direct=yes
9735 hardcode_shlibpath_var=no
9736 ;;
9737
9738 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9739 freebsd2.*)
9740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_direct=yes
9742 hardcode_minus_L=yes
9743 hardcode_shlibpath_var=no
9744 ;;
9745
9746 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9747 freebsd* | dragonfly*)
9748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9749 hardcode_libdir_flag_spec='-R$libdir'
9750 hardcode_direct=yes
9751 hardcode_shlibpath_var=no
9752 ;;
9753
9754 hpux9*)
9755 if test yes = "$GCC"; then
9756 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9757 else
9758 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9759 fi
9760 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9761 hardcode_libdir_separator=:
9762 hardcode_direct=yes
9763
9764 # hardcode_minus_L: Not really in the search PATH,
9765 # but as the default location of the library.
9766 hardcode_minus_L=yes
9767 export_dynamic_flag_spec='$wl-E'
9768 ;;
9769
9770 hpux10*)
9771 if test yes,no = "$GCC,$with_gnu_ld"; then
9772 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9773 else
9774 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9775 fi
9776 if test no = "$with_gnu_ld"; then
9777 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9778 hardcode_libdir_separator=:
9779 hardcode_direct=yes
9780 hardcode_direct_absolute=yes
9781 export_dynamic_flag_spec='$wl-E'
9782 # hardcode_minus_L: Not really in the search PATH,
9783 # but as the default location of the library.
9784 hardcode_minus_L=yes
9785 fi
9786 ;;
9787
9788 hpux11*)
9789 if test yes,no = "$GCC,$with_gnu_ld"; then
9790 case $host_cpu in
9791 hppa*64*)
9792 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9793 ;;
9794 ia64*)
9795 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9796 ;;
9797 *)
9798 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9799 ;;
9800 esac
9801 else
9802 case $host_cpu in
9803 hppa*64*)
9804 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9805 ;;
9806 ia64*)
9807 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9808 ;;
9809 *)
9810
9811 # Older versions of the 11.00 compiler do not understand -b yet
9812 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9814 $as_echo_n "checking if $CC understands -b... " >&6; }
9815 if ${lt_cv_prog_compiler__b+:} false; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 lt_cv_prog_compiler__b=no
9819 save_LDFLAGS=$LDFLAGS
9820 LDFLAGS="$LDFLAGS -b"
9821 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9823 # The linker can only warn and ignore the option if not recognized
9824 # So say no if there are warnings
9825 if test -s conftest.err; then
9826 # Append any errors to the config.log.
9827 cat conftest.err 1>&5
9828 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9830 if diff conftest.exp conftest.er2 >/dev/null; then
9831 lt_cv_prog_compiler__b=yes
9832 fi
9833 else
9834 lt_cv_prog_compiler__b=yes
9835 fi
9836 fi
9837 $RM -r conftest*
9838 LDFLAGS=$save_LDFLAGS
9839
9840 fi
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9842 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9843
9844 if test yes = "$lt_cv_prog_compiler__b"; then
9845 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9846 else
9847 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9848 fi
9849
9850 ;;
9851 esac
9852 fi
9853 if test no = "$with_gnu_ld"; then
9854 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9855 hardcode_libdir_separator=:
9856
9857 case $host_cpu in
9858 hppa*64*|ia64*)
9859 hardcode_direct=no
9860 hardcode_shlibpath_var=no
9861 ;;
9862 *)
9863 hardcode_direct=yes
9864 hardcode_direct_absolute=yes
9865 export_dynamic_flag_spec='$wl-E'
9866
9867 # hardcode_minus_L: Not really in the search PATH,
9868 # but as the default location of the library.
9869 hardcode_minus_L=yes
9870 ;;
9871 esac
9872 fi
9873 ;;
9874
9875 irix5* | irix6* | nonstopux*)
9876 if test yes = "$GCC"; then
9877 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9878 # Try to use the -exported_symbol ld option, if it does not
9879 # work, assume that -exports_file does not work either and
9880 # implicitly export all symbols.
9881 # This should be the same for all languages, so no per-tag cache variable.
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9883 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9884 if ${lt_cv_irix_exported_symbol+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 save_LDFLAGS=$LDFLAGS
9888 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9891 int foo (void) { return 0; }
9892 _ACEOF
9893 if ac_fn_c_try_link "$LINENO"; then :
9894 lt_cv_irix_exported_symbol=yes
9895 else
9896 lt_cv_irix_exported_symbol=no
9897 fi
9898 rm -f core conftest.err conftest.$ac_objext \
9899 conftest$ac_exeext conftest.$ac_ext
9900 LDFLAGS=$save_LDFLAGS
9901 fi
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9903 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9904 if test yes = "$lt_cv_irix_exported_symbol"; then
9905 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9906 fi
9907 else
9908 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'
9909 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'
9910 fi
9911 archive_cmds_need_lc='no'
9912 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9913 hardcode_libdir_separator=:
9914 inherit_rpath=yes
9915 link_all_deplibs=yes
9916 ;;
9917
9918 linux*)
9919 case $cc_basename in
9920 tcc*)
9921 # Fabrice Bellard et al's Tiny C Compiler
9922 ld_shlibs=yes
9923 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9924 ;;
9925 esac
9926 ;;
9927
9928 netbsd*)
9929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9931 else
9932 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9933 fi
9934 hardcode_libdir_flag_spec='-R$libdir'
9935 hardcode_direct=yes
9936 hardcode_shlibpath_var=no
9937 ;;
9938
9939 newsos6)
9940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941 hardcode_direct=yes
9942 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9943 hardcode_libdir_separator=:
9944 hardcode_shlibpath_var=no
9945 ;;
9946
9947 *nto* | *qnx*)
9948 ;;
9949
9950 openbsd* | bitrig*)
9951 if test -f /usr/libexec/ld.so; then
9952 hardcode_direct=yes
9953 hardcode_shlibpath_var=no
9954 hardcode_direct_absolute=yes
9955 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9957 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9958 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9959 export_dynamic_flag_spec='$wl-E'
9960 else
9961 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9962 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9963 fi
9964 else
9965 ld_shlibs=no
9966 fi
9967 ;;
9968
9969 os2*)
9970 hardcode_libdir_flag_spec='-L$libdir'
9971 hardcode_minus_L=yes
9972 allow_undefined_flag=unsupported
9973 shrext_cmds=.dll
9974 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9975 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9976 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9977 $ECHO EXPORTS >> $output_objdir/$libname.def~
9978 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9979 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9980 emximp -o $lib $output_objdir/$libname.def'
9981 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9982 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9983 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9984 $ECHO EXPORTS >> $output_objdir/$libname.def~
9985 prefix_cmds="$SED"~
9986 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9987 prefix_cmds="$prefix_cmds -e 1d";
9988 fi~
9989 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9990 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9991 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9992 emximp -o $lib $output_objdir/$libname.def'
9993 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9994 enable_shared_with_static_runtimes=yes
9995 ;;
9996
9997 osf3*)
9998 if test yes = "$GCC"; then
9999 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10000 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'
10001 else
10002 allow_undefined_flag=' -expect_unresolved \*'
10003 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'
10004 fi
10005 archive_cmds_need_lc='no'
10006 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10007 hardcode_libdir_separator=:
10008 ;;
10009
10010 osf4* | osf5*) # as osf3* with the addition of -msym flag
10011 if test yes = "$GCC"; then
10012 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10013 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10014 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10015 else
10016 allow_undefined_flag=' -expect_unresolved \*'
10017 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'
10018 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~
10019 $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'
10020
10021 # Both c and cxx compiler support -rpath directly
10022 hardcode_libdir_flag_spec='-rpath $libdir'
10023 fi
10024 archive_cmds_need_lc='no'
10025 hardcode_libdir_separator=:
10026 ;;
10027
10028 solaris*)
10029 no_undefined_flag=' -z defs'
10030 if test yes = "$GCC"; then
10031 wlarc='$wl'
10032 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10034 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10035 else
10036 case `$CC -V 2>&1` in
10037 *"Compilers 5.0"*)
10038 wlarc=''
10039 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10041 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10042 ;;
10043 *)
10044 wlarc='$wl'
10045 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10046 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10047 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10048 ;;
10049 esac
10050 fi
10051 hardcode_libdir_flag_spec='-R$libdir'
10052 hardcode_shlibpath_var=no
10053 case $host_os in
10054 solaris2.[0-5] | solaris2.[0-5].*) ;;
10055 *)
10056 # The compiler driver will combine and reorder linker options,
10057 # but understands '-z linker_flag'. GCC discards it without '$wl',
10058 # but is careful enough not to reorder.
10059 # Supported since Solaris 2.6 (maybe 2.5.1?)
10060 if test yes = "$GCC"; then
10061 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10062 else
10063 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10064 fi
10065 ;;
10066 esac
10067 link_all_deplibs=yes
10068 ;;
10069
10070 sunos4*)
10071 if test sequent = "$host_vendor"; then
10072 # Use $CC to link under sequent, because it throws in some extra .o
10073 # files that make .init and .fini sections work.
10074 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10075 else
10076 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10077 fi
10078 hardcode_libdir_flag_spec='-L$libdir'
10079 hardcode_direct=yes
10080 hardcode_minus_L=yes
10081 hardcode_shlibpath_var=no
10082 ;;
10083
10084 sysv4)
10085 case $host_vendor in
10086 sni)
10087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088 hardcode_direct=yes # is this really true???
10089 ;;
10090 siemens)
10091 ## LD is ld it makes a PLAMLIB
10092 ## CC just makes a GrossModule.
10093 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10094 reload_cmds='$CC -r -o $output$reload_objs'
10095 hardcode_direct=no
10096 ;;
10097 motorola)
10098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10100 ;;
10101 esac
10102 runpath_var='LD_RUN_PATH'
10103 hardcode_shlibpath_var=no
10104 ;;
10105
10106 sysv4.3*)
10107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10108 hardcode_shlibpath_var=no
10109 export_dynamic_flag_spec='-Bexport'
10110 ;;
10111
10112 sysv4*MP*)
10113 if test -d /usr/nec; then
10114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_shlibpath_var=no
10116 runpath_var=LD_RUN_PATH
10117 hardcode_runpath_var=yes
10118 ld_shlibs=yes
10119 fi
10120 ;;
10121
10122 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10123 no_undefined_flag='$wl-z,text'
10124 archive_cmds_need_lc=no
10125 hardcode_shlibpath_var=no
10126 runpath_var='LD_RUN_PATH'
10127
10128 if test yes = "$GCC"; then
10129 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10131 else
10132 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10134 fi
10135 ;;
10136
10137 sysv5* | sco3.2v5* | sco5v6*)
10138 # Note: We CANNOT use -z defs as we might desire, because we do not
10139 # link with -lc, and that would cause any symbols used from libc to
10140 # always be unresolved, which means just about no library would
10141 # ever link correctly. If we're not using GNU ld we use -z text
10142 # though, which does catch some bad symbols but isn't as heavy-handed
10143 # as -z defs.
10144 no_undefined_flag='$wl-z,text'
10145 allow_undefined_flag='$wl-z,nodefs'
10146 archive_cmds_need_lc=no
10147 hardcode_shlibpath_var=no
10148 hardcode_libdir_flag_spec='$wl-R,$libdir'
10149 hardcode_libdir_separator=':'
10150 link_all_deplibs=yes
10151 export_dynamic_flag_spec='$wl-Bexport'
10152 runpath_var='LD_RUN_PATH'
10153
10154 if test yes = "$GCC"; then
10155 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10157 else
10158 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 fi
10161 ;;
10162
10163 uts4*)
10164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10165 hardcode_libdir_flag_spec='-L$libdir'
10166 hardcode_shlibpath_var=no
10167 ;;
10168
10169 *)
10170 ld_shlibs=no
10171 ;;
10172 esac
10173
10174 if test sni = "$host_vendor"; then
10175 case $host in
10176 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10177 export_dynamic_flag_spec='$wl-Blargedynsym'
10178 ;;
10179 esac
10180 fi
10181 fi
10182
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10184 $as_echo "$ld_shlibs" >&6; }
10185 test no = "$ld_shlibs" && can_build_shared=no
10186
10187 with_gnu_ld=$with_gnu_ld
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203 #
10204 # Do we need to explicitly link libc?
10205 #
10206 case "x$archive_cmds_need_lc" in
10207 x|xyes)
10208 # Assume -lc should be added
10209 archive_cmds_need_lc=yes
10210
10211 if test yes,yes = "$GCC,$enable_shared"; then
10212 case $archive_cmds in
10213 *'~'*)
10214 # FIXME: we may have to deal with multi-command sequences.
10215 ;;
10216 '$CC '*)
10217 # Test whether the compiler implicitly links with -lc since on some
10218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10219 # to ld, don't add -lc before -lgcc.
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10221 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10222 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10223 $as_echo_n "(cached) " >&6
10224 else
10225 $RM conftest*
10226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10227
10228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10229 (eval $ac_compile) 2>&5
10230 ac_status=$?
10231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10232 test $ac_status = 0; } 2>conftest.err; then
10233 soname=conftest
10234 lib=conftest
10235 libobjs=conftest.$ac_objext
10236 deplibs=
10237 wl=$lt_prog_compiler_wl
10238 pic_flag=$lt_prog_compiler_pic
10239 compiler_flags=-v
10240 linker_flags=-v
10241 verstring=
10242 output_objdir=.
10243 libname=conftest
10244 lt_save_allow_undefined_flag=$allow_undefined_flag
10245 allow_undefined_flag=
10246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10247 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10248 ac_status=$?
10249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10250 test $ac_status = 0; }
10251 then
10252 lt_cv_archive_cmds_need_lc=no
10253 else
10254 lt_cv_archive_cmds_need_lc=yes
10255 fi
10256 allow_undefined_flag=$lt_save_allow_undefined_flag
10257 else
10258 cat conftest.err 1>&5
10259 fi
10260 $RM conftest*
10261
10262 fi
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10264 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10265 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10266 ;;
10267 esac
10268 fi
10269 ;;
10270 esac
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10424 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10425
10426 if test yes = "$GCC"; then
10427 case $host_os in
10428 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10429 *) lt_awk_arg='/^libraries:/' ;;
10430 esac
10431 case $host_os in
10432 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10433 *) lt_sed_strip_eq='s|=/|/|g' ;;
10434 esac
10435 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10436 case $lt_search_path_spec in
10437 *\;*)
10438 # if the path contains ";" then we assume it to be the separator
10439 # otherwise default to the standard path separator (i.e. ":") - it is
10440 # assumed that no part of a normal pathname contains ";" but that should
10441 # okay in the real world where ";" in dirpaths is itself problematic.
10442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10443 ;;
10444 *)
10445 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10446 ;;
10447 esac
10448 # Ok, now we have the path, separated by spaces, we can step through it
10449 # and add multilib dir if necessary...
10450 lt_tmp_lt_search_path_spec=
10451 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10452 # ...but if some path component already ends with the multilib dir we assume
10453 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10454 case "$lt_multi_os_dir; $lt_search_path_spec " in
10455 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10456 lt_multi_os_dir=
10457 ;;
10458 esac
10459 for lt_sys_path in $lt_search_path_spec; do
10460 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10461 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10462 elif test -n "$lt_multi_os_dir"; then
10463 test -d "$lt_sys_path" && \
10464 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10465 fi
10466 done
10467 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10468 BEGIN {RS = " "; FS = "/|\n";} {
10469 lt_foo = "";
10470 lt_count = 0;
10471 for (lt_i = NF; lt_i > 0; lt_i--) {
10472 if ($lt_i != "" && $lt_i != ".") {
10473 if ($lt_i == "..") {
10474 lt_count++;
10475 } else {
10476 if (lt_count == 0) {
10477 lt_foo = "/" $lt_i lt_foo;
10478 } else {
10479 lt_count--;
10480 }
10481 }
10482 }
10483 }
10484 if (lt_foo != "") { lt_freq[lt_foo]++; }
10485 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10486 }'`
10487 # AWK program above erroneously prepends '/' to C:/dos/paths
10488 # for these hosts.
10489 case $host_os in
10490 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10491 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10492 esac
10493 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10494 else
10495 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10496 fi
10497 library_names_spec=
10498 libname_spec='lib$name'
10499 soname_spec=
10500 shrext_cmds=.so
10501 postinstall_cmds=
10502 postuninstall_cmds=
10503 finish_cmds=
10504 finish_eval=
10505 shlibpath_var=
10506 shlibpath_overrides_runpath=unknown
10507 version_type=none
10508 dynamic_linker="$host_os ld.so"
10509 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10510 need_lib_prefix=unknown
10511 hardcode_into_libs=no
10512
10513 # when you set need_version to no, make sure it does not cause -set_version
10514 # flags to be left without arguments
10515 need_version=unknown
10516
10517
10518
10519 case $host_os in
10520 aix3*)
10521 version_type=linux # correct to gnu/linux during the next big refactor
10522 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10523 shlibpath_var=LIBPATH
10524
10525 # AIX 3 has no versioning support, so we append a major version to the name.
10526 soname_spec='$libname$release$shared_ext$major'
10527 ;;
10528
10529 aix[4-9]*)
10530 version_type=linux # correct to gnu/linux during the next big refactor
10531 need_lib_prefix=no
10532 need_version=no
10533 hardcode_into_libs=yes
10534 if test ia64 = "$host_cpu"; then
10535 # AIX 5 supports IA64
10536 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 else
10539 # With GCC up to 2.95.x, collect2 would create an import file
10540 # for dependence libraries. The import file would start with
10541 # the line '#! .'. This would cause the generated library to
10542 # depend on '.', always an invalid library. This was fixed in
10543 # development snapshots of GCC prior to 3.0.
10544 case $host_os in
10545 aix4 | aix4.[01] | aix4.[01].*)
10546 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10547 echo ' yes '
10548 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10549 :
10550 else
10551 can_build_shared=no
10552 fi
10553 ;;
10554 esac
10555 # Using Import Files as archive members, it is possible to support
10556 # filename-based versioning of shared library archives on AIX. While
10557 # this would work for both with and without runtime linking, it will
10558 # prevent static linking of such archives. So we do filename-based
10559 # shared library versioning with .so extension only, which is used
10560 # when both runtime linking and shared linking is enabled.
10561 # Unfortunately, runtime linking may impact performance, so we do
10562 # not want this to be the default eventually. Also, we use the
10563 # versioned .so libs for executables only if there is the -brtl
10564 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10565 # To allow for filename-based versioning support, we need to create
10566 # libNAME.so.V as an archive file, containing:
10567 # *) an Import File, referring to the versioned filename of the
10568 # archive as well as the shared archive member, telling the
10569 # bitwidth (32 or 64) of that shared object, and providing the
10570 # list of exported symbols of that shared object, eventually
10571 # decorated with the 'weak' keyword
10572 # *) the shared object with the F_LOADONLY flag set, to really avoid
10573 # it being seen by the linker.
10574 # At run time we better use the real file rather than another symlink,
10575 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10576
10577 case $with_aix_soname,$aix_use_runtimelinking in
10578 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10579 # soname into executable. Probably we can add versioning support to
10580 # collect2, so additional links can be useful in future.
10581 aix,yes) # traditional libtool
10582 dynamic_linker='AIX unversionable lib.so'
10583 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10584 # instead of lib<name>.a to let people know that these are not
10585 # typical AIX shared libraries.
10586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10587 ;;
10588 aix,no) # traditional AIX only
10589 dynamic_linker='AIX lib.a(lib.so.V)'
10590 # We preserve .a as extension for shared libraries through AIX4.2
10591 # and later when we are not doing run time linking.
10592 library_names_spec='$libname$release.a $libname.a'
10593 soname_spec='$libname$release$shared_ext$major'
10594 ;;
10595 svr4,*) # full svr4 only
10596 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10597 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10598 # We do not specify a path in Import Files, so LIBPATH fires.
10599 shlibpath_overrides_runpath=yes
10600 ;;
10601 *,yes) # both, prefer svr4
10602 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10603 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10604 # unpreferred sharedlib libNAME.a needs extra handling
10605 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10606 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10607 # We do not specify a path in Import Files, so LIBPATH fires.
10608 shlibpath_overrides_runpath=yes
10609 ;;
10610 *,no) # both, prefer aix
10611 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10612 library_names_spec='$libname$release.a $libname.a'
10613 soname_spec='$libname$release$shared_ext$major'
10614 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10615 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10616 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10617 ;;
10618 esac
10619 shlibpath_var=LIBPATH
10620 fi
10621 ;;
10622
10623 amigaos*)
10624 case $host_cpu in
10625 powerpc)
10626 # Since July 2007 AmigaOS4 officially supports .so libraries.
10627 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10629 ;;
10630 m68k)
10631 library_names_spec='$libname.ixlibrary $libname.a'
10632 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10633 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10634 ;;
10635 esac
10636 ;;
10637
10638 beos*)
10639 library_names_spec='$libname$shared_ext'
10640 dynamic_linker="$host_os ld.so"
10641 shlibpath_var=LIBRARY_PATH
10642 ;;
10643
10644 bsdi[45]*)
10645 version_type=linux # correct to gnu/linux during the next big refactor
10646 need_version=no
10647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10648 soname_spec='$libname$release$shared_ext$major'
10649 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10652 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10653 # the default ld.so.conf also contains /usr/contrib/lib and
10654 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10655 # libtool to hard-code these into programs
10656 ;;
10657
10658 cygwin* | mingw* | pw32* | cegcc*)
10659 version_type=windows
10660 shrext_cmds=.dll
10661 need_version=no
10662 need_lib_prefix=no
10663
10664 case $GCC,$cc_basename in
10665 yes,*)
10666 # gcc
10667 library_names_spec='$libname.dll.a'
10668 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10669 postinstall_cmds='base_file=`basename \$file`~
10670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10671 dldir=$destdir/`dirname \$dlpath`~
10672 test -d \$dldir || mkdir -p \$dldir~
10673 $install_prog $dir/$dlname \$dldir/$dlname~
10674 chmod a+x \$dldir/$dlname~
10675 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10676 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10677 fi'
10678 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10679 dlpath=$dir/\$dldll~
10680 $RM \$dlpath'
10681 shlibpath_overrides_runpath=yes
10682
10683 case $host_os in
10684 cygwin*)
10685 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10686 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10687
10688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10689 ;;
10690 mingw* | cegcc*)
10691 # MinGW DLLs use traditional 'lib' prefix
10692 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10693 ;;
10694 pw32*)
10695 # pw32 DLLs use 'pw' prefix rather than 'lib'
10696 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10697 ;;
10698 esac
10699 dynamic_linker='Win32 ld.exe'
10700 ;;
10701
10702 *,cl*)
10703 # Native MSVC
10704 libname_spec='$name'
10705 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10706 library_names_spec='$libname.dll.lib'
10707
10708 case $build_os in
10709 mingw*)
10710 sys_lib_search_path_spec=
10711 lt_save_ifs=$IFS
10712 IFS=';'
10713 for lt_path in $LIB
10714 do
10715 IFS=$lt_save_ifs
10716 # Let DOS variable expansion print the short 8.3 style file name.
10717 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10718 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10719 done
10720 IFS=$lt_save_ifs
10721 # Convert to MSYS style.
10722 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10723 ;;
10724 cygwin*)
10725 # Convert to unix form, then to dos form, then back to unix form
10726 # but this time dos style (no spaces!) so that the unix form looks
10727 # like /cygdrive/c/PROGRA~1:/cygdr...
10728 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10729 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10730 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10731 ;;
10732 *)
10733 sys_lib_search_path_spec=$LIB
10734 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10735 # It is most probably a Windows format PATH.
10736 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10737 else
10738 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10739 fi
10740 # FIXME: find the short name or the path components, as spaces are
10741 # common. (e.g. "Program Files" -> "PROGRA~1")
10742 ;;
10743 esac
10744
10745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10746 postinstall_cmds='base_file=`basename \$file`~
10747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10748 dldir=$destdir/`dirname \$dlpath`~
10749 test -d \$dldir || mkdir -p \$dldir~
10750 $install_prog $dir/$dlname \$dldir/$dlname'
10751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10752 dlpath=$dir/\$dldll~
10753 $RM \$dlpath'
10754 shlibpath_overrides_runpath=yes
10755 dynamic_linker='Win32 link.exe'
10756 ;;
10757
10758 *)
10759 # Assume MSVC wrapper
10760 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10761 dynamic_linker='Win32 ld.exe'
10762 ;;
10763 esac
10764 # FIXME: first we should search . and the directory the executable is in
10765 shlibpath_var=PATH
10766 ;;
10767
10768 darwin* | rhapsody*)
10769 dynamic_linker="$host_os dyld"
10770 version_type=darwin
10771 need_lib_prefix=no
10772 need_version=no
10773 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10774 soname_spec='$libname$release$major$shared_ext'
10775 shlibpath_overrides_runpath=yes
10776 shlibpath_var=DYLD_LIBRARY_PATH
10777 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10778
10779 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10781 ;;
10782
10783 dgux*)
10784 version_type=linux # correct to gnu/linux during the next big refactor
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10788 soname_spec='$libname$release$shared_ext$major'
10789 shlibpath_var=LD_LIBRARY_PATH
10790 ;;
10791
10792 freebsd* | dragonfly*)
10793 # DragonFly does not have aout. When/if they implement a new
10794 # versioning mechanism, adjust this.
10795 if test -x /usr/bin/objformat; then
10796 objformat=`/usr/bin/objformat`
10797 else
10798 case $host_os in
10799 freebsd[23].*) objformat=aout ;;
10800 *) objformat=elf ;;
10801 esac
10802 fi
10803 version_type=freebsd-$objformat
10804 case $version_type in
10805 freebsd-elf*)
10806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10807 soname_spec='$libname$release$shared_ext$major'
10808 need_version=no
10809 need_lib_prefix=no
10810 ;;
10811 freebsd-*)
10812 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10813 need_version=yes
10814 ;;
10815 esac
10816 shlibpath_var=LD_LIBRARY_PATH
10817 case $host_os in
10818 freebsd2.*)
10819 shlibpath_overrides_runpath=yes
10820 ;;
10821 freebsd3.[01]* | freebsdelf3.[01]*)
10822 shlibpath_overrides_runpath=yes
10823 hardcode_into_libs=yes
10824 ;;
10825 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10826 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10827 shlibpath_overrides_runpath=no
10828 hardcode_into_libs=yes
10829 ;;
10830 *) # from 4.6 on, and DragonFly
10831 shlibpath_overrides_runpath=yes
10832 hardcode_into_libs=yes
10833 ;;
10834 esac
10835 ;;
10836
10837 haiku*)
10838 version_type=linux # correct to gnu/linux during the next big refactor
10839 need_lib_prefix=no
10840 need_version=no
10841 dynamic_linker="$host_os runtime_loader"
10842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10843 soname_spec='$libname$release$shared_ext$major'
10844 shlibpath_var=LIBRARY_PATH
10845 shlibpath_overrides_runpath=no
10846 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10847 hardcode_into_libs=yes
10848 ;;
10849
10850 hpux9* | hpux10* | hpux11*)
10851 # Give a soname corresponding to the major version so that dld.sl refuses to
10852 # link against other versions.
10853 version_type=sunos
10854 need_lib_prefix=no
10855 need_version=no
10856 case $host_cpu in
10857 ia64*)
10858 shrext_cmds='.so'
10859 hardcode_into_libs=yes
10860 dynamic_linker="$host_os dld.so"
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10864 soname_spec='$libname$release$shared_ext$major'
10865 if test 32 = "$HPUX_IA64_MODE"; then
10866 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10867 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10868 else
10869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10870 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10871 fi
10872 ;;
10873 hppa*64*)
10874 shrext_cmds='.sl'
10875 hardcode_into_libs=yes
10876 dynamic_linker="$host_os dld.sl"
10877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10880 soname_spec='$libname$release$shared_ext$major'
10881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10883 ;;
10884 *)
10885 shrext_cmds='.sl'
10886 dynamic_linker="$host_os dld.sl"
10887 shlibpath_var=SHLIB_PATH
10888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10890 soname_spec='$libname$release$shared_ext$major'
10891 ;;
10892 esac
10893 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10894 postinstall_cmds='chmod 555 $lib'
10895 # or fails outright, so override atomically:
10896 install_override_mode=555
10897 ;;
10898
10899 interix[3-9]*)
10900 version_type=linux # correct to gnu/linux during the next big refactor
10901 need_lib_prefix=no
10902 need_version=no
10903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10904 soname_spec='$libname$release$shared_ext$major'
10905 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 shlibpath_overrides_runpath=no
10908 hardcode_into_libs=yes
10909 ;;
10910
10911 irix5* | irix6* | nonstopux*)
10912 case $host_os in
10913 nonstopux*) version_type=nonstopux ;;
10914 *)
10915 if test yes = "$lt_cv_prog_gnu_ld"; then
10916 version_type=linux # correct to gnu/linux during the next big refactor
10917 else
10918 version_type=irix
10919 fi ;;
10920 esac
10921 need_lib_prefix=no
10922 need_version=no
10923 soname_spec='$libname$release$shared_ext$major'
10924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10925 case $host_os in
10926 irix5* | nonstopux*)
10927 libsuff= shlibsuff=
10928 ;;
10929 *)
10930 case $LD in # libtool.m4 will add one of these switches to LD
10931 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10932 libsuff= shlibsuff= libmagic=32-bit;;
10933 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10934 libsuff=32 shlibsuff=N32 libmagic=N32;;
10935 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10936 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10937 *) libsuff= shlibsuff= libmagic=never-match;;
10938 esac
10939 ;;
10940 esac
10941 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10942 shlibpath_overrides_runpath=no
10943 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10944 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10945 hardcode_into_libs=yes
10946 ;;
10947
10948 # No shared lib support for Linux oldld, aout, or coff.
10949 linux*oldld* | linux*aout* | linux*coff*)
10950 dynamic_linker=no
10951 ;;
10952
10953 linux*android*)
10954 version_type=none # Android doesn't support versioned libraries.
10955 need_lib_prefix=no
10956 need_version=no
10957 library_names_spec='$libname$release$shared_ext'
10958 soname_spec='$libname$release$shared_ext'
10959 finish_cmds=
10960 shlibpath_var=LD_LIBRARY_PATH
10961 shlibpath_overrides_runpath=yes
10962
10963 # This implies no fast_install, which is unacceptable.
10964 # Some rework will be needed to allow for fast_install
10965 # before this can be enabled.
10966 hardcode_into_libs=yes
10967
10968 dynamic_linker='Android linker'
10969 # Don't embed -rpath directories since the linker doesn't support them.
10970 hardcode_libdir_flag_spec='-L$libdir'
10971 ;;
10972
10973 # This must be glibc/ELF.
10974 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10975 version_type=linux # correct to gnu/linux during the next big refactor
10976 need_lib_prefix=no
10977 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath=no
10983
10984 # Some binutils ld are patched to set DT_RUNPATH
10985 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 lt_cv_shlibpath_overrides_runpath=no
10989 save_LDFLAGS=$LDFLAGS
10990 save_libdir=$libdir
10991 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10992 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10995
10996 int
10997 main ()
10998 {
10999
11000 ;
11001 return 0;
11002 }
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"; then :
11005 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11006 lt_cv_shlibpath_overrides_runpath=yes
11007 fi
11008 fi
11009 rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011 LDFLAGS=$save_LDFLAGS
11012 libdir=$save_libdir
11013
11014 fi
11015
11016 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11017
11018 # This implies no fast_install, which is unacceptable.
11019 # Some rework will be needed to allow for fast_install
11020 # before this can be enabled.
11021 hardcode_into_libs=yes
11022
11023 # Ideally, we could use ldconfig to report *all* directores which are
11024 # searched for libraries, however this is still not possible. Aside from not
11025 # being certain /sbin/ldconfig is available, command
11026 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11027 # even though it is searched at run-time. Try to do the best guess by
11028 # appending ld.so.conf contents (and includes) to the search path.
11029 if test -f /etc/ld.so.conf; then
11030 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' ' '`
11031 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11032 fi
11033
11034 # We used to test for /lib/ld.so.1 and disable shared libraries on
11035 # powerpc, because MkLinux only supported shared libraries with the
11036 # GNU dynamic linker. Since this was broken with cross compilers,
11037 # most powerpc-linux boxes support dynamic linking these days and
11038 # people can always --disable-shared, the test was removed, and we
11039 # assume the GNU/Linux dynamic linker is in use.
11040 dynamic_linker='GNU/Linux ld.so'
11041 ;;
11042
11043 netbsd*)
11044 version_type=sunos
11045 need_lib_prefix=no
11046 need_version=no
11047 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11048 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11050 dynamic_linker='NetBSD (a.out) ld.so'
11051 else
11052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11053 soname_spec='$libname$release$shared_ext$major'
11054 dynamic_linker='NetBSD ld.elf_so'
11055 fi
11056 shlibpath_var=LD_LIBRARY_PATH
11057 shlibpath_overrides_runpath=yes
11058 hardcode_into_libs=yes
11059 ;;
11060
11061 newsos6)
11062 version_type=linux # correct to gnu/linux during the next big refactor
11063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 shlibpath_overrides_runpath=yes
11066 ;;
11067
11068 *nto* | *qnx*)
11069 version_type=qnx
11070 need_lib_prefix=no
11071 need_version=no
11072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11073 soname_spec='$libname$release$shared_ext$major'
11074 shlibpath_var=LD_LIBRARY_PATH
11075 shlibpath_overrides_runpath=no
11076 hardcode_into_libs=yes
11077 dynamic_linker='ldqnx.so'
11078 ;;
11079
11080 openbsd* | bitrig*)
11081 version_type=sunos
11082 sys_lib_dlsearch_path_spec=/usr/lib
11083 need_lib_prefix=no
11084 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11085 need_version=no
11086 else
11087 need_version=yes
11088 fi
11089 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11091 shlibpath_var=LD_LIBRARY_PATH
11092 shlibpath_overrides_runpath=yes
11093 ;;
11094
11095 os2*)
11096 libname_spec='$name'
11097 version_type=windows
11098 shrext_cmds=.dll
11099 need_version=no
11100 need_lib_prefix=no
11101 # OS/2 can only load a DLL with a base name of 8 characters or less.
11102 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11103 v=$($ECHO $release$versuffix | tr -d .-);
11104 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11105 $ECHO $n$v`$shared_ext'
11106 library_names_spec='${libname}_dll.$libext'
11107 dynamic_linker='OS/2 ld.exe'
11108 shlibpath_var=BEGINLIBPATH
11109 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11111 postinstall_cmds='base_file=`basename \$file`~
11112 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11113 dldir=$destdir/`dirname \$dlpath`~
11114 test -d \$dldir || mkdir -p \$dldir~
11115 $install_prog $dir/$dlname \$dldir/$dlname~
11116 chmod a+x \$dldir/$dlname~
11117 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11118 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11119 fi'
11120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11121 dlpath=$dir/\$dldll~
11122 $RM \$dlpath'
11123 ;;
11124
11125 osf3* | osf4* | osf5*)
11126 version_type=osf
11127 need_lib_prefix=no
11128 need_version=no
11129 soname_spec='$libname$release$shared_ext$major'
11130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11131 shlibpath_var=LD_LIBRARY_PATH
11132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11134 ;;
11135
11136 rdos*)
11137 dynamic_linker=no
11138 ;;
11139
11140 solaris*)
11141 version_type=linux # correct to gnu/linux during the next big refactor
11142 need_lib_prefix=no
11143 need_version=no
11144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11145 soname_spec='$libname$release$shared_ext$major'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 shlibpath_overrides_runpath=yes
11148 hardcode_into_libs=yes
11149 # ldd complains unless libraries are executable
11150 postinstall_cmds='chmod +x $lib'
11151 ;;
11152
11153 sunos4*)
11154 version_type=sunos
11155 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11156 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 shlibpath_overrides_runpath=yes
11159 if test yes = "$with_gnu_ld"; then
11160 need_lib_prefix=no
11161 fi
11162 need_version=yes
11163 ;;
11164
11165 sysv4 | sysv4.3*)
11166 version_type=linux # correct to gnu/linux during the next big refactor
11167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11168 soname_spec='$libname$release$shared_ext$major'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 case $host_vendor in
11171 sni)
11172 shlibpath_overrides_runpath=no
11173 need_lib_prefix=no
11174 runpath_var=LD_RUN_PATH
11175 ;;
11176 siemens)
11177 need_lib_prefix=no
11178 ;;
11179 motorola)
11180 need_lib_prefix=no
11181 need_version=no
11182 shlibpath_overrides_runpath=no
11183 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11184 ;;
11185 esac
11186 ;;
11187
11188 sysv4*MP*)
11189 if test -d /usr/nec; then
11190 version_type=linux # correct to gnu/linux during the next big refactor
11191 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11192 soname_spec='$libname$shared_ext.$major'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 fi
11195 ;;
11196
11197 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11198 version_type=sco
11199 need_lib_prefix=no
11200 need_version=no
11201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11202 soname_spec='$libname$release$shared_ext$major'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 shlibpath_overrides_runpath=yes
11205 hardcode_into_libs=yes
11206 if test yes = "$with_gnu_ld"; then
11207 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11208 else
11209 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11210 case $host_os in
11211 sco3.2v5*)
11212 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11213 ;;
11214 esac
11215 fi
11216 sys_lib_dlsearch_path_spec='/usr/lib'
11217 ;;
11218
11219 tpf*)
11220 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11221 version_type=linux # correct to gnu/linux during the next big refactor
11222 need_lib_prefix=no
11223 need_version=no
11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11225 shlibpath_var=LD_LIBRARY_PATH
11226 shlibpath_overrides_runpath=no
11227 hardcode_into_libs=yes
11228 ;;
11229
11230 uts4*)
11231 version_type=linux # correct to gnu/linux during the next big refactor
11232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11233 soname_spec='$libname$release$shared_ext$major'
11234 shlibpath_var=LD_LIBRARY_PATH
11235 ;;
11236
11237 *)
11238 dynamic_linker=no
11239 ;;
11240 esac
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11242 $as_echo "$dynamic_linker" >&6; }
11243 test no = "$dynamic_linker" && can_build_shared=no
11244
11245 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11246 if test yes = "$GCC"; then
11247 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11248 fi
11249
11250 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11251 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11252 fi
11253
11254 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11255 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11256 fi
11257
11258 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11259 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11260
11261 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11262 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11263
11264 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11265 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11364 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11365 hardcode_action=
11366 if test -n "$hardcode_libdir_flag_spec" ||
11367 test -n "$runpath_var" ||
11368 test yes = "$hardcode_automatic"; then
11369
11370 # We can hardcode non-existent directories.
11371 if test no != "$hardcode_direct" &&
11372 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11373 # have to relink, otherwise we might link with an installed library
11374 # when we should be linking with a yet-to-be-installed one
11375 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11376 test no != "$hardcode_minus_L"; then
11377 # Linking always hardcodes the temporary library directory.
11378 hardcode_action=relink
11379 else
11380 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11381 hardcode_action=immediate
11382 fi
11383 else
11384 # We cannot hardcode anything, or else we can only hardcode existing
11385 # directories.
11386 hardcode_action=unsupported
11387 fi
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11389 $as_echo "$hardcode_action" >&6; }
11390
11391 if test relink = "$hardcode_action" ||
11392 test yes = "$inherit_rpath"; then
11393 # Fast installation is not supported
11394 enable_fast_install=no
11395 elif test yes = "$shlibpath_overrides_runpath" ||
11396 test no = "$enable_shared"; then
11397 # Fast installation is not necessary
11398 enable_fast_install=needless
11399 fi
11400
11401
11402
11403
11404
11405
11406 if test yes != "$enable_dlopen"; then
11407 enable_dlopen=unknown
11408 enable_dlopen_self=unknown
11409 enable_dlopen_self_static=unknown
11410 else
11411 lt_cv_dlopen=no
11412 lt_cv_dlopen_libs=
11413
11414 case $host_os in
11415 beos*)
11416 lt_cv_dlopen=load_add_on
11417 lt_cv_dlopen_libs=
11418 lt_cv_dlopen_self=yes
11419 ;;
11420
11421 mingw* | pw32* | cegcc*)
11422 lt_cv_dlopen=LoadLibrary
11423 lt_cv_dlopen_libs=
11424 ;;
11425
11426 cygwin*)
11427 lt_cv_dlopen=dlopen
11428 lt_cv_dlopen_libs=
11429 ;;
11430
11431 darwin*)
11432 # if libdl is installed we need to link against it
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11434 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11435 if ${ac_cv_lib_dl_dlopen+:} false; then :
11436 $as_echo_n "(cached) " >&6
11437 else
11438 ac_check_lib_save_LIBS=$LIBS
11439 LIBS="-ldl $LIBS"
11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11442
11443 /* Override any GCC internal prototype to avoid an error.
11444 Use char because int might match the return type of a GCC
11445 builtin and then its argument prototype would still apply. */
11446 #ifdef __cplusplus
11447 extern "C"
11448 #endif
11449 char dlopen ();
11450 int
11451 main ()
11452 {
11453 return dlopen ();
11454 ;
11455 return 0;
11456 }
11457 _ACEOF
11458 if ac_fn_c_try_link "$LINENO"; then :
11459 ac_cv_lib_dl_dlopen=yes
11460 else
11461 ac_cv_lib_dl_dlopen=no
11462 fi
11463 rm -f core conftest.err conftest.$ac_objext \
11464 conftest$ac_exeext conftest.$ac_ext
11465 LIBS=$ac_check_lib_save_LIBS
11466 fi
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11468 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11469 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11470 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11471 else
11472
11473 lt_cv_dlopen=dyld
11474 lt_cv_dlopen_libs=
11475 lt_cv_dlopen_self=yes
11476
11477 fi
11478
11479 ;;
11480
11481 tpf*)
11482 # Don't try to run any link tests for TPF. We know it's impossible
11483 # because TPF is a cross-compiler, and we know how we open DSOs.
11484 lt_cv_dlopen=dlopen
11485 lt_cv_dlopen_libs=
11486 lt_cv_dlopen_self=no
11487 ;;
11488
11489 *)
11490 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11491 if test "x$ac_cv_func_shl_load" = xyes; then :
11492 lt_cv_dlopen=shl_load
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11495 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11496 if ${ac_cv_lib_dld_shl_load+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 ac_check_lib_save_LIBS=$LIBS
11500 LIBS="-ldld $LIBS"
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11503
11504 /* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
11507 #ifdef __cplusplus
11508 extern "C"
11509 #endif
11510 char shl_load ();
11511 int
11512 main ()
11513 {
11514 return shl_load ();
11515 ;
11516 return 0;
11517 }
11518 _ACEOF
11519 if ac_fn_c_try_link "$LINENO"; then :
11520 ac_cv_lib_dld_shl_load=yes
11521 else
11522 ac_cv_lib_dld_shl_load=no
11523 fi
11524 rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11526 LIBS=$ac_check_lib_save_LIBS
11527 fi
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11529 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11530 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11531 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11532 else
11533 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11534 if test "x$ac_cv_func_dlopen" = xyes; then :
11535 lt_cv_dlopen=dlopen
11536 else
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11538 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11539 if ${ac_cv_lib_dl_dlopen+:} false; then :
11540 $as_echo_n "(cached) " >&6
11541 else
11542 ac_check_lib_save_LIBS=$LIBS
11543 LIBS="-ldl $LIBS"
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11546
11547 /* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
11550 #ifdef __cplusplus
11551 extern "C"
11552 #endif
11553 char dlopen ();
11554 int
11555 main ()
11556 {
11557 return dlopen ();
11558 ;
11559 return 0;
11560 }
11561 _ACEOF
11562 if ac_fn_c_try_link "$LINENO"; then :
11563 ac_cv_lib_dl_dlopen=yes
11564 else
11565 ac_cv_lib_dl_dlopen=no
11566 fi
11567 rm -f core conftest.err conftest.$ac_objext \
11568 conftest$ac_exeext conftest.$ac_ext
11569 LIBS=$ac_check_lib_save_LIBS
11570 fi
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11572 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11573 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11574 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11575 else
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11577 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11578 if ${ac_cv_lib_svld_dlopen+:} false; then :
11579 $as_echo_n "(cached) " >&6
11580 else
11581 ac_check_lib_save_LIBS=$LIBS
11582 LIBS="-lsvld $LIBS"
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11585
11586 /* Override any GCC internal prototype to avoid an error.
11587 Use char because int might match the return type of a GCC
11588 builtin and then its argument prototype would still apply. */
11589 #ifdef __cplusplus
11590 extern "C"
11591 #endif
11592 char dlopen ();
11593 int
11594 main ()
11595 {
11596 return dlopen ();
11597 ;
11598 return 0;
11599 }
11600 _ACEOF
11601 if ac_fn_c_try_link "$LINENO"; then :
11602 ac_cv_lib_svld_dlopen=yes
11603 else
11604 ac_cv_lib_svld_dlopen=no
11605 fi
11606 rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_lib_save_LIBS
11609 fi
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11611 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11612 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11613 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11616 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11617 if ${ac_cv_lib_dld_dld_link+:} false; then :
11618 $as_echo_n "(cached) " >&6
11619 else
11620 ac_check_lib_save_LIBS=$LIBS
11621 LIBS="-ldld $LIBS"
11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11624
11625 /* Override any GCC internal prototype to avoid an error.
11626 Use char because int might match the return type of a GCC
11627 builtin and then its argument prototype would still apply. */
11628 #ifdef __cplusplus
11629 extern "C"
11630 #endif
11631 char dld_link ();
11632 int
11633 main ()
11634 {
11635 return dld_link ();
11636 ;
11637 return 0;
11638 }
11639 _ACEOF
11640 if ac_fn_c_try_link "$LINENO"; then :
11641 ac_cv_lib_dld_dld_link=yes
11642 else
11643 ac_cv_lib_dld_dld_link=no
11644 fi
11645 rm -f core conftest.err conftest.$ac_objext \
11646 conftest$ac_exeext conftest.$ac_ext
11647 LIBS=$ac_check_lib_save_LIBS
11648 fi
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11650 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11651 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11652 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11653 fi
11654
11655
11656 fi
11657
11658
11659 fi
11660
11661
11662 fi
11663
11664
11665 fi
11666
11667
11668 fi
11669
11670 ;;
11671 esac
11672
11673 if test no = "$lt_cv_dlopen"; then
11674 enable_dlopen=no
11675 else
11676 enable_dlopen=yes
11677 fi
11678
11679 case $lt_cv_dlopen in
11680 dlopen)
11681 save_CPPFLAGS=$CPPFLAGS
11682 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11683
11684 save_LDFLAGS=$LDFLAGS
11685 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11686
11687 save_LIBS=$LIBS
11688 LIBS="$lt_cv_dlopen_libs $LIBS"
11689
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11691 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11692 if ${lt_cv_dlopen_self+:} false; then :
11693 $as_echo_n "(cached) " >&6
11694 else
11695 if test yes = "$cross_compiling"; then :
11696 lt_cv_dlopen_self=cross
11697 else
11698 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11699 lt_status=$lt_dlunknown
11700 cat > conftest.$ac_ext <<_LT_EOF
11701 #line $LINENO "configure"
11702 #include "confdefs.h"
11703
11704 #if HAVE_DLFCN_H
11705 #include <dlfcn.h>
11706 #endif
11707
11708 #include <stdio.h>
11709
11710 #ifdef RTLD_GLOBAL
11711 # define LT_DLGLOBAL RTLD_GLOBAL
11712 #else
11713 # ifdef DL_GLOBAL
11714 # define LT_DLGLOBAL DL_GLOBAL
11715 # else
11716 # define LT_DLGLOBAL 0
11717 # endif
11718 #endif
11719
11720 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11721 find out it does not work in some platform. */
11722 #ifndef LT_DLLAZY_OR_NOW
11723 # ifdef RTLD_LAZY
11724 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11725 # else
11726 # ifdef DL_LAZY
11727 # define LT_DLLAZY_OR_NOW DL_LAZY
11728 # else
11729 # ifdef RTLD_NOW
11730 # define LT_DLLAZY_OR_NOW RTLD_NOW
11731 # else
11732 # ifdef DL_NOW
11733 # define LT_DLLAZY_OR_NOW DL_NOW
11734 # else
11735 # define LT_DLLAZY_OR_NOW 0
11736 # endif
11737 # endif
11738 # endif
11739 # endif
11740 #endif
11741
11742 /* When -fvisibility=hidden is used, assume the code has been annotated
11743 correspondingly for the symbols needed. */
11744 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11745 int fnord () __attribute__((visibility("default")));
11746 #endif
11747
11748 int fnord () { return 42; }
11749 int main ()
11750 {
11751 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11752 int status = $lt_dlunknown;
11753
11754 if (self)
11755 {
11756 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11757 else
11758 {
11759 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11760 else puts (dlerror ());
11761 }
11762 /* dlclose (self); */
11763 }
11764 else
11765 puts (dlerror ());
11766
11767 return status;
11768 }
11769 _LT_EOF
11770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11771 (eval $ac_link) 2>&5
11772 ac_status=$?
11773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11774 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11775 (./conftest; exit; ) >&5 2>/dev/null
11776 lt_status=$?
11777 case x$lt_status in
11778 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11779 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11780 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11781 esac
11782 else :
11783 # compilation failed
11784 lt_cv_dlopen_self=no
11785 fi
11786 fi
11787 rm -fr conftest*
11788
11789
11790 fi
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11792 $as_echo "$lt_cv_dlopen_self" >&6; }
11793
11794 if test yes = "$lt_cv_dlopen_self"; then
11795 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11797 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11798 if ${lt_cv_dlopen_self_static+:} false; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 if test yes = "$cross_compiling"; then :
11802 lt_cv_dlopen_self_static=cross
11803 else
11804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11805 lt_status=$lt_dlunknown
11806 cat > conftest.$ac_ext <<_LT_EOF
11807 #line $LINENO "configure"
11808 #include "confdefs.h"
11809
11810 #if HAVE_DLFCN_H
11811 #include <dlfcn.h>
11812 #endif
11813
11814 #include <stdio.h>
11815
11816 #ifdef RTLD_GLOBAL
11817 # define LT_DLGLOBAL RTLD_GLOBAL
11818 #else
11819 # ifdef DL_GLOBAL
11820 # define LT_DLGLOBAL DL_GLOBAL
11821 # else
11822 # define LT_DLGLOBAL 0
11823 # endif
11824 #endif
11825
11826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11827 find out it does not work in some platform. */
11828 #ifndef LT_DLLAZY_OR_NOW
11829 # ifdef RTLD_LAZY
11830 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11831 # else
11832 # ifdef DL_LAZY
11833 # define LT_DLLAZY_OR_NOW DL_LAZY
11834 # else
11835 # ifdef RTLD_NOW
11836 # define LT_DLLAZY_OR_NOW RTLD_NOW
11837 # else
11838 # ifdef DL_NOW
11839 # define LT_DLLAZY_OR_NOW DL_NOW
11840 # else
11841 # define LT_DLLAZY_OR_NOW 0
11842 # endif
11843 # endif
11844 # endif
11845 # endif
11846 #endif
11847
11848 /* When -fvisibility=hidden is used, assume the code has been annotated
11849 correspondingly for the symbols needed. */
11850 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11851 int fnord () __attribute__((visibility("default")));
11852 #endif
11853
11854 int fnord () { return 42; }
11855 int main ()
11856 {
11857 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11858 int status = $lt_dlunknown;
11859
11860 if (self)
11861 {
11862 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11863 else
11864 {
11865 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11866 else puts (dlerror ());
11867 }
11868 /* dlclose (self); */
11869 }
11870 else
11871 puts (dlerror ());
11872
11873 return status;
11874 }
11875 _LT_EOF
11876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11877 (eval $ac_link) 2>&5
11878 ac_status=$?
11879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11880 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11881 (./conftest; exit; ) >&5 2>/dev/null
11882 lt_status=$?
11883 case x$lt_status in
11884 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11885 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11886 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11887 esac
11888 else :
11889 # compilation failed
11890 lt_cv_dlopen_self_static=no
11891 fi
11892 fi
11893 rm -fr conftest*
11894
11895
11896 fi
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11898 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11899 fi
11900
11901 CPPFLAGS=$save_CPPFLAGS
11902 LDFLAGS=$save_LDFLAGS
11903 LIBS=$save_LIBS
11904 ;;
11905 esac
11906
11907 case $lt_cv_dlopen_self in
11908 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11909 *) enable_dlopen_self=unknown ;;
11910 esac
11911
11912 case $lt_cv_dlopen_self_static in
11913 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11914 *) enable_dlopen_self_static=unknown ;;
11915 esac
11916 fi
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934 striplib=
11935 old_striplib=
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11937 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11938 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11939 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11940 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11942 $as_echo "yes" >&6; }
11943 else
11944 # FIXME - insert some real tests, host_os isn't really good enough
11945 case $host_os in
11946 darwin*)
11947 if test -n "$STRIP"; then
11948 striplib="$STRIP -x"
11949 old_striplib="$STRIP -S"
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11951 $as_echo "yes" >&6; }
11952 else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954 $as_echo "no" >&6; }
11955 fi
11956 ;;
11957 *)
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959 $as_echo "no" >&6; }
11960 ;;
11961 esac
11962 fi
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975 # Report what library types will actually be built
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11977 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11979 $as_echo "$can_build_shared" >&6; }
11980
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11982 $as_echo_n "checking whether to build shared libraries... " >&6; }
11983 test no = "$can_build_shared" && enable_shared=no
11984
11985 # On AIX, shared libraries and static libraries use the same namespace, and
11986 # are all built from PIC.
11987 case $host_os in
11988 aix3*)
11989 test yes = "$enable_shared" && enable_static=no
11990 if test -n "$RANLIB"; then
11991 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11992 postinstall_cmds='$RANLIB $lib'
11993 fi
11994 ;;
11995
11996 aix[4-9]*)
11997 if test ia64 != "$host_cpu"; then
11998 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11999 yes,aix,yes) ;; # shared object as lib.so file only
12000 yes,svr4,*) ;; # shared object as lib.so archive member only
12001 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12002 esac
12003 fi
12004 ;;
12005 esac
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12007 $as_echo "$enable_shared" >&6; }
12008
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12010 $as_echo_n "checking whether to build static libraries... " >&6; }
12011 # Make sure either enable_shared or enable_static is yes.
12012 test yes = "$enable_shared" || enable_static=yes
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12014 $as_echo "$enable_static" >&6; }
12015
12016
12017
12018
12019 fi
12020 ac_ext=c
12021 ac_cpp='$CPP $CPPFLAGS'
12022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12025
12026 CC=$lt_save_CC
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042 ac_config_commands="$ac_config_commands libtool"
12043
12044
12045
12046
12047 # Only expand once:
12048
12049
12050 if test "x$CC" != xcc; then
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12052 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12053 else
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12055 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12056 fi
12057 set dummy $CC; ac_cc=`$as_echo "$2" |
12058 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12059 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12064
12065 int
12066 main ()
12067 {
12068
12069 ;
12070 return 0;
12071 }
12072 _ACEOF
12073 # Make sure it works both with $CC and with simple cc.
12074 # We do the test twice because some compilers refuse to overwrite an
12075 # existing .o file with -o, though they will create one.
12076 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12077 rm -f conftest2.*
12078 if { { case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081 esac
12082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12083 $as_echo "$ac_try_echo"; } >&5
12084 (eval "$ac_try") 2>&5
12085 ac_status=$?
12086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12087 test $ac_status = 0; } &&
12088 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091 esac
12092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12093 $as_echo "$ac_try_echo"; } >&5
12094 (eval "$ac_try") 2>&5
12095 ac_status=$?
12096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12097 test $ac_status = 0; };
12098 then
12099 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12100 if test "x$CC" != xcc; then
12101 # Test first that cc exists at all.
12102 if { ac_try='cc -c conftest.$ac_ext >&5'
12103 { { case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12106 esac
12107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12108 $as_echo "$ac_try_echo"; } >&5
12109 (eval "$ac_try") 2>&5
12110 ac_status=$?
12111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12112 test $ac_status = 0; }; }; then
12113 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12114 rm -f conftest2.*
12115 if { { case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12118 esac
12119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12120 $as_echo "$ac_try_echo"; } >&5
12121 (eval "$ac_try") 2>&5
12122 ac_status=$?
12123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12124 test $ac_status = 0; } &&
12125 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128 esac
12129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12130 $as_echo "$ac_try_echo"; } >&5
12131 (eval "$ac_try") 2>&5
12132 ac_status=$?
12133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12134 test $ac_status = 0; };
12135 then
12136 # cc works too.
12137 :
12138 else
12139 # cc exists but doesn't like -o.
12140 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12141 fi
12142 fi
12143 fi
12144 else
12145 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12146 fi
12147 rm -f core conftest*
12148
12149 fi
12150 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12152 $as_echo "yes" >&6; }
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12156
12157 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12158
12159 fi
12160
12161 # FIXME: we rely on the cache variable name because
12162 # there is no other way.
12163 set dummy $CC
12164 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12165 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12166 if test "$am_t" != yes; then
12167 # Losing compiler, so override with the script.
12168 # FIXME: It is wrong to rewrite CC.
12169 # But if we don't then we get into trouble of one sort or another.
12170 # A longer-term fix would be to have automake use am__CC in this case,
12171 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12172 CC="$am_aux_dir/compile $CC"
12173 fi
12174
12175
12176 LTVERSION="6:2:0"
12177
12178
12179
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12181 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12182 set x ${MAKE-make}
12183 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12184 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 cat >conftest.make <<\_ACEOF
12188 SHELL = /bin/sh
12189 all:
12190 @echo '@@@%%%=$(MAKE)=@@@%%%'
12191 _ACEOF
12192 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12193 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12194 *@@@%%%=?*=@@@%%%*)
12195 eval ac_cv_prog_make_${ac_make}_set=yes;;
12196 *)
12197 eval ac_cv_prog_make_${ac_make}_set=no;;
12198 esac
12199 rm -f conftest.make
12200 fi
12201 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12203 $as_echo "yes" >&6; }
12204 SET_MAKE=
12205 else
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207 $as_echo "no" >&6; }
12208 SET_MAKE="MAKE=${MAKE-make}"
12209 fi
12210
12211
12212 for ac_prog in python3 python python2
12213 do
12214 # Extract the first word of "$ac_prog", so it can be a program name with args.
12215 set dummy $ac_prog; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217 $as_echo_n "checking for $ac_word... " >&6; }
12218 if ${ac_cv_prog_python_prog+:} false; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 if test -n "$python_prog"; then
12222 ac_cv_prog_python_prog="$python_prog" # Let the user override the test.
12223 else
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12226 do
12227 IFS=$as_save_IFS
12228 test -z "$as_dir" && as_dir=.
12229 for ac_exec_ext in '' $ac_executable_extensions; do
12230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12231 ac_cv_prog_python_prog="$ac_prog"
12232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12233 break 2
12234 fi
12235 done
12236 done
12237 IFS=$as_save_IFS
12238
12239 fi
12240 fi
12241 python_prog=$ac_cv_prog_python_prog
12242 if test -n "$python_prog"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog" >&5
12244 $as_echo "$python_prog" >&6; }
12245 else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12248 fi
12249
12250
12251 test -n "$python_prog" && break
12252 done
12253
12254
12255
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12257 $as_echo_n "checking for ANSI C header files... " >&6; }
12258 if ${ac_cv_header_stdc+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12263 #include <stdlib.h>
12264 #include <stdarg.h>
12265 #include <string.h>
12266 #include <float.h>
12267
12268 int
12269 main ()
12270 {
12271
12272 ;
12273 return 0;
12274 }
12275 _ACEOF
12276 if ac_fn_c_try_compile "$LINENO"; then :
12277 ac_cv_header_stdc=yes
12278 else
12279 ac_cv_header_stdc=no
12280 fi
12281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282
12283 if test $ac_cv_header_stdc = yes; then
12284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h. */
12287 #include <string.h>
12288
12289 _ACEOF
12290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12291 $EGREP "memchr" >/dev/null 2>&1; then :
12292
12293 else
12294 ac_cv_header_stdc=no
12295 fi
12296 rm -f conftest*
12297
12298 fi
12299
12300 if test $ac_cv_header_stdc = yes; then
12301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h. */
12304 #include <stdlib.h>
12305
12306 _ACEOF
12307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12308 $EGREP "free" >/dev/null 2>&1; then :
12309
12310 else
12311 ac_cv_header_stdc=no
12312 fi
12313 rm -f conftest*
12314
12315 fi
12316
12317 if test $ac_cv_header_stdc = yes; then
12318 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12319 if test "$cross_compiling" = yes; then :
12320 :
12321 else
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12324 #include <ctype.h>
12325 #include <stdlib.h>
12326 #if ((' ' & 0x0FF) == 0x020)
12327 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12328 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12329 #else
12330 # define ISLOWER(c) \
12331 (('a' <= (c) && (c) <= 'i') \
12332 || ('j' <= (c) && (c) <= 'r') \
12333 || ('s' <= (c) && (c) <= 'z'))
12334 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12335 #endif
12336
12337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12338 int
12339 main ()
12340 {
12341 int i;
12342 for (i = 0; i < 256; i++)
12343 if (XOR (islower (i), ISLOWER (i))
12344 || toupper (i) != TOUPPER (i))
12345 return 2;
12346 return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_c_try_run "$LINENO"; then :
12350
12351 else
12352 ac_cv_header_stdc=no
12353 fi
12354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12355 conftest.$ac_objext conftest.beam conftest.$ac_ext
12356 fi
12357
12358 fi
12359 fi
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12361 $as_echo "$ac_cv_header_stdc" >&6; }
12362 if test $ac_cv_header_stdc = yes; then
12363
12364 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12365
12366 fi
12367
12368 for ac_header in sys/time.h unistd.h sys/times.h stdint.h
12369 do :
12370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12371 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12372 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12373 cat >>confdefs.h <<_ACEOF
12374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12375 _ACEOF
12376
12377 fi
12378
12379 done
12380
12381
12382 # The cast to long int works around a bug in the HP C Compiler
12383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12385 # This bug is HP SR number 8606223364.
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12387 $as_echo_n "checking size of int... " >&6; }
12388 if ${ac_cv_sizeof_int+:} false; then :
12389 $as_echo_n "(cached) " >&6
12390 else
12391 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12392
12393 else
12394 if test "$ac_cv_type_int" = yes; then
12395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12397 as_fn_error 77 "cannot compute sizeof (int)
12398 See \`config.log' for more details" "$LINENO" 5; }
12399 else
12400 ac_cv_sizeof_int=0
12401 fi
12402 fi
12403
12404 fi
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12406 $as_echo "$ac_cv_sizeof_int" >&6; }
12407
12408
12409
12410 cat >>confdefs.h <<_ACEOF
12411 #define SIZEOF_INT $ac_cv_sizeof_int
12412 _ACEOF
12413
12414
12415 # The cast to long int works around a bug in the HP C Compiler
12416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12418 # This bug is HP SR number 8606223364.
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12420 $as_echo_n "checking size of short... " >&6; }
12421 if ${ac_cv_sizeof_short+:} false; then :
12422 $as_echo_n "(cached) " >&6
12423 else
12424 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12425
12426 else
12427 if test "$ac_cv_type_short" = yes; then
12428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12430 as_fn_error 77 "cannot compute sizeof (short)
12431 See \`config.log' for more details" "$LINENO" 5; }
12432 else
12433 ac_cv_sizeof_short=0
12434 fi
12435 fi
12436
12437 fi
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12439 $as_echo "$ac_cv_sizeof_short" >&6; }
12440
12441
12442
12443 cat >>confdefs.h <<_ACEOF
12444 #define SIZEOF_SHORT $ac_cv_sizeof_short
12445 _ACEOF
12446
12447
12448 # The cast to long int works around a bug in the HP C Compiler
12449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12451 # This bug is HP SR number 8606223364.
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12453 $as_echo_n "checking size of long... " >&6; }
12454 if ${ac_cv_sizeof_long+:} false; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12458
12459 else
12460 if test "$ac_cv_type_long" = yes; then
12461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12463 as_fn_error 77 "cannot compute sizeof (long)
12464 See \`config.log' for more details" "$LINENO" 5; }
12465 else
12466 ac_cv_sizeof_long=0
12467 fi
12468 fi
12469
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12472 $as_echo "$ac_cv_sizeof_long" >&6; }
12473
12474
12475
12476 cat >>confdefs.h <<_ACEOF
12477 #define SIZEOF_LONG $ac_cv_sizeof_long
12478 _ACEOF
12479
12480
12481 # The cast to long int works around a bug in the HP C Compiler
12482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12484 # This bug is HP SR number 8606223364.
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
12486 $as_echo_n "checking size of void*... " >&6; }
12487 if ${ac_cv_sizeof_voidp+:} false; then :
12488 $as_echo_n "(cached) " >&6
12489 else
12490 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
12491
12492 else
12493 if test "$ac_cv_type_voidp" = yes; then
12494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12496 as_fn_error 77 "cannot compute sizeof (void*)
12497 See \`config.log' for more details" "$LINENO" 5; }
12498 else
12499 ac_cv_sizeof_voidp=0
12500 fi
12501 fi
12502
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
12505 $as_echo "$ac_cv_sizeof_voidp" >&6; }
12506
12507
12508
12509 cat >>confdefs.h <<_ACEOF
12510 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
12511 _ACEOF
12512
12513
12514 # The cast to long int works around a bug in the HP C Compiler
12515 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12516 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12517 # This bug is HP SR number 8606223364.
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12519 $as_echo_n "checking size of long long... " >&6; }
12520 if ${ac_cv_sizeof_long_long+:} false; then :
12521 $as_echo_n "(cached) " >&6
12522 else
12523 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12524
12525 else
12526 if test "$ac_cv_type_long_long" = yes; then
12527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12529 as_fn_error 77 "cannot compute sizeof (long long)
12530 See \`config.log' for more details" "$LINENO" 5; }
12531 else
12532 ac_cv_sizeof_long_long=0
12533 fi
12534 fi
12535
12536 fi
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12538 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12539
12540
12541
12542 cat >>confdefs.h <<_ACEOF
12543 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12544 _ACEOF
12545
12546
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12548 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12549 if ${ac_cv_c_const+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551 else
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12554
12555 int
12556 main ()
12557 {
12558
12559 #ifndef __cplusplus
12560 /* Ultrix mips cc rejects this sort of thing. */
12561 typedef int charset[2];
12562 const charset cs = { 0, 0 };
12563 /* SunOS 4.1.1 cc rejects this. */
12564 char const *const *pcpcc;
12565 char **ppc;
12566 /* NEC SVR4.0.2 mips cc rejects this. */
12567 struct point {int x, y;};
12568 static struct point const zero = {0,0};
12569 /* AIX XL C 1.02.0.0 rejects this.
12570 It does not let you subtract one const X* pointer from another in
12571 an arm of an if-expression whose if-part is not a constant
12572 expression */
12573 const char *g = "string";
12574 pcpcc = &g + (g ? g-g : 0);
12575 /* HPUX 7.0 cc rejects these. */
12576 ++pcpcc;
12577 ppc = (char**) pcpcc;
12578 pcpcc = (char const *const *) ppc;
12579 { /* SCO 3.2v4 cc rejects this sort of thing. */
12580 char tx;
12581 char *t = &tx;
12582 char const *s = 0 ? (char *) 0 : (char const *) 0;
12583
12584 *t++ = 0;
12585 if (s) return 0;
12586 }
12587 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12588 int x[] = {25, 17};
12589 const int *foo = &x[0];
12590 ++foo;
12591 }
12592 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12593 typedef const int *iptr;
12594 iptr p = 0;
12595 ++p;
12596 }
12597 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12598 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12599 struct s { int j; const int *ap[3]; } bx;
12600 struct s *b = &bx; b->j = 5;
12601 }
12602 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12603 const int foo = 10;
12604 if (!foo) return 0;
12605 }
12606 return !cs[0] && !zero.x;
12607 #endif
12608
12609 ;
12610 return 0;
12611 }
12612 _ACEOF
12613 if ac_fn_c_try_compile "$LINENO"; then :
12614 ac_cv_c_const=yes
12615 else
12616 ac_cv_c_const=no
12617 fi
12618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619 fi
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12621 $as_echo "$ac_cv_c_const" >&6; }
12622 if test $ac_cv_c_const = no; then
12623
12624 $as_echo "#define const /**/" >>confdefs.h
12625
12626 fi
12627
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12629 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12630 if ${ac_cv_header_time+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632 else
12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12634 /* end confdefs.h. */
12635 #include <sys/types.h>
12636 #include <sys/time.h>
12637 #include <time.h>
12638
12639 int
12640 main ()
12641 {
12642 if ((struct tm *) 0)
12643 return 0;
12644 ;
12645 return 0;
12646 }
12647 _ACEOF
12648 if ac_fn_c_try_compile "$LINENO"; then :
12649 ac_cv_header_time=yes
12650 else
12651 ac_cv_header_time=no
12652 fi
12653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654 fi
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12656 $as_echo "$ac_cv_header_time" >&6; }
12657 if test $ac_cv_header_time = yes; then
12658
12659 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12660
12661 fi
12662
12663
12664 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12665 if test "x$ac_cv_type_size_t" = xyes; then :
12666
12667 else
12668
12669 cat >>confdefs.h <<_ACEOF
12670 #define size_t unsigned int
12671 _ACEOF
12672
12673 fi
12674
12675 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12676 # for constant arguments. Useless!
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12678 $as_echo_n "checking for working alloca.h... " >&6; }
12679 if ${ac_cv_working_alloca_h+:} false; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12684 #include <alloca.h>
12685 int
12686 main ()
12687 {
12688 char *p = (char *) alloca (2 * sizeof (int));
12689 if (p) return 0;
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 if ac_fn_c_try_link "$LINENO"; then :
12695 ac_cv_working_alloca_h=yes
12696 else
12697 ac_cv_working_alloca_h=no
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 fi
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12703 $as_echo "$ac_cv_working_alloca_h" >&6; }
12704 if test $ac_cv_working_alloca_h = yes; then
12705
12706 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12707
12708 fi
12709
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12711 $as_echo_n "checking for alloca... " >&6; }
12712 if ${ac_cv_func_alloca_works+:} false; then :
12713 $as_echo_n "(cached) " >&6
12714 else
12715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716 /* end confdefs.h. */
12717 #ifdef __GNUC__
12718 # define alloca __builtin_alloca
12719 #else
12720 # ifdef _MSC_VER
12721 # include <malloc.h>
12722 # define alloca _alloca
12723 # else
12724 # ifdef HAVE_ALLOCA_H
12725 # include <alloca.h>
12726 # else
12727 # ifdef _AIX
12728 #pragma alloca
12729 # else
12730 # ifndef alloca /* predefined by HP cc +Olibcalls */
12731 void *alloca (size_t);
12732 # endif
12733 # endif
12734 # endif
12735 # endif
12736 #endif
12737
12738 int
12739 main ()
12740 {
12741 char *p = (char *) alloca (1);
12742 if (p) return 0;
12743 ;
12744 return 0;
12745 }
12746 _ACEOF
12747 if ac_fn_c_try_link "$LINENO"; then :
12748 ac_cv_func_alloca_works=yes
12749 else
12750 ac_cv_func_alloca_works=no
12751 fi
12752 rm -f core conftest.err conftest.$ac_objext \
12753 conftest$ac_exeext conftest.$ac_ext
12754 fi
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12756 $as_echo "$ac_cv_func_alloca_works" >&6; }
12757
12758 if test $ac_cv_func_alloca_works = yes; then
12759
12760 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12761
12762 else
12763 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12764 # that cause trouble. Some versions do not even contain alloca or
12765 # contain a buggy version. If you still want to use their alloca,
12766 # use ar to extract alloca.o from them instead of compiling alloca.c.
12767
12768 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12769
12770 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12771
12772
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12774 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12775 if ${ac_cv_os_cray+:} false; then :
12776 $as_echo_n "(cached) " >&6
12777 else
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780 #if defined CRAY && ! defined CRAY2
12781 webecray
12782 #else
12783 wenotbecray
12784 #endif
12785
12786 _ACEOF
12787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12788 $EGREP "webecray" >/dev/null 2>&1; then :
12789 ac_cv_os_cray=yes
12790 else
12791 ac_cv_os_cray=no
12792 fi
12793 rm -f conftest*
12794
12795 fi
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12797 $as_echo "$ac_cv_os_cray" >&6; }
12798 if test $ac_cv_os_cray = yes; then
12799 for ac_func in _getb67 GETB67 getb67; do
12800 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12801 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12802 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12803
12804 cat >>confdefs.h <<_ACEOF
12805 #define CRAY_STACKSEG_END $ac_func
12806 _ACEOF
12807
12808 break
12809 fi
12810
12811 done
12812 fi
12813
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12815 $as_echo_n "checking stack direction for C alloca... " >&6; }
12816 if ${ac_cv_c_stack_direction+:} false; then :
12817 $as_echo_n "(cached) " >&6
12818 else
12819 if test "$cross_compiling" = yes; then :
12820 ac_cv_c_stack_direction=0
12821 else
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824 $ac_includes_default
12825 int
12826 find_stack_direction (int *addr, int depth)
12827 {
12828 int dir, dummy = 0;
12829 if (! addr)
12830 addr = &dummy;
12831 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
12832 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
12833 return dir + dummy;
12834 }
12835
12836 int
12837 main (int argc, char **argv)
12838 {
12839 return find_stack_direction (0, argc + !argv + 20) < 0;
12840 }
12841 _ACEOF
12842 if ac_fn_c_try_run "$LINENO"; then :
12843 ac_cv_c_stack_direction=1
12844 else
12845 ac_cv_c_stack_direction=-1
12846 fi
12847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12848 conftest.$ac_objext conftest.beam conftest.$ac_ext
12849 fi
12850
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12853 $as_echo "$ac_cv_c_stack_direction" >&6; }
12854 cat >>confdefs.h <<_ACEOF
12855 #define STACK_DIRECTION $ac_cv_c_stack_direction
12856 _ACEOF
12857
12858
12859 fi
12860
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
12862 $as_echo_n "checking for working memcmp... " >&6; }
12863 if ${ac_cv_func_memcmp_working+:} false; then :
12864 $as_echo_n "(cached) " >&6
12865 else
12866 if test "$cross_compiling" = yes; then :
12867 ac_cv_func_memcmp_working=no
12868 else
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871 $ac_includes_default
12872 int
12873 main ()
12874 {
12875
12876 /* Some versions of memcmp are not 8-bit clean. */
12877 char c0 = '\100', c1 = '\200', c2 = '\201';
12878 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12879 return 1;
12880
12881 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12882 or more and with at least one buffer not starting on a 4-byte boundary.
12883 William Lewis provided this test program. */
12884 {
12885 char foo[21];
12886 char bar[21];
12887 int i;
12888 for (i = 0; i < 4; i++)
12889 {
12890 char *a = foo + i;
12891 char *b = bar + i;
12892 strcpy (a, "--------01111111");
12893 strcpy (b, "--------10000000");
12894 if (memcmp (a, b, 16) >= 0)
12895 return 1;
12896 }
12897 return 0;
12898 }
12899
12900 ;
12901 return 0;
12902 }
12903 _ACEOF
12904 if ac_fn_c_try_run "$LINENO"; then :
12905 ac_cv_func_memcmp_working=yes
12906 else
12907 ac_cv_func_memcmp_working=no
12908 fi
12909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12910 conftest.$ac_objext conftest.beam conftest.$ac_ext
12911 fi
12912
12913 fi
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
12915 $as_echo "$ac_cv_func_memcmp_working" >&6; }
12916 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
12917 *" memcmp.$ac_objext "* ) ;;
12918 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12919 ;;
12920 esac
12921
12922
12923
12924
12925 ac_config_files="$ac_config_files Makefile onigmo-config sample/Makefile"
12926
12927 ac_config_commands="$ac_config_commands default"
12928
12929 cat >confcache <<\_ACEOF
12930 # This file is a shell script that caches the results of configure
12931 # tests run on this system so they can be shared between configure
12932 # scripts and configure runs, see configure's option --config-cache.
12933 # It is not useful on other systems. If it contains results you don't
12934 # want to keep, you may remove or edit it.
12935 #
12936 # config.status only pays attention to the cache file if you give it
12937 # the --recheck option to rerun configure.
12938 #
12939 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12940 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12941 # following values.
12942
12943 _ACEOF
12944
12945 # The following way of writing the cache mishandles newlines in values,
12946 # but we know of no workaround that is simple, portable, and efficient.
12947 # So, we kill variables containing newlines.
12948 # Ultrix sh set writes to stderr and can't be redirected directly,
12949 # and sets the high bit in the cache file unless we assign to the vars.
12950 (
12951 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12952 eval ac_val=\$$ac_var
12953 case $ac_val in #(
12954 *${as_nl}*)
12955 case $ac_var in #(
12956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12958 esac
12959 case $ac_var in #(
12960 _ | IFS | as_nl) ;; #(
12961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12962 *) { eval $ac_var=; unset $ac_var;} ;;
12963 esac ;;
12964 esac
12965 done
12966
12967 (set) 2>&1 |
12968 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12969 *${as_nl}ac_space=\ *)
12970 # `set' does not quote correctly, so add quotes: double-quote
12971 # substitution turns \\\\ into \\, and sed turns \\ into \.
12972 sed -n \
12973 "s/'/'\\\\''/g;
12974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12975 ;; #(
12976 *)
12977 # `set' quotes correctly as required by POSIX, so do not add quotes.
12978 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12979 ;;
12980 esac |
12981 sort
12982 ) |
12983 sed '
12984 /^ac_cv_env_/b end
12985 t clear
12986 :clear
12987 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12988 t end
12989 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12990 :end' >>confcache
12991 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12992 if test -w "$cache_file"; then
12993 if test "x$cache_file" != "x/dev/null"; then
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12995 $as_echo "$as_me: updating cache $cache_file" >&6;}
12996 if test ! -f "$cache_file" || test -h "$cache_file"; then
12997 cat confcache >"$cache_file"
12998 else
12999 case $cache_file in #(
13000 */* | ?:*)
13001 mv -f confcache "$cache_file"$$ &&
13002 mv -f "$cache_file"$$ "$cache_file" ;; #(
13003 *)
13004 mv -f confcache "$cache_file" ;;
13005 esac
13006 fi
13007 fi
13008 else
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13010 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13011 fi
13012 fi
13013 rm -f confcache
13014
13015 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13016 # Let make expand exec_prefix.
13017 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13018
13019 DEFS=-DHAVE_CONFIG_H
13020
13021 ac_libobjs=
13022 ac_ltlibobjs=
13023 U=
13024 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13025 # 1. Remove the extension, and $U if already installed.
13026 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13027 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13028 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13029 # will be set to the directory where LIBOBJS objects are built.
13030 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13031 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13032 done
13033 LIBOBJS=$ac_libobjs
13034
13035 LTLIBOBJS=$ac_ltlibobjs
13036
13037
13038 if test -n "$EXEEXT"; then
13039 am__EXEEXT_TRUE=
13040 am__EXEEXT_FALSE='#'
13041 else
13042 am__EXEEXT_TRUE='#'
13043 am__EXEEXT_FALSE=
13044 fi
13045
13046 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13047 as_fn_error $? "conditional \"AMDEP\" was never defined.
13048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13049 fi
13050 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13051 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13053 fi
13054
13055 : "${CONFIG_STATUS=./config.status}"
13056 ac_write_fail=0
13057 ac_clean_files_save=$ac_clean_files
13058 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13060 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13061 as_write_fail=0
13062 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13063 #! $SHELL
13064 # Generated by $as_me.
13065 # Run this file to recreate the current configuration.
13066 # Compiler output produced by configure, useful for debugging
13067 # configure, is in config.log if it exists.
13068
13069 debug=false
13070 ac_cs_recheck=false
13071 ac_cs_silent=false
13072
13073 SHELL=\${CONFIG_SHELL-$SHELL}
13074 export SHELL
13075 _ASEOF
13076 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13077 ## -------------------- ##
13078 ## M4sh Initialization. ##
13079 ## -------------------- ##
13080
13081 # Be more Bourne compatible
13082 DUALCASE=1; export DUALCASE # for MKS sh
13083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13084 emulate sh
13085 NULLCMD=:
13086 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13087 # is contrary to our usage. Disable this feature.
13088 alias -g '${1+"$@"}'='"$@"'
13089 setopt NO_GLOB_SUBST
13090 else
13091 case `(set -o) 2>/dev/null` in #(
13092 *posix*) :
13093 set -o posix ;; #(
13094 *) :
13095 ;;
13096 esac
13097 fi
13098
13099
13100 as_nl='
13101 '
13102 export as_nl
13103 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13104 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13106 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13107 # Prefer a ksh shell builtin over an external printf program on Solaris,
13108 # but without wasting forks for bash or zsh.
13109 if test -z "$BASH_VERSION$ZSH_VERSION" \
13110 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13111 as_echo='print -r --'
13112 as_echo_n='print -rn --'
13113 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13114 as_echo='printf %s\n'
13115 as_echo_n='printf %s'
13116 else
13117 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13118 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13119 as_echo_n='/usr/ucb/echo -n'
13120 else
13121 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13122 as_echo_n_body='eval
13123 arg=$1;
13124 case $arg in #(
13125 *"$as_nl"*)
13126 expr "X$arg" : "X\\(.*\\)$as_nl";
13127 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13128 esac;
13129 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13130 '
13131 export as_echo_n_body
13132 as_echo_n='sh -c $as_echo_n_body as_echo'
13133 fi
13134 export as_echo_body
13135 as_echo='sh -c $as_echo_body as_echo'
13136 fi
13137
13138 # The user is always right.
13139 if test "${PATH_SEPARATOR+set}" != set; then
13140 PATH_SEPARATOR=:
13141 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13142 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13143 PATH_SEPARATOR=';'
13144 }
13145 fi
13146
13147
13148 # IFS
13149 # We need space, tab and new line, in precisely that order. Quoting is
13150 # there to prevent editors from complaining about space-tab.
13151 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13152 # splitting by setting IFS to empty value.)
13153 IFS=" "" $as_nl"
13154
13155 # Find who we are. Look in the path if we contain no directory separator.
13156 as_myself=
13157 case $0 in #((
13158 *[\\/]* ) as_myself=$0 ;;
13159 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160 for as_dir in $PATH
13161 do
13162 IFS=$as_save_IFS
13163 test -z "$as_dir" && as_dir=.
13164 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13165 done
13166 IFS=$as_save_IFS
13167
13168 ;;
13169 esac
13170 # We did not find ourselves, most probably we were run as `sh COMMAND'
13171 # in which case we are not to be found in the path.
13172 if test "x$as_myself" = x; then
13173 as_myself=$0
13174 fi
13175 if test ! -f "$as_myself"; then
13176 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13177 exit 1
13178 fi
13179
13180 # Unset variables that we do not need and which cause bugs (e.g. in
13181 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13182 # suppresses any "Segmentation fault" message there. '((' could
13183 # trigger a bug in pdksh 5.2.14.
13184 for as_var in BASH_ENV ENV MAIL MAILPATH
13185 do eval test x\${$as_var+set} = xset \
13186 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13187 done
13188 PS1='$ '
13189 PS2='> '
13190 PS4='+ '
13191
13192 # NLS nuisances.
13193 LC_ALL=C
13194 export LC_ALL
13195 LANGUAGE=C
13196 export LANGUAGE
13197
13198 # CDPATH.
13199 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13200
13201
13202 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13203 # ----------------------------------------
13204 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13205 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13206 # script with STATUS, using 1 if that was 0.
13207 as_fn_error ()
13208 {
13209 as_status=$1; test $as_status -eq 0 && as_status=1
13210 if test "$4"; then
13211 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13212 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13213 fi
13214 $as_echo "$as_me: error: $2" >&2
13215 as_fn_exit $as_status
13216 } # as_fn_error
13217
13218
13219 # as_fn_set_status STATUS
13220 # -----------------------
13221 # Set $? to STATUS, without forking.
13222 as_fn_set_status ()
13223 {
13224 return $1
13225 } # as_fn_set_status
13226
13227 # as_fn_exit STATUS
13228 # -----------------
13229 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13230 as_fn_exit ()
13231 {
13232 set +e
13233 as_fn_set_status $1
13234 exit $1
13235 } # as_fn_exit
13236
13237 # as_fn_unset VAR
13238 # ---------------
13239 # Portably unset VAR.
13240 as_fn_unset ()
13241 {
13242 { eval $1=; unset $1;}
13243 }
13244 as_unset=as_fn_unset
13245 # as_fn_append VAR VALUE
13246 # ----------------------
13247 # Append the text in VALUE to the end of the definition contained in VAR. Take
13248 # advantage of any shell optimizations that allow amortized linear growth over
13249 # repeated appends, instead of the typical quadratic growth present in naive
13250 # implementations.
13251 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13252 eval 'as_fn_append ()
13253 {
13254 eval $1+=\$2
13255 }'
13256 else
13257 as_fn_append ()
13258 {
13259 eval $1=\$$1\$2
13260 }
13261 fi # as_fn_append
13262
13263 # as_fn_arith ARG...
13264 # ------------------
13265 # Perform arithmetic evaluation on the ARGs, and store the result in the
13266 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13267 # must be portable across $(()) and expr.
13268 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13269 eval 'as_fn_arith ()
13270 {
13271 as_val=$(( $* ))
13272 }'
13273 else
13274 as_fn_arith ()
13275 {
13276 as_val=`expr "$@" || test $? -eq 1`
13277 }
13278 fi # as_fn_arith
13279
13280
13281 if expr a : '\(a\)' >/dev/null 2>&1 &&
13282 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13283 as_expr=expr
13284 else
13285 as_expr=false
13286 fi
13287
13288 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13289 as_basename=basename
13290 else
13291 as_basename=false
13292 fi
13293
13294 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13295 as_dirname=dirname
13296 else
13297 as_dirname=false
13298 fi
13299
13300 as_me=`$as_basename -- "$0" ||
13301 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13302 X"$0" : 'X\(//\)$' \| \
13303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13304 $as_echo X/"$0" |
13305 sed '/^.*\/\([^/][^/]*\)\/*$/{
13306 s//\1/
13307 q
13308 }
13309 /^X\/\(\/\/\)$/{
13310 s//\1/
13311 q
13312 }
13313 /^X\/\(\/\).*/{
13314 s//\1/
13315 q
13316 }
13317 s/.*/./; q'`
13318
13319 # Avoid depending upon Character Ranges.
13320 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13321 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13322 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13323 as_cr_digits='0123456789'
13324 as_cr_alnum=$as_cr_Letters$as_cr_digits
13325
13326 ECHO_C= ECHO_N= ECHO_T=
13327 case `echo -n x` in #(((((
13328 -n*)
13329 case `echo 'xy\c'` in
13330 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13331 xy) ECHO_C='\c';;
13332 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13333 ECHO_T=' ';;
13334 esac;;
13335 *)
13336 ECHO_N='-n';;
13337 esac
13338
13339 rm -f conf$$ conf$$.exe conf$$.file
13340 if test -d conf$$.dir; then
13341 rm -f conf$$.dir/conf$$.file
13342 else
13343 rm -f conf$$.dir
13344 mkdir conf$$.dir 2>/dev/null
13345 fi
13346 if (echo >conf$$.file) 2>/dev/null; then
13347 if ln -s conf$$.file conf$$ 2>/dev/null; then
13348 as_ln_s='ln -s'
13349 # ... but there are two gotchas:
13350 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13351 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13352 # In both cases, we have to default to `cp -pR'.
13353 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13354 as_ln_s='cp -pR'
13355 elif ln conf$$.file conf$$ 2>/dev/null; then
13356 as_ln_s=ln
13357 else
13358 as_ln_s='cp -pR'
13359 fi
13360 else
13361 as_ln_s='cp -pR'
13362 fi
13363 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13364 rmdir conf$$.dir 2>/dev/null
13365
13366
13367 # as_fn_mkdir_p
13368 # -------------
13369 # Create "$as_dir" as a directory, including parents if necessary.
13370 as_fn_mkdir_p ()
13371 {
13372
13373 case $as_dir in #(
13374 -*) as_dir=./$as_dir;;
13375 esac
13376 test -d "$as_dir" || eval $as_mkdir_p || {
13377 as_dirs=
13378 while :; do
13379 case $as_dir in #(
13380 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13381 *) as_qdir=$as_dir;;
13382 esac
13383 as_dirs="'$as_qdir' $as_dirs"
13384 as_dir=`$as_dirname -- "$as_dir" ||
13385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13386 X"$as_dir" : 'X\(//\)[^/]' \| \
13387 X"$as_dir" : 'X\(//\)$' \| \
13388 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13389 $as_echo X"$as_dir" |
13390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13391 s//\1/
13392 q
13393 }
13394 /^X\(\/\/\)[^/].*/{
13395 s//\1/
13396 q
13397 }
13398 /^X\(\/\/\)$/{
13399 s//\1/
13400 q
13401 }
13402 /^X\(\/\).*/{
13403 s//\1/
13404 q
13405 }
13406 s/.*/./; q'`
13407 test -d "$as_dir" && break
13408 done
13409 test -z "$as_dirs" || eval "mkdir $as_dirs"
13410 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13411
13412
13413 } # as_fn_mkdir_p
13414 if mkdir -p . 2>/dev/null; then
13415 as_mkdir_p='mkdir -p "$as_dir"'
13416 else
13417 test -d ./-p && rmdir ./-p
13418 as_mkdir_p=false
13419 fi
13420
13421
13422 # as_fn_executable_p FILE
13423 # -----------------------
13424 # Test if FILE is an executable regular file.
13425 as_fn_executable_p ()
13426 {
13427 test -f "$1" && test -x "$1"
13428 } # as_fn_executable_p
13429 as_test_x='test -x'
13430 as_executable_p=as_fn_executable_p
13431
13432 # Sed expression to map a string onto a valid CPP name.
13433 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13434
13435 # Sed expression to map a string onto a valid variable name.
13436 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13437
13438
13439 exec 6>&1
13440 ## ----------------------------------- ##
13441 ## Main body of $CONFIG_STATUS script. ##
13442 ## ----------------------------------- ##
13443 _ASEOF
13444 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13445
13446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13447 # Save the log message, to keep $0 and so on meaningful, and to
13448 # report actual input values of CONFIG_FILES etc. instead of their
13449 # values after options handling.
13450 ac_log="
13451 This file was extended by onigmo $as_me 6.1.1, which was
13452 generated by GNU Autoconf 2.69. Invocation command line was
13453
13454 CONFIG_FILES = $CONFIG_FILES
13455 CONFIG_HEADERS = $CONFIG_HEADERS
13456 CONFIG_LINKS = $CONFIG_LINKS
13457 CONFIG_COMMANDS = $CONFIG_COMMANDS
13458 $ $0 $@
13459
13460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13461 "
13462
13463 _ACEOF
13464
13465 case $ac_config_files in *"
13466 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13467 esac
13468
13469 case $ac_config_headers in *"
13470 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13471 esac
13472
13473
13474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13475 # Files that config.status was made for.
13476 config_files="$ac_config_files"
13477 config_headers="$ac_config_headers"
13478 config_commands="$ac_config_commands"
13479
13480 _ACEOF
13481
13482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13483 ac_cs_usage="\
13484 \`$as_me' instantiates files and other configuration actions
13485 from templates according to the current configuration. Unless the files
13486 and actions are specified as TAGs, all are instantiated by default.
13487
13488 Usage: $0 [OPTION]... [TAG]...
13489
13490 -h, --help print this help, then exit
13491 -V, --version print version number and configuration settings, then exit
13492 --config print configuration, then exit
13493 -q, --quiet, --silent
13494 do not print progress messages
13495 -d, --debug don't remove temporary files
13496 --recheck update $as_me by reconfiguring in the same conditions
13497 --file=FILE[:TEMPLATE]
13498 instantiate the configuration file FILE
13499 --header=FILE[:TEMPLATE]
13500 instantiate the configuration header FILE
13501
13502 Configuration files:
13503 $config_files
13504
13505 Configuration headers:
13506 $config_headers
13507
13508 Configuration commands:
13509 $config_commands
13510
13511 Report bugs to the package provider."
13512
13513 _ACEOF
13514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13515 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13516 ac_cs_version="\\
13517 onigmo config.status 6.1.1
13518 configured by $0, generated by GNU Autoconf 2.69,
13519 with options \\"\$ac_cs_config\\"
13520
13521 Copyright (C) 2012 Free Software Foundation, Inc.
13522 This config.status script is free software; the Free Software Foundation
13523 gives unlimited permission to copy, distribute and modify it."
13524
13525 ac_pwd='$ac_pwd'
13526 srcdir='$srcdir'
13527 INSTALL='$INSTALL'
13528 MKDIR_P='$MKDIR_P'
13529 AWK='$AWK'
13530 test -n "\$AWK" || AWK=awk
13531 _ACEOF
13532
13533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13534 # The default lists apply if the user does not specify any file.
13535 ac_need_defaults=:
13536 while test $# != 0
13537 do
13538 case $1 in
13539 --*=?*)
13540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13541 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13542 ac_shift=:
13543 ;;
13544 --*=)
13545 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13546 ac_optarg=
13547 ac_shift=:
13548 ;;
13549 *)
13550 ac_option=$1
13551 ac_optarg=$2
13552 ac_shift=shift
13553 ;;
13554 esac
13555
13556 case $ac_option in
13557 # Handling of the options.
13558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13559 ac_cs_recheck=: ;;
13560 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13561 $as_echo "$ac_cs_version"; exit ;;
13562 --config | --confi | --conf | --con | --co | --c )
13563 $as_echo "$ac_cs_config"; exit ;;
13564 --debug | --debu | --deb | --de | --d | -d )
13565 debug=: ;;
13566 --file | --fil | --fi | --f )
13567 $ac_shift
13568 case $ac_optarg in
13569 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13570 '') as_fn_error $? "missing file argument" ;;
13571 esac
13572 as_fn_append CONFIG_FILES " '$ac_optarg'"
13573 ac_need_defaults=false;;
13574 --header | --heade | --head | --hea )
13575 $ac_shift
13576 case $ac_optarg in
13577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13578 esac
13579 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13580 ac_need_defaults=false;;
13581 --he | --h)
13582 # Conflict between --help and --header
13583 as_fn_error $? "ambiguous option: \`$1'
13584 Try \`$0 --help' for more information.";;
13585 --help | --hel | -h )
13586 $as_echo "$ac_cs_usage"; exit ;;
13587 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13588 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13589 ac_cs_silent=: ;;
13590
13591 # This is an error.
13592 -*) as_fn_error $? "unrecognized option: \`$1'
13593 Try \`$0 --help' for more information." ;;
13594
13595 *) as_fn_append ac_config_targets " $1"
13596 ac_need_defaults=false ;;
13597
13598 esac
13599 shift
13600 done
13601
13602 ac_configure_extra_args=
13603
13604 if $ac_cs_silent; then
13605 exec 6>/dev/null
13606 ac_configure_extra_args="$ac_configure_extra_args --silent"
13607 fi
13608
13609 _ACEOF
13610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13611 if \$ac_cs_recheck; then
13612 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13613 shift
13614 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13615 CONFIG_SHELL='$SHELL'
13616 export CONFIG_SHELL
13617 exec "\$@"
13618 fi
13619
13620 _ACEOF
13621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13622 exec 5>>config.log
13623 {
13624 echo
13625 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13626 ## Running $as_me. ##
13627 _ASBOX
13628 $as_echo "$ac_log"
13629 } >&5
13630
13631 _ACEOF
13632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13633 #
13634 # INIT-COMMANDS
13635 #
13636 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13637
13638
13639 # The HP-UX ksh and POSIX shell print the target directory to stdout
13640 # if CDPATH is set.
13641 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13642
13643 sed_quote_subst='$sed_quote_subst'
13644 double_quote_subst='$double_quote_subst'
13645 delay_variable_subst='$delay_variable_subst'
13646 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13647 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13648 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13649 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13650 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13651 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13652 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13653 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13654 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13655 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13656 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13657 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13658 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13659 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13660 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13661 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13662 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13663 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13664 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13665 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13666 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13667 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13668 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13669 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13670 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13671 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13672 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13673 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13674 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13675 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13676 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13677 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13678 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13679 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13680 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13681 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13682 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13683 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13684 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13685 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13686 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13687 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13688 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13689 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13690 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13691 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13692 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13693 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13694 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13695 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13696 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13697 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13698 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13699 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13700 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13701 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13702 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13703 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13704 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"`'
13705 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13706 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13707 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13708 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13709 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13710 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13711 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13712 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13713 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13714 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13715 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13716 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13717 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13718 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13719 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13720 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13721 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13722 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13723 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13724 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13725 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13726 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13727 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13728 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13729 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13730 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13731 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13732 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13733 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13734 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13735 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13736 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13737 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13738 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13739 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13740 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13741 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13742 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13743 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13744 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13745 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13746 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13747 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13748 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13749 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13750 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13751 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13752 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13753 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13754 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13755 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13756 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13757 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13758 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13759 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13760 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13761 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13762 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13763 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13764 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13765 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13766 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13767 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13768 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13769 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13770 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13771 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13772 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13773 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13774 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13775 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13776 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13777 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13778 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13779 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13780 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13781
13782 LTCC='$LTCC'
13783 LTCFLAGS='$LTCFLAGS'
13784 compiler='$compiler_DEFAULT'
13785
13786 # A function that is used when there is no print builtin or printf.
13787 func_fallback_echo ()
13788 {
13789 eval 'cat <<_LTECHO_EOF
13790 \$1
13791 _LTECHO_EOF'
13792 }
13793
13794 # Quote evaled strings.
13795 for var in SHELL \
13796 ECHO \
13797 PATH_SEPARATOR \
13798 SED \
13799 GREP \
13800 EGREP \
13801 FGREP \
13802 LD \
13803 NM \
13804 LN_S \
13805 lt_SP2NL \
13806 lt_NL2SP \
13807 reload_flag \
13808 OBJDUMP \
13809 deplibs_check_method \
13810 file_magic_cmd \
13811 file_magic_glob \
13812 want_nocaseglob \
13813 DLLTOOL \
13814 sharedlib_from_linklib_cmd \
13815 AR \
13816 AR_FLAGS \
13817 archiver_list_spec \
13818 STRIP \
13819 RANLIB \
13820 CC \
13821 CFLAGS \
13822 compiler \
13823 lt_cv_sys_global_symbol_pipe \
13824 lt_cv_sys_global_symbol_to_cdecl \
13825 lt_cv_sys_global_symbol_to_import \
13826 lt_cv_sys_global_symbol_to_c_name_address \
13827 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13828 lt_cv_nm_interface \
13829 nm_file_list_spec \
13830 lt_cv_truncate_bin \
13831 lt_prog_compiler_no_builtin_flag \
13832 lt_prog_compiler_pic \
13833 lt_prog_compiler_wl \
13834 lt_prog_compiler_static \
13835 lt_cv_prog_compiler_c_o \
13836 need_locks \
13837 MANIFEST_TOOL \
13838 DSYMUTIL \
13839 NMEDIT \
13840 LIPO \
13841 OTOOL \
13842 OTOOL64 \
13843 shrext_cmds \
13844 export_dynamic_flag_spec \
13845 whole_archive_flag_spec \
13846 compiler_needs_object \
13847 with_gnu_ld \
13848 allow_undefined_flag \
13849 no_undefined_flag \
13850 hardcode_libdir_flag_spec \
13851 hardcode_libdir_separator \
13852 exclude_expsyms \
13853 include_expsyms \
13854 file_list_spec \
13855 variables_saved_for_relink \
13856 libname_spec \
13857 library_names_spec \
13858 soname_spec \
13859 install_override_mode \
13860 finish_eval \
13861 old_striplib \
13862 striplib; do
13863 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13864 *[\\\\\\\`\\"\\\$]*)
13865 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13866 ;;
13867 *)
13868 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13869 ;;
13870 esac
13871 done
13872
13873 # Double-quote double-evaled strings.
13874 for var in reload_cmds \
13875 old_postinstall_cmds \
13876 old_postuninstall_cmds \
13877 old_archive_cmds \
13878 extract_expsyms_cmds \
13879 old_archive_from_new_cmds \
13880 old_archive_from_expsyms_cmds \
13881 archive_cmds \
13882 archive_expsym_cmds \
13883 module_cmds \
13884 module_expsym_cmds \
13885 export_symbols_cmds \
13886 prelink_cmds \
13887 postlink_cmds \
13888 postinstall_cmds \
13889 postuninstall_cmds \
13890 finish_cmds \
13891 sys_lib_search_path_spec \
13892 configure_time_dlsearch_path \
13893 configure_time_lt_sys_library_path; do
13894 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13895 *[\\\\\\\`\\"\\\$]*)
13896 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13897 ;;
13898 *)
13899 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13900 ;;
13901 esac
13902 done
13903
13904 ac_aux_dir='$ac_aux_dir'
13905
13906 # See if we are running on zsh, and set the options that allow our
13907 # commands through without removal of \ escapes INIT.
13908 if test -n "\${ZSH_VERSION+set}"; then
13909 setopt NO_GLOB_SUBST
13910 fi
13911
13912
13913 PACKAGE='$PACKAGE'
13914 VERSION='$VERSION'
13915 RM='$RM'
13916 ofile='$ofile'
13917
13918
13919
13920
13921 _ACEOF
13922
13923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13924
13925 # Handling of arguments.
13926 for ac_config_target in $ac_config_targets
13927 do
13928 case $ac_config_target in
13929 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13930 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13931 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13932 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13933 "onigmo-config") CONFIG_FILES="$CONFIG_FILES onigmo-config" ;;
13934 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
13935 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13936
13937 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13938 esac
13939 done
13940
13941
13942 # If the user did not use the arguments to specify the items to instantiate,
13943 # then the envvar interface is used. Set only those that are not.
13944 # We use the long form for the default assignment because of an extremely
13945 # bizarre bug on SunOS 4.1.3.
13946 if $ac_need_defaults; then
13947 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13948 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13950 fi
13951
13952 # Have a temporary directory for convenience. Make it in the build tree
13953 # simply because there is no reason against having it here, and in addition,
13954 # creating and moving files from /tmp can sometimes cause problems.
13955 # Hook for its removal unless debugging.
13956 # Note that there is a small window in which the directory will not be cleaned:
13957 # after its creation but before its name has been assigned to `$tmp'.
13958 $debug ||
13959 {
13960 tmp= ac_tmp=
13961 trap 'exit_status=$?
13962 : "${ac_tmp:=$tmp}"
13963 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13964 ' 0
13965 trap 'as_fn_exit 1' 1 2 13 15
13966 }
13967 # Create a (secure) tmp directory for tmp files.
13968
13969 {
13970 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13971 test -d "$tmp"
13972 } ||
13973 {
13974 tmp=./conf$$-$RANDOM
13975 (umask 077 && mkdir "$tmp")
13976 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13977 ac_tmp=$tmp
13978
13979 # Set up the scripts for CONFIG_FILES section.
13980 # No need to generate them if there are no CONFIG_FILES.
13981 # This happens for instance with `./config.status config.h'.
13982 if test -n "$CONFIG_FILES"; then
13983
13984
13985 ac_cr=`echo X | tr X '\015'`
13986 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13987 # But we know of no other shell where ac_cr would be empty at this
13988 # point, so we can use a bashism as a fallback.
13989 if test "x$ac_cr" = x; then
13990 eval ac_cr=\$\'\\r\'
13991 fi
13992 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13993 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13994 ac_cs_awk_cr='\\r'
13995 else
13996 ac_cs_awk_cr=$ac_cr
13997 fi
13998
13999 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14000 _ACEOF
14001
14002
14003 {
14004 echo "cat >conf$$subs.awk <<_ACEOF" &&
14005 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14006 echo "_ACEOF"
14007 } >conf$$subs.sh ||
14008 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14009 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14010 ac_delim='%!_!# '
14011 for ac_last_try in false false false false false :; do
14012 . ./conf$$subs.sh ||
14013 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14014
14015 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14016 if test $ac_delim_n = $ac_delim_num; then
14017 break
14018 elif $ac_last_try; then
14019 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14020 else
14021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14022 fi
14023 done
14024 rm -f conf$$subs.sh
14025
14026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14027 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14028 _ACEOF
14029 sed -n '
14030 h
14031 s/^/S["/; s/!.*/"]=/
14032 p
14033 g
14034 s/^[^!]*!//
14035 :repl
14036 t repl
14037 s/'"$ac_delim"'$//
14038 t delim
14039 :nl
14040 h
14041 s/\(.\{148\}\)..*/\1/
14042 t more1
14043 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14044 p
14045 n
14046 b repl
14047 :more1
14048 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14049 p
14050 g
14051 s/.\{148\}//
14052 t nl
14053 :delim
14054 h
14055 s/\(.\{148\}\)..*/\1/
14056 t more2
14057 s/["\\]/\\&/g; s/^/"/; s/$/"/
14058 p
14059 b
14060 :more2
14061 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14062 p
14063 g
14064 s/.\{148\}//
14065 t delim
14066 ' <conf$$subs.awk | sed '
14067 /^[^""]/{
14068 N
14069 s/\n//
14070 }
14071 ' >>$CONFIG_STATUS || ac_write_fail=1
14072 rm -f conf$$subs.awk
14073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14074 _ACAWK
14075 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14076 for (key in S) S_is_set[key] = 1
14077 FS = ""
14078
14079 }
14080 {
14081 line = $ 0
14082 nfields = split(line, field, "@")
14083 substed = 0
14084 len = length(field[1])
14085 for (i = 2; i < nfields; i++) {
14086 key = field[i]
14087 keylen = length(key)
14088 if (S_is_set[key]) {
14089 value = S[key]
14090 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14091 len += length(value) + length(field[++i])
14092 substed = 1
14093 } else
14094 len += 1 + keylen
14095 }
14096
14097 print line
14098 }
14099
14100 _ACAWK
14101 _ACEOF
14102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14103 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14104 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14105 else
14106 cat
14107 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14108 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14109 _ACEOF
14110
14111 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14112 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14113 # trailing colons and then remove the whole line if VPATH becomes empty
14114 # (actually we leave an empty line to preserve line numbers).
14115 if test "x$srcdir" = x.; then
14116 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14117 h
14118 s///
14119 s/^/:/
14120 s/[ ]*$/:/
14121 s/:\$(srcdir):/:/g
14122 s/:\${srcdir}:/:/g
14123 s/:@srcdir@:/:/g
14124 s/^:*//
14125 s/:*$//
14126 x
14127 s/\(=[ ]*\).*/\1/
14128 G
14129 s/\n//
14130 s/^[^=]*=[ ]*$//
14131 }'
14132 fi
14133
14134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14135 fi # test -n "$CONFIG_FILES"
14136
14137 # Set up the scripts for CONFIG_HEADERS section.
14138 # No need to generate them if there are no CONFIG_HEADERS.
14139 # This happens for instance with `./config.status Makefile'.
14140 if test -n "$CONFIG_HEADERS"; then
14141 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14142 BEGIN {
14143 _ACEOF
14144
14145 # Transform confdefs.h into an awk script `defines.awk', embedded as
14146 # here-document in config.status, that substitutes the proper values into
14147 # config.h.in to produce config.h.
14148
14149 # Create a delimiter string that does not exist in confdefs.h, to ease
14150 # handling of long lines.
14151 ac_delim='%!_!# '
14152 for ac_last_try in false false :; do
14153 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14154 if test -z "$ac_tt"; then
14155 break
14156 elif $ac_last_try; then
14157 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14158 else
14159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14160 fi
14161 done
14162
14163 # For the awk script, D is an array of macro values keyed by name,
14164 # likewise P contains macro parameters if any. Preserve backslash
14165 # newline sequences.
14166
14167 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14168 sed -n '
14169 s/.\{148\}/&'"$ac_delim"'/g
14170 t rset
14171 :rset
14172 s/^[ ]*#[ ]*define[ ][ ]*/ /
14173 t def
14174 d
14175 :def
14176 s/\\$//
14177 t bsnl
14178 s/["\\]/\\&/g
14179 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14180 D["\1"]=" \3"/p
14181 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14182 d
14183 :bsnl
14184 s/["\\]/\\&/g
14185 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14186 D["\1"]=" \3\\\\\\n"\\/p
14187 t cont
14188 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14189 t cont
14190 d
14191 :cont
14192 n
14193 s/.\{148\}/&'"$ac_delim"'/g
14194 t clear
14195 :clear
14196 s/\\$//
14197 t bsnlc
14198 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14199 d
14200 :bsnlc
14201 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14202 b cont
14203 ' <confdefs.h | sed '
14204 s/'"$ac_delim"'/"\\\
14205 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14206
14207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14208 for (key in D) D_is_set[key] = 1
14209 FS = ""
14210 }
14211 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14212 line = \$ 0
14213 split(line, arg, " ")
14214 if (arg[1] == "#") {
14215 defundef = arg[2]
14216 mac1 = arg[3]
14217 } else {
14218 defundef = substr(arg[1], 2)
14219 mac1 = arg[2]
14220 }
14221 split(mac1, mac2, "(") #)
14222 macro = mac2[1]
14223 prefix = substr(line, 1, index(line, defundef) - 1)
14224 if (D_is_set[macro]) {
14225 # Preserve the white space surrounding the "#".
14226 print prefix "define", macro P[macro] D[macro]
14227 next
14228 } else {
14229 # Replace #undef with comments. This is necessary, for example,
14230 # in the case of _POSIX_SOURCE, which is predefined and required
14231 # on some systems where configure will not decide to define it.
14232 if (defundef == "undef") {
14233 print "/*", prefix defundef, macro, "*/"
14234 next
14235 }
14236 }
14237 }
14238 { print }
14239 _ACAWK
14240 _ACEOF
14241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14242 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14243 fi # test -n "$CONFIG_HEADERS"
14244
14245
14246 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14247 shift
14248 for ac_tag
14249 do
14250 case $ac_tag in
14251 :[FHLC]) ac_mode=$ac_tag; continue;;
14252 esac
14253 case $ac_mode$ac_tag in
14254 :[FHL]*:*);;
14255 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14256 :[FH]-) ac_tag=-:-;;
14257 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14258 esac
14259 ac_save_IFS=$IFS
14260 IFS=:
14261 set x $ac_tag
14262 IFS=$ac_save_IFS
14263 shift
14264 ac_file=$1
14265 shift
14266
14267 case $ac_mode in
14268 :L) ac_source=$1;;
14269 :[FH])
14270 ac_file_inputs=
14271 for ac_f
14272 do
14273 case $ac_f in
14274 -) ac_f="$ac_tmp/stdin";;
14275 *) # Look for the file first in the build tree, then in the source tree
14276 # (if the path is not absolute). The absolute path cannot be DOS-style,
14277 # because $ac_f cannot contain `:'.
14278 test -f "$ac_f" ||
14279 case $ac_f in
14280 [\\/$]*) false;;
14281 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14282 esac ||
14283 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14284 esac
14285 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14286 as_fn_append ac_file_inputs " '$ac_f'"
14287 done
14288
14289 # Let's still pretend it is `configure' which instantiates (i.e., don't
14290 # use $as_me), people would be surprised to read:
14291 # /* config.h. Generated by config.status. */
14292 configure_input='Generated from '`
14293 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14294 `' by configure.'
14295 if test x"$ac_file" != x-; then
14296 configure_input="$ac_file. $configure_input"
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14298 $as_echo "$as_me: creating $ac_file" >&6;}
14299 fi
14300 # Neutralize special characters interpreted by sed in replacement strings.
14301 case $configure_input in #(
14302 *\&* | *\|* | *\\* )
14303 ac_sed_conf_input=`$as_echo "$configure_input" |
14304 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14305 *) ac_sed_conf_input=$configure_input;;
14306 esac
14307
14308 case $ac_tag in
14309 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14311 esac
14312 ;;
14313 esac
14314
14315 ac_dir=`$as_dirname -- "$ac_file" ||
14316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14317 X"$ac_file" : 'X\(//\)[^/]' \| \
14318 X"$ac_file" : 'X\(//\)$' \| \
14319 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14320 $as_echo X"$ac_file" |
14321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14322 s//\1/
14323 q
14324 }
14325 /^X\(\/\/\)[^/].*/{
14326 s//\1/
14327 q
14328 }
14329 /^X\(\/\/\)$/{
14330 s//\1/
14331 q
14332 }
14333 /^X\(\/\).*/{
14334 s//\1/
14335 q
14336 }
14337 s/.*/./; q'`
14338 as_dir="$ac_dir"; as_fn_mkdir_p
14339 ac_builddir=.
14340
14341 case "$ac_dir" in
14342 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14343 *)
14344 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14345 # A ".." for each directory in $ac_dir_suffix.
14346 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14347 case $ac_top_builddir_sub in
14348 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14349 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14350 esac ;;
14351 esac
14352 ac_abs_top_builddir=$ac_pwd
14353 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14354 # for backward compatibility:
14355 ac_top_builddir=$ac_top_build_prefix
14356
14357 case $srcdir in
14358 .) # We are building in place.
14359 ac_srcdir=.
14360 ac_top_srcdir=$ac_top_builddir_sub
14361 ac_abs_top_srcdir=$ac_pwd ;;
14362 [\\/]* | ?:[\\/]* ) # Absolute name.
14363 ac_srcdir=$srcdir$ac_dir_suffix;
14364 ac_top_srcdir=$srcdir
14365 ac_abs_top_srcdir=$srcdir ;;
14366 *) # Relative name.
14367 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14368 ac_top_srcdir=$ac_top_build_prefix$srcdir
14369 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14370 esac
14371 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14372
14373
14374 case $ac_mode in
14375 :F)
14376 #
14377 # CONFIG_FILE
14378 #
14379
14380 case $INSTALL in
14381 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14382 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14383 esac
14384 ac_MKDIR_P=$MKDIR_P
14385 case $MKDIR_P in
14386 [\\/$]* | ?:[\\/]* ) ;;
14387 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14388 esac
14389 _ACEOF
14390
14391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14392 # If the template does not know about datarootdir, expand it.
14393 # FIXME: This hack should be removed a few years after 2.60.
14394 ac_datarootdir_hack=; ac_datarootdir_seen=
14395 ac_sed_dataroot='
14396 /datarootdir/ {
14397 p
14398 q
14399 }
14400 /@datadir@/p
14401 /@docdir@/p
14402 /@infodir@/p
14403 /@localedir@/p
14404 /@mandir@/p'
14405 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14406 *datarootdir*) ac_datarootdir_seen=yes;;
14407 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14409 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14410 _ACEOF
14411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14412 ac_datarootdir_hack='
14413 s&@datadir@&$datadir&g
14414 s&@docdir@&$docdir&g
14415 s&@infodir@&$infodir&g
14416 s&@localedir@&$localedir&g
14417 s&@mandir@&$mandir&g
14418 s&\\\${datarootdir}&$datarootdir&g' ;;
14419 esac
14420 _ACEOF
14421
14422 # Neutralize VPATH when `$srcdir' = `.'.
14423 # Shell code in configure.ac might set extrasub.
14424 # FIXME: do we really want to maintain this feature?
14425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14426 ac_sed_extra="$ac_vpsub
14427 $extrasub
14428 _ACEOF
14429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14430 :t
14431 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14432 s|@configure_input@|$ac_sed_conf_input|;t t
14433 s&@top_builddir@&$ac_top_builddir_sub&;t t
14434 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14435 s&@srcdir@&$ac_srcdir&;t t
14436 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14437 s&@top_srcdir@&$ac_top_srcdir&;t t
14438 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14439 s&@builddir@&$ac_builddir&;t t
14440 s&@abs_builddir@&$ac_abs_builddir&;t t
14441 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14442 s&@INSTALL@&$ac_INSTALL&;t t
14443 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14444 $ac_datarootdir_hack
14445 "
14446 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14447 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14448
14449 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14450 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14451 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14452 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14454 which seems to be undefined. Please make sure it is defined" >&5
14455 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14456 which seems to be undefined. Please make sure it is defined" >&2;}
14457
14458 rm -f "$ac_tmp/stdin"
14459 case $ac_file in
14460 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14461 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14462 esac \
14463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14464 ;;
14465 :H)
14466 #
14467 # CONFIG_HEADER
14468 #
14469 if test x"$ac_file" != x-; then
14470 {
14471 $as_echo "/* $configure_input */" \
14472 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14473 } >"$ac_tmp/config.h" \
14474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14475 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14477 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14478 else
14479 rm -f "$ac_file"
14480 mv "$ac_tmp/config.h" "$ac_file" \
14481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14482 fi
14483 else
14484 $as_echo "/* $configure_input */" \
14485 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14486 || as_fn_error $? "could not create -" "$LINENO" 5
14487 fi
14488 # Compute "$ac_file"'s index in $config_headers.
14489 _am_arg="$ac_file"
14490 _am_stamp_count=1
14491 for _am_header in $config_headers :; do
14492 case $_am_header in
14493 $_am_arg | $_am_arg:* )
14494 break ;;
14495 * )
14496 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14497 esac
14498 done
14499 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14500 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14501 X"$_am_arg" : 'X\(//\)[^/]' \| \
14502 X"$_am_arg" : 'X\(//\)$' \| \
14503 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14504 $as_echo X"$_am_arg" |
14505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14506 s//\1/
14507 q
14508 }
14509 /^X\(\/\/\)[^/].*/{
14510 s//\1/
14511 q
14512 }
14513 /^X\(\/\/\)$/{
14514 s//\1/
14515 q
14516 }
14517 /^X\(\/\).*/{
14518 s//\1/
14519 q
14520 }
14521 s/.*/./; q'`/stamp-h$_am_stamp_count
14522 ;;
14523
14524 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14525 $as_echo "$as_me: executing $ac_file commands" >&6;}
14526 ;;
14527 esac
14528
14529
14530 case $ac_file$ac_mode in
14531 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14532 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14533 # are listed without --file. Let's play safe and only enable the eval
14534 # if we detect the quoting.
14535 case $CONFIG_FILES in
14536 *\'*) eval set x "$CONFIG_FILES" ;;
14537 *) set x $CONFIG_FILES ;;
14538 esac
14539 shift
14540 for mf
14541 do
14542 # Strip MF so we end up with the name of the file.
14543 mf=`echo "$mf" | sed -e 's/:.*$//'`
14544 # Check whether this is an Automake generated Makefile or not.
14545 # We used to match only the files named `Makefile.in', but
14546 # some people rename them; so instead we look at the file content.
14547 # Grep'ing the first line is not enough: some people post-process
14548 # each Makefile.in and add a new line on top of each file to say so.
14549 # Grep'ing the whole file is not good either: AIX grep has a line
14550 # limit of 2048, but all sed's we know have understand at least 4000.
14551 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14552 dirpart=`$as_dirname -- "$mf" ||
14553 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14554 X"$mf" : 'X\(//\)[^/]' \| \
14555 X"$mf" : 'X\(//\)$' \| \
14556 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14557 $as_echo X"$mf" |
14558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14559 s//\1/
14560 q
14561 }
14562 /^X\(\/\/\)[^/].*/{
14563 s//\1/
14564 q
14565 }
14566 /^X\(\/\/\)$/{
14567 s//\1/
14568 q
14569 }
14570 /^X\(\/\).*/{
14571 s//\1/
14572 q
14573 }
14574 s/.*/./; q'`
14575 else
14576 continue
14577 fi
14578 # Extract the definition of DEPDIR, am__include, and am__quote
14579 # from the Makefile without running `make'.
14580 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14581 test -z "$DEPDIR" && continue
14582 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14583 test -z "am__include" && continue
14584 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14585 # When using ansi2knr, U may be empty or an underscore; expand it
14586 U=`sed -n 's/^U = //p' < "$mf"`
14587 # Find all dependency output files, they are included files with
14588 # $(DEPDIR) in their names. We invoke sed twice because it is the
14589 # simplest approach to changing $(DEPDIR) to its actual value in the
14590 # expansion.
14591 for file in `sed -n "
14592 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14593 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14594 # Make sure the directory exists.
14595 test -f "$dirpart/$file" && continue
14596 fdir=`$as_dirname -- "$file" ||
14597 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14598 X"$file" : 'X\(//\)[^/]' \| \
14599 X"$file" : 'X\(//\)$' \| \
14600 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14601 $as_echo X"$file" |
14602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14603 s//\1/
14604 q
14605 }
14606 /^X\(\/\/\)[^/].*/{
14607 s//\1/
14608 q
14609 }
14610 /^X\(\/\/\)$/{
14611 s//\1/
14612 q
14613 }
14614 /^X\(\/\).*/{
14615 s//\1/
14616 q
14617 }
14618 s/.*/./; q'`
14619 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14620 # echo "creating $dirpart/$file"
14621 echo '# dummy' > "$dirpart/$file"
14622 done
14623 done
14624 }
14625 ;;
14626 "libtool":C)
14627
14628 # See if we are running on zsh, and set the options that allow our
14629 # commands through without removal of \ escapes.
14630 if test -n "${ZSH_VERSION+set}"; then
14631 setopt NO_GLOB_SUBST
14632 fi
14633
14634 cfgfile=${ofile}T
14635 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14636 $RM "$cfgfile"
14637
14638 cat <<_LT_EOF >> "$cfgfile"
14639 #! $SHELL
14640 # Generated automatically by $as_me ($PACKAGE) $VERSION
14641 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14642 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14643
14644 # Provide generalized library-building support services.
14645 # Written by Gordon Matzigkeit, 1996
14646
14647 # Copyright (C) 2014 Free Software Foundation, Inc.
14648 # This is free software; see the source for copying conditions. There is NO
14649 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14650
14651 # GNU Libtool is free software; you can redistribute it and/or modify
14652 # it under the terms of the GNU General Public License as published by
14653 # the Free Software Foundation; either version 2 of of the License, or
14654 # (at your option) any later version.
14655 #
14656 # As a special exception to the GNU General Public License, if you
14657 # distribute this file as part of a program or library that is built
14658 # using GNU Libtool, you may include this file under the same
14659 # distribution terms that you use for the rest of that program.
14660 #
14661 # GNU Libtool is distributed in the hope that it will be useful, but
14662 # WITHOUT ANY WARRANTY; without even the implied warranty of
14663 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14664 # GNU General Public License for more details.
14665 #
14666 # You should have received a copy of the GNU General Public License
14667 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14668
14669
14670 # The names of the tagged configurations supported by this script.
14671 available_tags=''
14672
14673 # Configured defaults for sys_lib_dlsearch_path munging.
14674 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14675
14676 # ### BEGIN LIBTOOL CONFIG
14677
14678 # Which release of libtool.m4 was used?
14679 macro_version=$macro_version
14680 macro_revision=$macro_revision
14681
14682 # Whether or not to build shared libraries.
14683 build_libtool_libs=$enable_shared
14684
14685 # Whether or not to build static libraries.
14686 build_old_libs=$enable_static
14687
14688 # What type of objects to build.
14689 pic_mode=$pic_mode
14690
14691 # Whether or not to optimize for fast installation.
14692 fast_install=$enable_fast_install
14693
14694 # Shared archive member basename,for filename based shared library versioning on AIX.
14695 shared_archive_member_spec=$shared_archive_member_spec
14696
14697 # Shell to use when invoking shell scripts.
14698 SHELL=$lt_SHELL
14699
14700 # An echo program that protects backslashes.
14701 ECHO=$lt_ECHO
14702
14703 # The PATH separator for the build system.
14704 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14705
14706 # The host system.
14707 host_alias=$host_alias
14708 host=$host
14709 host_os=$host_os
14710
14711 # The build system.
14712 build_alias=$build_alias
14713 build=$build
14714 build_os=$build_os
14715
14716 # A sed program that does not truncate output.
14717 SED=$lt_SED
14718
14719 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14720 Xsed="\$SED -e 1s/^X//"
14721
14722 # A grep program that handles long lines.
14723 GREP=$lt_GREP
14724
14725 # An ERE matcher.
14726 EGREP=$lt_EGREP
14727
14728 # A literal string matcher.
14729 FGREP=$lt_FGREP
14730
14731 # A BSD- or MS-compatible name lister.
14732 NM=$lt_NM
14733
14734 # Whether we need soft or hard links.
14735 LN_S=$lt_LN_S
14736
14737 # What is the maximum length of a command?
14738 max_cmd_len=$max_cmd_len
14739
14740 # Object file suffix (normally "o").
14741 objext=$ac_objext
14742
14743 # Executable file suffix (normally "").
14744 exeext=$exeext
14745
14746 # whether the shell understands "unset".
14747 lt_unset=$lt_unset
14748
14749 # turn spaces into newlines.
14750 SP2NL=$lt_lt_SP2NL
14751
14752 # turn newlines into spaces.
14753 NL2SP=$lt_lt_NL2SP
14754
14755 # convert \$build file names to \$host format.
14756 to_host_file_cmd=$lt_cv_to_host_file_cmd
14757
14758 # convert \$build files to toolchain format.
14759 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14760
14761 # An object symbol dumper.
14762 OBJDUMP=$lt_OBJDUMP
14763
14764 # Method to check whether dependent libraries are shared objects.
14765 deplibs_check_method=$lt_deplibs_check_method
14766
14767 # Command to use when deplibs_check_method = "file_magic".
14768 file_magic_cmd=$lt_file_magic_cmd
14769
14770 # How to find potential files when deplibs_check_method = "file_magic".
14771 file_magic_glob=$lt_file_magic_glob
14772
14773 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14774 want_nocaseglob=$lt_want_nocaseglob
14775
14776 # DLL creation program.
14777 DLLTOOL=$lt_DLLTOOL
14778
14779 # Command to associate shared and link libraries.
14780 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14781
14782 # The archiver.
14783 AR=$lt_AR
14784
14785 # Flags to create an archive.
14786 AR_FLAGS=$lt_AR_FLAGS
14787
14788 # How to feed a file listing to the archiver.
14789 archiver_list_spec=$lt_archiver_list_spec
14790
14791 # A symbol stripping program.
14792 STRIP=$lt_STRIP
14793
14794 # Commands used to install an old-style archive.
14795 RANLIB=$lt_RANLIB
14796 old_postinstall_cmds=$lt_old_postinstall_cmds
14797 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14798
14799 # Whether to use a lock for old archive extraction.
14800 lock_old_archive_extraction=$lock_old_archive_extraction
14801
14802 # A C compiler.
14803 LTCC=$lt_CC
14804
14805 # LTCC compiler flags.
14806 LTCFLAGS=$lt_CFLAGS
14807
14808 # Take the output of nm and produce a listing of raw symbols and C names.
14809 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14810
14811 # Transform the output of nm in a proper C declaration.
14812 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14813
14814 # Transform the output of nm into a list of symbols to manually relocate.
14815 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14816
14817 # Transform the output of nm in a C name address pair.
14818 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14819
14820 # Transform the output of nm in a C name address pair when lib prefix is needed.
14821 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14822
14823 # The name lister interface.
14824 nm_interface=$lt_lt_cv_nm_interface
14825
14826 # Specify filename containing input files for \$NM.
14827 nm_file_list_spec=$lt_nm_file_list_spec
14828
14829 # The root where to search for dependent libraries,and where our libraries should be installed.
14830 lt_sysroot=$lt_sysroot
14831
14832 # Command to truncate a binary pipe.
14833 lt_truncate_bin=$lt_lt_cv_truncate_bin
14834
14835 # The name of the directory that contains temporary libtool files.
14836 objdir=$objdir
14837
14838 # Used to examine libraries when file_magic_cmd begins with "file".
14839 MAGIC_CMD=$MAGIC_CMD
14840
14841 # Must we lock files when doing compilation?
14842 need_locks=$lt_need_locks
14843
14844 # Manifest tool.
14845 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14846
14847 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14848 DSYMUTIL=$lt_DSYMUTIL
14849
14850 # Tool to change global to local symbols on Mac OS X.
14851 NMEDIT=$lt_NMEDIT
14852
14853 # Tool to manipulate fat objects and archives on Mac OS X.
14854 LIPO=$lt_LIPO
14855
14856 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14857 OTOOL=$lt_OTOOL
14858
14859 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14860 OTOOL64=$lt_OTOOL64
14861
14862 # Old archive suffix (normally "a").
14863 libext=$libext
14864
14865 # Shared library suffix (normally ".so").
14866 shrext_cmds=$lt_shrext_cmds
14867
14868 # The commands to extract the exported symbol list from a shared archive.
14869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14870
14871 # Variables whose values should be saved in libtool wrapper scripts and
14872 # restored at link time.
14873 variables_saved_for_relink=$lt_variables_saved_for_relink
14874
14875 # Do we need the "lib" prefix for modules?
14876 need_lib_prefix=$need_lib_prefix
14877
14878 # Do we need a version for libraries?
14879 need_version=$need_version
14880
14881 # Library versioning type.
14882 version_type=$version_type
14883
14884 # Shared library runtime path variable.
14885 runpath_var=$runpath_var
14886
14887 # Shared library path variable.
14888 shlibpath_var=$shlibpath_var
14889
14890 # Is shlibpath searched before the hard-coded library search path?
14891 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14892
14893 # Format of library name prefix.
14894 libname_spec=$lt_libname_spec
14895
14896 # List of archive names. First name is the real one, the rest are links.
14897 # The last name is the one that the linker finds with -lNAME
14898 library_names_spec=$lt_library_names_spec
14899
14900 # The coded name of the library, if different from the real name.
14901 soname_spec=$lt_soname_spec
14902
14903 # Permission mode override for installation of shared libraries.
14904 install_override_mode=$lt_install_override_mode
14905
14906 # Command to use after installation of a shared archive.
14907 postinstall_cmds=$lt_postinstall_cmds
14908
14909 # Command to use after uninstallation of a shared archive.
14910 postuninstall_cmds=$lt_postuninstall_cmds
14911
14912 # Commands used to finish a libtool library installation in a directory.
14913 finish_cmds=$lt_finish_cmds
14914
14915 # As "finish_cmds", except a single script fragment to be evaled but
14916 # not shown.
14917 finish_eval=$lt_finish_eval
14918
14919 # Whether we should hardcode library paths into libraries.
14920 hardcode_into_libs=$hardcode_into_libs
14921
14922 # Compile-time system search path for libraries.
14923 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14924
14925 # Detected run-time system search path for libraries.
14926 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14927
14928 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14929 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14930
14931 # Whether dlopen is supported.
14932 dlopen_support=$enable_dlopen
14933
14934 # Whether dlopen of programs is supported.
14935 dlopen_self=$enable_dlopen_self
14936
14937 # Whether dlopen of statically linked programs is supported.
14938 dlopen_self_static=$enable_dlopen_self_static
14939
14940 # Commands to strip libraries.
14941 old_striplib=$lt_old_striplib
14942 striplib=$lt_striplib
14943
14944
14945 # The linker used to build libraries.
14946 LD=$lt_LD
14947
14948 # How to create reloadable object files.
14949 reload_flag=$lt_reload_flag
14950 reload_cmds=$lt_reload_cmds
14951
14952 # Commands used to build an old-style archive.
14953 old_archive_cmds=$lt_old_archive_cmds
14954
14955 # A language specific compiler.
14956 CC=$lt_compiler
14957
14958 # Is the compiler the GNU compiler?
14959 with_gcc=$GCC
14960
14961 # Compiler flag to turn off builtin functions.
14962 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14963
14964 # Additional compiler flags for building library objects.
14965 pic_flag=$lt_lt_prog_compiler_pic
14966
14967 # How to pass a linker flag through the compiler.
14968 wl=$lt_lt_prog_compiler_wl
14969
14970 # Compiler flag to prevent dynamic linking.
14971 link_static_flag=$lt_lt_prog_compiler_static
14972
14973 # Does compiler simultaneously support -c and -o options?
14974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14975
14976 # Whether or not to add -lc for building shared libraries.
14977 build_libtool_need_lc=$archive_cmds_need_lc
14978
14979 # Whether or not to disallow shared libs when runtime libs are static.
14980 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14981
14982 # Compiler flag to allow reflexive dlopens.
14983 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14984
14985 # Compiler flag to generate shared objects directly from archives.
14986 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14987
14988 # Whether the compiler copes with passing no objects directly.
14989 compiler_needs_object=$lt_compiler_needs_object
14990
14991 # Create an old-style archive from a shared archive.
14992 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14993
14994 # Create a temporary old-style archive to link instead of a shared archive.
14995 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14996
14997 # Commands used to build a shared archive.
14998 archive_cmds=$lt_archive_cmds
14999 archive_expsym_cmds=$lt_archive_expsym_cmds
15000
15001 # Commands used to build a loadable module if different from building
15002 # a shared archive.
15003 module_cmds=$lt_module_cmds
15004 module_expsym_cmds=$lt_module_expsym_cmds
15005
15006 # Whether we are building with GNU ld or not.
15007 with_gnu_ld=$lt_with_gnu_ld
15008
15009 # Flag that allows shared libraries with undefined symbols to be built.
15010 allow_undefined_flag=$lt_allow_undefined_flag
15011
15012 # Flag that enforces no undefined symbols.
15013 no_undefined_flag=$lt_no_undefined_flag
15014
15015 # Flag to hardcode \$libdir into a binary during linking.
15016 # This must work even if \$libdir does not exist
15017 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15018
15019 # Whether we need a single "-rpath" flag with a separated argument.
15020 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15021
15022 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15023 # DIR into the resulting binary.
15024 hardcode_direct=$hardcode_direct
15025
15026 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15027 # DIR into the resulting binary and the resulting library dependency is
15028 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15029 # library is relocated.
15030 hardcode_direct_absolute=$hardcode_direct_absolute
15031
15032 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15033 # into the resulting binary.
15034 hardcode_minus_L=$hardcode_minus_L
15035
15036 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15037 # into the resulting binary.
15038 hardcode_shlibpath_var=$hardcode_shlibpath_var
15039
15040 # Set to "yes" if building a shared library automatically hardcodes DIR
15041 # into the library and all subsequent libraries and executables linked
15042 # against it.
15043 hardcode_automatic=$hardcode_automatic
15044
15045 # Set to yes if linker adds runtime paths of dependent libraries
15046 # to runtime path list.
15047 inherit_rpath=$inherit_rpath
15048
15049 # Whether libtool must link a program against all its dependency libraries.
15050 link_all_deplibs=$link_all_deplibs
15051
15052 # Set to "yes" if exported symbols are required.
15053 always_export_symbols=$always_export_symbols
15054
15055 # The commands to list exported symbols.
15056 export_symbols_cmds=$lt_export_symbols_cmds
15057
15058 # Symbols that should not be listed in the preloaded symbols.
15059 exclude_expsyms=$lt_exclude_expsyms
15060
15061 # Symbols that must always be exported.
15062 include_expsyms=$lt_include_expsyms
15063
15064 # Commands necessary for linking programs (against libraries) with templates.
15065 prelink_cmds=$lt_prelink_cmds
15066
15067 # Commands necessary for finishing linking programs.
15068 postlink_cmds=$lt_postlink_cmds
15069
15070 # Specify filename containing input files.
15071 file_list_spec=$lt_file_list_spec
15072
15073 # How to hardcode a shared library path into an executable.
15074 hardcode_action=$hardcode_action
15075
15076 # ### END LIBTOOL CONFIG
15077
15078 _LT_EOF
15079
15080 cat <<'_LT_EOF' >> "$cfgfile"
15081
15082 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15083
15084 # func_munge_path_list VARIABLE PATH
15085 # -----------------------------------
15086 # VARIABLE is name of variable containing _space_ separated list of
15087 # directories to be munged by the contents of PATH, which is string
15088 # having a format:
15089 # "DIR[:DIR]:"
15090 # string "DIR[ DIR]" will be prepended to VARIABLE
15091 # ":DIR[:DIR]"
15092 # string "DIR[ DIR]" will be appended to VARIABLE
15093 # "DIRP[:DIRP]::[DIRA:]DIRA"
15094 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15095 # "DIRA[ DIRA]" will be appended to VARIABLE
15096 # "DIR[:DIR]"
15097 # VARIABLE will be replaced by "DIR[ DIR]"
15098 func_munge_path_list ()
15099 {
15100 case x$2 in
15101 x)
15102 ;;
15103 *:)
15104 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15105 ;;
15106 x:*)
15107 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15108 ;;
15109 *::*)
15110 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15111 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15112 ;;
15113 *)
15114 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15115 ;;
15116 esac
15117 }
15118
15119
15120 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15121 func_cc_basename ()
15122 {
15123 for cc_temp in $*""; do
15124 case $cc_temp in
15125 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15126 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15127 \-*) ;;
15128 *) break;;
15129 esac
15130 done
15131 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15132 }
15133
15134
15135 # ### END FUNCTIONS SHARED WITH CONFIGURE
15136
15137 _LT_EOF
15138
15139 case $host_os in
15140 aix3*)
15141 cat <<\_LT_EOF >> "$cfgfile"
15142 # AIX sometimes has problems with the GCC collect2 program. For some
15143 # reason, if we set the COLLECT_NAMES environment variable, the problems
15144 # vanish in a puff of smoke.
15145 if test set != "${COLLECT_NAMES+set}"; then
15146 COLLECT_NAMES=
15147 export COLLECT_NAMES
15148 fi
15149 _LT_EOF
15150 ;;
15151 esac
15152
15153
15154 ltmain=$ac_aux_dir/ltmain.sh
15155
15156
15157 # We use sed instead of cat because bash on DJGPP gets confused if
15158 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15159 # text mode, it properly converts lines to CR/LF. This bash problem
15160 # is reportedly fixed, but why not run on old versions too?
15161 sed '$q' "$ltmain" >> "$cfgfile" \
15162 || (rm -f "$cfgfile"; exit 1)
15163
15164 mv -f "$cfgfile" "$ofile" ||
15165 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15166 chmod +x "$ofile"
15167
15168 ;;
15169 "default":C) chmod +x onigmo-config ;;
15170
15171 esac
15172 done # for ac_tag
15173
15174
15175 as_fn_exit 0
15176 _ACEOF
15177 ac_clean_files=$ac_clean_files_save
15178
15179 test $ac_write_fail = 0 ||
15180 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15181
15182
15183 # configure is writing to config.log, and then calls config.status.
15184 # config.status does its own redirection, appending to config.log.
15185 # Unfortunately, on DOS this fails, as config.log is still kept open
15186 # by configure, so config.status won't be able to write to it; its
15187 # output is simply discarded. So we exec the FD to /dev/null,
15188 # effectively closing config.log, so it can be properly (re)opened and
15189 # appended to by config.status. When coming back to configure, we
15190 # need to make the FD available again.
15191 if test "$no_create" != yes; then
15192 ac_cs_success=:
15193 ac_config_status_args=
15194 test "$silent" = yes &&
15195 ac_config_status_args="$ac_config_status_args --quiet"
15196 exec 5>/dev/null
15197 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15198 exec 5>>config.log
15199 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15200 # would make configure fail if this is the last instruction.
15201 $ac_cs_success || as_fn_exit 1
15202 fi
15203 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15205 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15206 fi
15207