Debian Codegraph @

vendor/onigmo-source/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for onigmo 6.1.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
194 then :
195 as_have_required=yes
196 else $as_nop
197 as_have_required=no
198 fi
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207 IFS=$as_save_IFS
208 case $as_dir in #(((
209 '') as_dir=./ ;;
210 */) ;;
211 *) as_dir=$as_dir/ ;;
212 esac
213 as_found=:
214 case $as_dir in #(
215 /*)
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225 break 2
226 fi
227 fi
228 done;;
229 esac
230 as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240 CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno
269 then :
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 printf "%s\n" "$0: Please tell [email protected] about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326 return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336 case $as_dir in #(
337 -*) as_dir=./$as_dir;;
338 esac
339 test -d "$as_dir" || eval $as_mkdir_p || {
340 as_dirs=
341 while :; do
342 case $as_dir in #(
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344 *) as_qdir=$as_dir;;
345 esac
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)[^/].*/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)$/{
362 s//\1/
363 q
364 }
365 /^X\(\/\).*/{
366 s//\1/
367 q
368 }
369 s/.*/./; q'`
370 test -d "$as_dir" && break
371 done
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393 eval 'as_fn_append ()
394 {
395 eval $1+=\$2
396 }'
397 else $as_nop
398 as_fn_append ()
399 {
400 eval $1=\$$1\$2
401 }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else $as_nop
416 as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427 return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438 as_status=$1; test $as_status -eq 0 && as_status=1
439 if test "$4"; then
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442 fi
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
449 as_expr=expr
450 else
451 as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 as_basename=basename
456 else
457 as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\/\)$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\).*/{
480 s//\1/
481 q
482 }
483 s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
498 sed -n '
499 p
500 /[$]LINENO/=
501 ' <$as_myself |
502 sed '
503 s/[$]LINENO.*/&-/
504 t lineno
505 b
506 :lineno
507 N
508 :loop
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 t loop
511 s/-\n.*//
512 ' >$as_me.lineno &&
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
523 . "./$as_me.lineno"
524 # Exit status is that of the last command.
525 exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
537 xy) ECHO_C='\c';;
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
539 ECHO_T=' ';;
540 esac;;
541 *)
542 ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
555 else
556 rm -f conf$$.dir
557 mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s='ln -s'
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567 as_ln_s='cp -pR'
568 elif ln conf$$.file conf$$ 2>/dev/null; then
569 as_ln_s=ln
570 else
571 as_ln_s='cp -pR'
572 fi
573 else
574 as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
581 else
582 test -d ./-p && rmdir ./-p
583 as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='onigmo'
620 PACKAGE_TARNAME='onigmo'
621 PACKAGE_VERSION='6.1.1'
622 PACKAGE_STRING='onigmo 6.1.1'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 # Factoring default headers for most tests.
627 ac_includes_default="\
628 #include <stddef.h>
629 #ifdef HAVE_STDIO_H
630 # include <stdio.h>
631 #endif
632 #ifdef HAVE_STDLIB_H
633 # include <stdlib.h>
634 #endif
635 #ifdef HAVE_STRING_H
636 # include <string.h>
637 #endif
638 #ifdef HAVE_INTTYPES_H
639 # include <inttypes.h>
640 #endif
641 #ifdef HAVE_STDINT_H
642 # include <stdint.h>
643 #endif
644 #ifdef HAVE_STRINGS_H
645 # include <strings.h>
646 #endif
647 #ifdef HAVE_SYS_TYPES_H
648 # include <sys/types.h>
649 #endif
650 #ifdef HAVE_SYS_STAT_H
651 # include <sys/stat.h>
652 #endif
653 #ifdef HAVE_UNISTD_H
654 # include <unistd.h>
655 #endif"
656
657 ac_header_c_list=
658 ac_subst_vars='am__EXEEXT_FALSE
659 am__EXEEXT_TRUE
660 LTLIBOBJS
661 LIBOBJS
662 ALLOCA
663 python_prog
664 LTVERSION
665 LT_SYS_LIBRARY_PATH
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 MANIFEST_TOOL
672 RANLIB
673 ac_ct_AR
674 AR
675 DLLTOOL
676 OBJDUMP
677 FILECMD
678 LN_S
679 NM
680 ac_ct_DUMPBIN
681 DUMPBIN
682 LD
683 FGREP
684 EGREP
685 GREP
686 SED
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 LIBTOOL
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 STATISTICS
713 RUBYDIR
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 CSCOPE
719 ETAGS
720 CTAGS
721 am__untar
722 am__tar
723 AMTAR
724 am__leading_dot
725 SET_MAKE
726 AWK
727 mkdir_p
728 MKDIR_P
729 INSTALL_STRIP_PROGRAM
730 STRIP
731 install_sh
732 MAKEINFO
733 AUTOHEADER
734 AUTOMAKE
735 AUTOCONF
736 ACLOCAL
737 VERSION
738 PACKAGE
739 CYGPATH_W
740 am__isrc
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 runstatedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL
783 am__quote'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_silent_rules
788 with_rubydir
789 with_statistics
790 enable_combination_explosion_check
791 enable_crnl_as_line_terminator
792 enable_dependency_tracking
793 enable_shared
794 enable_static
795 with_pic
796 enable_fast_install
797 with_aix_soname
798 with_gnu_ld
799 with_sysroot
800 enable_libtool_lock
801 '
802 ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CC
806 CFLAGS
807 LDFLAGS
808 LIBS
809 CPPFLAGS
810 LT_SYS_LIBRARY_PATH'
811
812
813 # Initialize some variables set by options.
814 ac_init_help=
815 ac_init_version=false
816 ac_unrecognized_opts=
817 ac_unrecognized_sep=
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
820 cache_file=/dev/null
821 exec_prefix=NONE
822 no_create=
823 no_recursion=
824 prefix=NONE
825 program_prefix=NONE
826 program_suffix=NONE
827 program_transform_name=s,x,x,
828 silent=
829 site=
830 srcdir=
831 verbose=
832 x_includes=NONE
833 x_libraries=NONE
834
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 runstatedir='${localstatedir}/run'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
869 ac_prev=
870 continue
871 fi
872
873 case $ac_option in
874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *=) ac_optarg= ;;
876 *) ac_optarg=yes ;;
877 esac
878
879 case $ac_dashdash$ac_option in
880 --)
881 ac_dashdash=yes ;;
882
883 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 ac_prev=bindir ;;
885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 bindir=$ac_optarg ;;
887
888 -build | --build | --buil | --bui | --bu)
889 ac_prev=build_alias ;;
890 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891 build_alias=$ac_optarg ;;
892
893 -cache-file | --cache-file | --cache-fil | --cache-fi \
894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895 ac_prev=cache_file ;;
896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898 cache_file=$ac_optarg ;;
899
900 --config-cache | -C)
901 cache_file=config.cache ;;
902
903 -datadir | --datadir | --datadi | --datad)
904 ac_prev=datadir ;;
905 -datadir=* | --datadir=* | --datadi=* | --datad=*)
906 datadir=$ac_optarg ;;
907
908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909 | --dataroo | --dataro | --datar)
910 ac_prev=datarootdir ;;
911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913 datarootdir=$ac_optarg ;;
914
915 -disable-* | --disable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: \`$ac_useropt'"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
923 *"
924 "enable_$ac_useropt"
925 "*) ;;
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
928 esac
929 eval enable_$ac_useropt=no ;;
930
931 -docdir | --docdir | --docdi | --doc | --do)
932 ac_prev=docdir ;;
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 docdir=$ac_optarg ;;
935
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 ac_prev=dvidir ;;
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 dvidir=$ac_optarg ;;
940
941 -enable-* | --enable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: \`$ac_useropt'"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=\$ac_optarg ;;
956
957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959 | --exec | --exe | --ex)
960 ac_prev=exec_prefix ;;
961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963 | --exec=* | --exe=* | --ex=*)
964 exec_prefix=$ac_optarg ;;
965
966 -gas | --gas | --ga | --g)
967 # Obsolete; use --with-gas.
968 with_gas=yes ;;
969
970 -help | --help | --hel | --he | -h)
971 ac_init_help=long ;;
972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973 ac_init_help=recursive ;;
974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975 ac_init_help=short ;;
976
977 -host | --host | --hos | --ho)
978 ac_prev=host_alias ;;
979 -host=* | --host=* | --hos=* | --ho=*)
980 host_alias=$ac_optarg ;;
981
982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983 ac_prev=htmldir ;;
984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985 | --ht=*)
986 htmldir=$ac_optarg ;;
987
988 -includedir | --includedir | --includedi | --included | --include \
989 | --includ | --inclu | --incl | --inc)
990 ac_prev=includedir ;;
991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992 | --includ=* | --inclu=* | --incl=* | --inc=*)
993 includedir=$ac_optarg ;;
994
995 -infodir | --infodir | --infodi | --infod | --info | --inf)
996 ac_prev=infodir ;;
997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998 infodir=$ac_optarg ;;
999
1000 -libdir | --libdir | --libdi | --libd)
1001 ac_prev=libdir ;;
1002 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003 libdir=$ac_optarg ;;
1004
1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006 | --libexe | --libex | --libe)
1007 ac_prev=libexecdir ;;
1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009 | --libexe=* | --libex=* | --libe=*)
1010 libexecdir=$ac_optarg ;;
1011
1012 -localedir | --localedir | --localedi | --localed | --locale)
1013 ac_prev=localedir ;;
1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015 localedir=$ac_optarg ;;
1016
1017 -localstatedir | --localstatedir | --localstatedi | --localstated \
1018 | --localstate | --localstat | --localsta | --localst | --locals)
1019 ac_prev=localstatedir ;;
1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022 localstatedir=$ac_optarg ;;
1023
1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025 ac_prev=mandir ;;
1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027 mandir=$ac_optarg ;;
1028
1029 -nfp | --nfp | --nf)
1030 # Obsolete; use --without-fp.
1031 with_fp=no ;;
1032
1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034 | --no-cr | --no-c | -n)
1035 no_create=yes ;;
1036
1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 no_recursion=yes ;;
1040
1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043 | --oldin | --oldi | --old | --ol | --o)
1044 ac_prev=oldincludedir ;;
1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048 oldincludedir=$ac_optarg ;;
1049
1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051 ac_prev=prefix ;;
1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053 prefix=$ac_optarg ;;
1054
1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056 | --program-pre | --program-pr | --program-p)
1057 ac_prev=program_prefix ;;
1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060 program_prefix=$ac_optarg ;;
1061
1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063 | --program-suf | --program-su | --program-s)
1064 ac_prev=program_suffix ;;
1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067 program_suffix=$ac_optarg ;;
1068
1069 -program-transform-name | --program-transform-name \
1070 | --program-transform-nam | --program-transform-na \
1071 | --program-transform-n | --program-transform- \
1072 | --program-transform | --program-transfor \
1073 | --program-transfo | --program-transf \
1074 | --program-trans | --program-tran \
1075 | --progr-tra | --program-tr | --program-t)
1076 ac_prev=program_transform_name ;;
1077 -program-transform-name=* | --program-transform-name=* \
1078 | --program-transform-nam=* | --program-transform-na=* \
1079 | --program-transform-n=* | --program-transform-=* \
1080 | --program-transform=* | --program-transfor=* \
1081 | --program-transfo=* | --program-transf=* \
1082 | --program-trans=* | --program-tran=* \
1083 | --progr-tra=* | --program-tr=* | --program-t=*)
1084 program_transform_name=$ac_optarg ;;
1085
1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087 ac_prev=pdfdir ;;
1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089 pdfdir=$ac_optarg ;;
1090
1091 -psdir | --psdir | --psdi | --psd | --ps)
1092 ac_prev=psdir ;;
1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 psdir=$ac_optarg ;;
1095
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 silent=yes ;;
1099
1100 -runstatedir | --runstatedir | --runstatedi | --runstated \
1101 | --runstate | --runstat | --runsta | --runst | --runs \
1102 | --run | --ru | --r)
1103 ac_prev=runstatedir ;;
1104 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1105 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1106 | --run=* | --ru=* | --r=*)
1107 runstatedir=$ac_optarg ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: \`$ac_useropt'"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: \`$ac_useropt'"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 ;;
1225
1226 esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir runstatedir
1247 do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277 fi
1278
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282 test "$silent" = yes && exec 6>/dev/null
1283
1284
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 printf "%s\n" X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1323 fi
1324 else
1325 ac_srcdir_defaulted=no
1326 fi
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 fi
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359 \`configure' configures onigmo 6.1.1 to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/onigmo]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1414
1415 cat <<\_ACEOF
1416
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 _ACEOF
1426 fi
1427
1428 if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of onigmo 6.1.1:";;
1431 esac
1432 cat <<\_ACEOF
1433
1434 Optional Features:
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-silent-rules less verbose build output (undo: "make V=1")
1439 --disable-silent-rules verbose build output (undo: "make V=0")
1440 --enable-combination-explosion-check enable combination explosion check
1441 --enable-crnl-as-line-terminator enable CR+NL as line terminator
1442 --enable-dependency-tracking
1443 do not reject slow dependency extractors
1444 --disable-dependency-tracking
1445 speeds up one-time build
1446 --enable-shared[=PKGS] build shared libraries [default=yes]
1447 --enable-static[=PKGS] build static libraries [default=yes]
1448 --enable-fast-install[=PKGS]
1449 optimize for fast installation [default=yes]
1450 --disable-libtool-lock avoid locking (might break parallel builds)
1451
1452 Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-rubydir=RUBYDIR specify value for RUBYDIR (default ..)
1456 --with-statistics take matching time statistical data
1457 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1458 both]
1459 --with-aix-soname=aix|svr4|both
1460 shared library versioning (aka "SONAME") variant to
1461 provide on AIX, [default=aix].
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1464 compiler's sysroot if not specified).
1465
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 LIBS libraries to pass to the linker, e.g. -l<library>
1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 LT_SYS_LIBRARY_PATH
1475 User-defined run-time library search path.
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to the package provider.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508
1509 case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for configure.gnu first; this name is used for a wrapper for
1527 # Metaconfig's "Configure" on case-insensitive file systems.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1539 fi
1540
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543 cat <<\_ACEOF
1544 onigmo configure 6.1.1
1545 generated by GNU Autoconf 2.71
1546
1547 Copyright (C) 2021 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551 exit
1552 fi
1553
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1557
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext conftest.beam
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 printf "%s\n" "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext
1584 then :
1585 ac_retval=0
1586 else $as_nop
1587 printf "%s\n" "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1589
1590 ac_retval=1
1591 fi
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status $ac_retval
1594
1595 } # ac_fn_c_try_compile
1596
1597 # ac_fn_c_try_link LINENO
1598 # -----------------------
1599 # Try to link conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_link ()
1601 {
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1604 if { { ac_try="$ac_link"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 printf "%s\n" "$ac_try_echo"; } >&5
1611 (eval "$ac_link") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1617 fi
1618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest$ac_exeext && {
1623 test "$cross_compiling" = yes ||
1624 test -x conftest$ac_exeext
1625 }
1626 then :
1627 ac_retval=0
1628 else $as_nop
1629 printf "%s\n" "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632 ac_retval=1
1633 fi
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_link
1643
1644 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists and can be compiled using the include files in
1647 # INCLUDES, setting the cache variable VAR accordingly.
1648 ac_fn_c_check_header_compile ()
1649 {
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 printf %s "checking for $2... " >&6; }
1653 if eval test \${$3+y}
1654 then :
1655 printf %s "(cached) " >&6
1656 else $as_nop
1657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h. */
1659 $4
1660 #include <$2>
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"
1663 then :
1664 eval "$3=yes"
1665 else $as_nop
1666 eval "$3=no"
1667 fi
1668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1669 fi
1670 eval ac_res=\$$3
1671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1672 printf "%s\n" "$ac_res" >&6; }
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
1675 } # ac_fn_c_check_header_compile
1676
1677 # ac_fn_c_check_func LINENO FUNC VAR
1678 # ----------------------------------
1679 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1680 ac_fn_c_check_func ()
1681 {
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 printf %s "checking for $2... " >&6; }
1685 if eval test \${$3+y}
1686 then :
1687 printf %s "(cached) " >&6
1688 else $as_nop
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1691 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1693 #define $2 innocuous_$2
1694
1695 /* System header to define __stub macros and hopefully few prototypes,
1696 which can conflict with char $2 (); below. */
1697
1698 #include <limits.h>
1699 #undef $2
1700
1701 /* Override any GCC internal prototype to avoid an error.
1702 Use char because int might match the return type of a GCC
1703 builtin and then its argument prototype would still apply. */
1704 #ifdef __cplusplus
1705 extern "C"
1706 #endif
1707 char $2 ();
1708 /* The GNU C library defines this for functions which it implements
1709 to always fail with ENOSYS. Some functions are actually named
1710 something starting with __ and the normal name is an alias. */
1711 #if defined __stub_$2 || defined __stub___$2
1712 choke me
1713 #endif
1714
1715 int
1716 main (void)
1717 {
1718 return $2 ();
1719 ;
1720 return 0;
1721 }
1722 _ACEOF
1723 if ac_fn_c_try_link "$LINENO"
1724 then :
1725 eval "$3=yes"
1726 else $as_nop
1727 eval "$3=no"
1728 fi
1729 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1730 conftest$ac_exeext conftest.$ac_ext
1731 fi
1732 eval ac_res=\$$3
1733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 printf "%s\n" "$ac_res" >&6; }
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736
1737 } # ac_fn_c_check_func
1738
1739 # ac_fn_c_try_run LINENO
1740 # ----------------------
1741 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1742 # executables *can* be run.
1743 ac_fn_c_try_run ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_link"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 printf "%s\n" "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>&5
1754 ac_status=$?
1755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1757 { { case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 printf "%s\n" "$ac_try_echo"; } >&5
1763 (eval "$ac_try") 2>&5
1764 ac_status=$?
1765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; }; }
1767 then :
1768 ac_retval=0
1769 else $as_nop
1770 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1771 printf "%s\n" "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=$ac_status
1775 fi
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_run
1781
1782 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1783 # --------------------------------------------
1784 # Tries to find the compile-time value of EXPR in a program that includes
1785 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1786 # computed
1787 ac_fn_c_compute_int ()
1788 {
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if test "$cross_compiling" = yes; then
1791 # Depending upon the size, compute the lo and hi bounds.
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1794 $4
1795 int
1796 main (void)
1797 {
1798 static int test_array [1 - 2 * !(($2) >= 0)];
1799 test_array [0] = 0;
1800 return test_array [0];
1801
1802 ;
1803 return 0;
1804 }
1805 _ACEOF
1806 if ac_fn_c_try_compile "$LINENO"
1807 then :
1808 ac_lo=0 ac_mid=0
1809 while :; do
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 $4
1813 int
1814 main (void)
1815 {
1816 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1817 test_array [0] = 0;
1818 return test_array [0];
1819
1820 ;
1821 return 0;
1822 }
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"
1825 then :
1826 ac_hi=$ac_mid; break
1827 else $as_nop
1828 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1829 if test $ac_lo -le $ac_mid; then
1830 ac_lo= ac_hi=
1831 break
1832 fi
1833 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1836 done
1837 else $as_nop
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 $4
1841 int
1842 main (void)
1843 {
1844 static int test_array [1 - 2 * !(($2) < 0)];
1845 test_array [0] = 0;
1846 return test_array [0];
1847
1848 ;
1849 return 0;
1850 }
1851 _ACEOF
1852 if ac_fn_c_try_compile "$LINENO"
1853 then :
1854 ac_hi=-1 ac_mid=-1
1855 while :; do
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 $4
1859 int
1860 main (void)
1861 {
1862 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1863 test_array [0] = 0;
1864 return test_array [0];
1865
1866 ;
1867 return 0;
1868 }
1869 _ACEOF
1870 if ac_fn_c_try_compile "$LINENO"
1871 then :
1872 ac_lo=$ac_mid; break
1873 else $as_nop
1874 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1875 if test $ac_mid -le $ac_hi; then
1876 ac_lo= ac_hi=
1877 break
1878 fi
1879 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1882 done
1883 else $as_nop
1884 ac_lo= ac_hi=
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1889 # Binary search between lo and hi bounds.
1890 while test "x$ac_lo" != "x$ac_hi"; do
1891 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 $4
1895 int
1896 main (void)
1897 {
1898 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1899 test_array [0] = 0;
1900 return test_array [0];
1901
1902 ;
1903 return 0;
1904 }
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"
1907 then :
1908 ac_hi=$ac_mid
1909 else $as_nop
1910 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1913 done
1914 case $ac_lo in #((
1915 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1916 '') ac_retval=1 ;;
1917 esac
1918 else
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 $4
1922 static long int longval (void) { return $2; }
1923 static unsigned long int ulongval (void) { return $2; }
1924 #include <stdio.h>
1925 #include <stdlib.h>
1926 int
1927 main (void)
1928 {
1929
1930 FILE *f = fopen ("conftest.val", "w");
1931 if (! f)
1932 return 1;
1933 if (($2) < 0)
1934 {
1935 long int i = longval ();
1936 if (i != ($2))
1937 return 1;
1938 fprintf (f, "%ld", i);
1939 }
1940 else
1941 {
1942 unsigned long int i = ulongval ();
1943 if (i != ($2))
1944 return 1;
1945 fprintf (f, "%lu", i);
1946 }
1947 /* Do not output a trailing newline, as this causes \r\n confusion
1948 on some platforms. */
1949 return ferror (f) || fclose (f) != 0;
1950
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_run "$LINENO"
1956 then :
1957 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1958 else $as_nop
1959 ac_retval=1
1960 fi
1961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1962 conftest.$ac_objext conftest.beam conftest.$ac_ext
1963 rm -f conftest.val
1964
1965 fi
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
1968
1969 } # ac_fn_c_compute_int
1970
1971 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1972 # -------------------------------------------
1973 # Tests whether TYPE exists after having included INCLUDES, setting cache
1974 # variable VAR accordingly.
1975 ac_fn_c_check_type ()
1976 {
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 printf %s "checking for $2... " >&6; }
1980 if eval test \${$3+y}
1981 then :
1982 printf %s "(cached) " >&6
1983 else $as_nop
1984 eval "$3=no"
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 $4
1988 int
1989 main (void)
1990 {
1991 if (sizeof ($2))
1992 return 0;
1993 ;
1994 return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"
1998 then :
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2001 $4
2002 int
2003 main (void)
2004 {
2005 if (sizeof (($2)))
2006 return 0;
2007 ;
2008 return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"
2012 then :
2013
2014 else $as_nop
2015 eval "$3=yes"
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2018 fi
2019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2020 fi
2021 eval ac_res=\$$3
2022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 printf "%s\n" "$ac_res" >&6; }
2024 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025
2026 } # ac_fn_c_check_type
2027 ac_configure_args_raw=
2028 for ac_arg
2029 do
2030 case $ac_arg in
2031 *\'*)
2032 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2033 esac
2034 as_fn_append ac_configure_args_raw " '$ac_arg'"
2035 done
2036
2037 case $ac_configure_args_raw in
2038 *$as_nl*)
2039 ac_safe_unquote= ;;
2040 *)
2041 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2042 ac_unsafe_a="$ac_unsafe_z#~"
2043 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2044 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2045 esac
2046
2047 cat >config.log <<_ACEOF
2048 This file contains any messages produced by compilers while
2049 running configure, to aid debugging if configure makes a mistake.
2050
2051 It was created by onigmo $as_me 6.1.1, which was
2052 generated by GNU Autoconf 2.71. Invocation command line was
2053
2054 $ $0$ac_configure_args_raw
2055
2056 _ACEOF
2057 exec 5>>config.log
2058 {
2059 cat <<_ASUNAME
2060 ## --------- ##
2061 ## Platform. ##
2062 ## --------- ##
2063
2064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2069
2070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2071 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2072
2073 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2074 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2076 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2077 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2078 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2079 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2080
2081 _ASUNAME
2082
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086 IFS=$as_save_IFS
2087 case $as_dir in #(((
2088 '') as_dir=./ ;;
2089 */) ;;
2090 *) as_dir=$as_dir/ ;;
2091 esac
2092 printf "%s\n" "PATH: $as_dir"
2093 done
2094 IFS=$as_save_IFS
2095
2096 } >&5
2097
2098 cat >&5 <<_ACEOF
2099
2100
2101 ## ----------- ##
2102 ## Core tests. ##
2103 ## ----------- ##
2104
2105 _ACEOF
2106
2107
2108 # Keep a trace of the command line.
2109 # Strip out --no-create and --no-recursion so they do not pile up.
2110 # Strip out --silent because we don't want to record it for future runs.
2111 # Also quote any args containing shell meta-characters.
2112 # Make two passes to allow for proper duplicate-argument suppression.
2113 ac_configure_args=
2114 ac_configure_args0=
2115 ac_configure_args1=
2116 ac_must_keep_next=false
2117 for ac_pass in 1 2
2118 do
2119 for ac_arg
2120 do
2121 case $ac_arg in
2122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2124 | -silent | --silent | --silen | --sile | --sil)
2125 continue ;;
2126 *\'*)
2127 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2128 esac
2129 case $ac_pass in
2130 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2131 2)
2132 as_fn_append ac_configure_args1 " '$ac_arg'"
2133 if test $ac_must_keep_next = true; then
2134 ac_must_keep_next=false # Got value, back to normal.
2135 else
2136 case $ac_arg in
2137 *=* | --config-cache | -C | -disable-* | --disable-* \
2138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2140 | -with-* | --with-* | -without-* | --without-* | --x)
2141 case "$ac_configure_args0 " in
2142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2143 esac
2144 ;;
2145 -* ) ac_must_keep_next=true ;;
2146 esac
2147 fi
2148 as_fn_append ac_configure_args " '$ac_arg'"
2149 ;;
2150 esac
2151 done
2152 done
2153 { ac_configure_args0=; unset ac_configure_args0;}
2154 { ac_configure_args1=; unset ac_configure_args1;}
2155
2156 # When interrupted or exit'd, cleanup temporary files, and complete
2157 # config.log. We remove comments because anyway the quotes in there
2158 # would cause problems or look ugly.
2159 # WARNING: Use '\'' to represent an apostrophe within the trap.
2160 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2161 trap 'exit_status=$?
2162 # Sanitize IFS.
2163 IFS=" "" $as_nl"
2164 # Save into config.log some information that might help in debugging.
2165 {
2166 echo
2167
2168 printf "%s\n" "## ---------------- ##
2169 ## Cache variables. ##
2170 ## ---------------- ##"
2171 echo
2172 # The following way of writing the cache mishandles newlines in values,
2173 (
2174 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2175 eval ac_val=\$$ac_var
2176 case $ac_val in #(
2177 *${as_nl}*)
2178 case $ac_var in #(
2179 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2180 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2181 esac
2182 case $ac_var in #(
2183 _ | IFS | as_nl) ;; #(
2184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2185 *) { eval $ac_var=; unset $ac_var;} ;;
2186 esac ;;
2187 esac
2188 done
2189 (set) 2>&1 |
2190 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2191 *${as_nl}ac_space=\ *)
2192 sed -n \
2193 "s/'\''/'\''\\\\'\'''\''/g;
2194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2195 ;; #(
2196 *)
2197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2198 ;;
2199 esac |
2200 sort
2201 )
2202 echo
2203
2204 printf "%s\n" "## ----------------- ##
2205 ## Output variables. ##
2206 ## ----------------- ##"
2207 echo
2208 for ac_var in $ac_subst_vars
2209 do
2210 eval ac_val=\$$ac_var
2211 case $ac_val in
2212 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2213 esac
2214 printf "%s\n" "$ac_var='\''$ac_val'\''"
2215 done | sort
2216 echo
2217
2218 if test -n "$ac_subst_files"; then
2219 printf "%s\n" "## ------------------- ##
2220 ## File substitutions. ##
2221 ## ------------------- ##"
2222 echo
2223 for ac_var in $ac_subst_files
2224 do
2225 eval ac_val=\$$ac_var
2226 case $ac_val in
2227 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228 esac
2229 printf "%s\n" "$ac_var='\''$ac_val'\''"
2230 done | sort
2231 echo
2232 fi
2233
2234 if test -s confdefs.h; then
2235 printf "%s\n" "## ----------- ##
2236 ## confdefs.h. ##
2237 ## ----------- ##"
2238 echo
2239 cat confdefs.h
2240 echo
2241 fi
2242 test "$ac_signal" != 0 &&
2243 printf "%s\n" "$as_me: caught signal $ac_signal"
2244 printf "%s\n" "$as_me: exit $exit_status"
2245 } >&5
2246 rm -f core *.core core.conftest.* &&
2247 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2248 exit $exit_status
2249 ' 0
2250 for ac_signal in 1 2 13 15; do
2251 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2252 done
2253 ac_signal=0
2254
2255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2256 rm -f -r conftest* confdefs.h
2257
2258 printf "%s\n" "/* confdefs.h */" > confdefs.h
2259
2260 # Predefined preprocessor variables.
2261
2262 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2263
2264 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2265
2266 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2267
2268 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2269
2270 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2271
2272 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2273
2274
2275 # Let the site file select an alternate cache file if it wants to.
2276 # Prefer an explicitly selected file to automatically selected ones.
2277 if test -n "$CONFIG_SITE"; then
2278 ac_site_files="$CONFIG_SITE"
2279 elif test "x$prefix" != xNONE; then
2280 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2281 else
2282 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2283 fi
2284
2285 for ac_site_file in $ac_site_files
2286 do
2287 case $ac_site_file in #(
2288 */*) :
2289 ;; #(
2290 *) :
2291 ac_site_file=./$ac_site_file ;;
2292 esac
2293 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2295 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2296 sed 's/^/| /' "$ac_site_file" >&5
2297 . "$ac_site_file" \
2298 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2299 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2300 as_fn_error $? "failed to load site script $ac_site_file
2301 See \`config.log' for more details" "$LINENO" 5; }
2302 fi
2303 done
2304
2305 if test -r "$cache_file"; then
2306 # Some versions of bash will fail to source /dev/null (special files
2307 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2308 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2310 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2311 case $cache_file in
2312 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2313 *) . "./$cache_file";;
2314 esac
2315 fi
2316 else
2317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2318 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2319 >$cache_file
2320 fi
2321
2322 # Test code for whether the C compiler supports C89 (global declarations)
2323 ac_c_conftest_c89_globals='
2324 /* Does the compiler advertise C89 conformance?
2325 Do not test the value of __STDC__, because some compilers set it to 0
2326 while being otherwise adequately conformant. */
2327 #if !defined __STDC__
2328 # error "Compiler does not advertise C89 conformance"
2329 #endif
2330
2331 #include <stddef.h>
2332 #include <stdarg.h>
2333 struct stat;
2334 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2335 struct buf { int x; };
2336 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2337 static char *e (p, i)
2338 char **p;
2339 int i;
2340 {
2341 return p[i];
2342 }
2343 static char *f (char * (*g) (char **, int), char **p, ...)
2344 {
2345 char *s;
2346 va_list v;
2347 va_start (v,p);
2348 s = g (p, va_arg (v,int));
2349 va_end (v);
2350 return s;
2351 }
2352
2353 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2354 function prototypes and stuff, but not \xHH hex character constants.
2355 These do not provoke an error unfortunately, instead are silently treated
2356 as an "x". The following induces an error, until -std is added to get
2357 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2358 array size at least. It is necessary to write \x00 == 0 to get something
2359 that is true only with -std. */
2360 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2361
2362 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2363 inside strings and character constants. */
2364 #define FOO(x) '\''x'\''
2365 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2366
2367 int test (int i, double x);
2368 struct s1 {int (*f) (int a);};
2369 struct s2 {int (*f) (double a);};
2370 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2371 int, int);'
2372
2373 # Test code for whether the C compiler supports C89 (body of main).
2374 ac_c_conftest_c89_main='
2375 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2376 '
2377
2378 # Test code for whether the C compiler supports C99 (global declarations)
2379 ac_c_conftest_c99_globals='
2380 // Does the compiler advertise C99 conformance?
2381 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2382 # error "Compiler does not advertise C99 conformance"
2383 #endif
2384
2385 #include <stdbool.h>
2386 extern int puts (const char *);
2387 extern int printf (const char *, ...);
2388 extern int dprintf (int, const char *, ...);
2389 extern void *malloc (size_t);
2390
2391 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2392 // dprintf is used instead of fprintf to avoid needing to declare
2393 // FILE and stderr.
2394 #define debug(...) dprintf (2, __VA_ARGS__)
2395 #define showlist(...) puts (#__VA_ARGS__)
2396 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2397 static void
2398 test_varargs_macros (void)
2399 {
2400 int x = 1234;
2401 int y = 5678;
2402 debug ("Flag");
2403 debug ("X = %d\n", x);
2404 showlist (The first, second, and third items.);
2405 report (x>y, "x is %d but y is %d", x, y);
2406 }
2407
2408 // Check long long types.
2409 #define BIG64 18446744073709551615ull
2410 #define BIG32 4294967295ul
2411 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2412 #if !BIG_OK
2413 #error "your preprocessor is broken"
2414 #endif
2415 #if BIG_OK
2416 #else
2417 #error "your preprocessor is broken"
2418 #endif
2419 static long long int bignum = -9223372036854775807LL;
2420 static unsigned long long int ubignum = BIG64;
2421
2422 struct incomplete_array
2423 {
2424 int datasize;
2425 double data[];
2426 };
2427
2428 struct named_init {
2429 int number;
2430 const wchar_t *name;
2431 double average;
2432 };
2433
2434 typedef const char *ccp;
2435
2436 static inline int
2437 test_restrict (ccp restrict text)
2438 {
2439 // See if C++-style comments work.
2440 // Iterate through items via the restricted pointer.
2441 // Also check for declarations in for loops.
2442 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2443 continue;
2444 return 0;
2445 }
2446
2447 // Check varargs and va_copy.
2448 static bool
2449 test_varargs (const char *format, ...)
2450 {
2451 va_list args;
2452 va_start (args, format);
2453 va_list args_copy;
2454 va_copy (args_copy, args);
2455
2456 const char *str = "";
2457 int number = 0;
2458 float fnumber = 0;
2459
2460 while (*format)
2461 {
2462 switch (*format++)
2463 {
2464 case '\''s'\'': // string
2465 str = va_arg (args_copy, const char *);
2466 break;
2467 case '\''d'\'': // int
2468 number = va_arg (args_copy, int);
2469 break;
2470 case '\''f'\'': // float
2471 fnumber = va_arg (args_copy, double);
2472 break;
2473 default:
2474 break;
2475 }
2476 }
2477 va_end (args_copy);
2478 va_end (args);
2479
2480 return *str && number && fnumber;
2481 }
2482 '
2483
2484 # Test code for whether the C compiler supports C99 (body of main).
2485 ac_c_conftest_c99_main='
2486 // Check bool.
2487 _Bool success = false;
2488 success |= (argc != 0);
2489
2490 // Check restrict.
2491 if (test_restrict ("String literal") == 0)
2492 success = true;
2493 char *restrict newvar = "Another string";
2494
2495 // Check varargs.
2496 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2497 test_varargs_macros ();
2498
2499 // Check flexible array members.
2500 struct incomplete_array *ia =
2501 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2502 ia->datasize = 10;
2503 for (int i = 0; i < ia->datasize; ++i)
2504 ia->data[i] = i * 1.234;
2505
2506 // Check named initializers.
2507 struct named_init ni = {
2508 .number = 34,
2509 .name = L"Test wide string",
2510 .average = 543.34343,
2511 };
2512
2513 ni.number = 58;
2514
2515 int dynamic_array[ni.number];
2516 dynamic_array[0] = argv[0][0];
2517 dynamic_array[ni.number - 1] = 543;
2518
2519 // work around unused variable warnings
2520 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2521 || dynamic_array[ni.number - 1] != 543);
2522 '
2523
2524 # Test code for whether the C compiler supports C11 (global declarations)
2525 ac_c_conftest_c11_globals='
2526 // Does the compiler advertise C11 conformance?
2527 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2528 # error "Compiler does not advertise C11 conformance"
2529 #endif
2530
2531 // Check _Alignas.
2532 char _Alignas (double) aligned_as_double;
2533 char _Alignas (0) no_special_alignment;
2534 extern char aligned_as_int;
2535 char _Alignas (0) _Alignas (int) aligned_as_int;
2536
2537 // Check _Alignof.
2538 enum
2539 {
2540 int_alignment = _Alignof (int),
2541 int_array_alignment = _Alignof (int[100]),
2542 char_alignment = _Alignof (char)
2543 };
2544 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2545
2546 // Check _Noreturn.
2547 int _Noreturn does_not_return (void) { for (;;) continue; }
2548
2549 // Check _Static_assert.
2550 struct test_static_assert
2551 {
2552 int x;
2553 _Static_assert (sizeof (int) <= sizeof (long int),
2554 "_Static_assert does not work in struct");
2555 long int y;
2556 };
2557
2558 // Check UTF-8 literals.
2559 #define u8 syntax error!
2560 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2561
2562 // Check duplicate typedefs.
2563 typedef long *long_ptr;
2564 typedef long int *long_ptr;
2565 typedef long_ptr long_ptr;
2566
2567 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2568 struct anonymous
2569 {
2570 union {
2571 struct { int i; int j; };
2572 struct { int k; long int l; } w;
2573 };
2574 int m;
2575 } v1;
2576 '
2577
2578 # Test code for whether the C compiler supports C11 (body of main).
2579 ac_c_conftest_c11_main='
2580 _Static_assert ((offsetof (struct anonymous, i)
2581 == offsetof (struct anonymous, w.k)),
2582 "Anonymous union alignment botch");
2583 v1.i = 2;
2584 v1.w.k = 5;
2585 ok |= v1.i != 5;
2586 '
2587
2588 # Test code for whether the C compiler supports C11 (complete).
2589 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2590 ${ac_c_conftest_c99_globals}
2591 ${ac_c_conftest_c11_globals}
2592
2593 int
2594 main (int argc, char **argv)
2595 {
2596 int ok = 0;
2597 ${ac_c_conftest_c89_main}
2598 ${ac_c_conftest_c99_main}
2599 ${ac_c_conftest_c11_main}
2600 return ok;
2601 }
2602 "
2603
2604 # Test code for whether the C compiler supports C99 (complete).
2605 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2606 ${ac_c_conftest_c99_globals}
2607
2608 int
2609 main (int argc, char **argv)
2610 {
2611 int ok = 0;
2612 ${ac_c_conftest_c89_main}
2613 ${ac_c_conftest_c99_main}
2614 return ok;
2615 }
2616 "
2617
2618 # Test code for whether the C compiler supports C89 (complete).
2619 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2620
2621 int
2622 main (int argc, char **argv)
2623 {
2624 int ok = 0;
2625 ${ac_c_conftest_c89_main}
2626 return ok;
2627 }
2628 "
2629
2630 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2631 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2632 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2633 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2634 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2635 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2636 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2637 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2638 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2639 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2640
2641 # Auxiliary files required by this configure script.
2642 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2643
2644 # Locations in which to look for auxiliary files.
2645 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2646
2647 # Search for a directory containing all of the required auxiliary files,
2648 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2649 # If we don't find one directory that contains all the files we need,
2650 # we report the set of missing files from the *first* directory in
2651 # $ac_aux_dir_candidates and give up.
2652 ac_missing_aux_files=""
2653 ac_first_candidate=:
2654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 as_found=false
2657 for as_dir in $ac_aux_dir_candidates
2658 do
2659 IFS=$as_save_IFS
2660 case $as_dir in #(((
2661 '') as_dir=./ ;;
2662 */) ;;
2663 *) as_dir=$as_dir/ ;;
2664 esac
2665 as_found=:
2666
2667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2668 ac_aux_dir_found=yes
2669 ac_install_sh=
2670 for ac_aux in $ac_aux_files
2671 do
2672 # As a special case, if "install-sh" is required, that requirement
2673 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2674 # and $ac_install_sh is set appropriately for whichever one is found.
2675 if test x"$ac_aux" = x"install-sh"
2676 then
2677 if test -f "${as_dir}install-sh"; then
2678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2679 ac_install_sh="${as_dir}install-sh -c"
2680 elif test -f "${as_dir}install.sh"; then
2681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2682 ac_install_sh="${as_dir}install.sh -c"
2683 elif test -f "${as_dir}shtool"; then
2684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2685 ac_install_sh="${as_dir}shtool install -c"
2686 else
2687 ac_aux_dir_found=no
2688 if $ac_first_candidate; then
2689 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2690 else
2691 break
2692 fi
2693 fi
2694 else
2695 if test -f "${as_dir}${ac_aux}"; then
2696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2697 else
2698 ac_aux_dir_found=no
2699 if $ac_first_candidate; then
2700 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2701 else
2702 break
2703 fi
2704 fi
2705 fi
2706 done
2707 if test "$ac_aux_dir_found" = yes; then
2708 ac_aux_dir="$as_dir"
2709 break
2710 fi
2711 ac_first_candidate=false
2712
2713 as_found=false
2714 done
2715 IFS=$as_save_IFS
2716 if $as_found
2717 then :
2718
2719 else $as_nop
2720 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2721 fi
2722
2723
2724 # These three variables are undocumented and unsupported,
2725 # and are intended to be withdrawn in a future Autoconf release.
2726 # They can cause serious problems if a builder's source tree is in a directory
2727 # whose full name contains unusual characters.
2728 if test -f "${ac_aux_dir}config.guess"; then
2729 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2730 fi
2731 if test -f "${ac_aux_dir}config.sub"; then
2732 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2733 fi
2734 if test -f "$ac_aux_dir/configure"; then
2735 ac_configure="$SHELL ${ac_aux_dir}configure"
2736 fi
2737
2738 # Check that the precious variables saved in the cache have kept the same
2739 # value.
2740 ac_cache_corrupted=false
2741 for ac_var in $ac_precious_vars; do
2742 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2743 eval ac_new_set=\$ac_env_${ac_var}_set
2744 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2745 eval ac_new_val=\$ac_env_${ac_var}_value
2746 case $ac_old_set,$ac_new_set in
2747 set,)
2748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2749 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2750 ac_cache_corrupted=: ;;
2751 ,set)
2752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2753 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2754 ac_cache_corrupted=: ;;
2755 ,);;
2756 *)
2757 if test "x$ac_old_val" != "x$ac_new_val"; then
2758 # differences in whitespace do not lead to failure.
2759 ac_old_val_w=`echo x $ac_old_val`
2760 ac_new_val_w=`echo x $ac_new_val`
2761 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2763 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2764 ac_cache_corrupted=:
2765 else
2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2767 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2768 eval $ac_var=\$ac_old_val
2769 fi
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2771 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2773 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2774 fi;;
2775 esac
2776 # Pass precious variables to config.status.
2777 if test "$ac_new_set" = set; then
2778 case $ac_new_val in
2779 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2780 *) ac_arg=$ac_var=$ac_new_val ;;
2781 esac
2782 case " $ac_configure_args " in
2783 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2784 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2785 esac
2786 fi
2787 done
2788 if $ac_cache_corrupted; then
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2790 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2792 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2793 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2794 and start over" "$LINENO" 5
2795 fi
2796 ## -------------------- ##
2797 ## Main body of script. ##
2798 ## -------------------- ##
2799
2800 ac_ext=c
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805
2806
2807
2808
2809
2810 am__api_version='1.16'
2811
2812
2813
2814 # Find a good install program. We prefer a C program (faster),
2815 # so one script is as good as another. But avoid the broken or
2816 # incompatible versions:
2817 # SysV /etc/install, /usr/sbin/install
2818 # SunOS /usr/etc/install
2819 # IRIX /sbin/install
2820 # AIX /bin/install
2821 # AmigaOS /C/install, which installs bootblocks on floppy discs
2822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2825 # OS/2's system install, which has a completely different semantic
2826 # ./install, which can be erroneously created by make from ./install.sh.
2827 # Reject install programs that cannot install multiple files.
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2829 printf %s "checking for a BSD-compatible install... " >&6; }
2830 if test -z "$INSTALL"; then
2831 if test ${ac_cv_path_install+y}
2832 then :
2833 printf %s "(cached) " >&6
2834 else $as_nop
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 case $as_dir in #(((
2840 '') as_dir=./ ;;
2841 */) ;;
2842 *) as_dir=$as_dir/ ;;
2843 esac
2844 # Account for fact that we put trailing slashes in our PATH walk.
2845 case $as_dir in #((
2846 ./ | /[cC]/* | \
2847 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2848 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2849 /usr/ucb/* ) ;;
2850 *)
2851 # OSF1 and SCO ODT 3.0 have their own names for install.
2852 # Don't use installbsd from OSF since it installs stuff as root
2853 # by default.
2854 for ac_prog in ginstall scoinst install; do
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2857 if test $ac_prog = install &&
2858 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2859 # AIX install. It has an incompatible calling convention.
2860 :
2861 elif test $ac_prog = install &&
2862 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2863 # program-specific install script used by HP pwplus--don't use.
2864 :
2865 else
2866 rm -rf conftest.one conftest.two conftest.dir
2867 echo one > conftest.one
2868 echo two > conftest.two
2869 mkdir conftest.dir
2870 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2871 test -s conftest.one && test -s conftest.two &&
2872 test -s conftest.dir/conftest.one &&
2873 test -s conftest.dir/conftest.two
2874 then
2875 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2876 break 3
2877 fi
2878 fi
2879 fi
2880 done
2881 done
2882 ;;
2883 esac
2884
2885 done
2886 IFS=$as_save_IFS
2887
2888 rm -rf conftest.one conftest.two conftest.dir
2889
2890 fi
2891 if test ${ac_cv_path_install+y}; then
2892 INSTALL=$ac_cv_path_install
2893 else
2894 # As a last resort, use the slow shell script. Don't cache a
2895 # value for INSTALL within a source directory, because that will
2896 # break other packages using the cache if that directory is
2897 # removed, or if the value is a relative name.
2898 INSTALL=$ac_install_sh
2899 fi
2900 fi
2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2902 printf "%s\n" "$INSTALL" >&6; }
2903
2904 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2905 # It thinks the first close brace ends the variable substitution.
2906 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2907
2908 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2909
2910 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2911
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2913 printf %s "checking whether build environment is sane... " >&6; }
2914 # Reject unsafe characters in $srcdir or the absolute working directory
2915 # name. Accept space and tab only in the latter.
2916 am_lf='
2917 '
2918 case `pwd` in
2919 *[\\\"\#\$\&\'\`$am_lf]*)
2920 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2921 esac
2922 case $srcdir in
2923 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2924 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2925 esac
2926
2927 # Do 'set' in a subshell so we don't clobber the current shell's
2928 # arguments. Must try -L first in case configure is actually a
2929 # symlink; some systems play weird games with the mod time of symlinks
2930 # (eg FreeBSD returns the mod time of the symlink's containing
2931 # directory).
2932 if (
2933 am_has_slept=no
2934 for am_try in 1 2; do
2935 echo "timestamp, slept: $am_has_slept" > conftest.file
2936 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2937 if test "$*" = "X"; then
2938 # -L didn't work.
2939 set X `ls -t "$srcdir/configure" conftest.file`
2940 fi
2941 if test "$*" != "X $srcdir/configure conftest.file" \
2942 && test "$*" != "X conftest.file $srcdir/configure"; then
2943
2944 # If neither matched, then we have a broken ls. This can happen
2945 # if, for instance, CONFIG_SHELL is bash and it inherits a
2946 # broken ls alias from the environment. This has actually
2947 # happened. Such a system could not be considered "sane".
2948 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2949 alias in your environment" "$LINENO" 5
2950 fi
2951 if test "$2" = conftest.file || test $am_try -eq 2; then
2952 break
2953 fi
2954 # Just in case.
2955 sleep 1
2956 am_has_slept=yes
2957 done
2958 test "$2" = conftest.file
2959 )
2960 then
2961 # Ok.
2962 :
2963 else
2964 as_fn_error $? "newly created file is older than distributed files!
2965 Check your system clock" "$LINENO" 5
2966 fi
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2968 printf "%s\n" "yes" >&6; }
2969 # If we didn't sleep, we still need to ensure time stamps of config.status and
2970 # generated files are strictly newer.
2971 am_sleep_pid=
2972 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2973 ( sleep 1 ) &
2974 am_sleep_pid=$!
2975 fi
2976
2977 rm -f conftest.file
2978
2979 test "$program_prefix" != NONE &&
2980 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2981 # Use a double $ so make ignores it.
2982 test "$program_suffix" != NONE &&
2983 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2984 # Double any \ or $.
2985 # By default was `s,x,x', remove it if useless.
2986 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2987 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2988
2989
2990 # Expand $ac_aux_dir to an absolute path.
2991 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2992
2993
2994 if test x"${MISSING+set}" != xset; then
2995 MISSING="\${SHELL} '$am_aux_dir/missing'"
2996 fi
2997 # Use eval to expand $SHELL
2998 if eval "$MISSING --is-lightweight"; then
2999 am_missing_run="$MISSING "
3000 else
3001 am_missing_run=
3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3003 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3004 fi
3005
3006 if test x"${install_sh+set}" != xset; then
3007 case $am_aux_dir in
3008 *\ * | *\ *)
3009 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3010 *)
3011 install_sh="\${SHELL} $am_aux_dir/install-sh"
3012 esac
3013 fi
3014
3015 # Installed binaries are usually stripped using 'strip' when the user
3016 # run "make install-strip". However 'strip' might not be the right
3017 # tool to use in cross-compilation environments, therefore Automake
3018 # will honor the 'STRIP' environment variable to overrule this program.
3019 if test "$cross_compiling" != no; then
3020 if test -n "$ac_tool_prefix"; then
3021 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3022 set dummy ${ac_tool_prefix}strip; ac_word=$2
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 printf %s "checking for $ac_word... " >&6; }
3025 if test ${ac_cv_prog_STRIP+y}
3026 then :
3027 printf %s "(cached) " >&6
3028 else $as_nop
3029 if test -n "$STRIP"; then
3030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035 IFS=$as_save_IFS
3036 case $as_dir in #(((
3037 '') as_dir=./ ;;
3038 */) ;;
3039 *) as_dir=$as_dir/ ;;
3040 esac
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3045 break 2
3046 fi
3047 done
3048 done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 STRIP=$ac_cv_prog_STRIP
3054 if test -n "$STRIP"; then
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3056 printf "%s\n" "$STRIP" >&6; }
3057 else
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 printf "%s\n" "no" >&6; }
3060 fi
3061
3062
3063 fi
3064 if test -z "$ac_cv_prog_STRIP"; then
3065 ac_ct_STRIP=$STRIP
3066 # Extract the first word of "strip", so it can be a program name with args.
3067 set dummy strip; ac_word=$2
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 printf %s "checking for $ac_word... " >&6; }
3070 if test ${ac_cv_prog_ac_ct_STRIP+y}
3071 then :
3072 printf %s "(cached) " >&6
3073 else $as_nop
3074 if test -n "$ac_ct_STRIP"; then
3075 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080 IFS=$as_save_IFS
3081 case $as_dir in #(((
3082 '') as_dir=./ ;;
3083 */) ;;
3084 *) as_dir=$as_dir/ ;;
3085 esac
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_ac_ct_STRIP="strip"
3089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3099 if test -n "$ac_ct_STRIP"; then
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3101 printf "%s\n" "$ac_ct_STRIP" >&6; }
3102 else
3103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 printf "%s\n" "no" >&6; }
3105 fi
3106
3107 if test "x$ac_ct_STRIP" = x; then
3108 STRIP=":"
3109 else
3110 case $cross_compiling:$ac_tool_warned in
3111 yes:)
3112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3114 ac_tool_warned=yes ;;
3115 esac
3116 STRIP=$ac_ct_STRIP
3117 fi
3118 else
3119 STRIP="$ac_cv_prog_STRIP"
3120 fi
3121
3122 fi
3123 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3124
3125
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3127 printf %s "checking for a race-free mkdir -p... " >&6; }
3128 if test -z "$MKDIR_P"; then
3129 if test ${ac_cv_path_mkdir+y}
3130 then :
3131 printf %s "(cached) " >&6
3132 else $as_nop
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3135 do
3136 IFS=$as_save_IFS
3137 case $as_dir in #(((
3138 '') as_dir=./ ;;
3139 */) ;;
3140 *) as_dir=$as_dir/ ;;
3141 esac
3142 for ac_prog in mkdir gmkdir; do
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3145 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3146 'mkdir ('*'coreutils) '* | \
3147 'BusyBox '* | \
3148 'mkdir (fileutils) '4.1*)
3149 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3150 break 3;;
3151 esac
3152 done
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158
3159 test -d ./--version && rmdir ./--version
3160 if test ${ac_cv_path_mkdir+y}; then
3161 MKDIR_P="$ac_cv_path_mkdir -p"
3162 else
3163 # As a last resort, use the slow shell script. Don't cache a
3164 # value for MKDIR_P within a source directory, because that will
3165 # break other packages using the cache if that directory is
3166 # removed, or if the value is a relative name.
3167 MKDIR_P="$ac_install_sh -d"
3168 fi
3169 fi
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3171 printf "%s\n" "$MKDIR_P" >&6; }
3172
3173 for ac_prog in gawk mawk nawk awk
3174 do
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 printf %s "checking for $ac_word... " >&6; }
3179 if test ${ac_cv_prog_AWK+y}
3180 then :
3181 printf %s "(cached) " >&6
3182 else $as_nop
3183 if test -n "$AWK"; then
3184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189 IFS=$as_save_IFS
3190 case $as_dir in #(((
3191 '') as_dir=./ ;;
3192 */) ;;
3193 *) as_dir=$as_dir/ ;;
3194 esac
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3197 ac_cv_prog_AWK="$ac_prog"
3198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 AWK=$ac_cv_prog_AWK
3208 if test -n "$AWK"; then
3209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3210 printf "%s\n" "$AWK" >&6; }
3211 else
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 printf "%s\n" "no" >&6; }
3214 fi
3215
3216
3217 test -n "$AWK" && break
3218 done
3219
3220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3221 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3222 set x ${MAKE-make}
3223 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3224 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3225 then :
3226 printf %s "(cached) " >&6
3227 else $as_nop
3228 cat >conftest.make <<\_ACEOF
3229 SHELL = /bin/sh
3230 all:
3231 @echo '@@@%%%=$(MAKE)=@@@%%%'
3232 _ACEOF
3233 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3234 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3235 *@@@%%%=?*=@@@%%%*)
3236 eval ac_cv_prog_make_${ac_make}_set=yes;;
3237 *)
3238 eval ac_cv_prog_make_${ac_make}_set=no;;
3239 esac
3240 rm -f conftest.make
3241 fi
3242 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3244 printf "%s\n" "yes" >&6; }
3245 SET_MAKE=
3246 else
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 printf "%s\n" "no" >&6; }
3249 SET_MAKE="MAKE=${MAKE-make}"
3250 fi
3251
3252 rm -rf .tst 2>/dev/null
3253 mkdir .tst 2>/dev/null
3254 if test -d .tst; then
3255 am__leading_dot=.
3256 else
3257 am__leading_dot=_
3258 fi
3259 rmdir .tst 2>/dev/null
3260
3261 # Check whether --enable-silent-rules was given.
3262 if test ${enable_silent_rules+y}
3263 then :
3264 enableval=$enable_silent_rules;
3265 fi
3266
3267 case $enable_silent_rules in # (((
3268 yes) AM_DEFAULT_VERBOSITY=0;;
3269 no) AM_DEFAULT_VERBOSITY=1;;
3270 *) AM_DEFAULT_VERBOSITY=1;;
3271 esac
3272 am_make=${MAKE-make}
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3274 printf %s "checking whether $am_make supports nested variables... " >&6; }
3275 if test ${am_cv_make_support_nested_variables+y}
3276 then :
3277 printf %s "(cached) " >&6
3278 else $as_nop
3279 if printf "%s\n" 'TRUE=$(BAR$(V))
3280 BAR0=false
3281 BAR1=true
3282 V=1
3283 am__doit:
3284 @$(TRUE)
3285 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3286 am_cv_make_support_nested_variables=yes
3287 else
3288 am_cv_make_support_nested_variables=no
3289 fi
3290 fi
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3292 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3293 if test $am_cv_make_support_nested_variables = yes; then
3294 AM_V='$(V)'
3295 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3296 else
3297 AM_V=$AM_DEFAULT_VERBOSITY
3298 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3299 fi
3300 AM_BACKSLASH='\'
3301
3302 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3303 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3304 # is not polluted with repeated "-I."
3305 am__isrc=' -I$(srcdir)'
3306 # test to see if srcdir already configured
3307 if test -f $srcdir/config.status; then
3308 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3309 fi
3310 fi
3311
3312 # test whether we have cygpath
3313 if test -z "$CYGPATH_W"; then
3314 if (cygpath --version) >/dev/null 2>/dev/null; then
3315 CYGPATH_W='cygpath -w'
3316 else
3317 CYGPATH_W=echo
3318 fi
3319 fi
3320
3321
3322 # Define the identity of the package.
3323 PACKAGE='onigmo'
3324 VERSION='6.1.1'
3325
3326
3327 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3328
3329
3330 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3331
3332 # Some tools Automake needs.
3333
3334 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3335
3336
3337 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3338
3339
3340 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3341
3342
3343 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3344
3345
3346 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3347
3348 # For better backward compatibility. To be removed once Automake 1.9.x
3349 # dies out for good. For more background, see:
3350 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3351 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3352 mkdir_p='$(MKDIR_P)'
3353
3354 # We need awk for the "check" target (and possibly the TAP driver). The
3355 # system "awk" is bad on some platforms.
3356 # Always define AMTAR for backward compatibility. Yes, it's still used
3357 # in the wild :-( We should find a proper way to deprecate it ...
3358 AMTAR='$${TAR-tar}'
3359
3360
3361 # We'll loop over all known methods to create a tar archive until one works.
3362 _am_tools='gnutar pax cpio none'
3363
3364 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3365
3366
3367
3368
3369
3370 # Variables for tags utilities; see am/tags.am
3371 if test -z "$CTAGS"; then
3372 CTAGS=ctags
3373 fi
3374
3375 if test -z "$ETAGS"; then
3376 ETAGS=etags
3377 fi
3378
3379 if test -z "$CSCOPE"; then
3380 CSCOPE=cscope
3381 fi
3382
3383
3384
3385 # POSIX will say in a future version that running "rm -f" with no argument
3386 # is OK; and we want to be able to make that assumption in our Makefile
3387 # recipes. So use an aggressive probe to check that the usage we want is
3388 # actually supported "in the wild" to an acceptable degree.
3389 # See automake bug#10828.
3390 # To make any issue more visible, cause the running configure to be aborted
3391 # by default if the 'rm' program in use doesn't match our expectations; the
3392 # user can still override this though.
3393 if rm -f && rm -fr && rm -rf; then : OK; else
3394 cat >&2 <<'END'
3395 Oops!
3396
3397 Your 'rm' program seems unable to run without file operands specified
3398 on the command line, even when the '-f' option is present. This is contrary
3399 to the behaviour of most rm programs out there, and not conforming with
3400 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3401
3402 Please tell [email protected] about your system, including the value
3403 of your $PATH and any error possibly output before this message. This
3404 can help us improve future automake versions.
3405
3406 END
3407 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3408 echo 'Configuration will proceed anyway, since you have set the' >&2
3409 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3410 echo >&2
3411 else
3412 cat >&2 <<'END'
3413 Aborting the configuration process, to ensure you take notice of the issue.
3414
3415 You can download and install GNU coreutils to get an 'rm' implementation
3416 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3417
3418 If you want to complete the configuration process using your problematic
3419 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3420 to "yes", and re-run configure.
3421
3422 END
3423 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3424 fi
3425 fi
3426
3427 ac_config_headers="$ac_config_headers config.h"
3428
3429
3430
3431 RUBYDIR=".."
3432
3433 # Check whether --with-rubydir was given.
3434 if test ${with_rubydir+y}
3435 then :
3436 withval=$with_rubydir; RUBYDIR=$withval
3437 fi
3438
3439
3440
3441 STATISTICS=""
3442
3443 # Check whether --with-statistics was given.
3444 if test ${with_statistics+y}
3445 then :
3446 withval=$with_statistics; STATISTICS=-DONIG_DEBUG_STATISTICS
3447 fi
3448
3449
3450
3451 # Check whether --enable-combination-explosion-check was given.
3452 if test ${enable_combination_explosion_check+y}
3453 then :
3454 enableval=$enable_combination_explosion_check; comb_expl_check=$enableval
3455 fi
3456
3457 if test "${comb_expl_check}" = yes; then
3458
3459 printf "%s\n" "#define USE_COMBINATION_EXPLOSION_CHECK 1" >>confdefs.h
3460
3461 fi
3462
3463 # Check whether --enable-crnl-as-line-terminator was given.
3464 if test ${enable_crnl_as_line_terminator+y}
3465 then :
3466 enableval=$enable_crnl_as_line_terminator; crnl_as_line_terminator=$enableval
3467 fi
3468
3469 if test "${crnl_as_line_terminator}" = yes; then
3470
3471 printf "%s\n" "#define USE_CRNL_AS_LINE_TERMINATOR 1" >>confdefs.h
3472
3473 fi
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 if test -n "$ac_tool_prefix"; then
3491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 printf %s "checking for $ac_word... " >&6; }
3495 if test ${ac_cv_prog_CC+y}
3496 then :
3497 printf %s "(cached) " >&6
3498 else $as_nop
3499 if test -n "$CC"; then
3500 ac_cv_prog_CC="$CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 case $as_dir in #(((
3507 '') as_dir=./ ;;
3508 */) ;;
3509 *) as_dir=$as_dir/ ;;
3510 esac
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517 done
3518 done
3519 IFS=$as_save_IFS
3520
3521 fi
3522 fi
3523 CC=$ac_cv_prog_CC
3524 if test -n "$CC"; then
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526 printf "%s\n" "$CC" >&6; }
3527 else
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 printf "%s\n" "no" >&6; }
3530 fi
3531
3532
3533 fi
3534 if test -z "$ac_cv_prog_CC"; then
3535 ac_ct_CC=$CC
3536 # Extract the first word of "gcc", so it can be a program name with args.
3537 set dummy gcc; ac_word=$2
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 printf %s "checking for $ac_word... " >&6; }
3540 if test ${ac_cv_prog_ac_ct_CC+y}
3541 then :
3542 printf %s "(cached) " >&6
3543 else $as_nop
3544 if test -n "$ac_ct_CC"; then
3545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550 IFS=$as_save_IFS
3551 case $as_dir in #(((
3552 '') as_dir=./ ;;
3553 */) ;;
3554 *) as_dir=$as_dir/ ;;
3555 esac
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_ac_ct_CC="gcc"
3559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3560 break 2
3561 fi
3562 done
3563 done
3564 IFS=$as_save_IFS
3565
3566 fi
3567 fi
3568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3569 if test -n "$ac_ct_CC"; then
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3571 printf "%s\n" "$ac_ct_CC" >&6; }
3572 else
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 printf "%s\n" "no" >&6; }
3575 fi
3576
3577 if test "x$ac_ct_CC" = x; then
3578 CC=""
3579 else
3580 case $cross_compiling:$ac_tool_warned in
3581 yes:)
3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3583 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3584 ac_tool_warned=yes ;;
3585 esac
3586 CC=$ac_ct_CC
3587 fi
3588 else
3589 CC="$ac_cv_prog_CC"
3590 fi
3591
3592 if test -z "$CC"; then
3593 if test -n "$ac_tool_prefix"; then
3594 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3595 set dummy ${ac_tool_prefix}cc; ac_word=$2
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 printf %s "checking for $ac_word... " >&6; }
3598 if test ${ac_cv_prog_CC+y}
3599 then :
3600 printf %s "(cached) " >&6
3601 else $as_nop
3602 if test -n "$CC"; then
3603 ac_cv_prog_CC="$CC" # Let the user override the test.
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3607 do
3608 IFS=$as_save_IFS
3609 case $as_dir in #(((
3610 '') as_dir=./ ;;
3611 */) ;;
3612 *) as_dir=$as_dir/ ;;
3613 esac
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_CC="${ac_tool_prefix}cc"
3617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3618 break 2
3619 fi
3620 done
3621 done
3622 IFS=$as_save_IFS
3623
3624 fi
3625 fi
3626 CC=$ac_cv_prog_CC
3627 if test -n "$CC"; then
3628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3629 printf "%s\n" "$CC" >&6; }
3630 else
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 printf "%s\n" "no" >&6; }
3633 fi
3634
3635
3636 fi
3637 fi
3638 if test -z "$CC"; then
3639 # Extract the first word of "cc", so it can be a program name with args.
3640 set dummy cc; ac_word=$2
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642 printf %s "checking for $ac_word... " >&6; }
3643 if test ${ac_cv_prog_CC+y}
3644 then :
3645 printf %s "(cached) " >&6
3646 else $as_nop
3647 if test -n "$CC"; then
3648 ac_cv_prog_CC="$CC" # Let the user override the test.
3649 else
3650 ac_prog_rejected=no
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3653 do
3654 IFS=$as_save_IFS
3655 case $as_dir in #(((
3656 '') as_dir=./ ;;
3657 */) ;;
3658 *) as_dir=$as_dir/ ;;
3659 esac
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3662 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3663 ac_prog_rejected=yes
3664 continue
3665 fi
3666 ac_cv_prog_CC="cc"
3667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670 done
3671 done
3672 IFS=$as_save_IFS
3673
3674 if test $ac_prog_rejected = yes; then
3675 # We found a bogon in the path, so make sure we never use it.
3676 set dummy $ac_cv_prog_CC
3677 shift
3678 if test $# != 0; then
3679 # We chose a different compiler from the bogus one.
3680 # However, it has the same basename, so the bogon will be chosen
3681 # first if we set CC to just the basename; use the full file name.
3682 shift
3683 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3684 fi
3685 fi
3686 fi
3687 fi
3688 CC=$ac_cv_prog_CC
3689 if test -n "$CC"; then
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3691 printf "%s\n" "$CC" >&6; }
3692 else
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 printf "%s\n" "no" >&6; }
3695 fi
3696
3697
3698 fi
3699 if test -z "$CC"; then
3700 if test -n "$ac_tool_prefix"; then
3701 for ac_prog in cl.exe
3702 do
3703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3704 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 printf %s "checking for $ac_word... " >&6; }
3707 if test ${ac_cv_prog_CC+y}
3708 then :
3709 printf %s "(cached) " >&6
3710 else $as_nop
3711 if test -n "$CC"; then
3712 ac_cv_prog_CC="$CC" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717 IFS=$as_save_IFS
3718 case $as_dir in #(((
3719 '') as_dir=./ ;;
3720 */) ;;
3721 *) as_dir=$as_dir/ ;;
3722 esac
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3725 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3727 break 2
3728 fi
3729 done
3730 done
3731 IFS=$as_save_IFS
3732
3733 fi
3734 fi
3735 CC=$ac_cv_prog_CC
3736 if test -n "$CC"; then
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3738 printf "%s\n" "$CC" >&6; }
3739 else
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 printf "%s\n" "no" >&6; }
3742 fi
3743
3744
3745 test -n "$CC" && break
3746 done
3747 fi
3748 if test -z "$CC"; then
3749 ac_ct_CC=$CC
3750 for ac_prog in cl.exe
3751 do
3752 # Extract the first word of "$ac_prog", so it can be a program name with args.
3753 set dummy $ac_prog; ac_word=$2
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 printf %s "checking for $ac_word... " >&6; }
3756 if test ${ac_cv_prog_ac_ct_CC+y}
3757 then :
3758 printf %s "(cached) " >&6
3759 else $as_nop
3760 if test -n "$ac_ct_CC"; then
3761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3762 else
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH
3765 do
3766 IFS=$as_save_IFS
3767 case $as_dir in #(((
3768 '') as_dir=./ ;;
3769 */) ;;
3770 *) as_dir=$as_dir/ ;;
3771 esac
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_ac_ct_CC="$ac_prog"
3775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778 done
3779 done
3780 IFS=$as_save_IFS
3781
3782 fi
3783 fi
3784 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3785 if test -n "$ac_ct_CC"; then
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3787 printf "%s\n" "$ac_ct_CC" >&6; }
3788 else
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 printf "%s\n" "no" >&6; }
3791 fi
3792
3793
3794 test -n "$ac_ct_CC" && break
3795 done
3796
3797 if test "x$ac_ct_CC" = x; then
3798 CC=""
3799 else
3800 case $cross_compiling:$ac_tool_warned in
3801 yes:)
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3803 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3804 ac_tool_warned=yes ;;
3805 esac
3806 CC=$ac_ct_CC
3807 fi
3808 fi
3809
3810 fi
3811 if test -z "$CC"; then
3812 if test -n "$ac_tool_prefix"; then
3813 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3814 set dummy ${ac_tool_prefix}clang; ac_word=$2
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816 printf %s "checking for $ac_word... " >&6; }
3817 if test ${ac_cv_prog_CC+y}
3818 then :
3819 printf %s "(cached) " >&6
3820 else $as_nop
3821 if test -n "$CC"; then
3822 ac_cv_prog_CC="$CC" # Let the user override the test.
3823 else
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH
3826 do
3827 IFS=$as_save_IFS
3828 case $as_dir in #(((
3829 '') as_dir=./ ;;
3830 */) ;;
3831 *) as_dir=$as_dir/ ;;
3832 esac
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3835 ac_cv_prog_CC="${ac_tool_prefix}clang"
3836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3837 break 2
3838 fi
3839 done
3840 done
3841 IFS=$as_save_IFS
3842
3843 fi
3844 fi
3845 CC=$ac_cv_prog_CC
3846 if test -n "$CC"; then
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3848 printf "%s\n" "$CC" >&6; }
3849 else
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 printf "%s\n" "no" >&6; }
3852 fi
3853
3854
3855 fi
3856 if test -z "$ac_cv_prog_CC"; then
3857 ac_ct_CC=$CC
3858 # Extract the first word of "clang", so it can be a program name with args.
3859 set dummy clang; ac_word=$2
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861 printf %s "checking for $ac_word... " >&6; }
3862 if test ${ac_cv_prog_ac_ct_CC+y}
3863 then :
3864 printf %s "(cached) " >&6
3865 else $as_nop
3866 if test -n "$ac_ct_CC"; then
3867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872 IFS=$as_save_IFS
3873 case $as_dir in #(((
3874 '') as_dir=./ ;;
3875 */) ;;
3876 *) as_dir=$as_dir/ ;;
3877 esac
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_ac_ct_CC="clang"
3881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3882 break 2
3883 fi
3884 done
3885 done
3886 IFS=$as_save_IFS
3887
3888 fi
3889 fi
3890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3891 if test -n "$ac_ct_CC"; then
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3893 printf "%s\n" "$ac_ct_CC" >&6; }
3894 else
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 printf "%s\n" "no" >&6; }
3897 fi
3898
3899 if test "x$ac_ct_CC" = x; then
3900 CC=""
3901 else
3902 case $cross_compiling:$ac_tool_warned in
3903 yes:)
3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3906 ac_tool_warned=yes ;;
3907 esac
3908 CC=$ac_ct_CC
3909 fi
3910 else
3911 CC="$ac_cv_prog_CC"
3912 fi
3913
3914 fi
3915
3916
3917 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error $? "no acceptable C compiler found in \$PATH
3920 See \`config.log' for more details" "$LINENO" 5; }
3921
3922 # Provide some information about the compiler.
3923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3924 set X $ac_compile
3925 ac_compiler=$2
3926 for ac_option in --version -v -V -qversion -version; do
3927 { { ac_try="$ac_compiler $ac_option >&5"
3928 case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 printf "%s\n" "$ac_try_echo"; } >&5
3934 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3935 ac_status=$?
3936 if test -s conftest.err; then
3937 sed '10a\
3938 ... rest of stderr output deleted ...
3939 10q' conftest.err >conftest.er1
3940 cat conftest.er1 >&5
3941 fi
3942 rm -f conftest.er1 conftest.err
3943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }
3945 done
3946
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3949
3950 int
3951 main (void)
3952 {
3953
3954 ;
3955 return 0;
3956 }
3957 _ACEOF
3958 ac_clean_files_save=$ac_clean_files
3959 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3960 # Try to create an executable without -o first, disregard a.out.
3961 # It will help us diagnose broken compilers, and finding out an intuition
3962 # of exeext.
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3964 printf %s "checking whether the C compiler works... " >&6; }
3965 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3966
3967 # The possible output files:
3968 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3969
3970 ac_rmfiles=
3971 for ac_file in $ac_files
3972 do
3973 case $ac_file in
3974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3975 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3976 esac
3977 done
3978 rm -f $ac_rmfiles
3979
3980 if { { ac_try="$ac_link_default"
3981 case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3984 esac
3985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986 printf "%s\n" "$ac_try_echo"; } >&5
3987 (eval "$ac_link_default") 2>&5
3988 ac_status=$?
3989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990 test $ac_status = 0; }
3991 then :
3992 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3993 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3994 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3995 # so that the user can short-circuit this test for compilers unknown to
3996 # Autoconf.
3997 for ac_file in $ac_files ''
3998 do
3999 test -f "$ac_file" || continue
4000 case $ac_file in
4001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4002 ;;
4003 [ab].out )
4004 # We found the default executable, but exeext='' is most
4005 # certainly right.
4006 break;;
4007 *.* )
4008 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4009 then :; else
4010 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4011 fi
4012 # We set ac_cv_exeext here because the later test for it is not
4013 # safe: cross compilers may not add the suffix if given an `-o'
4014 # argument, so we may need to know it at that point already.
4015 # Even if this section looks crufty: it has the advantage of
4016 # actually working.
4017 break;;
4018 * )
4019 break;;
4020 esac
4021 done
4022 test "$ac_cv_exeext" = no && ac_cv_exeext=
4023
4024 else $as_nop
4025 ac_file=''
4026 fi
4027 if test -z "$ac_file"
4028 then :
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 printf "%s\n" "no" >&6; }
4031 printf "%s\n" "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error 77 "C compiler cannot create executables
4037 See \`config.log' for more details" "$LINENO" 5; }
4038 else $as_nop
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4040 printf "%s\n" "yes" >&6; }
4041 fi
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4043 printf %s "checking for C compiler default output file name... " >&6; }
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4045 printf "%s\n" "$ac_file" >&6; }
4046 ac_exeext=$ac_cv_exeext
4047
4048 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4049 ac_clean_files=$ac_clean_files_save
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4051 printf %s "checking for suffix of executables... " >&6; }
4052 if { { ac_try="$ac_link"
4053 case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056 esac
4057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4058 printf "%s\n" "$ac_try_echo"; } >&5
4059 (eval "$ac_link") 2>&5
4060 ac_status=$?
4061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }
4063 then :
4064 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4065 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4066 # work properly (i.e., refer to `conftest.exe'), while it won't with
4067 # `rm'.
4068 for ac_file in conftest.exe conftest conftest.*; do
4069 test -f "$ac_file" || continue
4070 case $ac_file in
4071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4073 break;;
4074 * ) break;;
4075 esac
4076 done
4077 else $as_nop
4078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4080 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4081 See \`config.log' for more details" "$LINENO" 5; }
4082 fi
4083 rm -f conftest conftest$ac_cv_exeext
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4085 printf "%s\n" "$ac_cv_exeext" >&6; }
4086
4087 rm -f conftest.$ac_ext
4088 EXEEXT=$ac_cv_exeext
4089 ac_exeext=$EXEEXT
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092 #include <stdio.h>
4093 int
4094 main (void)
4095 {
4096 FILE *f = fopen ("conftest.out", "w");
4097 return ferror (f) || fclose (f) != 0;
4098
4099 ;
4100 return 0;
4101 }
4102 _ACEOF
4103 ac_clean_files="$ac_clean_files conftest.out"
4104 # Check that the compiler produces executables we can run. If not, either
4105 # the compiler is broken, or we cross compile.
4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4107 printf %s "checking whether we are cross compiling... " >&6; }
4108 if test "$cross_compiling" != yes; then
4109 { { ac_try="$ac_link"
4110 case "(($ac_try" in
4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112 *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 printf "%s\n" "$ac_try_echo"; } >&5
4116 (eval "$ac_link") 2>&5
4117 ac_status=$?
4118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119 test $ac_status = 0; }
4120 if { ac_try='./conftest$ac_cv_exeext'
4121 { { case "(($ac_try" in
4122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4123 *) ac_try_echo=$ac_try;;
4124 esac
4125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4126 printf "%s\n" "$ac_try_echo"; } >&5
4127 (eval "$ac_try") 2>&5
4128 ac_status=$?
4129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4130 test $ac_status = 0; }; }; then
4131 cross_compiling=no
4132 else
4133 if test "$cross_compiling" = maybe; then
4134 cross_compiling=yes
4135 else
4136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4138 as_fn_error 77 "cannot run C compiled programs.
4139 If you meant to cross compile, use \`--host'.
4140 See \`config.log' for more details" "$LINENO" 5; }
4141 fi
4142 fi
4143 fi
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4145 printf "%s\n" "$cross_compiling" >&6; }
4146
4147 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4148 ac_clean_files=$ac_clean_files_save
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4150 printf %s "checking for suffix of object files... " >&6; }
4151 if test ${ac_cv_objext+y}
4152 then :
4153 printf %s "(cached) " >&6
4154 else $as_nop
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157
4158 int
4159 main (void)
4160 {
4161
4162 ;
4163 return 0;
4164 }
4165 _ACEOF
4166 rm -f conftest.o conftest.obj
4167 if { { ac_try="$ac_compile"
4168 case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171 esac
4172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4173 printf "%s\n" "$ac_try_echo"; } >&5
4174 (eval "$ac_compile") 2>&5
4175 ac_status=$?
4176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177 test $ac_status = 0; }
4178 then :
4179 for ac_file in conftest.o conftest.obj conftest.*; do
4180 test -f "$ac_file" || continue;
4181 case $ac_file in
4182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4183 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4184 break;;
4185 esac
4186 done
4187 else $as_nop
4188 printf "%s\n" "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4192 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4193 as_fn_error $? "cannot compute suffix of object files: cannot compile
4194 See \`config.log' for more details" "$LINENO" 5; }
4195 fi
4196 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4197 fi
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4199 printf "%s\n" "$ac_cv_objext" >&6; }
4200 OBJEXT=$ac_cv_objext
4201 ac_objext=$OBJEXT
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4203 printf %s "checking whether the compiler supports GNU C... " >&6; }
4204 if test ${ac_cv_c_compiler_gnu+y}
4205 then :
4206 printf %s "(cached) " >&6
4207 else $as_nop
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210
4211 int
4212 main (void)
4213 {
4214 #ifndef __GNUC__
4215 choke me
4216 #endif
4217
4218 ;
4219 return 0;
4220 }
4221 _ACEOF
4222 if ac_fn_c_try_compile "$LINENO"
4223 then :
4224 ac_compiler_gnu=yes
4225 else $as_nop
4226 ac_compiler_gnu=no
4227 fi
4228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4229 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4230
4231 fi
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4233 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4235
4236 if test $ac_compiler_gnu = yes; then
4237 GCC=yes
4238 else
4239 GCC=
4240 fi
4241 ac_test_CFLAGS=${CFLAGS+y}
4242 ac_save_CFLAGS=$CFLAGS
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4244 printf %s "checking whether $CC accepts -g... " >&6; }
4245 if test ${ac_cv_prog_cc_g+y}
4246 then :
4247 printf %s "(cached) " >&6
4248 else $as_nop
4249 ac_save_c_werror_flag=$ac_c_werror_flag
4250 ac_c_werror_flag=yes
4251 ac_cv_prog_cc_g=no
4252 CFLAGS="-g"
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255
4256 int
4257 main (void)
4258 {
4259
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_compile "$LINENO"
4265 then :
4266 ac_cv_prog_cc_g=yes
4267 else $as_nop
4268 CFLAGS=""
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271
4272 int
4273 main (void)
4274 {
4275
4276 ;
4277 return 0;
4278 }
4279 _ACEOF
4280 if ac_fn_c_try_compile "$LINENO"
4281 then :
4282
4283 else $as_nop
4284 ac_c_werror_flag=$ac_save_c_werror_flag
4285 CFLAGS="-g"
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288
4289 int
4290 main (void)
4291 {
4292
4293 ;
4294 return 0;
4295 }
4296 _ACEOF
4297 if ac_fn_c_try_compile "$LINENO"
4298 then :
4299 ac_cv_prog_cc_g=yes
4300 fi
4301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4302 fi
4303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4304 fi
4305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4306 ac_c_werror_flag=$ac_save_c_werror_flag
4307 fi
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4309 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4310 if test $ac_test_CFLAGS; then
4311 CFLAGS=$ac_save_CFLAGS
4312 elif test $ac_cv_prog_cc_g = yes; then
4313 if test "$GCC" = yes; then
4314 CFLAGS="-g -O2"
4315 else
4316 CFLAGS="-g"
4317 fi
4318 else
4319 if test "$GCC" = yes; then
4320 CFLAGS="-O2"
4321 else
4322 CFLAGS=
4323 fi
4324 fi
4325 ac_prog_cc_stdc=no
4326 if test x$ac_prog_cc_stdc = xno
4327 then :
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4329 printf %s "checking for $CC option to enable C11 features... " >&6; }
4330 if test ${ac_cv_prog_cc_c11+y}
4331 then :
4332 printf %s "(cached) " >&6
4333 else $as_nop
4334 ac_cv_prog_cc_c11=no
4335 ac_save_CC=$CC
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338 $ac_c_conftest_c11_program
4339 _ACEOF
4340 for ac_arg in '' -std=gnu11
4341 do
4342 CC="$ac_save_CC $ac_arg"
4343 if ac_fn_c_try_compile "$LINENO"
4344 then :
4345 ac_cv_prog_cc_c11=$ac_arg
4346 fi
4347 rm -f core conftest.err conftest.$ac_objext conftest.beam
4348 test "x$ac_cv_prog_cc_c11" != "xno" && break
4349 done
4350 rm -f conftest.$ac_ext
4351 CC=$ac_save_CC
4352 fi
4353
4354 if test "x$ac_cv_prog_cc_c11" = xno
4355 then :
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4357 printf "%s\n" "unsupported" >&6; }
4358 else $as_nop
4359 if test "x$ac_cv_prog_cc_c11" = x
4360 then :
4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4362 printf "%s\n" "none needed" >&6; }
4363 else $as_nop
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4365 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4366 CC="$CC $ac_cv_prog_cc_c11"
4367 fi
4368 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4369 ac_prog_cc_stdc=c11
4370 fi
4371 fi
4372 if test x$ac_prog_cc_stdc = xno
4373 then :
4374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4375 printf %s "checking for $CC option to enable C99 features... " >&6; }
4376 if test ${ac_cv_prog_cc_c99+y}
4377 then :
4378 printf %s "(cached) " >&6
4379 else $as_nop
4380 ac_cv_prog_cc_c99=no
4381 ac_save_CC=$CC
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384 $ac_c_conftest_c99_program
4385 _ACEOF
4386 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4387 do
4388 CC="$ac_save_CC $ac_arg"
4389 if ac_fn_c_try_compile "$LINENO"
4390 then :
4391 ac_cv_prog_cc_c99=$ac_arg
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext conftest.beam
4394 test "x$ac_cv_prog_cc_c99" != "xno" && break
4395 done
4396 rm -f conftest.$ac_ext
4397 CC=$ac_save_CC
4398 fi
4399
4400 if test "x$ac_cv_prog_cc_c99" = xno
4401 then :
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4403 printf "%s\n" "unsupported" >&6; }
4404 else $as_nop
4405 if test "x$ac_cv_prog_cc_c99" = x
4406 then :
4407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4408 printf "%s\n" "none needed" >&6; }
4409 else $as_nop
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4411 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4412 CC="$CC $ac_cv_prog_cc_c99"
4413 fi
4414 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4415 ac_prog_cc_stdc=c99
4416 fi
4417 fi
4418 if test x$ac_prog_cc_stdc = xno
4419 then :
4420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4421 printf %s "checking for $CC option to enable C89 features... " >&6; }
4422 if test ${ac_cv_prog_cc_c89+y}
4423 then :
4424 printf %s "(cached) " >&6
4425 else $as_nop
4426 ac_cv_prog_cc_c89=no
4427 ac_save_CC=$CC
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430 $ac_c_conftest_c89_program
4431 _ACEOF
4432 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4433 do
4434 CC="$ac_save_CC $ac_arg"
4435 if ac_fn_c_try_compile "$LINENO"
4436 then :
4437 ac_cv_prog_cc_c89=$ac_arg
4438 fi
4439 rm -f core conftest.err conftest.$ac_objext conftest.beam
4440 test "x$ac_cv_prog_cc_c89" != "xno" && break
4441 done
4442 rm -f conftest.$ac_ext
4443 CC=$ac_save_CC
4444 fi
4445
4446 if test "x$ac_cv_prog_cc_c89" = xno
4447 then :
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4449 printf "%s\n" "unsupported" >&6; }
4450 else $as_nop
4451 if test "x$ac_cv_prog_cc_c89" = x
4452 then :
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4454 printf "%s\n" "none needed" >&6; }
4455 else $as_nop
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4457 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4458 CC="$CC $ac_cv_prog_cc_c89"
4459 fi
4460 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4461 ac_prog_cc_stdc=c89
4462 fi
4463 fi
4464
4465 ac_ext=c
4466 ac_cpp='$CPP $CPPFLAGS'
4467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470
4471
4472 ac_ext=c
4473 ac_cpp='$CPP $CPPFLAGS'
4474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4478 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4479 if test ${am_cv_prog_cc_c_o+y}
4480 then :
4481 printf %s "(cached) " >&6
4482 else $as_nop
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485
4486 int
4487 main (void)
4488 {
4489
4490 ;
4491 return 0;
4492 }
4493 _ACEOF
4494 # Make sure it works both with $CC and with simple cc.
4495 # Following AC_PROG_CC_C_O, we do the test twice because some
4496 # compilers refuse to overwrite an existing .o file with -o,
4497 # though they will create one.
4498 am_cv_prog_cc_c_o=yes
4499 for am_i in 1 2; do
4500 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4501 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } \
4505 && test -f conftest2.$ac_objext; then
4506 : OK
4507 else
4508 am_cv_prog_cc_c_o=no
4509 break
4510 fi
4511 done
4512 rm -f core conftest*
4513 unset am_i
4514 fi
4515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4516 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4517 if test "$am_cv_prog_cc_c_o" != yes; then
4518 # Losing compiler, so override with the script.
4519 # FIXME: It is wrong to rewrite CC.
4520 # But if we don't then we get into trouble of one sort or another.
4521 # A longer-term fix would be to have automake use am__CC in this case,
4522 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4523 CC="$am_aux_dir/compile $CC"
4524 fi
4525 ac_ext=c
4526 ac_cpp='$CPP $CPPFLAGS'
4527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4530
4531 DEPDIR="${am__leading_dot}deps"
4532
4533 ac_config_commands="$ac_config_commands depfiles"
4534
4535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4536 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4537 cat > confinc.mk << 'END'
4538 am__doit:
4539 @echo this is the am__doit target >confinc.out
4540 .PHONY: am__doit
4541 END
4542 am__include="#"
4543 am__quote=
4544 # BSD make does it like this.
4545 echo '.include "confinc.mk" # ignored' > confmf.BSD
4546 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4547 echo 'include confinc.mk # ignored' > confmf.GNU
4548 _am_result=no
4549 for s in GNU BSD; do
4550 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4551 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }
4555 case $?:`cat confinc.out 2>/dev/null` in #(
4556 '0:this is the am__doit target') :
4557 case $s in #(
4558 BSD) :
4559 am__include='.include' am__quote='"' ;; #(
4560 *) :
4561 am__include='include' am__quote='' ;;
4562 esac ;; #(
4563 *) :
4564 ;;
4565 esac
4566 if test "$am__include" != "#"; then
4567 _am_result="yes ($s style)"
4568 break
4569 fi
4570 done
4571 rm -f confinc.* confmf.*
4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4573 printf "%s\n" "${_am_result}" >&6; }
4574
4575 # Check whether --enable-dependency-tracking was given.
4576 if test ${enable_dependency_tracking+y}
4577 then :
4578 enableval=$enable_dependency_tracking;
4579 fi
4580
4581 if test "x$enable_dependency_tracking" != xno; then
4582 am_depcomp="$ac_aux_dir/depcomp"
4583 AMDEPBACKSLASH='\'
4584 am__nodep='_no'
4585 fi
4586 if test "x$enable_dependency_tracking" != xno; then
4587 AMDEP_TRUE=
4588 AMDEP_FALSE='#'
4589 else
4590 AMDEP_TRUE='#'
4591 AMDEP_FALSE=
4592 fi
4593
4594
4595
4596 depcc="$CC" am_compiler_list=
4597
4598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4599 printf %s "checking dependency style of $depcc... " >&6; }
4600 if test ${am_cv_CC_dependencies_compiler_type+y}
4601 then :
4602 printf %s "(cached) " >&6
4603 else $as_nop
4604 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4605 # We make a subdir and do the tests there. Otherwise we can end up
4606 # making bogus files that we don't know about and never remove. For
4607 # instance it was reported that on HP-UX the gcc test will end up
4608 # making a dummy file named 'D' -- because '-MD' means "put the output
4609 # in D".
4610 rm -rf conftest.dir
4611 mkdir conftest.dir
4612 # Copy depcomp to subdir because otherwise we won't find it if we're
4613 # using a relative directory.
4614 cp "$am_depcomp" conftest.dir
4615 cd conftest.dir
4616 # We will build objects and dependencies in a subdirectory because
4617 # it helps to detect inapplicable dependency modes. For instance
4618 # both Tru64's cc and ICC support -MD to output dependencies as a
4619 # side effect of compilation, but ICC will put the dependencies in
4620 # the current directory while Tru64 will put them in the object
4621 # directory.
4622 mkdir sub
4623
4624 am_cv_CC_dependencies_compiler_type=none
4625 if test "$am_compiler_list" = ""; then
4626 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4627 fi
4628 am__universal=false
4629 case " $depcc " in #(
4630 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4631 esac
4632
4633 for depmode in $am_compiler_list; do
4634 # Setup a source with many dependencies, because some compilers
4635 # like to wrap large dependency lists on column 80 (with \), and
4636 # we should not choose a depcomp mode which is confused by this.
4637 #
4638 # We need to recreate these files for each test, as the compiler may
4639 # overwrite some of them when testing with obscure command lines.
4640 # This happens at least with the AIX C compiler.
4641 : > sub/conftest.c
4642 for i in 1 2 3 4 5 6; do
4643 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4644 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4645 # Solaris 10 /bin/sh.
4646 echo '/* dummy */' > sub/conftst$i.h
4647 done
4648 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4649
4650 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4651 # mode. It turns out that the SunPro C++ compiler does not properly
4652 # handle '-M -o', and we need to detect this. Also, some Intel
4653 # versions had trouble with output in subdirs.
4654 am__obj=sub/conftest.${OBJEXT-o}
4655 am__minus_obj="-o $am__obj"
4656 case $depmode in
4657 gcc)
4658 # This depmode causes a compiler race in universal mode.
4659 test "$am__universal" = false || continue
4660 ;;
4661 nosideeffect)
4662 # After this tag, mechanisms are not by side-effect, so they'll
4663 # only be used when explicitly requested.
4664 if test "x$enable_dependency_tracking" = xyes; then
4665 continue
4666 else
4667 break
4668 fi
4669 ;;
4670 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4671 # This compiler won't grok '-c -o', but also, the minuso test has
4672 # not run yet. These depmodes are late enough in the game, and
4673 # so weak that their functioning should not be impacted.
4674 am__obj=conftest.${OBJEXT-o}
4675 am__minus_obj=
4676 ;;
4677 none) break ;;
4678 esac
4679 if depmode=$depmode \
4680 source=sub/conftest.c object=$am__obj \
4681 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4682 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4683 >/dev/null 2>conftest.err &&
4684 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4685 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4686 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4687 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4688 # icc doesn't choke on unknown options, it will just issue warnings
4689 # or remarks (even with -Werror). So we grep stderr for any message
4690 # that says an option was ignored or not supported.
4691 # When given -MP, icc 7.0 and 7.1 complain thusly:
4692 # icc: Command line warning: ignoring option '-M'; no argument required
4693 # The diagnosis changed in icc 8.0:
4694 # icc: Command line remark: option '-MP' not supported
4695 if (grep 'ignoring option' conftest.err ||
4696 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4697 am_cv_CC_dependencies_compiler_type=$depmode
4698 break
4699 fi
4700 fi
4701 done
4702
4703 cd ..
4704 rm -rf conftest.dir
4705 else
4706 am_cv_CC_dependencies_compiler_type=none
4707 fi
4708
4709 fi
4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4711 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4712 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4713
4714 if
4715 test "x$enable_dependency_tracking" != xno \
4716 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4717 am__fastdepCC_TRUE=
4718 am__fastdepCC_FALSE='#'
4719 else
4720 am__fastdepCC_TRUE='#'
4721 am__fastdepCC_FALSE=
4722 fi
4723
4724
4725 case `pwd` in
4726 *\ * | *\ *)
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4728 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4729 esac
4730
4731
4732
4733 macro_version='2.4.7'
4734 macro_revision='2.4.7'
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749 ltmain=$ac_aux_dir/ltmain.sh
4750
4751
4752
4753 # Make sure we can run config.sub.
4754 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4755 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4756
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4758 printf %s "checking build system type... " >&6; }
4759 if test ${ac_cv_build+y}
4760 then :
4761 printf %s "(cached) " >&6
4762 else $as_nop
4763 ac_build_alias=$build_alias
4764 test "x$ac_build_alias" = x &&
4765 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4766 test "x$ac_build_alias" = x &&
4767 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4768 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4769 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4770
4771 fi
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4773 printf "%s\n" "$ac_cv_build" >&6; }
4774 case $ac_cv_build in
4775 *-*-*) ;;
4776 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4777 esac
4778 build=$ac_cv_build
4779 ac_save_IFS=$IFS; IFS='-'
4780 set x $ac_cv_build
4781 shift
4782 build_cpu=$1
4783 build_vendor=$2
4784 shift; shift
4785 # Remember, the first character of IFS is used to create $*,
4786 # except with old shells:
4787 build_os=$*
4788 IFS=$ac_save_IFS
4789 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4790
4791
4792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4793 printf %s "checking host system type... " >&6; }
4794 if test ${ac_cv_host+y}
4795 then :
4796 printf %s "(cached) " >&6
4797 else $as_nop
4798 if test "x$host_alias" = x; then
4799 ac_cv_host=$ac_cv_build
4800 else
4801 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4802 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4803 fi
4804
4805 fi
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4807 printf "%s\n" "$ac_cv_host" >&6; }
4808 case $ac_cv_host in
4809 *-*-*) ;;
4810 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4811 esac
4812 host=$ac_cv_host
4813 ac_save_IFS=$IFS; IFS='-'
4814 set x $ac_cv_host
4815 shift
4816 host_cpu=$1
4817 host_vendor=$2
4818 shift; shift
4819 # Remember, the first character of IFS is used to create $*,
4820 # except with old shells:
4821 host_os=$*
4822 IFS=$ac_save_IFS
4823 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4824
4825
4826 # Backslashify metacharacters that are still active within
4827 # double-quoted strings.
4828 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4829
4830 # Same as above, but do not quote variable references.
4831 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4832
4833 # Sed substitution to delay expansion of an escaped shell variable in a
4834 # double_quote_subst'ed string.
4835 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4836
4837 # Sed substitution to delay expansion of an escaped single quote.
4838 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4839
4840 # Sed substitution to avoid accidental globbing in evaled expressions
4841 no_glob_subst='s/\*/\\\*/g'
4842
4843 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4844 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4845 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4846
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4848 printf %s "checking how to print strings... " >&6; }
4849 # Test print first, because it will be a builtin if present.
4850 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4851 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4852 ECHO='print -r --'
4853 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4854 ECHO='printf %s\n'
4855 else
4856 # Use this function as a fallback that always works.
4857 func_fallback_echo ()
4858 {
4859 eval 'cat <<_LTECHO_EOF
4860 $1
4861 _LTECHO_EOF'
4862 }
4863 ECHO='func_fallback_echo'
4864 fi
4865
4866 # func_echo_all arg...
4867 # Invoke $ECHO with all args, space-separated.
4868 func_echo_all ()
4869 {
4870 $ECHO ""
4871 }
4872
4873 case $ECHO in
4874 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4875 printf "%s\n" "printf" >&6; } ;;
4876 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4877 printf "%s\n" "print -r" >&6; } ;;
4878 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4879 printf "%s\n" "cat" >&6; } ;;
4880 esac
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4896 printf %s "checking for a sed that does not truncate output... " >&6; }
4897 if test ${ac_cv_path_SED+y}
4898 then :
4899 printf %s "(cached) " >&6
4900 else $as_nop
4901 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4902 for ac_i in 1 2 3 4 5 6 7; do
4903 ac_script="$ac_script$as_nl$ac_script"
4904 done
4905 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4906 { ac_script=; unset ac_script;}
4907 if test -z "$SED"; then
4908 ac_path_SED_found=false
4909 # Loop through the user's path and test for each of PROGNAME-LIST
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913 IFS=$as_save_IFS
4914 case $as_dir in #(((
4915 '') as_dir=./ ;;
4916 */) ;;
4917 *) as_dir=$as_dir/ ;;
4918 esac
4919 for ac_prog in sed gsed
4920 do
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4923 as_fn_executable_p "$ac_path_SED" || continue
4924 # Check for GNU ac_path_SED and select it if it is found.
4925 # Check for GNU $ac_path_SED
4926 case `"$ac_path_SED" --version 2>&1` in
4927 *GNU*)
4928 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4929 *)
4930 ac_count=0
4931 printf %s 0123456789 >"conftest.in"
4932 while :
4933 do
4934 cat "conftest.in" "conftest.in" >"conftest.tmp"
4935 mv "conftest.tmp" "conftest.in"
4936 cp "conftest.in" "conftest.nl"
4937 printf "%s\n" '' >> "conftest.nl"
4938 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4940 as_fn_arith $ac_count + 1 && ac_count=$as_val
4941 if test $ac_count -gt ${ac_path_SED_max-0}; then
4942 # Best one so far, save it but keep looking for a better one
4943 ac_cv_path_SED="$ac_path_SED"
4944 ac_path_SED_max=$ac_count
4945 fi
4946 # 10*(2^10) chars as input seems more than enough
4947 test $ac_count -gt 10 && break
4948 done
4949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4950 esac
4951
4952 $ac_path_SED_found && break 3
4953 done
4954 done
4955 done
4956 IFS=$as_save_IFS
4957 if test -z "$ac_cv_path_SED"; then
4958 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4959 fi
4960 else
4961 ac_cv_path_SED=$SED
4962 fi
4963
4964 fi
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4966 printf "%s\n" "$ac_cv_path_SED" >&6; }
4967 SED="$ac_cv_path_SED"
4968 rm -f conftest.sed
4969
4970 test -z "$SED" && SED=sed
4971 Xsed="$SED -e 1s/^X//"
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4984 printf %s "checking for grep that handles long lines and -e... " >&6; }
4985 if test ${ac_cv_path_GREP+y}
4986 then :
4987 printf %s "(cached) " >&6
4988 else $as_nop
4989 if test -z "$GREP"; then
4990 ac_path_GREP_found=false
4991 # Loop through the user's path and test for each of PROGNAME-LIST
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4994 do
4995 IFS=$as_save_IFS
4996 case $as_dir in #(((
4997 '') as_dir=./ ;;
4998 */) ;;
4999 *) as_dir=$as_dir/ ;;
5000 esac
5001 for ac_prog in grep ggrep
5002 do
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5005 as_fn_executable_p "$ac_path_GREP" || continue
5006 # Check for GNU ac_path_GREP and select it if it is found.
5007 # Check for GNU $ac_path_GREP
5008 case `"$ac_path_GREP" --version 2>&1` in
5009 *GNU*)
5010 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5011 *)
5012 ac_count=0
5013 printf %s 0123456789 >"conftest.in"
5014 while :
5015 do
5016 cat "conftest.in" "conftest.in" >"conftest.tmp"
5017 mv "conftest.tmp" "conftest.in"
5018 cp "conftest.in" "conftest.nl"
5019 printf "%s\n" 'GREP' >> "conftest.nl"
5020 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022 as_fn_arith $ac_count + 1 && ac_count=$as_val
5023 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5024 # Best one so far, save it but keep looking for a better one
5025 ac_cv_path_GREP="$ac_path_GREP"
5026 ac_path_GREP_max=$ac_count
5027 fi
5028 # 10*(2^10) chars as input seems more than enough
5029 test $ac_count -gt 10 && break
5030 done
5031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032 esac
5033
5034 $ac_path_GREP_found && break 3
5035 done
5036 done
5037 done
5038 IFS=$as_save_IFS
5039 if test -z "$ac_cv_path_GREP"; then
5040 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5041 fi
5042 else
5043 ac_cv_path_GREP=$GREP
5044 fi
5045
5046 fi
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5048 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5049 GREP="$ac_cv_path_GREP"
5050
5051
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5053 printf %s "checking for egrep... " >&6; }
5054 if test ${ac_cv_path_EGREP+y}
5055 then :
5056 printf %s "(cached) " >&6
5057 else $as_nop
5058 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5059 then ac_cv_path_EGREP="$GREP -E"
5060 else
5061 if test -z "$EGREP"; then
5062 ac_path_EGREP_found=false
5063 # Loop through the user's path and test for each of PROGNAME-LIST
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5066 do
5067 IFS=$as_save_IFS
5068 case $as_dir in #(((
5069 '') as_dir=./ ;;
5070 */) ;;
5071 *) as_dir=$as_dir/ ;;
5072 esac
5073 for ac_prog in egrep
5074 do
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5077 as_fn_executable_p "$ac_path_EGREP" || continue
5078 # Check for GNU ac_path_EGREP and select it if it is found.
5079 # Check for GNU $ac_path_EGREP
5080 case `"$ac_path_EGREP" --version 2>&1` in
5081 *GNU*)
5082 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5083 *)
5084 ac_count=0
5085 printf %s 0123456789 >"conftest.in"
5086 while :
5087 do
5088 cat "conftest.in" "conftest.in" >"conftest.tmp"
5089 mv "conftest.tmp" "conftest.in"
5090 cp "conftest.in" "conftest.nl"
5091 printf "%s\n" 'EGREP' >> "conftest.nl"
5092 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5093 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5094 as_fn_arith $ac_count + 1 && ac_count=$as_val
5095 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5096 # Best one so far, save it but keep looking for a better one
5097 ac_cv_path_EGREP="$ac_path_EGREP"
5098 ac_path_EGREP_max=$ac_count
5099 fi
5100 # 10*(2^10) chars as input seems more than enough
5101 test $ac_count -gt 10 && break
5102 done
5103 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5104 esac
5105
5106 $ac_path_EGREP_found && break 3
5107 done
5108 done
5109 done
5110 IFS=$as_save_IFS
5111 if test -z "$ac_cv_path_EGREP"; then
5112 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5113 fi
5114 else
5115 ac_cv_path_EGREP=$EGREP
5116 fi
5117
5118 fi
5119 fi
5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5121 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5122 EGREP="$ac_cv_path_EGREP"
5123
5124
5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5126 printf %s "checking for fgrep... " >&6; }
5127 if test ${ac_cv_path_FGREP+y}
5128 then :
5129 printf %s "(cached) " >&6
5130 else $as_nop
5131 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5132 then ac_cv_path_FGREP="$GREP -F"
5133 else
5134 if test -z "$FGREP"; then
5135 ac_path_FGREP_found=false
5136 # Loop through the user's path and test for each of PROGNAME-LIST
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5139 do
5140 IFS=$as_save_IFS
5141 case $as_dir in #(((
5142 '') as_dir=./ ;;
5143 */) ;;
5144 *) as_dir=$as_dir/ ;;
5145 esac
5146 for ac_prog in fgrep
5147 do
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5150 as_fn_executable_p "$ac_path_FGREP" || continue
5151 # Check for GNU ac_path_FGREP and select it if it is found.
5152 # Check for GNU $ac_path_FGREP
5153 case `"$ac_path_FGREP" --version 2>&1` in
5154 *GNU*)
5155 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5156 *)
5157 ac_count=0
5158 printf %s 0123456789 >"conftest.in"
5159 while :
5160 do
5161 cat "conftest.in" "conftest.in" >"conftest.tmp"
5162 mv "conftest.tmp" "conftest.in"
5163 cp "conftest.in" "conftest.nl"
5164 printf "%s\n" 'FGREP' >> "conftest.nl"
5165 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5167 as_fn_arith $ac_count + 1 && ac_count=$as_val
5168 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5169 # Best one so far, save it but keep looking for a better one
5170 ac_cv_path_FGREP="$ac_path_FGREP"
5171 ac_path_FGREP_max=$ac_count
5172 fi
5173 # 10*(2^10) chars as input seems more than enough
5174 test $ac_count -gt 10 && break
5175 done
5176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5177 esac
5178
5179 $ac_path_FGREP_found && break 3
5180 done
5181 done
5182 done
5183 IFS=$as_save_IFS
5184 if test -z "$ac_cv_path_FGREP"; then
5185 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5186 fi
5187 else
5188 ac_cv_path_FGREP=$FGREP
5189 fi
5190
5191 fi
5192 fi
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5194 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5195 FGREP="$ac_cv_path_FGREP"
5196
5197
5198 test -z "$GREP" && GREP=grep
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218 # Check whether --with-gnu-ld was given.
5219 if test ${with_gnu_ld+y}
5220 then :
5221 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5222 else $as_nop
5223 with_gnu_ld=no
5224 fi
5225
5226 ac_prog=ld
5227 if test yes = "$GCC"; then
5228 # Check if gcc -print-prog-name=ld gives a path.
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5230 printf %s "checking for ld used by $CC... " >&6; }
5231 case $host in
5232 *-*-mingw*)
5233 # gcc leaves a trailing carriage return, which upsets mingw
5234 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5235 *)
5236 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5237 esac
5238 case $ac_prog in
5239 # Accept absolute paths.
5240 [\\/]* | ?:[\\/]*)
5241 re_direlt='/[^/][^/]*/\.\./'
5242 # Canonicalize the pathname of ld
5243 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5244 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5245 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5246 done
5247 test -z "$LD" && LD=$ac_prog
5248 ;;
5249 "")
5250 # If it fails, then pretend we aren't using GCC.
5251 ac_prog=ld
5252 ;;
5253 *)
5254 # If it is relative, then search for the first ld in PATH.
5255 with_gnu_ld=unknown
5256 ;;
5257 esac
5258 elif test yes = "$with_gnu_ld"; then
5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5260 printf %s "checking for GNU ld... " >&6; }
5261 else
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5263 printf %s "checking for non-GNU ld... " >&6; }
5264 fi
5265 if test ${lt_cv_path_LD+y}
5266 then :
5267 printf %s "(cached) " >&6
5268 else $as_nop
5269 if test -z "$LD"; then
5270 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5271 for ac_dir in $PATH; do
5272 IFS=$lt_save_ifs
5273 test -z "$ac_dir" && ac_dir=.
5274 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5275 lt_cv_path_LD=$ac_dir/$ac_prog
5276 # Check to see if the program is GNU ld. I'd rather use --version,
5277 # but apparently some variants of GNU ld only accept -v.
5278 # Break only if it was the GNU/non-GNU ld that we prefer.
5279 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5280 *GNU* | *'with BFD'*)
5281 test no != "$with_gnu_ld" && break
5282 ;;
5283 *)
5284 test yes != "$with_gnu_ld" && break
5285 ;;
5286 esac
5287 fi
5288 done
5289 IFS=$lt_save_ifs
5290 else
5291 lt_cv_path_LD=$LD # Let the user override the test with a path.
5292 fi
5293 fi
5294
5295 LD=$lt_cv_path_LD
5296 if test -n "$LD"; then
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5298 printf "%s\n" "$LD" >&6; }
5299 else
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 printf "%s\n" "no" >&6; }
5302 fi
5303 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5305 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5306 if test ${lt_cv_prog_gnu_ld+y}
5307 then :
5308 printf %s "(cached) " >&6
5309 else $as_nop
5310 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5311 case `$LD -v 2>&1 </dev/null` in
5312 *GNU* | *'with BFD'*)
5313 lt_cv_prog_gnu_ld=yes
5314 ;;
5315 *)
5316 lt_cv_prog_gnu_ld=no
5317 ;;
5318 esac
5319 fi
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5321 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5322 with_gnu_ld=$lt_cv_prog_gnu_ld
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5333 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5334 if test ${lt_cv_path_NM+y}
5335 then :
5336 printf %s "(cached) " >&6
5337 else $as_nop
5338 if test -n "$NM"; then
5339 # Let the user override the test.
5340 lt_cv_path_NM=$NM
5341 else
5342 lt_nm_to_check=${ac_tool_prefix}nm
5343 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5344 lt_nm_to_check="$lt_nm_to_check nm"
5345 fi
5346 for lt_tmp_nm in $lt_nm_to_check; do
5347 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5348 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5349 IFS=$lt_save_ifs
5350 test -z "$ac_dir" && ac_dir=.
5351 tmp_nm=$ac_dir/$lt_tmp_nm
5352 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5353 # Check to see if the nm accepts a BSD-compat flag.
5354 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5355 # nm: unknown option "B" ignored
5356 # Tru64's nm complains that /dev/null is an invalid object file
5357 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5358 case $build_os in
5359 mingw*) lt_bad_file=conftest.nm/nofile ;;
5360 *) lt_bad_file=/dev/null ;;
5361 esac
5362 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5363 *$lt_bad_file* | *'Invalid file or object type'*)
5364 lt_cv_path_NM="$tmp_nm -B"
5365 break 2
5366 ;;
5367 *)
5368 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5369 */dev/null*)
5370 lt_cv_path_NM="$tmp_nm -p"
5371 break 2
5372 ;;
5373 *)
5374 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5375 continue # so that we can try to find one that supports BSD flags
5376 ;;
5377 esac
5378 ;;
5379 esac
5380 fi
5381 done
5382 IFS=$lt_save_ifs
5383 done
5384 : ${lt_cv_path_NM=no}
5385 fi
5386 fi
5387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5388 printf "%s\n" "$lt_cv_path_NM" >&6; }
5389 if test no != "$lt_cv_path_NM"; then
5390 NM=$lt_cv_path_NM
5391 else
5392 # Didn't find any BSD compatible name lister, look for dumpbin.
5393 if test -n "$DUMPBIN"; then :
5394 # Let the user override the test.
5395 else
5396 if test -n "$ac_tool_prefix"; then
5397 for ac_prog in dumpbin "link -dump"
5398 do
5399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5400 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402 printf %s "checking for $ac_word... " >&6; }
5403 if test ${ac_cv_prog_DUMPBIN+y}
5404 then :
5405 printf %s "(cached) " >&6
5406 else $as_nop
5407 if test -n "$DUMPBIN"; then
5408 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413 IFS=$as_save_IFS
5414 case $as_dir in #(((
5415 '') as_dir=./ ;;
5416 */) ;;
5417 *) as_dir=$as_dir/ ;;
5418 esac
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5421 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5423 break 2
5424 fi
5425 done
5426 done
5427 IFS=$as_save_IFS
5428
5429 fi
5430 fi
5431 DUMPBIN=$ac_cv_prog_DUMPBIN
5432 if test -n "$DUMPBIN"; then
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5434 printf "%s\n" "$DUMPBIN" >&6; }
5435 else
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 printf "%s\n" "no" >&6; }
5438 fi
5439
5440
5441 test -n "$DUMPBIN" && break
5442 done
5443 fi
5444 if test -z "$DUMPBIN"; then
5445 ac_ct_DUMPBIN=$DUMPBIN
5446 for ac_prog in dumpbin "link -dump"
5447 do
5448 # Extract the first word of "$ac_prog", so it can be a program name with args.
5449 set dummy $ac_prog; ac_word=$2
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 printf %s "checking for $ac_word... " >&6; }
5452 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5453 then :
5454 printf %s "(cached) " >&6
5455 else $as_nop
5456 if test -n "$ac_ct_DUMPBIN"; then
5457 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5461 do
5462 IFS=$as_save_IFS
5463 case $as_dir in #(((
5464 '') as_dir=./ ;;
5465 */) ;;
5466 *) as_dir=$as_dir/ ;;
5467 esac
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474 done
5475 done
5476 IFS=$as_save_IFS
5477
5478 fi
5479 fi
5480 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5481 if test -n "$ac_ct_DUMPBIN"; then
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5483 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5484 else
5485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 printf "%s\n" "no" >&6; }
5487 fi
5488
5489
5490 test -n "$ac_ct_DUMPBIN" && break
5491 done
5492
5493 if test "x$ac_ct_DUMPBIN" = x; then
5494 DUMPBIN=":"
5495 else
5496 case $cross_compiling:$ac_tool_warned in
5497 yes:)
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5499 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500 ac_tool_warned=yes ;;
5501 esac
5502 DUMPBIN=$ac_ct_DUMPBIN
5503 fi
5504 fi
5505
5506 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5507 *COFF*)
5508 DUMPBIN="$DUMPBIN -symbols -headers"
5509 ;;
5510 *)
5511 DUMPBIN=:
5512 ;;
5513 esac
5514 fi
5515
5516 if test : != "$DUMPBIN"; then
5517 NM=$DUMPBIN
5518 fi
5519 fi
5520 test -z "$NM" && NM=nm
5521
5522
5523
5524
5525
5526
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5528 printf %s "checking the name lister ($NM) interface... " >&6; }
5529 if test ${lt_cv_nm_interface+y}
5530 then :
5531 printf %s "(cached) " >&6
5532 else $as_nop
5533 lt_cv_nm_interface="BSD nm"
5534 echo "int some_variable = 0;" > conftest.$ac_ext
5535 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5536 (eval "$ac_compile" 2>conftest.err)
5537 cat conftest.err >&5
5538 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5539 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5540 cat conftest.err >&5
5541 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5542 cat conftest.out >&5
5543 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5544 lt_cv_nm_interface="MS dumpbin"
5545 fi
5546 rm -f conftest*
5547 fi
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5549 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5550
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5552 printf %s "checking whether ln -s works... " >&6; }
5553 LN_S=$as_ln_s
5554 if test "$LN_S" = "ln -s"; then
5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5556 printf "%s\n" "yes" >&6; }
5557 else
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5559 printf "%s\n" "no, using $LN_S" >&6; }
5560 fi
5561
5562 # find the maximum length of command line arguments
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5564 printf %s "checking the maximum length of command line arguments... " >&6; }
5565 if test ${lt_cv_sys_max_cmd_len+y}
5566 then :
5567 printf %s "(cached) " >&6
5568 else $as_nop
5569 i=0
5570 teststring=ABCD
5571
5572 case $build_os in
5573 msdosdjgpp*)
5574 # On DJGPP, this test can blow up pretty badly due to problems in libc
5575 # (any single argument exceeding 2000 bytes causes a buffer overrun
5576 # during glob expansion). Even if it were fixed, the result of this
5577 # check would be larger than it should be.
5578 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5579 ;;
5580
5581 gnu*)
5582 # Under GNU Hurd, this test is not required because there is
5583 # no limit to the length of command line arguments.
5584 # Libtool will interpret -1 as no limit whatsoever
5585 lt_cv_sys_max_cmd_len=-1;
5586 ;;
5587
5588 cygwin* | mingw* | cegcc*)
5589 # On Win9x/ME, this test blows up -- it succeeds, but takes
5590 # about 5 minutes as the teststring grows exponentially.
5591 # Worse, since 9x/ME are not pre-emptively multitasking,
5592 # you end up with a "frozen" computer, even though with patience
5593 # the test eventually succeeds (with a max line length of 256k).
5594 # Instead, let's just punt: use the minimum linelength reported by
5595 # all of the supported platforms: 8192 (on NT/2K/XP).
5596 lt_cv_sys_max_cmd_len=8192;
5597 ;;
5598
5599 mint*)
5600 # On MiNT this can take a long time and run out of memory.
5601 lt_cv_sys_max_cmd_len=8192;
5602 ;;
5603
5604 amigaos*)
5605 # On AmigaOS with pdksh, this test takes hours, literally.
5606 # So we just punt and use a minimum line length of 8192.
5607 lt_cv_sys_max_cmd_len=8192;
5608 ;;
5609
5610 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5611 # This has been around since 386BSD, at least. Likely further.
5612 if test -x /sbin/sysctl; then
5613 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5614 elif test -x /usr/sbin/sysctl; then
5615 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5616 else
5617 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5618 fi
5619 # And add a safety zone
5620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5622 ;;
5623
5624 interix*)
5625 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5626 lt_cv_sys_max_cmd_len=196608
5627 ;;
5628
5629 os2*)
5630 # The test takes a long time on OS/2.
5631 lt_cv_sys_max_cmd_len=8192
5632 ;;
5633
5634 osf*)
5635 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5636 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5637 # nice to cause kernel panics so lets avoid the loop below.
5638 # First set a reasonable default.
5639 lt_cv_sys_max_cmd_len=16384
5640 #
5641 if test -x /sbin/sysconfig; then
5642 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5643 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5644 esac
5645 fi
5646 ;;
5647 sco3.2v5*)
5648 lt_cv_sys_max_cmd_len=102400
5649 ;;
5650 sysv5* | sco5v6* | sysv4.2uw2*)
5651 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5652 if test -n "$kargmax"; then
5653 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5654 else
5655 lt_cv_sys_max_cmd_len=32768
5656 fi
5657 ;;
5658 *)
5659 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5660 if test -n "$lt_cv_sys_max_cmd_len" && \
5661 test undefined != "$lt_cv_sys_max_cmd_len"; then
5662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5664 else
5665 # Make teststring a little bigger before we do anything with it.
5666 # a 1K string should be a reasonable start.
5667 for i in 1 2 3 4 5 6 7 8; do
5668 teststring=$teststring$teststring
5669 done
5670 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5671 # If test is not a shell built-in, we'll probably end up computing a
5672 # maximum length that is only half of the actual maximum length, but
5673 # we can't tell.
5674 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5675 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5676 test 17 != "$i" # 1/2 MB should be enough
5677 do
5678 i=`expr $i + 1`
5679 teststring=$teststring$teststring
5680 done
5681 # Only check the string length outside the loop.
5682 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5683 teststring=
5684 # Add a significant safety factor because C++ compilers can tack on
5685 # massive amounts of additional arguments before passing them to the
5686 # linker. It appears as though 1/2 is a usable value.
5687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5688 fi
5689 ;;
5690 esac
5691
5692 fi
5693
5694 if test -n "$lt_cv_sys_max_cmd_len"; then
5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5696 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5697 else
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5699 printf "%s\n" "none" >&6; }
5700 fi
5701 max_cmd_len=$lt_cv_sys_max_cmd_len
5702
5703
5704
5705
5706
5707
5708 : ${CP="cp -f"}
5709 : ${MV="mv -f"}
5710 : ${RM="rm -f"}
5711
5712 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5713 lt_unset=unset
5714 else
5715 lt_unset=false
5716 fi
5717
5718
5719
5720
5721
5722 # test EBCDIC or ASCII
5723 case `echo X|tr X '\101'` in
5724 A) # ASCII based system
5725 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5726 lt_SP2NL='tr \040 \012'
5727 lt_NL2SP='tr \015\012 \040\040'
5728 ;;
5729 *) # EBCDIC based system
5730 lt_SP2NL='tr \100 \n'
5731 lt_NL2SP='tr \r\n \100\100'
5732 ;;
5733 esac
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5744 printf %s "checking how to convert $build file names to $host format... " >&6; }
5745 if test ${lt_cv_to_host_file_cmd+y}
5746 then :
5747 printf %s "(cached) " >&6
5748 else $as_nop
5749 case $host in
5750 *-*-mingw* )
5751 case $build in
5752 *-*-mingw* ) # actually msys
5753 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5754 ;;
5755 *-*-cygwin* )
5756 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5757 ;;
5758 * ) # otherwise, assume *nix
5759 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5760 ;;
5761 esac
5762 ;;
5763 *-*-cygwin* )
5764 case $build in
5765 *-*-mingw* ) # actually msys
5766 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5767 ;;
5768 *-*-cygwin* )
5769 lt_cv_to_host_file_cmd=func_convert_file_noop
5770 ;;
5771 * ) # otherwise, assume *nix
5772 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5773 ;;
5774 esac
5775 ;;
5776 * ) # unhandled hosts (and "normal" native builds)
5777 lt_cv_to_host_file_cmd=func_convert_file_noop
5778 ;;
5779 esac
5780
5781 fi
5782
5783 to_host_file_cmd=$lt_cv_to_host_file_cmd
5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5785 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5786
5787
5788
5789
5790
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5792 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5793 if test ${lt_cv_to_tool_file_cmd+y}
5794 then :
5795 printf %s "(cached) " >&6
5796 else $as_nop
5797 #assume ordinary cross tools, or native build.
5798 lt_cv_to_tool_file_cmd=func_convert_file_noop
5799 case $host in
5800 *-*-mingw* )
5801 case $build in
5802 *-*-mingw* ) # actually msys
5803 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5804 ;;
5805 esac
5806 ;;
5807 esac
5808
5809 fi
5810
5811 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5813 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5814
5815
5816
5817
5818
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5820 printf %s "checking for $LD option to reload object files... " >&6; }
5821 if test ${lt_cv_ld_reload_flag+y}
5822 then :
5823 printf %s "(cached) " >&6
5824 else $as_nop
5825 lt_cv_ld_reload_flag='-r'
5826 fi
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5828 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5829 reload_flag=$lt_cv_ld_reload_flag
5830 case $reload_flag in
5831 "" | " "*) ;;
5832 *) reload_flag=" $reload_flag" ;;
5833 esac
5834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5835 case $host_os in
5836 cygwin* | mingw* | pw32* | cegcc*)
5837 if test yes != "$GCC"; then
5838 reload_cmds=false
5839 fi
5840 ;;
5841 darwin*)
5842 if test yes = "$GCC"; then
5843 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5844 else
5845 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5846 fi
5847 ;;
5848 esac
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858 if test -n "$ac_tool_prefix"; then
5859 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5860 set dummy ${ac_tool_prefix}file; ac_word=$2
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 printf %s "checking for $ac_word... " >&6; }
5863 if test ${ac_cv_prog_FILECMD+y}
5864 then :
5865 printf %s "(cached) " >&6
5866 else $as_nop
5867 if test -n "$FILECMD"; then
5868 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873 IFS=$as_save_IFS
5874 case $as_dir in #(((
5875 '') as_dir=./ ;;
5876 */) ;;
5877 *) as_dir=$as_dir/ ;;
5878 esac
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5881 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885 done
5886 done
5887 IFS=$as_save_IFS
5888
5889 fi
5890 fi
5891 FILECMD=$ac_cv_prog_FILECMD
5892 if test -n "$FILECMD"; then
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5894 printf "%s\n" "$FILECMD" >&6; }
5895 else
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 printf "%s\n" "no" >&6; }
5898 fi
5899
5900
5901 fi
5902 if test -z "$ac_cv_prog_FILECMD"; then
5903 ac_ct_FILECMD=$FILECMD
5904 # Extract the first word of "file", so it can be a program name with args.
5905 set dummy file; ac_word=$2
5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5907 printf %s "checking for $ac_word... " >&6; }
5908 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5909 then :
5910 printf %s "(cached) " >&6
5911 else $as_nop
5912 if test -n "$ac_ct_FILECMD"; then
5913 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5914 else
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918 IFS=$as_save_IFS
5919 case $as_dir in #(((
5920 '') as_dir=./ ;;
5921 */) ;;
5922 *) as_dir=$as_dir/ ;;
5923 esac
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5926 ac_cv_prog_ac_ct_FILECMD="file"
5927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5928 break 2
5929 fi
5930 done
5931 done
5932 IFS=$as_save_IFS
5933
5934 fi
5935 fi
5936 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5937 if test -n "$ac_ct_FILECMD"; then
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5939 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5940 else
5941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 printf "%s\n" "no" >&6; }
5943 fi
5944
5945 if test "x$ac_ct_FILECMD" = x; then
5946 FILECMD=":"
5947 else
5948 case $cross_compiling:$ac_tool_warned in
5949 yes:)
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5951 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5952 ac_tool_warned=yes ;;
5953 esac
5954 FILECMD=$ac_ct_FILECMD
5955 fi
5956 else
5957 FILECMD="$ac_cv_prog_FILECMD"
5958 fi
5959
5960
5961
5962
5963
5964
5965
5966 if test -n "$ac_tool_prefix"; then
5967 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5968 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 printf %s "checking for $ac_word... " >&6; }
5971 if test ${ac_cv_prog_OBJDUMP+y}
5972 then :
5973 printf %s "(cached) " >&6
5974 else $as_nop
5975 if test -n "$OBJDUMP"; then
5976 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981 IFS=$as_save_IFS
5982 case $as_dir in #(((
5983 '') as_dir=./ ;;
5984 */) ;;
5985 *) as_dir=$as_dir/ ;;
5986 esac
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5989 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5991 break 2
5992 fi
5993 done
5994 done
5995 IFS=$as_save_IFS
5996
5997 fi
5998 fi
5999 OBJDUMP=$ac_cv_prog_OBJDUMP
6000 if test -n "$OBJDUMP"; then
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6002 printf "%s\n" "$OBJDUMP" >&6; }
6003 else
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 printf "%s\n" "no" >&6; }
6006 fi
6007
6008
6009 fi
6010 if test -z "$ac_cv_prog_OBJDUMP"; then
6011 ac_ct_OBJDUMP=$OBJDUMP
6012 # Extract the first word of "objdump", so it can be a program name with args.
6013 set dummy objdump; ac_word=$2
6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015 printf %s "checking for $ac_word... " >&6; }
6016 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6017 then :
6018 printf %s "(cached) " >&6
6019 else $as_nop
6020 if test -n "$ac_ct_OBJDUMP"; then
6021 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026 IFS=$as_save_IFS
6027 case $as_dir in #(((
6028 '') as_dir=./ ;;
6029 */) ;;
6030 *) as_dir=$as_dir/ ;;
6031 esac
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6034 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
6038 done
6039 done
6040 IFS=$as_save_IFS
6041
6042 fi
6043 fi
6044 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6045 if test -n "$ac_ct_OBJDUMP"; then
6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6047 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6048 else
6049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 printf "%s\n" "no" >&6; }
6051 fi
6052
6053 if test "x$ac_ct_OBJDUMP" = x; then
6054 OBJDUMP="false"
6055 else
6056 case $cross_compiling:$ac_tool_warned in
6057 yes:)
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6059 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6060 ac_tool_warned=yes ;;
6061 esac
6062 OBJDUMP=$ac_ct_OBJDUMP
6063 fi
6064 else
6065 OBJDUMP="$ac_cv_prog_OBJDUMP"
6066 fi
6067
6068 test -z "$OBJDUMP" && OBJDUMP=objdump
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6079 printf %s "checking how to recognize dependent libraries... " >&6; }
6080 if test ${lt_cv_deplibs_check_method+y}
6081 then :
6082 printf %s "(cached) " >&6
6083 else $as_nop
6084 lt_cv_file_magic_cmd='$MAGIC_CMD'
6085 lt_cv_file_magic_test_file=
6086 lt_cv_deplibs_check_method='unknown'
6087 # Need to set the preceding variable on all platforms that support
6088 # interlibrary dependencies.
6089 # 'none' -- dependencies not supported.
6090 # 'unknown' -- same as none, but documents that we really don't know.
6091 # 'pass_all' -- all dependencies passed with no checks.
6092 # 'test_compile' -- check by making test program.
6093 # 'file_magic [[regex]]' -- check by looking for files in library path
6094 # that responds to the $file_magic_cmd with a given extended regex.
6095 # If you have 'file' or equivalent on your system and you're not sure
6096 # whether 'pass_all' will *always* work, you probably want this one.
6097
6098 case $host_os in
6099 aix[4-9]*)
6100 lt_cv_deplibs_check_method=pass_all
6101 ;;
6102
6103 beos*)
6104 lt_cv_deplibs_check_method=pass_all
6105 ;;
6106
6107 bsdi[45]*)
6108 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6109 lt_cv_file_magic_cmd='$FILECMD -L'
6110 lt_cv_file_magic_test_file=/shlib/libc.so
6111 ;;
6112
6113 cygwin*)
6114 # func_win32_libid is a shell function defined in ltmain.sh
6115 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6116 lt_cv_file_magic_cmd='func_win32_libid'
6117 ;;
6118
6119 mingw* | pw32*)
6120 # Base MSYS/MinGW do not provide the 'file' command needed by
6121 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6122 # unless we find 'file', for example because we are cross-compiling.
6123 if ( file / ) >/dev/null 2>&1; then
6124 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6125 lt_cv_file_magic_cmd='func_win32_libid'
6126 else
6127 # Keep this pattern in sync with the one in func_win32_libid.
6128 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6129 lt_cv_file_magic_cmd='$OBJDUMP -f'
6130 fi
6131 ;;
6132
6133 cegcc*)
6134 # use the weaker test based on 'objdump'. See mingw*.
6135 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6136 lt_cv_file_magic_cmd='$OBJDUMP -f'
6137 ;;
6138
6139 darwin* | rhapsody*)
6140 lt_cv_deplibs_check_method=pass_all
6141 ;;
6142
6143 freebsd* | dragonfly* | midnightbsd*)
6144 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6145 case $host_cpu in
6146 i*86 )
6147 # Not sure whether the presence of OpenBSD here was a mistake.
6148 # Let's accept both of them until this is cleared up.
6149 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6150 lt_cv_file_magic_cmd=$FILECMD
6151 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6152 ;;
6153 esac
6154 else
6155 lt_cv_deplibs_check_method=pass_all
6156 fi
6157 ;;
6158
6159 haiku*)
6160 lt_cv_deplibs_check_method=pass_all
6161 ;;
6162
6163 hpux10.20* | hpux11*)
6164 lt_cv_file_magic_cmd=$FILECMD
6165 case $host_cpu in
6166 ia64*)
6167 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6168 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6169 ;;
6170 hppa*64*)
6171 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]'
6172 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6173 ;;
6174 *)
6175 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6176 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6177 ;;
6178 esac
6179 ;;
6180
6181 interix[3-9]*)
6182 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6184 ;;
6185
6186 irix5* | irix6* | nonstopux*)
6187 case $LD in
6188 *-32|*"-32 ") libmagic=32-bit;;
6189 *-n32|*"-n32 ") libmagic=N32;;
6190 *-64|*"-64 ") libmagic=64-bit;;
6191 *) libmagic=never-match;;
6192 esac
6193 lt_cv_deplibs_check_method=pass_all
6194 ;;
6195
6196 # This must be glibc/ELF.
6197 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6198 lt_cv_deplibs_check_method=pass_all
6199 ;;
6200
6201 netbsd* | netbsdelf*-gnu)
6202 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6204 else
6205 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6206 fi
6207 ;;
6208
6209 newos6*)
6210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6211 lt_cv_file_magic_cmd=$FILECMD
6212 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6213 ;;
6214
6215 *nto* | *qnx*)
6216 lt_cv_deplibs_check_method=pass_all
6217 ;;
6218
6219 openbsd* | bitrig*)
6220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6222 else
6223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6224 fi
6225 ;;
6226
6227 osf3* | osf4* | osf5*)
6228 lt_cv_deplibs_check_method=pass_all
6229 ;;
6230
6231 rdos*)
6232 lt_cv_deplibs_check_method=pass_all
6233 ;;
6234
6235 solaris*)
6236 lt_cv_deplibs_check_method=pass_all
6237 ;;
6238
6239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242
6243 sysv4 | sysv4.3*)
6244 case $host_vendor in
6245 motorola)
6246 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]'
6247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6248 ;;
6249 ncr)
6250 lt_cv_deplibs_check_method=pass_all
6251 ;;
6252 sequent)
6253 lt_cv_file_magic_cmd='/bin/file'
6254 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6255 ;;
6256 sni)
6257 lt_cv_file_magic_cmd='/bin/file'
6258 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6259 lt_cv_file_magic_test_file=/lib/libc.so
6260 ;;
6261 siemens)
6262 lt_cv_deplibs_check_method=pass_all
6263 ;;
6264 pc)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267 esac
6268 ;;
6269
6270 tpf*)
6271 lt_cv_deplibs_check_method=pass_all
6272 ;;
6273 os2*)
6274 lt_cv_deplibs_check_method=pass_all
6275 ;;
6276 esac
6277
6278 fi
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6280 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6281
6282 file_magic_glob=
6283 want_nocaseglob=no
6284 if test "$build" = "$host"; then
6285 case $host_os in
6286 mingw* | pw32*)
6287 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6288 want_nocaseglob=yes
6289 else
6290 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6291 fi
6292 ;;
6293 esac
6294 fi
6295
6296 file_magic_cmd=$lt_cv_file_magic_cmd
6297 deplibs_check_method=$lt_cv_deplibs_check_method
6298 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321 if test -n "$ac_tool_prefix"; then
6322 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6323 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 printf %s "checking for $ac_word... " >&6; }
6326 if test ${ac_cv_prog_DLLTOOL+y}
6327 then :
6328 printf %s "(cached) " >&6
6329 else $as_nop
6330 if test -n "$DLLTOOL"; then
6331 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336 IFS=$as_save_IFS
6337 case $as_dir in #(((
6338 '') as_dir=./ ;;
6339 */) ;;
6340 *) as_dir=$as_dir/ ;;
6341 esac
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348 done
6349 done
6350 IFS=$as_save_IFS
6351
6352 fi
6353 fi
6354 DLLTOOL=$ac_cv_prog_DLLTOOL
6355 if test -n "$DLLTOOL"; then
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6357 printf "%s\n" "$DLLTOOL" >&6; }
6358 else
6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 printf "%s\n" "no" >&6; }
6361 fi
6362
6363
6364 fi
6365 if test -z "$ac_cv_prog_DLLTOOL"; then
6366 ac_ct_DLLTOOL=$DLLTOOL
6367 # Extract the first word of "dlltool", so it can be a program name with args.
6368 set dummy dlltool; ac_word=$2
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6370 printf %s "checking for $ac_word... " >&6; }
6371 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6372 then :
6373 printf %s "(cached) " >&6
6374 else $as_nop
6375 if test -n "$ac_ct_DLLTOOL"; then
6376 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381 IFS=$as_save_IFS
6382 case $as_dir in #(((
6383 '') as_dir=./ ;;
6384 */) ;;
6385 *) as_dir=$as_dir/ ;;
6386 esac
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6389 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6400 if test -n "$ac_ct_DLLTOOL"; then
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6402 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6403 else
6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 printf "%s\n" "no" >&6; }
6406 fi
6407
6408 if test "x$ac_ct_DLLTOOL" = x; then
6409 DLLTOOL="false"
6410 else
6411 case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415 ac_tool_warned=yes ;;
6416 esac
6417 DLLTOOL=$ac_ct_DLLTOOL
6418 fi
6419 else
6420 DLLTOOL="$ac_cv_prog_DLLTOOL"
6421 fi
6422
6423 test -z "$DLLTOOL" && DLLTOOL=dlltool
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6435 printf %s "checking how to associate runtime and link libraries... " >&6; }
6436 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6437 then :
6438 printf %s "(cached) " >&6
6439 else $as_nop
6440 lt_cv_sharedlib_from_linklib_cmd='unknown'
6441
6442 case $host_os in
6443 cygwin* | mingw* | pw32* | cegcc*)
6444 # two different shell functions defined in ltmain.sh;
6445 # decide which one to use based on capabilities of $DLLTOOL
6446 case `$DLLTOOL --help 2>&1` in
6447 *--identify-strict*)
6448 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6449 ;;
6450 *)
6451 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6452 ;;
6453 esac
6454 ;;
6455 *)
6456 # fallback: assume linklib IS sharedlib
6457 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6458 ;;
6459 esac
6460
6461 fi
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6463 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6464 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6465 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6466
6467
6468
6469
6470
6471
6472
6473
6474 if test -n "$ac_tool_prefix"; then
6475 for ac_prog in ar
6476 do
6477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6478 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6480 printf %s "checking for $ac_word... " >&6; }
6481 if test ${ac_cv_prog_AR+y}
6482 then :
6483 printf %s "(cached) " >&6
6484 else $as_nop
6485 if test -n "$AR"; then
6486 ac_cv_prog_AR="$AR" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491 IFS=$as_save_IFS
6492 case $as_dir in #(((
6493 '') as_dir=./ ;;
6494 */) ;;
6495 *) as_dir=$as_dir/ ;;
6496 esac
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503 done
6504 done
6505 IFS=$as_save_IFS
6506
6507 fi
6508 fi
6509 AR=$ac_cv_prog_AR
6510 if test -n "$AR"; then
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6512 printf "%s\n" "$AR" >&6; }
6513 else
6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 printf "%s\n" "no" >&6; }
6516 fi
6517
6518
6519 test -n "$AR" && break
6520 done
6521 fi
6522 if test -z "$AR"; then
6523 ac_ct_AR=$AR
6524 for ac_prog in ar
6525 do
6526 # Extract the first word of "$ac_prog", so it can be a program name with args.
6527 set dummy $ac_prog; ac_word=$2
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529 printf %s "checking for $ac_word... " >&6; }
6530 if test ${ac_cv_prog_ac_ct_AR+y}
6531 then :
6532 printf %s "(cached) " >&6
6533 else $as_nop
6534 if test -n "$ac_ct_AR"; then
6535 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540 IFS=$as_save_IFS
6541 case $as_dir in #(((
6542 '') as_dir=./ ;;
6543 */) ;;
6544 *) as_dir=$as_dir/ ;;
6545 esac
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6548 ac_cv_prog_ac_ct_AR="$ac_prog"
6549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6550 break 2
6551 fi
6552 done
6553 done
6554 IFS=$as_save_IFS
6555
6556 fi
6557 fi
6558 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6559 if test -n "$ac_ct_AR"; then
6560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6561 printf "%s\n" "$ac_ct_AR" >&6; }
6562 else
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 printf "%s\n" "no" >&6; }
6565 fi
6566
6567
6568 test -n "$ac_ct_AR" && break
6569 done
6570
6571 if test "x$ac_ct_AR" = x; then
6572 AR="false"
6573 else
6574 case $cross_compiling:$ac_tool_warned in
6575 yes:)
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578 ac_tool_warned=yes ;;
6579 esac
6580 AR=$ac_ct_AR
6581 fi
6582 fi
6583
6584 : ${AR=ar}
6585
6586
6587
6588
6589
6590
6591 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6592 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6593 # higher priority because thats what people were doing historically (setting
6594 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6595 # variable obsoleted/removed.
6596
6597 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6598 lt_ar_flags=$AR_FLAGS
6599
6600
6601
6602
6603
6604
6605 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6606 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6607
6608
6609
6610
6611
6612
6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6614 printf %s "checking for archiver @FILE support... " >&6; }
6615 if test ${lt_cv_ar_at_file+y}
6616 then :
6617 printf %s "(cached) " >&6
6618 else $as_nop
6619 lt_cv_ar_at_file=no
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622
6623 int
6624 main (void)
6625 {
6626
6627 ;
6628 return 0;
6629 }
6630 _ACEOF
6631 if ac_fn_c_try_compile "$LINENO"
6632 then :
6633 echo conftest.$ac_objext > conftest.lst
6634 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6636 (eval $lt_ar_try) 2>&5
6637 ac_status=$?
6638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639 test $ac_status = 0; }
6640 if test 0 -eq "$ac_status"; then
6641 # Ensure the archiver fails upon bogus file names.
6642 rm -f conftest.$ac_objext libconftest.a
6643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6644 (eval $lt_ar_try) 2>&5
6645 ac_status=$?
6646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6647 test $ac_status = 0; }
6648 if test 0 -ne "$ac_status"; then
6649 lt_cv_ar_at_file=@
6650 fi
6651 fi
6652 rm -f conftest.* libconftest.a
6653
6654 fi
6655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6656
6657 fi
6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6659 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6660
6661 if test no = "$lt_cv_ar_at_file"; then
6662 archiver_list_spec=
6663 else
6664 archiver_list_spec=$lt_cv_ar_at_file
6665 fi
6666
6667
6668
6669
6670
6671
6672
6673 if test -n "$ac_tool_prefix"; then
6674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6675 set dummy ${ac_tool_prefix}strip; ac_word=$2
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 printf %s "checking for $ac_word... " >&6; }
6678 if test ${ac_cv_prog_STRIP+y}
6679 then :
6680 printf %s "(cached) " >&6
6681 else $as_nop
6682 if test -n "$STRIP"; then
6683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6684 else
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688 IFS=$as_save_IFS
6689 case $as_dir in #(((
6690 '') as_dir=./ ;;
6691 */) ;;
6692 *) as_dir=$as_dir/ ;;
6693 esac
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6696 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 STRIP=$ac_cv_prog_STRIP
6707 if test -n "$STRIP"; then
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6709 printf "%s\n" "$STRIP" >&6; }
6710 else
6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712 printf "%s\n" "no" >&6; }
6713 fi
6714
6715
6716 fi
6717 if test -z "$ac_cv_prog_STRIP"; then
6718 ac_ct_STRIP=$STRIP
6719 # Extract the first word of "strip", so it can be a program name with args.
6720 set dummy strip; ac_word=$2
6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 printf %s "checking for $ac_word... " >&6; }
6723 if test ${ac_cv_prog_ac_ct_STRIP+y}
6724 then :
6725 printf %s "(cached) " >&6
6726 else $as_nop
6727 if test -n "$ac_ct_STRIP"; then
6728 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6729 else
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733 IFS=$as_save_IFS
6734 case $as_dir in #(((
6735 '') as_dir=./ ;;
6736 */) ;;
6737 *) as_dir=$as_dir/ ;;
6738 esac
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_ac_ct_STRIP="strip"
6742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6743 break 2
6744 fi
6745 done
6746 done
6747 IFS=$as_save_IFS
6748
6749 fi
6750 fi
6751 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6752 if test -n "$ac_ct_STRIP"; then
6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6754 printf "%s\n" "$ac_ct_STRIP" >&6; }
6755 else
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 printf "%s\n" "no" >&6; }
6758 fi
6759
6760 if test "x$ac_ct_STRIP" = x; then
6761 STRIP=":"
6762 else
6763 case $cross_compiling:$ac_tool_warned in
6764 yes:)
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6766 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6767 ac_tool_warned=yes ;;
6768 esac
6769 STRIP=$ac_ct_STRIP
6770 fi
6771 else
6772 STRIP="$ac_cv_prog_STRIP"
6773 fi
6774
6775 test -z "$STRIP" && STRIP=:
6776
6777
6778
6779
6780
6781
6782 if test -n "$ac_tool_prefix"; then
6783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6786 printf %s "checking for $ac_word... " >&6; }
6787 if test ${ac_cv_prog_RANLIB+y}
6788 then :
6789 printf %s "(cached) " >&6
6790 else $as_nop
6791 if test -n "$RANLIB"; then
6792 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797 IFS=$as_save_IFS
6798 case $as_dir in #(((
6799 '') as_dir=./ ;;
6800 */) ;;
6801 *) as_dir=$as_dir/ ;;
6802 esac
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6805 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6807 break 2
6808 fi
6809 done
6810 done
6811 IFS=$as_save_IFS
6812
6813 fi
6814 fi
6815 RANLIB=$ac_cv_prog_RANLIB
6816 if test -n "$RANLIB"; then
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6818 printf "%s\n" "$RANLIB" >&6; }
6819 else
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821 printf "%s\n" "no" >&6; }
6822 fi
6823
6824
6825 fi
6826 if test -z "$ac_cv_prog_RANLIB"; then
6827 ac_ct_RANLIB=$RANLIB
6828 # Extract the first word of "ranlib", so it can be a program name with args.
6829 set dummy ranlib; ac_word=$2
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 printf %s "checking for $ac_word... " >&6; }
6832 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6833 then :
6834 printf %s "(cached) " >&6
6835 else $as_nop
6836 if test -n "$ac_ct_RANLIB"; then
6837 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6838 else
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 for as_dir in $PATH
6841 do
6842 IFS=$as_save_IFS
6843 case $as_dir in #(((
6844 '') as_dir=./ ;;
6845 */) ;;
6846 *) as_dir=$as_dir/ ;;
6847 esac
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6850 ac_cv_prog_ac_ct_RANLIB="ranlib"
6851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6861 if test -n "$ac_ct_RANLIB"; then
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6863 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6864 else
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 printf "%s\n" "no" >&6; }
6867 fi
6868
6869 if test "x$ac_ct_RANLIB" = x; then
6870 RANLIB=":"
6871 else
6872 case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6877 esac
6878 RANLIB=$ac_ct_RANLIB
6879 fi
6880 else
6881 RANLIB="$ac_cv_prog_RANLIB"
6882 fi
6883
6884 test -z "$RANLIB" && RANLIB=:
6885
6886
6887
6888
6889
6890
6891 # Determine commands to create old-style static archives.
6892 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6893 old_postinstall_cmds='chmod 644 $oldlib'
6894 old_postuninstall_cmds=
6895
6896 if test -n "$RANLIB"; then
6897 case $host_os in
6898 bitrig* | openbsd*)
6899 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6900 ;;
6901 *)
6902 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6903 ;;
6904 esac
6905 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6906 fi
6907
6908 case $host_os in
6909 darwin*)
6910 lock_old_archive_extraction=yes ;;
6911 *)
6912 lock_old_archive_extraction=no ;;
6913 esac
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953 # If no C compiler was specified, use CC.
6954 LTCC=${LTCC-"$CC"}
6955
6956 # If no C compiler flags were specified, use CFLAGS.
6957 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6958
6959 # Allow CC to be a program name with arguments.
6960 compiler=$CC
6961
6962
6963 # Check for command to grab the raw symbol name followed by C symbol from nm.
6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6965 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6966 if test ${lt_cv_sys_global_symbol_pipe+y}
6967 then :
6968 printf %s "(cached) " >&6
6969 else $as_nop
6970
6971 # These are sane defaults that work on at least a few old systems.
6972 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6973
6974 # Character class describing NM global symbol codes.
6975 symcode='[BCDEGRST]'
6976
6977 # Regexp to match symbols that can be accessed directly from C.
6978 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6979
6980 # Define system-specific variables.
6981 case $host_os in
6982 aix*)
6983 symcode='[BCDT]'
6984 ;;
6985 cygwin* | mingw* | pw32* | cegcc*)
6986 symcode='[ABCDGISTW]'
6987 ;;
6988 hpux*)
6989 if test ia64 = "$host_cpu"; then
6990 symcode='[ABCDEGRST]'
6991 fi
6992 ;;
6993 irix* | nonstopux*)
6994 symcode='[BCDEGRST]'
6995 ;;
6996 osf*)
6997 symcode='[BCDEGQRST]'
6998 ;;
6999 solaris*)
7000 symcode='[BDRT]'
7001 ;;
7002 sco3.2v5*)
7003 symcode='[DT]'
7004 ;;
7005 sysv4.2uw2*)
7006 symcode='[DT]'
7007 ;;
7008 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7009 symcode='[ABDT]'
7010 ;;
7011 sysv4)
7012 symcode='[DFNSTU]'
7013 ;;
7014 esac
7015
7016 # If we're using GNU nm, then use its standard symbol codes.
7017 case `$NM -V 2>&1` in
7018 *GNU* | *'with BFD'*)
7019 symcode='[ABCDGIRSTW]' ;;
7020 esac
7021
7022 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7023 # Gets list of data symbols to import.
7024 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7025 # Adjust the below global symbol transforms to fixup imported variables.
7026 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7027 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7028 lt_c_name_lib_hook="\
7029 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7030 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7031 else
7032 # Disable hooks by default.
7033 lt_cv_sys_global_symbol_to_import=
7034 lt_cdecl_hook=
7035 lt_c_name_hook=
7036 lt_c_name_lib_hook=
7037 fi
7038
7039 # Transform an extracted symbol line into a proper C declaration.
7040 # Some systems (esp. on ia64) link data and code symbols differently,
7041 # so use this general approach.
7042 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7043 $lt_cdecl_hook\
7044 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7045 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7046
7047 # Transform an extracted symbol line into symbol name and symbol address
7048 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7049 $lt_c_name_hook\
7050 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7051 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7052
7053 # Transform an extracted symbol line into symbol name with lib prefix and
7054 # symbol address.
7055 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7056 $lt_c_name_lib_hook\
7057 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7058 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7059 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7060
7061 # Handle CRLF in mingw tool chain
7062 opt_cr=
7063 case $build_os in
7064 mingw*)
7065 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7066 ;;
7067 esac
7068
7069 # Try without a prefix underscore, then with it.
7070 for ac_symprfx in "" "_"; do
7071
7072 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7073 symxfrm="\\1 $ac_symprfx\\2 \\2"
7074
7075 # Write the raw and C identifiers.
7076 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7077 # Fake it for dumpbin and say T for any non-static function,
7078 # D for any global variable and I for any imported variable.
7079 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7080 # which start with @ or ?.
7081 lt_cv_sys_global_symbol_pipe="$AWK '"\
7082 " {last_section=section; section=\$ 3};"\
7083 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7084 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7085 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7086 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7087 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7088 " \$ 0!~/External *\|/{next};"\
7089 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7090 " {if(hide[section]) next};"\
7091 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7092 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7093 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7094 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7095 " ' prfx=^$ac_symprfx"
7096 else
7097 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7098 fi
7099 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7100
7101 # Check to see that the pipe works correctly.
7102 pipe_works=no
7103
7104 rm -f conftest*
7105 cat > conftest.$ac_ext <<_LT_EOF
7106 #ifdef __cplusplus
7107 extern "C" {
7108 #endif
7109 char nm_test_var;
7110 void nm_test_func(void);
7111 void nm_test_func(void){}
7112 #ifdef __cplusplus
7113 }
7114 #endif
7115 int main(){nm_test_var='a';nm_test_func();return(0);}
7116 _LT_EOF
7117
7118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7119 (eval $ac_compile) 2>&5
7120 ac_status=$?
7121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7122 test $ac_status = 0; }; then
7123 # Now try to grab the symbols.
7124 nlist=conftest.nm
7125 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7126 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7127 # Try sorting and uniquifying the output.
7128 if sort "$nlist" | uniq > "$nlist"T; then
7129 mv -f "$nlist"T "$nlist"
7130 else
7131 rm -f "$nlist"T
7132 fi
7133
7134 # Make sure that we snagged all the symbols we need.
7135 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7136 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7137 cat <<_LT_EOF > conftest.$ac_ext
7138 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7139 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7140 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7141 relocations are performed -- see ld's documentation on pseudo-relocs. */
7142 # define LT_DLSYM_CONST
7143 #elif defined __osf__
7144 /* This system does not cope well with relocations in const data. */
7145 # define LT_DLSYM_CONST
7146 #else
7147 # define LT_DLSYM_CONST const
7148 #endif
7149
7150 #ifdef __cplusplus
7151 extern "C" {
7152 #endif
7153
7154 _LT_EOF
7155 # Now generate the symbol file.
7156 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7157
7158 cat <<_LT_EOF >> conftest.$ac_ext
7159
7160 /* The mapping between symbol names and symbols. */
7161 LT_DLSYM_CONST struct {
7162 const char *name;
7163 void *address;
7164 }
7165 lt__PROGRAM__LTX_preloaded_symbols[] =
7166 {
7167 { "@PROGRAM@", (void *) 0 },
7168 _LT_EOF
7169 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7170 cat <<\_LT_EOF >> conftest.$ac_ext
7171 {0, (void *) 0}
7172 };
7173
7174 /* This works around a problem in FreeBSD linker */
7175 #ifdef FREEBSD_WORKAROUND
7176 static const void *lt_preloaded_setup() {
7177 return lt__PROGRAM__LTX_preloaded_symbols;
7178 }
7179 #endif
7180
7181 #ifdef __cplusplus
7182 }
7183 #endif
7184 _LT_EOF
7185 # Now try linking the two files.
7186 mv conftest.$ac_objext conftstm.$ac_objext
7187 lt_globsym_save_LIBS=$LIBS
7188 lt_globsym_save_CFLAGS=$CFLAGS
7189 LIBS=conftstm.$ac_objext
7190 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7192 (eval $ac_link) 2>&5
7193 ac_status=$?
7194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7195 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7196 pipe_works=yes
7197 fi
7198 LIBS=$lt_globsym_save_LIBS
7199 CFLAGS=$lt_globsym_save_CFLAGS
7200 else
7201 echo "cannot find nm_test_func in $nlist" >&5
7202 fi
7203 else
7204 echo "cannot find nm_test_var in $nlist" >&5
7205 fi
7206 else
7207 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7208 fi
7209 else
7210 echo "$progname: failed program was:" >&5
7211 cat conftest.$ac_ext >&5
7212 fi
7213 rm -rf conftest* conftst*
7214
7215 # Do not use the global_symbol_pipe unless it works.
7216 if test yes = "$pipe_works"; then
7217 break
7218 else
7219 lt_cv_sys_global_symbol_pipe=
7220 fi
7221 done
7222
7223 fi
7224
7225 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7226 lt_cv_sys_global_symbol_to_cdecl=
7227 fi
7228 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7230 printf "%s\n" "failed" >&6; }
7231 else
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7233 printf "%s\n" "ok" >&6; }
7234 fi
7235
7236 # Response file support.
7237 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7238 nm_file_list_spec='@'
7239 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7240 nm_file_list_spec='@'
7241 fi
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7280 printf %s "checking for sysroot... " >&6; }
7281
7282 # Check whether --with-sysroot was given.
7283 if test ${with_sysroot+y}
7284 then :
7285 withval=$with_sysroot;
7286 else $as_nop
7287 with_sysroot=no
7288 fi
7289
7290
7291 lt_sysroot=
7292 case $with_sysroot in #(
7293 yes)
7294 if test yes = "$GCC"; then
7295 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7296 fi
7297 ;; #(
7298 /*)
7299 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7300 ;; #(
7301 no|'')
7302 ;; #(
7303 *)
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7305 printf "%s\n" "$with_sysroot" >&6; }
7306 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7307 ;;
7308 esac
7309
7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7311 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7312
7313
7314
7315
7316
7317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7318 printf %s "checking for a working dd... " >&6; }
7319 if test ${ac_cv_path_lt_DD+y}
7320 then :
7321 printf %s "(cached) " >&6
7322 else $as_nop
7323 printf 0123456789abcdef0123456789abcdef >conftest.i
7324 cat conftest.i conftest.i >conftest2.i
7325 : ${lt_DD:=$DD}
7326 if test -z "$lt_DD"; then
7327 ac_path_lt_DD_found=false
7328 # Loop through the user's path and test for each of PROGNAME-LIST
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330 for as_dir in $PATH
7331 do
7332 IFS=$as_save_IFS
7333 case $as_dir in #(((
7334 '') as_dir=./ ;;
7335 */) ;;
7336 *) as_dir=$as_dir/ ;;
7337 esac
7338 for ac_prog in dd
7339 do
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7342 as_fn_executable_p "$ac_path_lt_DD" || continue
7343 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7344 cmp -s conftest.i conftest.out \
7345 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7346 fi
7347 $ac_path_lt_DD_found && break 3
7348 done
7349 done
7350 done
7351 IFS=$as_save_IFS
7352 if test -z "$ac_cv_path_lt_DD"; then
7353 :
7354 fi
7355 else
7356 ac_cv_path_lt_DD=$lt_DD
7357 fi
7358
7359 rm -f conftest.i conftest2.i conftest.out
7360 fi
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7362 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7363
7364
7365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7366 printf %s "checking how to truncate binary pipes... " >&6; }
7367 if test ${lt_cv_truncate_bin+y}
7368 then :
7369 printf %s "(cached) " >&6
7370 else $as_nop
7371 printf 0123456789abcdef0123456789abcdef >conftest.i
7372 cat conftest.i conftest.i >conftest2.i
7373 lt_cv_truncate_bin=
7374 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7375 cmp -s conftest.i conftest.out \
7376 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7377 fi
7378 rm -f conftest.i conftest2.i conftest.out
7379 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7380 fi
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7382 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7383
7384
7385
7386
7387
7388
7389
7390 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7391 func_cc_basename ()
7392 {
7393 for cc_temp in $*""; do
7394 case $cc_temp in
7395 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7396 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7397 \-*) ;;
7398 *) break;;
7399 esac
7400 done
7401 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7402 }
7403
7404 # Check whether --enable-libtool-lock was given.
7405 if test ${enable_libtool_lock+y}
7406 then :
7407 enableval=$enable_libtool_lock;
7408 fi
7409
7410 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7411
7412 # Some flags need to be propagated to the compiler or linker for good
7413 # libtool support.
7414 case $host in
7415 ia64-*-hpux*)
7416 # Find out what ABI is being produced by ac_compile, and set mode
7417 # options accordingly.
7418 echo 'int i;' > conftest.$ac_ext
7419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7420 (eval $ac_compile) 2>&5
7421 ac_status=$?
7422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7423 test $ac_status = 0; }; then
7424 case `$FILECMD conftest.$ac_objext` in
7425 *ELF-32*)
7426 HPUX_IA64_MODE=32
7427 ;;
7428 *ELF-64*)
7429 HPUX_IA64_MODE=64
7430 ;;
7431 esac
7432 fi
7433 rm -rf conftest*
7434 ;;
7435 *-*-irix6*)
7436 # Find out what ABI is being produced by ac_compile, and set linker
7437 # options accordingly.
7438 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7440 (eval $ac_compile) 2>&5
7441 ac_status=$?
7442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7443 test $ac_status = 0; }; then
7444 if test yes = "$lt_cv_prog_gnu_ld"; then
7445 case `$FILECMD conftest.$ac_objext` in
7446 *32-bit*)
7447 LD="${LD-ld} -melf32bsmip"
7448 ;;
7449 *N32*)
7450 LD="${LD-ld} -melf32bmipn32"
7451 ;;
7452 *64-bit*)
7453 LD="${LD-ld} -melf64bmip"
7454 ;;
7455 esac
7456 else
7457 case `$FILECMD conftest.$ac_objext` in
7458 *32-bit*)
7459 LD="${LD-ld} -32"
7460 ;;
7461 *N32*)
7462 LD="${LD-ld} -n32"
7463 ;;
7464 *64-bit*)
7465 LD="${LD-ld} -64"
7466 ;;
7467 esac
7468 fi
7469 fi
7470 rm -rf conftest*
7471 ;;
7472
7473 mips64*-*linux*)
7474 # Find out what ABI is being produced by ac_compile, and set linker
7475 # options accordingly.
7476 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7478 (eval $ac_compile) 2>&5
7479 ac_status=$?
7480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7481 test $ac_status = 0; }; then
7482 emul=elf
7483 case `$FILECMD conftest.$ac_objext` in
7484 *32-bit*)
7485 emul="${emul}32"
7486 ;;
7487 *64-bit*)
7488 emul="${emul}64"
7489 ;;
7490 esac
7491 case `$FILECMD conftest.$ac_objext` in
7492 *MSB*)
7493 emul="${emul}btsmip"
7494 ;;
7495 *LSB*)
7496 emul="${emul}ltsmip"
7497 ;;
7498 esac
7499 case `$FILECMD conftest.$ac_objext` in
7500 *N32*)
7501 emul="${emul}n32"
7502 ;;
7503 esac
7504 LD="${LD-ld} -m $emul"
7505 fi
7506 rm -rf conftest*
7507 ;;
7508
7509 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7510 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7511 # Find out what ABI is being produced by ac_compile, and set linker
7512 # options accordingly. Note that the listed cases only cover the
7513 # situations where additional linker options are needed (such as when
7514 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7515 # vice versa); the common cases where no linker options are needed do
7516 # not appear in the list.
7517 echo 'int i;' > conftest.$ac_ext
7518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7519 (eval $ac_compile) 2>&5
7520 ac_status=$?
7521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; then
7523 case `$FILECMD conftest.o` in
7524 *32-bit*)
7525 case $host in
7526 x86_64-*kfreebsd*-gnu)
7527 LD="${LD-ld} -m elf_i386_fbsd"
7528 ;;
7529 x86_64-*linux*)
7530 case `$FILECMD conftest.o` in
7531 *x86-64*)
7532 LD="${LD-ld} -m elf32_x86_64"
7533 ;;
7534 *)
7535 LD="${LD-ld} -m elf_i386"
7536 ;;
7537 esac
7538 ;;
7539 powerpc64le-*linux*)
7540 LD="${LD-ld} -m elf32lppclinux"
7541 ;;
7542 powerpc64-*linux*)
7543 LD="${LD-ld} -m elf32ppclinux"
7544 ;;
7545 s390x-*linux*)
7546 LD="${LD-ld} -m elf_s390"
7547 ;;
7548 sparc64-*linux*)
7549 LD="${LD-ld} -m elf32_sparc"
7550 ;;
7551 esac
7552 ;;
7553 *64-bit*)
7554 case $host in
7555 x86_64-*kfreebsd*-gnu)
7556 LD="${LD-ld} -m elf_x86_64_fbsd"
7557 ;;
7558 x86_64-*linux*)
7559 LD="${LD-ld} -m elf_x86_64"
7560 ;;
7561 powerpcle-*linux*)
7562 LD="${LD-ld} -m elf64lppc"
7563 ;;
7564 powerpc-*linux*)
7565 LD="${LD-ld} -m elf64ppc"
7566 ;;
7567 s390*-*linux*|s390*-*tpf*)
7568 LD="${LD-ld} -m elf64_s390"
7569 ;;
7570 sparc*-*linux*)
7571 LD="${LD-ld} -m elf64_sparc"
7572 ;;
7573 esac
7574 ;;
7575 esac
7576 fi
7577 rm -rf conftest*
7578 ;;
7579
7580 *-*-sco3.2v5*)
7581 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7582 SAVE_CFLAGS=$CFLAGS
7583 CFLAGS="$CFLAGS -belf"
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7585 printf %s "checking whether the C compiler needs -belf... " >&6; }
7586 if test ${lt_cv_cc_needs_belf+y}
7587 then :
7588 printf %s "(cached) " >&6
7589 else $as_nop
7590 ac_ext=c
7591 ac_cpp='$CPP $CPPFLAGS'
7592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7595
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598
7599 int
7600 main (void)
7601 {
7602
7603 ;
7604 return 0;
7605 }
7606 _ACEOF
7607 if ac_fn_c_try_link "$LINENO"
7608 then :
7609 lt_cv_cc_needs_belf=yes
7610 else $as_nop
7611 lt_cv_cc_needs_belf=no
7612 fi
7613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7614 conftest$ac_exeext conftest.$ac_ext
7615 ac_ext=c
7616 ac_cpp='$CPP $CPPFLAGS'
7617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7620
7621 fi
7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7623 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7624 if test yes != "$lt_cv_cc_needs_belf"; then
7625 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7626 CFLAGS=$SAVE_CFLAGS
7627 fi
7628 ;;
7629 *-*solaris*)
7630 # Find out what ABI is being produced by ac_compile, and set linker
7631 # options accordingly.
7632 echo 'int i;' > conftest.$ac_ext
7633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7634 (eval $ac_compile) 2>&5
7635 ac_status=$?
7636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7637 test $ac_status = 0; }; then
7638 case `$FILECMD conftest.o` in
7639 *64-bit*)
7640 case $lt_cv_prog_gnu_ld in
7641 yes*)
7642 case $host in
7643 i?86-*-solaris*|x86_64-*-solaris*)
7644 LD="${LD-ld} -m elf_x86_64"
7645 ;;
7646 sparc*-*-solaris*)
7647 LD="${LD-ld} -m elf64_sparc"
7648 ;;
7649 esac
7650 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7651 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7652 LD=${LD-ld}_sol2
7653 fi
7654 ;;
7655 *)
7656 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7657 LD="${LD-ld} -64"
7658 fi
7659 ;;
7660 esac
7661 ;;
7662 esac
7663 fi
7664 rm -rf conftest*
7665 ;;
7666 esac
7667
7668 need_locks=$enable_libtool_lock
7669
7670 if test -n "$ac_tool_prefix"; then
7671 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7672 set dummy ${ac_tool_prefix}mt; ac_word=$2
7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 printf %s "checking for $ac_word... " >&6; }
7675 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7676 then :
7677 printf %s "(cached) " >&6
7678 else $as_nop
7679 if test -n "$MANIFEST_TOOL"; then
7680 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7681 else
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685 IFS=$as_save_IFS
7686 case $as_dir in #(((
7687 '') as_dir=./ ;;
7688 */) ;;
7689 *) as_dir=$as_dir/ ;;
7690 esac
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7693 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7695 break 2
7696 fi
7697 done
7698 done
7699 IFS=$as_save_IFS
7700
7701 fi
7702 fi
7703 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7704 if test -n "$MANIFEST_TOOL"; then
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7706 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7707 else
7708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 printf "%s\n" "no" >&6; }
7710 fi
7711
7712
7713 fi
7714 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7715 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7716 # Extract the first word of "mt", so it can be a program name with args.
7717 set dummy mt; ac_word=$2
7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 printf %s "checking for $ac_word... " >&6; }
7720 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7721 then :
7722 printf %s "(cached) " >&6
7723 else $as_nop
7724 if test -n "$ac_ct_MANIFEST_TOOL"; then
7725 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730 IFS=$as_save_IFS
7731 case $as_dir in #(((
7732 '') as_dir=./ ;;
7733 */) ;;
7734 *) as_dir=$as_dir/ ;;
7735 esac
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7738 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7740 break 2
7741 fi
7742 done
7743 done
7744 IFS=$as_save_IFS
7745
7746 fi
7747 fi
7748 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7749 if test -n "$ac_ct_MANIFEST_TOOL"; then
7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7751 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7752 else
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 printf "%s\n" "no" >&6; }
7755 fi
7756
7757 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7758 MANIFEST_TOOL=":"
7759 else
7760 case $cross_compiling:$ac_tool_warned in
7761 yes:)
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7763 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7764 ac_tool_warned=yes ;;
7765 esac
7766 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7767 fi
7768 else
7769 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7770 fi
7771
7772 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7774 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7775 if test ${lt_cv_path_mainfest_tool+y}
7776 then :
7777 printf %s "(cached) " >&6
7778 else $as_nop
7779 lt_cv_path_mainfest_tool=no
7780 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7781 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7782 cat conftest.err >&5
7783 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7784 lt_cv_path_mainfest_tool=yes
7785 fi
7786 rm -f conftest*
7787 fi
7788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7789 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7790 if test yes != "$lt_cv_path_mainfest_tool"; then
7791 MANIFEST_TOOL=:
7792 fi
7793
7794
7795
7796
7797
7798
7799 case $host_os in
7800 rhapsody* | darwin*)
7801 if test -n "$ac_tool_prefix"; then
7802 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7803 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 printf %s "checking for $ac_word... " >&6; }
7806 if test ${ac_cv_prog_DSYMUTIL+y}
7807 then :
7808 printf %s "(cached) " >&6
7809 else $as_nop
7810 if test -n "$DSYMUTIL"; then
7811 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816 IFS=$as_save_IFS
7817 case $as_dir in #(((
7818 '') as_dir=./ ;;
7819 */) ;;
7820 *) as_dir=$as_dir/ ;;
7821 esac
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7824 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7826 break 2
7827 fi
7828 done
7829 done
7830 IFS=$as_save_IFS
7831
7832 fi
7833 fi
7834 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7835 if test -n "$DSYMUTIL"; then
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7837 printf "%s\n" "$DSYMUTIL" >&6; }
7838 else
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 printf "%s\n" "no" >&6; }
7841 fi
7842
7843
7844 fi
7845 if test -z "$ac_cv_prog_DSYMUTIL"; then
7846 ac_ct_DSYMUTIL=$DSYMUTIL
7847 # Extract the first word of "dsymutil", so it can be a program name with args.
7848 set dummy dsymutil; ac_word=$2
7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 printf %s "checking for $ac_word... " >&6; }
7851 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7852 then :
7853 printf %s "(cached) " >&6
7854 else $as_nop
7855 if test -n "$ac_ct_DSYMUTIL"; then
7856 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7857 else
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861 IFS=$as_save_IFS
7862 case $as_dir in #(((
7863 '') as_dir=./ ;;
7864 */) ;;
7865 *) as_dir=$as_dir/ ;;
7866 esac
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7869 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7871 break 2
7872 fi
7873 done
7874 done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7880 if test -n "$ac_ct_DSYMUTIL"; then
7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7882 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7883 else
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 printf "%s\n" "no" >&6; }
7886 fi
7887
7888 if test "x$ac_ct_DSYMUTIL" = x; then
7889 DSYMUTIL=":"
7890 else
7891 case $cross_compiling:$ac_tool_warned in
7892 yes:)
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7894 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895 ac_tool_warned=yes ;;
7896 esac
7897 DSYMUTIL=$ac_ct_DSYMUTIL
7898 fi
7899 else
7900 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7901 fi
7902
7903 if test -n "$ac_tool_prefix"; then
7904 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7905 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 printf %s "checking for $ac_word... " >&6; }
7908 if test ${ac_cv_prog_NMEDIT+y}
7909 then :
7910 printf %s "(cached) " >&6
7911 else $as_nop
7912 if test -n "$NMEDIT"; then
7913 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7914 else
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7917 do
7918 IFS=$as_save_IFS
7919 case $as_dir in #(((
7920 '') as_dir=./ ;;
7921 */) ;;
7922 *) as_dir=$as_dir/ ;;
7923 esac
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7926 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7928 break 2
7929 fi
7930 done
7931 done
7932 IFS=$as_save_IFS
7933
7934 fi
7935 fi
7936 NMEDIT=$ac_cv_prog_NMEDIT
7937 if test -n "$NMEDIT"; then
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7939 printf "%s\n" "$NMEDIT" >&6; }
7940 else
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 printf "%s\n" "no" >&6; }
7943 fi
7944
7945
7946 fi
7947 if test -z "$ac_cv_prog_NMEDIT"; then
7948 ac_ct_NMEDIT=$NMEDIT
7949 # Extract the first word of "nmedit", so it can be a program name with args.
7950 set dummy nmedit; ac_word=$2
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952 printf %s "checking for $ac_word... " >&6; }
7953 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7954 then :
7955 printf %s "(cached) " >&6
7956 else $as_nop
7957 if test -n "$ac_ct_NMEDIT"; then
7958 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963 IFS=$as_save_IFS
7964 case $as_dir in #(((
7965 '') as_dir=./ ;;
7966 */) ;;
7967 *) as_dir=$as_dir/ ;;
7968 esac
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7971 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7973 break 2
7974 fi
7975 done
7976 done
7977 IFS=$as_save_IFS
7978
7979 fi
7980 fi
7981 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7982 if test -n "$ac_ct_NMEDIT"; then
7983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7984 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7985 else
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987 printf "%s\n" "no" >&6; }
7988 fi
7989
7990 if test "x$ac_ct_NMEDIT" = x; then
7991 NMEDIT=":"
7992 else
7993 case $cross_compiling:$ac_tool_warned in
7994 yes:)
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7996 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7997 ac_tool_warned=yes ;;
7998 esac
7999 NMEDIT=$ac_ct_NMEDIT
8000 fi
8001 else
8002 NMEDIT="$ac_cv_prog_NMEDIT"
8003 fi
8004
8005 if test -n "$ac_tool_prefix"; then
8006 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8007 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 printf %s "checking for $ac_word... " >&6; }
8010 if test ${ac_cv_prog_LIPO+y}
8011 then :
8012 printf %s "(cached) " >&6
8013 else $as_nop
8014 if test -n "$LIPO"; then
8015 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8016 else
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8019 do
8020 IFS=$as_save_IFS
8021 case $as_dir in #(((
8022 '') as_dir=./ ;;
8023 */) ;;
8024 *) as_dir=$as_dir/ ;;
8025 esac
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8028 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8030 break 2
8031 fi
8032 done
8033 done
8034 IFS=$as_save_IFS
8035
8036 fi
8037 fi
8038 LIPO=$ac_cv_prog_LIPO
8039 if test -n "$LIPO"; then
8040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8041 printf "%s\n" "$LIPO" >&6; }
8042 else
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 printf "%s\n" "no" >&6; }
8045 fi
8046
8047
8048 fi
8049 if test -z "$ac_cv_prog_LIPO"; then
8050 ac_ct_LIPO=$LIPO
8051 # Extract the first word of "lipo", so it can be a program name with args.
8052 set dummy lipo; ac_word=$2
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 printf %s "checking for $ac_word... " >&6; }
8055 if test ${ac_cv_prog_ac_ct_LIPO+y}
8056 then :
8057 printf %s "(cached) " >&6
8058 else $as_nop
8059 if test -n "$ac_ct_LIPO"; then
8060 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8061 else
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8064 do
8065 IFS=$as_save_IFS
8066 case $as_dir in #(((
8067 '') as_dir=./ ;;
8068 */) ;;
8069 *) as_dir=$as_dir/ ;;
8070 esac
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8073 ac_cv_prog_ac_ct_LIPO="lipo"
8074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8075 break 2
8076 fi
8077 done
8078 done
8079 IFS=$as_save_IFS
8080
8081 fi
8082 fi
8083 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8084 if test -n "$ac_ct_LIPO"; then
8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8086 printf "%s\n" "$ac_ct_LIPO" >&6; }
8087 else
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 printf "%s\n" "no" >&6; }
8090 fi
8091
8092 if test "x$ac_ct_LIPO" = x; then
8093 LIPO=":"
8094 else
8095 case $cross_compiling:$ac_tool_warned in
8096 yes:)
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8098 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8099 ac_tool_warned=yes ;;
8100 esac
8101 LIPO=$ac_ct_LIPO
8102 fi
8103 else
8104 LIPO="$ac_cv_prog_LIPO"
8105 fi
8106
8107 if test -n "$ac_tool_prefix"; then
8108 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8109 set dummy ${ac_tool_prefix}otool; ac_word=$2
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111 printf %s "checking for $ac_word... " >&6; }
8112 if test ${ac_cv_prog_OTOOL+y}
8113 then :
8114 printf %s "(cached) " >&6
8115 else $as_nop
8116 if test -n "$OTOOL"; then
8117 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8118 else
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8121 do
8122 IFS=$as_save_IFS
8123 case $as_dir in #(((
8124 '') as_dir=./ ;;
8125 */) ;;
8126 *) as_dir=$as_dir/ ;;
8127 esac
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8130 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8132 break 2
8133 fi
8134 done
8135 done
8136 IFS=$as_save_IFS
8137
8138 fi
8139 fi
8140 OTOOL=$ac_cv_prog_OTOOL
8141 if test -n "$OTOOL"; then
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8143 printf "%s\n" "$OTOOL" >&6; }
8144 else
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 printf "%s\n" "no" >&6; }
8147 fi
8148
8149
8150 fi
8151 if test -z "$ac_cv_prog_OTOOL"; then
8152 ac_ct_OTOOL=$OTOOL
8153 # Extract the first word of "otool", so it can be a program name with args.
8154 set dummy otool; ac_word=$2
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 printf %s "checking for $ac_word... " >&6; }
8157 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8158 then :
8159 printf %s "(cached) " >&6
8160 else $as_nop
8161 if test -n "$ac_ct_OTOOL"; then
8162 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8163 else
8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 for as_dir in $PATH
8166 do
8167 IFS=$as_save_IFS
8168 case $as_dir in #(((
8169 '') as_dir=./ ;;
8170 */) ;;
8171 *) as_dir=$as_dir/ ;;
8172 esac
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8175 ac_cv_prog_ac_ct_OTOOL="otool"
8176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8177 break 2
8178 fi
8179 done
8180 done
8181 IFS=$as_save_IFS
8182
8183 fi
8184 fi
8185 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8186 if test -n "$ac_ct_OTOOL"; then
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8188 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8189 else
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 printf "%s\n" "no" >&6; }
8192 fi
8193
8194 if test "x$ac_ct_OTOOL" = x; then
8195 OTOOL=":"
8196 else
8197 case $cross_compiling:$ac_tool_warned in
8198 yes:)
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8200 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8201 ac_tool_warned=yes ;;
8202 esac
8203 OTOOL=$ac_ct_OTOOL
8204 fi
8205 else
8206 OTOOL="$ac_cv_prog_OTOOL"
8207 fi
8208
8209 if test -n "$ac_tool_prefix"; then
8210 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8211 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 printf %s "checking for $ac_word... " >&6; }
8214 if test ${ac_cv_prog_OTOOL64+y}
8215 then :
8216 printf %s "(cached) " >&6
8217 else $as_nop
8218 if test -n "$OTOOL64"; then
8219 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8220 else
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222 for as_dir in $PATH
8223 do
8224 IFS=$as_save_IFS
8225 case $as_dir in #(((
8226 '') as_dir=./ ;;
8227 */) ;;
8228 *) as_dir=$as_dir/ ;;
8229 esac
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8234 break 2
8235 fi
8236 done
8237 done
8238 IFS=$as_save_IFS
8239
8240 fi
8241 fi
8242 OTOOL64=$ac_cv_prog_OTOOL64
8243 if test -n "$OTOOL64"; then
8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8245 printf "%s\n" "$OTOOL64" >&6; }
8246 else
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 printf "%s\n" "no" >&6; }
8249 fi
8250
8251
8252 fi
8253 if test -z "$ac_cv_prog_OTOOL64"; then
8254 ac_ct_OTOOL64=$OTOOL64
8255 # Extract the first word of "otool64", so it can be a program name with args.
8256 set dummy otool64; ac_word=$2
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 printf %s "checking for $ac_word... " >&6; }
8259 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8260 then :
8261 printf %s "(cached) " >&6
8262 else $as_nop
8263 if test -n "$ac_ct_OTOOL64"; then
8264 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8268 do
8269 IFS=$as_save_IFS
8270 case $as_dir in #(((
8271 '') as_dir=./ ;;
8272 */) ;;
8273 *) as_dir=$as_dir/ ;;
8274 esac
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8277 ac_cv_prog_ac_ct_OTOOL64="otool64"
8278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8279 break 2
8280 fi
8281 done
8282 done
8283 IFS=$as_save_IFS
8284
8285 fi
8286 fi
8287 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8288 if test -n "$ac_ct_OTOOL64"; then
8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8290 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8291 else
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 printf "%s\n" "no" >&6; }
8294 fi
8295
8296 if test "x$ac_ct_OTOOL64" = x; then
8297 OTOOL64=":"
8298 else
8299 case $cross_compiling:$ac_tool_warned in
8300 yes:)
8301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8302 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8303 ac_tool_warned=yes ;;
8304 esac
8305 OTOOL64=$ac_ct_OTOOL64
8306 fi
8307 else
8308 OTOOL64="$ac_cv_prog_OTOOL64"
8309 fi
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8338 printf %s "checking for -single_module linker flag... " >&6; }
8339 if test ${lt_cv_apple_cc_single_mod+y}
8340 then :
8341 printf %s "(cached) " >&6
8342 else $as_nop
8343 lt_cv_apple_cc_single_mod=no
8344 if test -z "$LT_MULTI_MODULE"; then
8345 # By default we will add the -single_module flag. You can override
8346 # by either setting the environment variable LT_MULTI_MODULE
8347 # non-empty at configure time, or by adding -multi_module to the
8348 # link flags.
8349 rm -rf libconftest.dylib*
8350 echo "int foo(void){return 1;}" > conftest.c
8351 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8352 -dynamiclib -Wl,-single_module conftest.c" >&5
8353 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8354 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8355 _lt_result=$?
8356 # If there is a non-empty error log, and "single_module"
8357 # appears in it, assume the flag caused a linker warning
8358 if test -s conftest.err && $GREP single_module conftest.err; then
8359 cat conftest.err >&5
8360 # Otherwise, if the output was created with a 0 exit code from
8361 # the compiler, it worked.
8362 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8363 lt_cv_apple_cc_single_mod=yes
8364 else
8365 cat conftest.err >&5
8366 fi
8367 rm -rf libconftest.dylib*
8368 rm -f conftest.*
8369 fi
8370 fi
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8372 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8373
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8375 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8376 if test ${lt_cv_ld_exported_symbols_list+y}
8377 then :
8378 printf %s "(cached) " >&6
8379 else $as_nop
8380 lt_cv_ld_exported_symbols_list=no
8381 save_LDFLAGS=$LDFLAGS
8382 echo "_main" > conftest.sym
8383 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386
8387 int
8388 main (void)
8389 {
8390
8391 ;
8392 return 0;
8393 }
8394 _ACEOF
8395 if ac_fn_c_try_link "$LINENO"
8396 then :
8397 lt_cv_ld_exported_symbols_list=yes
8398 else $as_nop
8399 lt_cv_ld_exported_symbols_list=no
8400 fi
8401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8402 conftest$ac_exeext conftest.$ac_ext
8403 LDFLAGS=$save_LDFLAGS
8404
8405 fi
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8407 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8408
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8410 printf %s "checking for -force_load linker flag... " >&6; }
8411 if test ${lt_cv_ld_force_load+y}
8412 then :
8413 printf %s "(cached) " >&6
8414 else $as_nop
8415 lt_cv_ld_force_load=no
8416 cat > conftest.c << _LT_EOF
8417 int forced_loaded() { return 2;}
8418 _LT_EOF
8419 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8420 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8421 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8422 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8423 echo "$RANLIB libconftest.a" >&5
8424 $RANLIB libconftest.a 2>&5
8425 cat > conftest.c << _LT_EOF
8426 int main() { return 0;}
8427 _LT_EOF
8428 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8429 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8430 _lt_result=$?
8431 if test -s conftest.err && $GREP force_load conftest.err; then
8432 cat conftest.err >&5
8433 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8434 lt_cv_ld_force_load=yes
8435 else
8436 cat conftest.err >&5
8437 fi
8438 rm -f conftest.err libconftest.a conftest conftest.c
8439 rm -rf conftest.dSYM
8440
8441 fi
8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8443 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8444 case $host_os in
8445 rhapsody* | darwin1.[012])
8446 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8447 darwin1.*)
8448 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8449 darwin*)
8450 case $MACOSX_DEPLOYMENT_TARGET,$host in
8451 10.[012],*|,*powerpc*-darwin[5-8]*)
8452 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8453 *)
8454 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8455 esac
8456 ;;
8457 esac
8458 if test yes = "$lt_cv_apple_cc_single_mod"; then
8459 _lt_dar_single_mod='$single_module'
8460 fi
8461 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8462 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8463 else
8464 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8465 fi
8466 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8467 _lt_dsymutil='~$DSYMUTIL $lib || :'
8468 else
8469 _lt_dsymutil=
8470 fi
8471 ;;
8472 esac
8473
8474 # func_munge_path_list VARIABLE PATH
8475 # -----------------------------------
8476 # VARIABLE is name of variable containing _space_ separated list of
8477 # directories to be munged by the contents of PATH, which is string
8478 # having a format:
8479 # "DIR[:DIR]:"
8480 # string "DIR[ DIR]" will be prepended to VARIABLE
8481 # ":DIR[:DIR]"
8482 # string "DIR[ DIR]" will be appended to VARIABLE
8483 # "DIRP[:DIRP]::[DIRA:]DIRA"
8484 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8485 # "DIRA[ DIRA]" will be appended to VARIABLE
8486 # "DIR[:DIR]"
8487 # VARIABLE will be replaced by "DIR[ DIR]"
8488 func_munge_path_list ()
8489 {
8490 case x$2 in
8491 x)
8492 ;;
8493 *:)
8494 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8495 ;;
8496 x:*)
8497 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8498 ;;
8499 *::*)
8500 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8501 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8502 ;;
8503 *)
8504 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8505 ;;
8506 esac
8507 }
8508
8509 ac_header= ac_cache=
8510 for ac_item in $ac_header_c_list
8511 do
8512 if test $ac_cache; then
8513 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8514 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8515 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8516 fi
8517 ac_header= ac_cache=
8518 elif test $ac_header; then
8519 ac_cache=$ac_item
8520 else
8521 ac_header=$ac_item
8522 fi
8523 done
8524
8525
8526
8527
8528
8529
8530
8531
8532 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8533 then :
8534
8535 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8536
8537 fi
8538 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8539 "
8540 if test "x$ac_cv_header_dlfcn_h" = xyes
8541 then :
8542 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8543
8544 fi
8545
8546
8547
8548
8549
8550 # Set options
8551
8552
8553
8554 enable_dlopen=no
8555
8556
8557 enable_win32_dll=no
8558
8559
8560 # Check whether --enable-shared was given.
8561 if test ${enable_shared+y}
8562 then :
8563 enableval=$enable_shared; p=${PACKAGE-default}
8564 case $enableval in
8565 yes) enable_shared=yes ;;
8566 no) enable_shared=no ;;
8567 *)
8568 enable_shared=no
8569 # Look at the argument we got. We use all the common list separators.
8570 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8571 for pkg in $enableval; do
8572 IFS=$lt_save_ifs
8573 if test "X$pkg" = "X$p"; then
8574 enable_shared=yes
8575 fi
8576 done
8577 IFS=$lt_save_ifs
8578 ;;
8579 esac
8580 else $as_nop
8581 enable_shared=yes
8582 fi
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592 # Check whether --enable-static was given.
8593 if test ${enable_static+y}
8594 then :
8595 enableval=$enable_static; p=${PACKAGE-default}
8596 case $enableval in
8597 yes) enable_static=yes ;;
8598 no) enable_static=no ;;
8599 *)
8600 enable_static=no
8601 # Look at the argument we got. We use all the common list separators.
8602 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8603 for pkg in $enableval; do
8604 IFS=$lt_save_ifs
8605 if test "X$pkg" = "X$p"; then
8606 enable_static=yes
8607 fi
8608 done
8609 IFS=$lt_save_ifs
8610 ;;
8611 esac
8612 else $as_nop
8613 enable_static=yes
8614 fi
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625 # Check whether --with-pic was given.
8626 if test ${with_pic+y}
8627 then :
8628 withval=$with_pic; lt_p=${PACKAGE-default}
8629 case $withval in
8630 yes|no) pic_mode=$withval ;;
8631 *)
8632 pic_mode=default
8633 # Look at the argument we got. We use all the common list separators.
8634 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8635 for lt_pkg in $withval; do
8636 IFS=$lt_save_ifs
8637 if test "X$lt_pkg" = "X$lt_p"; then
8638 pic_mode=yes
8639 fi
8640 done
8641 IFS=$lt_save_ifs
8642 ;;
8643 esac
8644 else $as_nop
8645 pic_mode=default
8646 fi
8647
8648
8649
8650
8651
8652
8653
8654
8655 # Check whether --enable-fast-install was given.
8656 if test ${enable_fast_install+y}
8657 then :
8658 enableval=$enable_fast_install; p=${PACKAGE-default}
8659 case $enableval in
8660 yes) enable_fast_install=yes ;;
8661 no) enable_fast_install=no ;;
8662 *)
8663 enable_fast_install=no
8664 # Look at the argument we got. We use all the common list separators.
8665 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8666 for pkg in $enableval; do
8667 IFS=$lt_save_ifs
8668 if test "X$pkg" = "X$p"; then
8669 enable_fast_install=yes
8670 fi
8671 done
8672 IFS=$lt_save_ifs
8673 ;;
8674 esac
8675 else $as_nop
8676 enable_fast_install=yes
8677 fi
8678
8679
8680
8681
8682
8683
8684
8685
8686 shared_archive_member_spec=
8687 case $host,$enable_shared in
8688 power*-*-aix[5-9]*,yes)
8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8690 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8691
8692 # Check whether --with-aix-soname was given.
8693 if test ${with_aix_soname+y}
8694 then :
8695 withval=$with_aix_soname; case $withval in
8696 aix|svr4|both)
8697 ;;
8698 *)
8699 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8700 ;;
8701 esac
8702 lt_cv_with_aix_soname=$with_aix_soname
8703 else $as_nop
8704 if test ${lt_cv_with_aix_soname+y}
8705 then :
8706 printf %s "(cached) " >&6
8707 else $as_nop
8708 lt_cv_with_aix_soname=aix
8709 fi
8710
8711 with_aix_soname=$lt_cv_with_aix_soname
8712 fi
8713
8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8715 printf "%s\n" "$with_aix_soname" >&6; }
8716 if test aix != "$with_aix_soname"; then
8717 # For the AIX way of multilib, we name the shared archive member
8718 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8719 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8720 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8721 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8722 if test 64 = "${OBJECT_MODE-32}"; then
8723 shared_archive_member_spec=shr_64
8724 else
8725 shared_archive_member_spec=shr
8726 fi
8727 fi
8728 ;;
8729 *)
8730 with_aix_soname=aix
8731 ;;
8732 esac
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743 # This can be used to rebuild libtool when needed
8744 LIBTOOL_DEPS=$ltmain
8745
8746 # Always use our own libtool.
8747 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778 test -z "$LN_S" && LN_S="ln -s"
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793 if test -n "${ZSH_VERSION+set}"; then
8794 setopt NO_GLOB_SUBST
8795 fi
8796
8797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8798 printf %s "checking for objdir... " >&6; }
8799 if test ${lt_cv_objdir+y}
8800 then :
8801 printf %s "(cached) " >&6
8802 else $as_nop
8803 rm -f .libs 2>/dev/null
8804 mkdir .libs 2>/dev/null
8805 if test -d .libs; then
8806 lt_cv_objdir=.libs
8807 else
8808 # MS-DOS does not allow filenames that begin with a dot.
8809 lt_cv_objdir=_libs
8810 fi
8811 rmdir .libs 2>/dev/null
8812 fi
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8814 printf "%s\n" "$lt_cv_objdir" >&6; }
8815 objdir=$lt_cv_objdir
8816
8817
8818
8819
8820
8821 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8822
8823
8824
8825
8826 case $host_os in
8827 aix3*)
8828 # AIX sometimes has problems with the GCC collect2 program. For some
8829 # reason, if we set the COLLECT_NAMES environment variable, the problems
8830 # vanish in a puff of smoke.
8831 if test set != "${COLLECT_NAMES+set}"; then
8832 COLLECT_NAMES=
8833 export COLLECT_NAMES
8834 fi
8835 ;;
8836 esac
8837
8838 # Global variables:
8839 ofile=libtool
8840 can_build_shared=yes
8841
8842 # All known linkers require a '.a' archive for static linking (except MSVC and
8843 # ICC, which need '.lib').
8844 libext=a
8845
8846 with_gnu_ld=$lt_cv_prog_gnu_ld
8847
8848 old_CC=$CC
8849 old_CFLAGS=$CFLAGS
8850
8851 # Set sane defaults for various variables
8852 test -z "$CC" && CC=cc
8853 test -z "$LTCC" && LTCC=$CC
8854 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8855 test -z "$LD" && LD=ld
8856 test -z "$ac_objext" && ac_objext=o
8857
8858 func_cc_basename $compiler
8859 cc_basename=$func_cc_basename_result
8860
8861
8862 # Only perform the check for file, if the check method requires it
8863 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8864 case $deplibs_check_method in
8865 file_magic*)
8866 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8868 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8869 if test ${lt_cv_path_MAGIC_CMD+y}
8870 then :
8871 printf %s "(cached) " >&6
8872 else $as_nop
8873 case $MAGIC_CMD in
8874 [\\/*] | ?:[\\/]*)
8875 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8876 ;;
8877 *)
8878 lt_save_MAGIC_CMD=$MAGIC_CMD
8879 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8880 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8881 for ac_dir in $ac_dummy; do
8882 IFS=$lt_save_ifs
8883 test -z "$ac_dir" && ac_dir=.
8884 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8885 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8886 if test -n "$file_magic_test_file"; then
8887 case $deplibs_check_method in
8888 "file_magic "*)
8889 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8890 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8891 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8892 $EGREP "$file_magic_regex" > /dev/null; then
8893 :
8894 else
8895 cat <<_LT_EOF 1>&2
8896
8897 *** Warning: the command libtool uses to detect shared libraries,
8898 *** $file_magic_cmd, produces output that libtool cannot recognize.
8899 *** The result is that libtool may fail to recognize shared libraries
8900 *** as such. This will affect the creation of libtool libraries that
8901 *** depend on shared libraries, but programs linked with such libtool
8902 *** libraries will work regardless of this problem. Nevertheless, you
8903 *** may want to report the problem to your system manager and/or to
8904 *** [email protected]
8905
8906 _LT_EOF
8907 fi ;;
8908 esac
8909 fi
8910 break
8911 fi
8912 done
8913 IFS=$lt_save_ifs
8914 MAGIC_CMD=$lt_save_MAGIC_CMD
8915 ;;
8916 esac
8917 fi
8918
8919 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8920 if test -n "$MAGIC_CMD"; then
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8922 printf "%s\n" "$MAGIC_CMD" >&6; }
8923 else
8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 printf "%s\n" "no" >&6; }
8926 fi
8927
8928
8929
8930
8931
8932 if test -z "$lt_cv_path_MAGIC_CMD"; then
8933 if test -n "$ac_tool_prefix"; then
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8935 printf %s "checking for file... " >&6; }
8936 if test ${lt_cv_path_MAGIC_CMD+y}
8937 then :
8938 printf %s "(cached) " >&6
8939 else $as_nop
8940 case $MAGIC_CMD in
8941 [\\/*] | ?:[\\/]*)
8942 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8943 ;;
8944 *)
8945 lt_save_MAGIC_CMD=$MAGIC_CMD
8946 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8947 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8948 for ac_dir in $ac_dummy; do
8949 IFS=$lt_save_ifs
8950 test -z "$ac_dir" && ac_dir=.
8951 if test -f "$ac_dir/file"; then
8952 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8953 if test -n "$file_magic_test_file"; then
8954 case $deplibs_check_method in
8955 "file_magic "*)
8956 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8957 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8958 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8959 $EGREP "$file_magic_regex" > /dev/null; then
8960 :
8961 else
8962 cat <<_LT_EOF 1>&2
8963
8964 *** Warning: the command libtool uses to detect shared libraries,
8965 *** $file_magic_cmd, produces output that libtool cannot recognize.
8966 *** The result is that libtool may fail to recognize shared libraries
8967 *** as such. This will affect the creation of libtool libraries that
8968 *** depend on shared libraries, but programs linked with such libtool
8969 *** libraries will work regardless of this problem. Nevertheless, you
8970 *** may want to report the problem to your system manager and/or to
8971 *** [email protected]
8972
8973 _LT_EOF
8974 fi ;;
8975 esac
8976 fi
8977 break
8978 fi
8979 done
8980 IFS=$lt_save_ifs
8981 MAGIC_CMD=$lt_save_MAGIC_CMD
8982 ;;
8983 esac
8984 fi
8985
8986 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8987 if test -n "$MAGIC_CMD"; then
8988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8989 printf "%s\n" "$MAGIC_CMD" >&6; }
8990 else
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 printf "%s\n" "no" >&6; }
8993 fi
8994
8995
8996 else
8997 MAGIC_CMD=:
8998 fi
8999 fi
9000
9001 fi
9002 ;;
9003 esac
9004
9005 # Use C for the default configuration in the libtool script
9006
9007 lt_save_CC=$CC
9008 ac_ext=c
9009 ac_cpp='$CPP $CPPFLAGS'
9010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9013
9014
9015 # Source file extension for C test sources.
9016 ac_ext=c
9017
9018 # Object file extension for compiled C test sources.
9019 objext=o
9020 objext=$objext
9021
9022 # Code to be used in simple compile tests
9023 lt_simple_compile_test_code="int some_variable = 0;"
9024
9025 # Code to be used in simple link tests
9026 lt_simple_link_test_code='int main(){return(0);}'
9027
9028
9029
9030
9031
9032
9033
9034 # If no C compiler was specified, use CC.
9035 LTCC=${LTCC-"$CC"}
9036
9037 # If no C compiler flags were specified, use CFLAGS.
9038 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9039
9040 # Allow CC to be a program name with arguments.
9041 compiler=$CC
9042
9043 # Save the default compiler, since it gets overwritten when the other
9044 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9045 compiler_DEFAULT=$CC
9046
9047 # save warnings/boilerplate of simple test code
9048 ac_outfile=conftest.$ac_objext
9049 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9050 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9051 _lt_compiler_boilerplate=`cat conftest.err`
9052 $RM conftest*
9053
9054 ac_outfile=conftest.$ac_objext
9055 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9056 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9057 _lt_linker_boilerplate=`cat conftest.err`
9058 $RM -r conftest*
9059
9060
9061 ## CAVEAT EMPTOR:
9062 ## There is no encapsulation within the following macros, do not change
9063 ## the running order or otherwise move them around unless you know exactly
9064 ## what you are doing...
9065 if test -n "$compiler"; then
9066
9067 lt_prog_compiler_no_builtin_flag=
9068
9069 if test yes = "$GCC"; then
9070 case $cc_basename in
9071 nvcc*)
9072 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9073 *)
9074 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9075 esac
9076
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9078 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9079 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9080 then :
9081 printf %s "(cached) " >&6
9082 else $as_nop
9083 lt_cv_prog_compiler_rtti_exceptions=no
9084 ac_outfile=conftest.$ac_objext
9085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9086 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9087 # Insert the option either (1) after the last *FLAGS variable, or
9088 # (2) before a word containing "conftest.", or (3) at the end.
9089 # Note that $ac_compile itself does not contain backslashes and begins
9090 # with a dollar sign (not a hyphen), so the echo should work correctly.
9091 # The option is referenced via a variable to avoid confusing sed.
9092 lt_compile=`echo "$ac_compile" | $SED \
9093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9095 -e 's:$: $lt_compiler_flag:'`
9096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9097 (eval "$lt_compile" 2>conftest.err)
9098 ac_status=$?
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 if (exit $ac_status) && test -s "$ac_outfile"; then
9102 # The compiler can only warn and ignore the option if not recognized
9103 # So say no if there are warnings other than the usual output.
9104 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9107 lt_cv_prog_compiler_rtti_exceptions=yes
9108 fi
9109 fi
9110 $RM conftest*
9111
9112 fi
9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9114 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9115
9116 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9117 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9118 else
9119 :
9120 fi
9121
9122 fi
9123
9124
9125
9126
9127
9128
9129 lt_prog_compiler_wl=
9130 lt_prog_compiler_pic=
9131 lt_prog_compiler_static=
9132
9133
9134 if test yes = "$GCC"; then
9135 lt_prog_compiler_wl='-Wl,'
9136 lt_prog_compiler_static='-static'
9137
9138 case $host_os in
9139 aix*)
9140 # All AIX code is PIC.
9141 if test ia64 = "$host_cpu"; then
9142 # AIX 5 now supports IA64 processor
9143 lt_prog_compiler_static='-Bstatic'
9144 fi
9145 lt_prog_compiler_pic='-fPIC'
9146 ;;
9147
9148 amigaos*)
9149 case $host_cpu in
9150 powerpc)
9151 # see comment about AmigaOS4 .so support
9152 lt_prog_compiler_pic='-fPIC'
9153 ;;
9154 m68k)
9155 # FIXME: we need at least 68020 code to build shared libraries, but
9156 # adding the '-m68020' flag to GCC prevents building anything better,
9157 # like '-m68040'.
9158 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9159 ;;
9160 esac
9161 ;;
9162
9163 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9164 # PIC is the default for these OSes.
9165 ;;
9166
9167 mingw* | cygwin* | pw32* | os2* | cegcc*)
9168 # This hack is so that the source file can tell whether it is being
9169 # built for inclusion in a dll (and should export symbols for example).
9170 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9171 # (--disable-auto-import) libraries
9172 lt_prog_compiler_pic='-DDLL_EXPORT'
9173 case $host_os in
9174 os2*)
9175 lt_prog_compiler_static='$wl-static'
9176 ;;
9177 esac
9178 ;;
9179
9180 darwin* | rhapsody*)
9181 # PIC is the default on this platform
9182 # Common symbols not allowed in MH_DYLIB files
9183 lt_prog_compiler_pic='-fno-common'
9184 ;;
9185
9186 haiku*)
9187 # PIC is the default for Haiku.
9188 # The "-static" flag exists, but is broken.
9189 lt_prog_compiler_static=
9190 ;;
9191
9192 hpux*)
9193 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9194 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9195 # sets the default TLS model and affects inlining.
9196 case $host_cpu in
9197 hppa*64*)
9198 # +Z the default
9199 ;;
9200 *)
9201 lt_prog_compiler_pic='-fPIC'
9202 ;;
9203 esac
9204 ;;
9205
9206 interix[3-9]*)
9207 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9208 # Instead, we relocate shared libraries at runtime.
9209 ;;
9210
9211 msdosdjgpp*)
9212 # Just because we use GCC doesn't mean we suddenly get shared libraries
9213 # on systems that don't support them.
9214 lt_prog_compiler_can_build_shared=no
9215 enable_shared=no
9216 ;;
9217
9218 *nto* | *qnx*)
9219 # QNX uses GNU C++, but need to define -shared option too, otherwise
9220 # it will coredump.
9221 lt_prog_compiler_pic='-fPIC -shared'
9222 ;;
9223
9224 sysv4*MP*)
9225 if test -d /usr/nec; then
9226 lt_prog_compiler_pic=-Kconform_pic
9227 fi
9228 ;;
9229
9230 *)
9231 lt_prog_compiler_pic='-fPIC'
9232 ;;
9233 esac
9234
9235 case $cc_basename in
9236 nvcc*) # Cuda Compiler Driver 2.2
9237 lt_prog_compiler_wl='-Xlinker '
9238 if test -n "$lt_prog_compiler_pic"; then
9239 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9240 fi
9241 ;;
9242 esac
9243 else
9244 # PORTME Check for flag to pass linker flags through the system compiler.
9245 case $host_os in
9246 aix*)
9247 lt_prog_compiler_wl='-Wl,'
9248 if test ia64 = "$host_cpu"; then
9249 # AIX 5 now supports IA64 processor
9250 lt_prog_compiler_static='-Bstatic'
9251 else
9252 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9253 fi
9254 ;;
9255
9256 darwin* | rhapsody*)
9257 # PIC is the default on this platform
9258 # Common symbols not allowed in MH_DYLIB files
9259 lt_prog_compiler_pic='-fno-common'
9260 case $cc_basename in
9261 nagfor*)
9262 # NAG Fortran compiler
9263 lt_prog_compiler_wl='-Wl,-Wl,,'
9264 lt_prog_compiler_pic='-PIC'
9265 lt_prog_compiler_static='-Bstatic'
9266 ;;
9267 esac
9268 ;;
9269
9270 mingw* | cygwin* | pw32* | os2* | cegcc*)
9271 # This hack is so that the source file can tell whether it is being
9272 # built for inclusion in a dll (and should export symbols for example).
9273 lt_prog_compiler_pic='-DDLL_EXPORT'
9274 case $host_os in
9275 os2*)
9276 lt_prog_compiler_static='$wl-static'
9277 ;;
9278 esac
9279 ;;
9280
9281 hpux9* | hpux10* | hpux11*)
9282 lt_prog_compiler_wl='-Wl,'
9283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9284 # not for PA HP-UX.
9285 case $host_cpu in
9286 hppa*64*|ia64*)
9287 # +Z the default
9288 ;;
9289 *)
9290 lt_prog_compiler_pic='+Z'
9291 ;;
9292 esac
9293 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9294 lt_prog_compiler_static='$wl-a ${wl}archive'
9295 ;;
9296
9297 irix5* | irix6* | nonstopux*)
9298 lt_prog_compiler_wl='-Wl,'
9299 # PIC (with -KPIC) is the default.
9300 lt_prog_compiler_static='-non_shared'
9301 ;;
9302
9303 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9304 case $cc_basename in
9305 # old Intel for x86_64, which still supported -KPIC.
9306 ecc*)
9307 lt_prog_compiler_wl='-Wl,'
9308 lt_prog_compiler_pic='-KPIC'
9309 lt_prog_compiler_static='-static'
9310 ;;
9311 # flang / f18. f95 an alias for gfortran or flang on Debian
9312 flang* | f18* | f95*)
9313 lt_prog_compiler_wl='-Wl,'
9314 lt_prog_compiler_pic='-fPIC'
9315 lt_prog_compiler_static='-static'
9316 ;;
9317 # icc used to be incompatible with GCC.
9318 # ICC 10 doesn't accept -KPIC any more.
9319 icc* | ifort*)
9320 lt_prog_compiler_wl='-Wl,'
9321 lt_prog_compiler_pic='-fPIC'
9322 lt_prog_compiler_static='-static'
9323 ;;
9324 # Lahey Fortran 8.1.
9325 lf95*)
9326 lt_prog_compiler_wl='-Wl,'
9327 lt_prog_compiler_pic='--shared'
9328 lt_prog_compiler_static='--static'
9329 ;;
9330 nagfor*)
9331 # NAG Fortran compiler
9332 lt_prog_compiler_wl='-Wl,-Wl,,'
9333 lt_prog_compiler_pic='-PIC'
9334 lt_prog_compiler_static='-Bstatic'
9335 ;;
9336 tcc*)
9337 # Fabrice Bellard et al's Tiny C Compiler
9338 lt_prog_compiler_wl='-Wl,'
9339 lt_prog_compiler_pic='-fPIC'
9340 lt_prog_compiler_static='-static'
9341 ;;
9342 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9343 # Portland Group compilers (*not* the Pentium gcc compiler,
9344 # which looks to be a dead project)
9345 lt_prog_compiler_wl='-Wl,'
9346 lt_prog_compiler_pic='-fpic'
9347 lt_prog_compiler_static='-Bstatic'
9348 ;;
9349 ccc*)
9350 lt_prog_compiler_wl='-Wl,'
9351 # All Alpha code is PIC.
9352 lt_prog_compiler_static='-non_shared'
9353 ;;
9354 xl* | bgxl* | bgf* | mpixl*)
9355 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9356 lt_prog_compiler_wl='-Wl,'
9357 lt_prog_compiler_pic='-qpic'
9358 lt_prog_compiler_static='-qstaticlink'
9359 ;;
9360 *)
9361 case `$CC -V 2>&1 | $SED 5q` in
9362 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9363 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9364 lt_prog_compiler_pic='-KPIC'
9365 lt_prog_compiler_static='-Bstatic'
9366 lt_prog_compiler_wl=''
9367 ;;
9368 *Sun\ F* | *Sun*Fortran*)
9369 lt_prog_compiler_pic='-KPIC'
9370 lt_prog_compiler_static='-Bstatic'
9371 lt_prog_compiler_wl='-Qoption ld '
9372 ;;
9373 *Sun\ C*)
9374 # Sun C 5.9
9375 lt_prog_compiler_pic='-KPIC'
9376 lt_prog_compiler_static='-Bstatic'
9377 lt_prog_compiler_wl='-Wl,'
9378 ;;
9379 *Intel*\ [CF]*Compiler*)
9380 lt_prog_compiler_wl='-Wl,'
9381 lt_prog_compiler_pic='-fPIC'
9382 lt_prog_compiler_static='-static'
9383 ;;
9384 *Portland\ Group*)
9385 lt_prog_compiler_wl='-Wl,'
9386 lt_prog_compiler_pic='-fpic'
9387 lt_prog_compiler_static='-Bstatic'
9388 ;;
9389 esac
9390 ;;
9391 esac
9392 ;;
9393
9394 newsos6)
9395 lt_prog_compiler_pic='-KPIC'
9396 lt_prog_compiler_static='-Bstatic'
9397 ;;
9398
9399 *nto* | *qnx*)
9400 # QNX uses GNU C++, but need to define -shared option too, otherwise
9401 # it will coredump.
9402 lt_prog_compiler_pic='-fPIC -shared'
9403 ;;
9404
9405 osf3* | osf4* | osf5*)
9406 lt_prog_compiler_wl='-Wl,'
9407 # All OSF/1 code is PIC.
9408 lt_prog_compiler_static='-non_shared'
9409 ;;
9410
9411 rdos*)
9412 lt_prog_compiler_static='-non_shared'
9413 ;;
9414
9415 solaris*)
9416 lt_prog_compiler_pic='-KPIC'
9417 lt_prog_compiler_static='-Bstatic'
9418 case $cc_basename in
9419 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9420 lt_prog_compiler_wl='-Qoption ld ';;
9421 *)
9422 lt_prog_compiler_wl='-Wl,';;
9423 esac
9424 ;;
9425
9426 sunos4*)
9427 lt_prog_compiler_wl='-Qoption ld '
9428 lt_prog_compiler_pic='-PIC'
9429 lt_prog_compiler_static='-Bstatic'
9430 ;;
9431
9432 sysv4 | sysv4.2uw2* | sysv4.3*)
9433 lt_prog_compiler_wl='-Wl,'
9434 lt_prog_compiler_pic='-KPIC'
9435 lt_prog_compiler_static='-Bstatic'
9436 ;;
9437
9438 sysv4*MP*)
9439 if test -d /usr/nec; then
9440 lt_prog_compiler_pic='-Kconform_pic'
9441 lt_prog_compiler_static='-Bstatic'
9442 fi
9443 ;;
9444
9445 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9446 lt_prog_compiler_wl='-Wl,'
9447 lt_prog_compiler_pic='-KPIC'
9448 lt_prog_compiler_static='-Bstatic'
9449 ;;
9450
9451 unicos*)
9452 lt_prog_compiler_wl='-Wl,'
9453 lt_prog_compiler_can_build_shared=no
9454 ;;
9455
9456 uts4*)
9457 lt_prog_compiler_pic='-pic'
9458 lt_prog_compiler_static='-Bstatic'
9459 ;;
9460
9461 *)
9462 lt_prog_compiler_can_build_shared=no
9463 ;;
9464 esac
9465 fi
9466
9467 case $host_os in
9468 # For platforms that do not support PIC, -DPIC is meaningless:
9469 *djgpp*)
9470 lt_prog_compiler_pic=
9471 ;;
9472 *)
9473 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9474 ;;
9475 esac
9476
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9478 printf %s "checking for $compiler option to produce PIC... " >&6; }
9479 if test ${lt_cv_prog_compiler_pic+y}
9480 then :
9481 printf %s "(cached) " >&6
9482 else $as_nop
9483 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9484 fi
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9486 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9487 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9488
9489 #
9490 # Check to make sure the PIC flag actually works.
9491 #
9492 if test -n "$lt_prog_compiler_pic"; then
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9494 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9495 if test ${lt_cv_prog_compiler_pic_works+y}
9496 then :
9497 printf %s "(cached) " >&6
9498 else $as_nop
9499 lt_cv_prog_compiler_pic_works=no
9500 ac_outfile=conftest.$ac_objext
9501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9502 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9503 # Insert the option either (1) after the last *FLAGS variable, or
9504 # (2) before a word containing "conftest.", or (3) at the end.
9505 # Note that $ac_compile itself does not contain backslashes and begins
9506 # with a dollar sign (not a hyphen), so the echo should work correctly.
9507 # The option is referenced via a variable to avoid confusing sed.
9508 lt_compile=`echo "$ac_compile" | $SED \
9509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9511 -e 's:$: $lt_compiler_flag:'`
9512 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9513 (eval "$lt_compile" 2>conftest.err)
9514 ac_status=$?
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 if (exit $ac_status) && test -s "$ac_outfile"; then
9518 # The compiler can only warn and ignore the option if not recognized
9519 # So say no if there are warnings other than the usual output.
9520 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9523 lt_cv_prog_compiler_pic_works=yes
9524 fi
9525 fi
9526 $RM conftest*
9527
9528 fi
9529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9530 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9531
9532 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9533 case $lt_prog_compiler_pic in
9534 "" | " "*) ;;
9535 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9536 esac
9537 else
9538 lt_prog_compiler_pic=
9539 lt_prog_compiler_can_build_shared=no
9540 fi
9541
9542 fi
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554 #
9555 # Check to make sure the static flag actually works.
9556 #
9557 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9559 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9560 if test ${lt_cv_prog_compiler_static_works+y}
9561 then :
9562 printf %s "(cached) " >&6
9563 else $as_nop
9564 lt_cv_prog_compiler_static_works=no
9565 save_LDFLAGS=$LDFLAGS
9566 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9567 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9569 # The linker can only warn and ignore the option if not recognized
9570 # So say no if there are warnings
9571 if test -s conftest.err; then
9572 # Append any errors to the config.log.
9573 cat conftest.err 1>&5
9574 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9576 if diff conftest.exp conftest.er2 >/dev/null; then
9577 lt_cv_prog_compiler_static_works=yes
9578 fi
9579 else
9580 lt_cv_prog_compiler_static_works=yes
9581 fi
9582 fi
9583 $RM -r conftest*
9584 LDFLAGS=$save_LDFLAGS
9585
9586 fi
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9588 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9589
9590 if test yes = "$lt_cv_prog_compiler_static_works"; then
9591 :
9592 else
9593 lt_prog_compiler_static=
9594 fi
9595
9596
9597
9598
9599
9600
9601
9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9603 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9604 if test ${lt_cv_prog_compiler_c_o+y}
9605 then :
9606 printf %s "(cached) " >&6
9607 else $as_nop
9608 lt_cv_prog_compiler_c_o=no
9609 $RM -r conftest 2>/dev/null
9610 mkdir conftest
9611 cd conftest
9612 mkdir out
9613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9614
9615 lt_compiler_flag="-o out/conftest2.$ac_objext"
9616 # Insert the option either (1) after the last *FLAGS variable, or
9617 # (2) before a word containing "conftest.", or (3) at the end.
9618 # Note that $ac_compile itself does not contain backslashes and begins
9619 # with a dollar sign (not a hyphen), so the echo should work correctly.
9620 lt_compile=`echo "$ac_compile" | $SED \
9621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9623 -e 's:$: $lt_compiler_flag:'`
9624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9625 (eval "$lt_compile" 2>out/conftest.err)
9626 ac_status=$?
9627 cat out/conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9630 then
9631 # The compiler can only warn and ignore the option if not recognized
9632 # So say no if there are warnings
9633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9634 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9635 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9636 lt_cv_prog_compiler_c_o=yes
9637 fi
9638 fi
9639 chmod u+w . 2>&5
9640 $RM conftest*
9641 # SGI C++ compiler will create directory out/ii_files/ for
9642 # template instantiation
9643 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9644 $RM out/* && rmdir out
9645 cd ..
9646 $RM -r conftest
9647 $RM conftest*
9648
9649 fi
9650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9651 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9652
9653
9654
9655
9656
9657
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9659 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9660 if test ${lt_cv_prog_compiler_c_o+y}
9661 then :
9662 printf %s "(cached) " >&6
9663 else $as_nop
9664 lt_cv_prog_compiler_c_o=no
9665 $RM -r conftest 2>/dev/null
9666 mkdir conftest
9667 cd conftest
9668 mkdir out
9669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9670
9671 lt_compiler_flag="-o out/conftest2.$ac_objext"
9672 # Insert the option either (1) after the last *FLAGS variable, or
9673 # (2) before a word containing "conftest.", or (3) at the end.
9674 # Note that $ac_compile itself does not contain backslashes and begins
9675 # with a dollar sign (not a hyphen), so the echo should work correctly.
9676 lt_compile=`echo "$ac_compile" | $SED \
9677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9679 -e 's:$: $lt_compiler_flag:'`
9680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9681 (eval "$lt_compile" 2>out/conftest.err)
9682 ac_status=$?
9683 cat out/conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9686 then
9687 # The compiler can only warn and ignore the option if not recognized
9688 # So say no if there are warnings
9689 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9690 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9691 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9692 lt_cv_prog_compiler_c_o=yes
9693 fi
9694 fi
9695 chmod u+w . 2>&5
9696 $RM conftest*
9697 # SGI C++ compiler will create directory out/ii_files/ for
9698 # template instantiation
9699 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9700 $RM out/* && rmdir out
9701 cd ..
9702 $RM -r conftest
9703 $RM conftest*
9704
9705 fi
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9707 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9708
9709
9710
9711
9712 hard_links=nottested
9713 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9714 # do not overwrite the value of need_locks provided by the user
9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9716 printf %s "checking if we can lock with hard links... " >&6; }
9717 hard_links=yes
9718 $RM conftest*
9719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9720 touch conftest.a
9721 ln conftest.a conftest.b 2>&5 || hard_links=no
9722 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9724 printf "%s\n" "$hard_links" >&6; }
9725 if test no = "$hard_links"; then
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9727 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9728 need_locks=warn
9729 fi
9730 else
9731 need_locks=no
9732 fi
9733
9734
9735
9736
9737
9738
9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9740 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9741
9742 runpath_var=
9743 allow_undefined_flag=
9744 always_export_symbols=no
9745 archive_cmds=
9746 archive_expsym_cmds=
9747 compiler_needs_object=no
9748 enable_shared_with_static_runtimes=no
9749 export_dynamic_flag_spec=
9750 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9751 hardcode_automatic=no
9752 hardcode_direct=no
9753 hardcode_direct_absolute=no
9754 hardcode_libdir_flag_spec=
9755 hardcode_libdir_separator=
9756 hardcode_minus_L=no
9757 hardcode_shlibpath_var=unsupported
9758 inherit_rpath=no
9759 link_all_deplibs=unknown
9760 module_cmds=
9761 module_expsym_cmds=
9762 old_archive_from_new_cmds=
9763 old_archive_from_expsyms_cmds=
9764 thread_safe_flag_spec=
9765 whole_archive_flag_spec=
9766 # include_expsyms should be a list of space-separated symbols to be *always*
9767 # included in the symbol list
9768 include_expsyms=
9769 # exclude_expsyms can be an extended regexp of symbols to exclude
9770 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9771 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9772 # as well as any symbol that contains 'd'.
9773 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9774 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9775 # platforms (ab)use it in PIC code, but their linkers get confused if
9776 # the symbol is explicitly referenced. Since portable code cannot
9777 # rely on this symbol name, it's probably fine to never include it in
9778 # preloaded symbol tables.
9779 # Exclude shared library initialization/finalization symbols.
9780 extract_expsyms_cmds=
9781
9782 case $host_os in
9783 cygwin* | mingw* | pw32* | cegcc*)
9784 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9785 # When not using gcc, we currently assume that we are using
9786 # Microsoft Visual C++ or Intel C++ Compiler.
9787 if test yes != "$GCC"; then
9788 with_gnu_ld=no
9789 fi
9790 ;;
9791 interix*)
9792 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9793 with_gnu_ld=yes
9794 ;;
9795 openbsd* | bitrig*)
9796 with_gnu_ld=no
9797 ;;
9798 linux* | k*bsd*-gnu | gnu*)
9799 link_all_deplibs=no
9800 ;;
9801 esac
9802
9803 ld_shlibs=yes
9804
9805 # On some targets, GNU ld is compatible enough with the native linker
9806 # that we're better off using the native interface for both.
9807 lt_use_gnu_ld_interface=no
9808 if test yes = "$with_gnu_ld"; then
9809 case $host_os in
9810 aix*)
9811 # The AIX port of GNU ld has always aspired to compatibility
9812 # with the native linker. However, as the warning in the GNU ld
9813 # block says, versions before 2.19.5* couldn't really create working
9814 # shared libraries, regardless of the interface used.
9815 case `$LD -v 2>&1` in
9816 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9817 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9818 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9819 *)
9820 lt_use_gnu_ld_interface=yes
9821 ;;
9822 esac
9823 ;;
9824 *)
9825 lt_use_gnu_ld_interface=yes
9826 ;;
9827 esac
9828 fi
9829
9830 if test yes = "$lt_use_gnu_ld_interface"; then
9831 # If archive_cmds runs LD, not CC, wlarc should be empty
9832 wlarc='$wl'
9833
9834 # Set some defaults for GNU ld with shared library support. These
9835 # are reset later if shared libraries are not supported. Putting them
9836 # here allows them to be overridden if necessary.
9837 runpath_var=LD_RUN_PATH
9838 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9839 export_dynamic_flag_spec='$wl--export-dynamic'
9840 # ancient GNU ld didn't support --whole-archive et. al.
9841 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9842 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9843 else
9844 whole_archive_flag_spec=
9845 fi
9846 supports_anon_versioning=no
9847 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9848 *GNU\ gold*) supports_anon_versioning=yes ;;
9849 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9850 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9851 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9852 *\ 2.11.*) ;; # other 2.11 versions
9853 *) supports_anon_versioning=yes ;;
9854 esac
9855
9856 # See if GNU ld supports shared libraries.
9857 case $host_os in
9858 aix[3-9]*)
9859 # On AIX/PPC, the GNU linker is very broken
9860 if test ia64 != "$host_cpu"; then
9861 ld_shlibs=no
9862 cat <<_LT_EOF 1>&2
9863
9864 *** Warning: the GNU linker, at least up to release 2.19, is reported
9865 *** to be unable to reliably create shared libraries on AIX.
9866 *** Therefore, libtool is disabling shared libraries support. If you
9867 *** really care for shared libraries, you may want to install binutils
9868 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9869 *** You will then need to restart the configuration process.
9870
9871 _LT_EOF
9872 fi
9873 ;;
9874
9875 amigaos*)
9876 case $host_cpu in
9877 powerpc)
9878 # see comment about AmigaOS4 .so support
9879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9880 archive_expsym_cmds=''
9881 ;;
9882 m68k)
9883 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)'
9884 hardcode_libdir_flag_spec='-L$libdir'
9885 hardcode_minus_L=yes
9886 ;;
9887 esac
9888 ;;
9889
9890 beos*)
9891 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9892 allow_undefined_flag=unsupported
9893 # Joseph Beckenbach <[email protected]> says some releases of gcc
9894 # support --undefined. This deserves some investigation. FIXME
9895 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9896 else
9897 ld_shlibs=no
9898 fi
9899 ;;
9900
9901 cygwin* | mingw* | pw32* | cegcc*)
9902 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9903 # as there is no search path for DLLs.
9904 hardcode_libdir_flag_spec='-L$libdir'
9905 export_dynamic_flag_spec='$wl--export-all-symbols'
9906 allow_undefined_flag=unsupported
9907 always_export_symbols=no
9908 enable_shared_with_static_runtimes=yes
9909 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'
9910 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9911
9912 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9913 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9914 # If the export-symbols file already is a .def file, use it as
9915 # is; otherwise, prepend EXPORTS...
9916 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9917 cp $export_symbols $output_objdir/$soname.def;
9918 else
9919 echo EXPORTS > $output_objdir/$soname.def;
9920 cat $export_symbols >> $output_objdir/$soname.def;
9921 fi~
9922 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9923 else
9924 ld_shlibs=no
9925 fi
9926 ;;
9927
9928 haiku*)
9929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9930 link_all_deplibs=yes
9931 ;;
9932
9933 os2*)
9934 hardcode_libdir_flag_spec='-L$libdir'
9935 hardcode_minus_L=yes
9936 allow_undefined_flag=unsupported
9937 shrext_cmds=.dll
9938 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9939 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9940 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9941 $ECHO EXPORTS >> $output_objdir/$libname.def~
9942 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9943 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9944 emximp -o $lib $output_objdir/$libname.def'
9945 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9946 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9947 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9948 $ECHO EXPORTS >> $output_objdir/$libname.def~
9949 prefix_cmds="$SED"~
9950 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9951 prefix_cmds="$prefix_cmds -e 1d";
9952 fi~
9953 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9954 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9955 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9956 emximp -o $lib $output_objdir/$libname.def'
9957 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9958 enable_shared_with_static_runtimes=yes
9959 file_list_spec='@'
9960 ;;
9961
9962 interix[3-9]*)
9963 hardcode_direct=no
9964 hardcode_shlibpath_var=no
9965 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9966 export_dynamic_flag_spec='$wl-E'
9967 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9968 # Instead, shared libraries are loaded at an image base (0x10000000 by
9969 # default) and relocated if they conflict, which is a slow very memory
9970 # consuming and fragmenting process. To avoid this, we pick a random,
9971 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9972 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9973 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9974 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'
9975 ;;
9976
9977 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9978 tmp_diet=no
9979 if test linux-dietlibc = "$host_os"; then
9980 case $cc_basename in
9981 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9982 esac
9983 fi
9984 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9985 && test no = "$tmp_diet"
9986 then
9987 tmp_addflag=' $pic_flag'
9988 tmp_sharedflag='-shared'
9989 case $cc_basename,$host_cpu in
9990 pgcc*) # Portland Group C compiler
9991 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'
9992 tmp_addflag=' $pic_flag'
9993 ;;
9994 pgf77* | pgf90* | pgf95* | pgfortran*)
9995 # Portland Group f77 and f90 compilers
9996 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'
9997 tmp_addflag=' $pic_flag -Mnomain' ;;
9998 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9999 tmp_addflag=' -i_dynamic' ;;
10000 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10001 tmp_addflag=' -i_dynamic -nofor_main' ;;
10002 ifc* | ifort*) # Intel Fortran compiler
10003 tmp_addflag=' -nofor_main' ;;
10004 lf95*) # Lahey Fortran 8.1
10005 whole_archive_flag_spec=
10006 tmp_sharedflag='--shared' ;;
10007 nagfor*) # NAGFOR 5.3
10008 tmp_sharedflag='-Wl,-shared' ;;
10009 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10010 tmp_sharedflag='-qmkshrobj'
10011 tmp_addflag= ;;
10012 nvcc*) # Cuda Compiler Driver 2.2
10013 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'
10014 compiler_needs_object=yes
10015 ;;
10016 esac
10017 case `$CC -V 2>&1 | $SED 5q` in
10018 *Sun\ C*) # Sun C 5.9
10019 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'
10020 compiler_needs_object=yes
10021 tmp_sharedflag='-G' ;;
10022 *Sun\ F*) # Sun Fortran 8.3
10023 tmp_sharedflag='-G' ;;
10024 esac
10025 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10026
10027 if test yes = "$supports_anon_versioning"; then
10028 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10029 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10030 echo "local: *; };" >> $output_objdir/$libname.ver~
10031 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10032 fi
10033
10034 case $cc_basename in
10035 tcc*)
10036 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10037 export_dynamic_flag_spec='-rdynamic'
10038 ;;
10039 xlf* | bgf* | bgxlf* | mpixlf*)
10040 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10041 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10042 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10043 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10044 if test yes = "$supports_anon_versioning"; then
10045 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10046 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10047 echo "local: *; };" >> $output_objdir/$libname.ver~
10048 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10049 fi
10050 ;;
10051 esac
10052 else
10053 ld_shlibs=no
10054 fi
10055 ;;
10056
10057 netbsd* | netbsdelf*-gnu)
10058 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10059 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10060 wlarc=
10061 else
10062 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10063 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10064 fi
10065 ;;
10066
10067 solaris*)
10068 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10069 ld_shlibs=no
10070 cat <<_LT_EOF 1>&2
10071
10072 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10073 *** create shared libraries on Solaris systems. Therefore, libtool
10074 *** is disabling shared libraries support. We urge you to upgrade GNU
10075 *** binutils to release 2.9.1 or newer. Another option is to modify
10076 *** your PATH or compiler configuration so that the native linker is
10077 *** used, and then restart.
10078
10079 _LT_EOF
10080 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10081 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10082 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10083 else
10084 ld_shlibs=no
10085 fi
10086 ;;
10087
10088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10089 case `$LD -v 2>&1` in
10090 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10091 ld_shlibs=no
10092 cat <<_LT_EOF 1>&2
10093
10094 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10095 *** reliably create shared libraries on SCO systems. Therefore, libtool
10096 *** is disabling shared libraries support. We urge you to upgrade GNU
10097 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10098 *** your PATH or compiler configuration so that the native linker is
10099 *** used, and then restart.
10100
10101 _LT_EOF
10102 ;;
10103 *)
10104 # For security reasons, it is highly recommended that you always
10105 # use absolute paths for naming shared libraries, and exclude the
10106 # DT_RUNPATH tag from executables and libraries. But doing so
10107 # requires that you compile everything twice, which is a pain.
10108 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10109 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10111 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10112 else
10113 ld_shlibs=no
10114 fi
10115 ;;
10116 esac
10117 ;;
10118
10119 sunos4*)
10120 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10121 wlarc=
10122 hardcode_direct=yes
10123 hardcode_shlibpath_var=no
10124 ;;
10125
10126 *)
10127 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10128 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10129 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10130 else
10131 ld_shlibs=no
10132 fi
10133 ;;
10134 esac
10135
10136 if test no = "$ld_shlibs"; then
10137 runpath_var=
10138 hardcode_libdir_flag_spec=
10139 export_dynamic_flag_spec=
10140 whole_archive_flag_spec=
10141 fi
10142 else
10143 # PORTME fill in a description of your system's linker (not GNU ld)
10144 case $host_os in
10145 aix3*)
10146 allow_undefined_flag=unsupported
10147 always_export_symbols=yes
10148 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'
10149 # Note: this linker hardcodes the directories in LIBPATH if there
10150 # are no directories specified by -L.
10151 hardcode_minus_L=yes
10152 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10153 # Neither direct hardcoding nor static linking is supported with a
10154 # broken collect2.
10155 hardcode_direct=unsupported
10156 fi
10157 ;;
10158
10159 aix[4-9]*)
10160 if test ia64 = "$host_cpu"; then
10161 # On IA64, the linker does run time linking by default, so we don't
10162 # have to do anything special.
10163 aix_use_runtimelinking=no
10164 exp_sym_flag='-Bexport'
10165 no_entry_flag=
10166 else
10167 # If we're using GNU nm, then we don't want the "-C" option.
10168 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10169 # Without the "-l" option, or with the "-B" option, AIX nm treats
10170 # weak defined symbols like other global defined symbols, whereas
10171 # GNU nm marks them as "W".
10172 # While the 'weak' keyword is ignored in the Export File, we need
10173 # it in the Import File for the 'aix-soname' feature, so we have
10174 # to replace the "-B" option with "-P" for AIX nm.
10175 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10176 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'
10177 else
10178 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 == "L") || (\$ 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'
10179 fi
10180 aix_use_runtimelinking=no
10181
10182 # Test if we are trying to use run time linking or normal
10183 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10184 # have runtime linking enabled, and use it for executables.
10185 # For shared libraries, we enable/disable runtime linking
10186 # depending on the kind of the shared library created -
10187 # when "with_aix_soname,aix_use_runtimelinking" is:
10188 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10189 # "aix,yes" lib.so shared, rtl:yes, for executables
10190 # lib.a static archive
10191 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10192 # lib.a(lib.so.V) shared, rtl:no, for executables
10193 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10194 # lib.a(lib.so.V) shared, rtl:no
10195 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10196 # lib.a static archive
10197 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10198 for ld_flag in $LDFLAGS; do
10199 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10200 aix_use_runtimelinking=yes
10201 break
10202 fi
10203 done
10204 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10205 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10206 # so we don't have lib.a shared libs to link our executables.
10207 # We have to force runtime linking in this case.
10208 aix_use_runtimelinking=yes
10209 LDFLAGS="$LDFLAGS -Wl,-brtl"
10210 fi
10211 ;;
10212 esac
10213
10214 exp_sym_flag='-bexport'
10215 no_entry_flag='-bnoentry'
10216 fi
10217
10218 # When large executables or shared objects are built, AIX ld can
10219 # have problems creating the table of contents. If linking a library
10220 # or program results in "error TOC overflow" add -mminimal-toc to
10221 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10222 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10223
10224 archive_cmds=''
10225 hardcode_direct=yes
10226 hardcode_direct_absolute=yes
10227 hardcode_libdir_separator=':'
10228 link_all_deplibs=yes
10229 file_list_spec='$wl-f,'
10230 case $with_aix_soname,$aix_use_runtimelinking in
10231 aix,*) ;; # traditional, no import file
10232 svr4,* | *,yes) # use import file
10233 # The Import File defines what to hardcode.
10234 hardcode_direct=no
10235 hardcode_direct_absolute=no
10236 ;;
10237 esac
10238
10239 if test yes = "$GCC"; then
10240 case $host_os in aix4.[012]|aix4.[012].*)
10241 # We only want to do this on AIX 4.2 and lower, the check
10242 # below for broken collect2 doesn't work under 4.3+
10243 collect2name=`$CC -print-prog-name=collect2`
10244 if test -f "$collect2name" &&
10245 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10246 then
10247 # We have reworked collect2
10248 :
10249 else
10250 # We have old collect2
10251 hardcode_direct=unsupported
10252 # It fails to find uninstalled libraries when the uninstalled
10253 # path is not listed in the libpath. Setting hardcode_minus_L
10254 # to unsupported forces relinking
10255 hardcode_minus_L=yes
10256 hardcode_libdir_flag_spec='-L$libdir'
10257 hardcode_libdir_separator=
10258 fi
10259 ;;
10260 esac
10261 shared_flag='-shared'
10262 if test yes = "$aix_use_runtimelinking"; then
10263 shared_flag="$shared_flag "'$wl-G'
10264 fi
10265 # Need to ensure runtime linking is disabled for the traditional
10266 # shared library, or the linker may eventually find shared libraries
10267 # /with/ Import File - we do not want to mix them.
10268 shared_flag_aix='-shared'
10269 shared_flag_svr4='-shared $wl-G'
10270 else
10271 # not using gcc
10272 if test ia64 = "$host_cpu"; then
10273 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10274 # chokes on -Wl,-G. The following line is correct:
10275 shared_flag='-G'
10276 else
10277 if test yes = "$aix_use_runtimelinking"; then
10278 shared_flag='$wl-G'
10279 else
10280 shared_flag='$wl-bM:SRE'
10281 fi
10282 shared_flag_aix='$wl-bM:SRE'
10283 shared_flag_svr4='$wl-G'
10284 fi
10285 fi
10286
10287 export_dynamic_flag_spec='$wl-bexpall'
10288 # It seems that -bexpall does not export symbols beginning with
10289 # underscore (_), so it is better to generate a list of symbols to export.
10290 always_export_symbols=yes
10291 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10292 # Warning - without using the other runtime loading flags (-brtl),
10293 # -berok will link without error, but may produce a broken library.
10294 allow_undefined_flag='-berok'
10295 # Determine the default libpath from the value encoded in an
10296 # empty executable.
10297 if test set = "${lt_cv_aix_libpath+set}"; then
10298 aix_libpath=$lt_cv_aix_libpath
10299 else
10300 if test ${lt_cv_aix_libpath_+y}
10301 then :
10302 printf %s "(cached) " >&6
10303 else $as_nop
10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305 /* end confdefs.h. */
10306
10307 int
10308 main (void)
10309 {
10310
10311 ;
10312 return 0;
10313 }
10314 _ACEOF
10315 if ac_fn_c_try_link "$LINENO"
10316 then :
10317
10318 lt_aix_libpath_sed='
10319 /Import File Strings/,/^$/ {
10320 /^0/ {
10321 s/^0 *\([^ ]*\) *$/\1/
10322 p
10323 }
10324 }'
10325 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10326 # Check for a 64-bit object if we didn't find anything.
10327 if test -z "$lt_cv_aix_libpath_"; then
10328 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10329 fi
10330 fi
10331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10332 conftest$ac_exeext conftest.$ac_ext
10333 if test -z "$lt_cv_aix_libpath_"; then
10334 lt_cv_aix_libpath_=/usr/lib:/lib
10335 fi
10336
10337 fi
10338
10339 aix_libpath=$lt_cv_aix_libpath_
10340 fi
10341
10342 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10343 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
10344 else
10345 if test ia64 = "$host_cpu"; then
10346 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10347 allow_undefined_flag="-z nodefs"
10348 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"
10349 else
10350 # Determine the default libpath from the value encoded in an
10351 # empty executable.
10352 if test set = "${lt_cv_aix_libpath+set}"; then
10353 aix_libpath=$lt_cv_aix_libpath
10354 else
10355 if test ${lt_cv_aix_libpath_+y}
10356 then :
10357 printf %s "(cached) " >&6
10358 else $as_nop
10359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360 /* end confdefs.h. */
10361
10362 int
10363 main (void)
10364 {
10365
10366 ;
10367 return 0;
10368 }
10369 _ACEOF
10370 if ac_fn_c_try_link "$LINENO"
10371 then :
10372
10373 lt_aix_libpath_sed='
10374 /Import File Strings/,/^$/ {
10375 /^0/ {
10376 s/^0 *\([^ ]*\) *$/\1/
10377 p
10378 }
10379 }'
10380 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10381 # Check for a 64-bit object if we didn't find anything.
10382 if test -z "$lt_cv_aix_libpath_"; then
10383 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10384 fi
10385 fi
10386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10387 conftest$ac_exeext conftest.$ac_ext
10388 if test -z "$lt_cv_aix_libpath_"; then
10389 lt_cv_aix_libpath_=/usr/lib:/lib
10390 fi
10391
10392 fi
10393
10394 aix_libpath=$lt_cv_aix_libpath_
10395 fi
10396
10397 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10398 # Warning - without using the other run time loading flags,
10399 # -berok will link without error, but may produce a broken library.
10400 no_undefined_flag=' $wl-bernotok'
10401 allow_undefined_flag=' $wl-berok'
10402 if test yes = "$with_gnu_ld"; then
10403 # We only use this code for GNU lds that support --whole-archive.
10404 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10405 else
10406 # Exported symbols can be pulled into shared objects from archives
10407 whole_archive_flag_spec='$convenience'
10408 fi
10409 archive_cmds_need_lc=yes
10410 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10411 # -brtl affects multiple linker settings, -berok does not and is overridden later
10412 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10413 if test svr4 != "$with_aix_soname"; then
10414 # This is similar to how AIX traditionally builds its shared libraries.
10415 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'
10416 fi
10417 if test aix != "$with_aix_soname"; then
10418 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'
10419 else
10420 # used by -dlpreopen to get the symbols
10421 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10422 fi
10423 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10424 fi
10425 fi
10426 ;;
10427
10428 amigaos*)
10429 case $host_cpu in
10430 powerpc)
10431 # see comment about AmigaOS4 .so support
10432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10433 archive_expsym_cmds=''
10434 ;;
10435 m68k)
10436 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)'
10437 hardcode_libdir_flag_spec='-L$libdir'
10438 hardcode_minus_L=yes
10439 ;;
10440 esac
10441 ;;
10442
10443 bsdi[45]*)
10444 export_dynamic_flag_spec=-rdynamic
10445 ;;
10446
10447 cygwin* | mingw* | pw32* | cegcc*)
10448 # When not using gcc, we currently assume that we are using
10449 # Microsoft Visual C++ or Intel C++ Compiler.
10450 # hardcode_libdir_flag_spec is actually meaningless, as there is
10451 # no search path for DLLs.
10452 case $cc_basename in
10453 cl* | icl*)
10454 # Native MSVC or ICC
10455 hardcode_libdir_flag_spec=' '
10456 allow_undefined_flag=unsupported
10457 always_export_symbols=yes
10458 file_list_spec='@'
10459 # Tell ltmain to make .lib files, not .a files.
10460 libext=lib
10461 # Tell ltmain to make .dll files, not .so files.
10462 shrext_cmds=.dll
10463 # FIXME: Setting linknames here is a bad hack.
10464 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10465 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10466 cp "$export_symbols" "$output_objdir/$soname.def";
10467 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10468 else
10469 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10470 fi~
10471 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10472 linknames='
10473 # The linker will not automatically build a static lib if we build a DLL.
10474 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10475 enable_shared_with_static_runtimes=yes
10476 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10477 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10478 # Don't use ranlib
10479 old_postinstall_cmds='chmod 644 $oldlib'
10480 postlink_cmds='lt_outputfile="@OUTPUT@"~
10481 lt_tool_outputfile="@TOOL_OUTPUT@"~
10482 case $lt_outputfile in
10483 *.exe|*.EXE) ;;
10484 *)
10485 lt_outputfile=$lt_outputfile.exe
10486 lt_tool_outputfile=$lt_tool_outputfile.exe
10487 ;;
10488 esac~
10489 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10490 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10491 $RM "$lt_outputfile.manifest";
10492 fi'
10493 ;;
10494 *)
10495 # Assume MSVC and ICC wrapper
10496 hardcode_libdir_flag_spec=' '
10497 allow_undefined_flag=unsupported
10498 # Tell ltmain to make .lib files, not .a files.
10499 libext=lib
10500 # Tell ltmain to make .dll files, not .so files.
10501 shrext_cmds=.dll
10502 # FIXME: Setting linknames here is a bad hack.
10503 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10504 # The linker will automatically build a .lib file if we build a DLL.
10505 old_archive_from_new_cmds='true'
10506 # FIXME: Should let the user specify the lib program.
10507 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10508 enable_shared_with_static_runtimes=yes
10509 ;;
10510 esac
10511 ;;
10512
10513 darwin* | rhapsody*)
10514
10515
10516 archive_cmds_need_lc=no
10517 hardcode_direct=no
10518 hardcode_automatic=yes
10519 hardcode_shlibpath_var=unsupported
10520 if test yes = "$lt_cv_ld_force_load"; then
10521 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\"`'
10522
10523 else
10524 whole_archive_flag_spec=''
10525 fi
10526 link_all_deplibs=yes
10527 allow_undefined_flag=$_lt_dar_allow_undefined
10528 case $cc_basename in
10529 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10530 *) _lt_dar_can_shared=$GCC ;;
10531 esac
10532 if test yes = "$_lt_dar_can_shared"; then
10533 output_verbose_link_cmd=func_echo_all
10534 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10535 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10536 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"
10537 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"
10538
10539 else
10540 ld_shlibs=no
10541 fi
10542
10543 ;;
10544
10545 dgux*)
10546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10547 hardcode_libdir_flag_spec='-L$libdir'
10548 hardcode_shlibpath_var=no
10549 ;;
10550
10551 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10552 # support. Future versions do this automatically, but an explicit c++rt0.o
10553 # does not break anything, and helps significantly (at the cost of a little
10554 # extra space).
10555 freebsd2.2*)
10556 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10557 hardcode_libdir_flag_spec='-R$libdir'
10558 hardcode_direct=yes
10559 hardcode_shlibpath_var=no
10560 ;;
10561
10562 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10563 freebsd2.*)
10564 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10565 hardcode_direct=yes
10566 hardcode_minus_L=yes
10567 hardcode_shlibpath_var=no
10568 ;;
10569
10570 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10571 freebsd* | dragonfly* | midnightbsd*)
10572 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10573 hardcode_libdir_flag_spec='-R$libdir'
10574 hardcode_direct=yes
10575 hardcode_shlibpath_var=no
10576 ;;
10577
10578 hpux9*)
10579 if test yes = "$GCC"; then
10580 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'
10581 else
10582 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'
10583 fi
10584 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10585 hardcode_libdir_separator=:
10586 hardcode_direct=yes
10587
10588 # hardcode_minus_L: Not really in the search PATH,
10589 # but as the default location of the library.
10590 hardcode_minus_L=yes
10591 export_dynamic_flag_spec='$wl-E'
10592 ;;
10593
10594 hpux10*)
10595 if test yes,no = "$GCC,$with_gnu_ld"; then
10596 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10597 else
10598 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10599 fi
10600 if test no = "$with_gnu_ld"; then
10601 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10602 hardcode_libdir_separator=:
10603 hardcode_direct=yes
10604 hardcode_direct_absolute=yes
10605 export_dynamic_flag_spec='$wl-E'
10606 # hardcode_minus_L: Not really in the search PATH,
10607 # but as the default location of the library.
10608 hardcode_minus_L=yes
10609 fi
10610 ;;
10611
10612 hpux11*)
10613 if test yes,no = "$GCC,$with_gnu_ld"; then
10614 case $host_cpu in
10615 hppa*64*)
10616 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10617 ;;
10618 ia64*)
10619 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10620 ;;
10621 *)
10622 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10623 ;;
10624 esac
10625 else
10626 case $host_cpu in
10627 hppa*64*)
10628 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10629 ;;
10630 ia64*)
10631 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10632 ;;
10633 *)
10634
10635 # Older versions of the 11.00 compiler do not understand -b yet
10636 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10638 printf %s "checking if $CC understands -b... " >&6; }
10639 if test ${lt_cv_prog_compiler__b+y}
10640 then :
10641 printf %s "(cached) " >&6
10642 else $as_nop
10643 lt_cv_prog_compiler__b=no
10644 save_LDFLAGS=$LDFLAGS
10645 LDFLAGS="$LDFLAGS -b"
10646 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10648 # The linker can only warn and ignore the option if not recognized
10649 # So say no if there are warnings
10650 if test -s conftest.err; then
10651 # Append any errors to the config.log.
10652 cat conftest.err 1>&5
10653 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10655 if diff conftest.exp conftest.er2 >/dev/null; then
10656 lt_cv_prog_compiler__b=yes
10657 fi
10658 else
10659 lt_cv_prog_compiler__b=yes
10660 fi
10661 fi
10662 $RM -r conftest*
10663 LDFLAGS=$save_LDFLAGS
10664
10665 fi
10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10667 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10668
10669 if test yes = "$lt_cv_prog_compiler__b"; then
10670 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10671 else
10672 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10673 fi
10674
10675 ;;
10676 esac
10677 fi
10678 if test no = "$with_gnu_ld"; then
10679 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10680 hardcode_libdir_separator=:
10681
10682 case $host_cpu in
10683 hppa*64*|ia64*)
10684 hardcode_direct=no
10685 hardcode_shlibpath_var=no
10686 ;;
10687 *)
10688 hardcode_direct=yes
10689 hardcode_direct_absolute=yes
10690 export_dynamic_flag_spec='$wl-E'
10691
10692 # hardcode_minus_L: Not really in the search PATH,
10693 # but as the default location of the library.
10694 hardcode_minus_L=yes
10695 ;;
10696 esac
10697 fi
10698 ;;
10699
10700 irix5* | irix6* | nonstopux*)
10701 if test yes = "$GCC"; then
10702 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'
10703 # Try to use the -exported_symbol ld option, if it does not
10704 # work, assume that -exports_file does not work either and
10705 # implicitly export all symbols.
10706 # This should be the same for all languages, so no per-tag cache variable.
10707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10708 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10709 if test ${lt_cv_irix_exported_symbol+y}
10710 then :
10711 printf %s "(cached) " >&6
10712 else $as_nop
10713 save_LDFLAGS=$LDFLAGS
10714 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h. */
10717 int foo (void) { return 0; }
10718 _ACEOF
10719 if ac_fn_c_try_link "$LINENO"
10720 then :
10721 lt_cv_irix_exported_symbol=yes
10722 else $as_nop
10723 lt_cv_irix_exported_symbol=no
10724 fi
10725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10726 conftest$ac_exeext conftest.$ac_ext
10727 LDFLAGS=$save_LDFLAGS
10728 fi
10729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10730 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10731 if test yes = "$lt_cv_irix_exported_symbol"; then
10732 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'
10733 fi
10734 link_all_deplibs=no
10735 else
10736 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'
10737 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'
10738 fi
10739 archive_cmds_need_lc='no'
10740 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10741 hardcode_libdir_separator=:
10742 inherit_rpath=yes
10743 link_all_deplibs=yes
10744 ;;
10745
10746 linux*)
10747 case $cc_basename in
10748 tcc*)
10749 # Fabrice Bellard et al's Tiny C Compiler
10750 ld_shlibs=yes
10751 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10752 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10753 ;;
10754 esac
10755 ;;
10756
10757 netbsd* | netbsdelf*-gnu)
10758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10760 else
10761 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10762 fi
10763 hardcode_libdir_flag_spec='-R$libdir'
10764 hardcode_direct=yes
10765 hardcode_shlibpath_var=no
10766 ;;
10767
10768 newsos6)
10769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10770 hardcode_direct=yes
10771 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10772 hardcode_libdir_separator=:
10773 hardcode_shlibpath_var=no
10774 ;;
10775
10776 *nto* | *qnx*)
10777 ;;
10778
10779 openbsd* | bitrig*)
10780 if test -f /usr/libexec/ld.so; then
10781 hardcode_direct=yes
10782 hardcode_shlibpath_var=no
10783 hardcode_direct_absolute=yes
10784 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10785 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10786 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10787 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10788 export_dynamic_flag_spec='$wl-E'
10789 else
10790 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10791 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10792 fi
10793 else
10794 ld_shlibs=no
10795 fi
10796 ;;
10797
10798 os2*)
10799 hardcode_libdir_flag_spec='-L$libdir'
10800 hardcode_minus_L=yes
10801 allow_undefined_flag=unsupported
10802 shrext_cmds=.dll
10803 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10804 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10805 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10806 $ECHO EXPORTS >> $output_objdir/$libname.def~
10807 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10808 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10809 emximp -o $lib $output_objdir/$libname.def'
10810 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10811 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10812 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10813 $ECHO EXPORTS >> $output_objdir/$libname.def~
10814 prefix_cmds="$SED"~
10815 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10816 prefix_cmds="$prefix_cmds -e 1d";
10817 fi~
10818 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10819 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10820 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10821 emximp -o $lib $output_objdir/$libname.def'
10822 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10823 enable_shared_with_static_runtimes=yes
10824 file_list_spec='@'
10825 ;;
10826
10827 osf3*)
10828 if test yes = "$GCC"; then
10829 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10830 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'
10831 else
10832 allow_undefined_flag=' -expect_unresolved \*'
10833 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'
10834 fi
10835 archive_cmds_need_lc='no'
10836 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10837 hardcode_libdir_separator=:
10838 ;;
10839
10840 osf4* | osf5*) # as osf3* with the addition of -msym flag
10841 if test yes = "$GCC"; then
10842 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10843 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'
10844 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10845 else
10846 allow_undefined_flag=' -expect_unresolved \*'
10847 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'
10848 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~
10849 $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'
10850
10851 # Both c and cxx compiler support -rpath directly
10852 hardcode_libdir_flag_spec='-rpath $libdir'
10853 fi
10854 archive_cmds_need_lc='no'
10855 hardcode_libdir_separator=:
10856 ;;
10857
10858 solaris*)
10859 no_undefined_flag=' -z defs'
10860 if test yes = "$GCC"; then
10861 wlarc='$wl'
10862 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10863 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10864 $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'
10865 else
10866 case `$CC -V 2>&1` in
10867 *"Compilers 5.0"*)
10868 wlarc=''
10869 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10870 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10871 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10872 ;;
10873 *)
10874 wlarc='$wl'
10875 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10876 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10877 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10878 ;;
10879 esac
10880 fi
10881 hardcode_libdir_flag_spec='-R$libdir'
10882 hardcode_shlibpath_var=no
10883 case $host_os in
10884 solaris2.[0-5] | solaris2.[0-5].*) ;;
10885 *)
10886 # The compiler driver will combine and reorder linker options,
10887 # but understands '-z linker_flag'. GCC discards it without '$wl',
10888 # but is careful enough not to reorder.
10889 # Supported since Solaris 2.6 (maybe 2.5.1?)
10890 if test yes = "$GCC"; then
10891 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10892 else
10893 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10894 fi
10895 ;;
10896 esac
10897 link_all_deplibs=yes
10898 ;;
10899
10900 sunos4*)
10901 if test sequent = "$host_vendor"; then
10902 # Use $CC to link under sequent, because it throws in some extra .o
10903 # files that make .init and .fini sections work.
10904 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10905 else
10906 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10907 fi
10908 hardcode_libdir_flag_spec='-L$libdir'
10909 hardcode_direct=yes
10910 hardcode_minus_L=yes
10911 hardcode_shlibpath_var=no
10912 ;;
10913
10914 sysv4)
10915 case $host_vendor in
10916 sni)
10917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10918 hardcode_direct=yes # is this really true???
10919 ;;
10920 siemens)
10921 ## LD is ld it makes a PLAMLIB
10922 ## CC just makes a GrossModule.
10923 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10924 reload_cmds='$CC -r -o $output$reload_objs'
10925 hardcode_direct=no
10926 ;;
10927 motorola)
10928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10929 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10930 ;;
10931 esac
10932 runpath_var='LD_RUN_PATH'
10933 hardcode_shlibpath_var=no
10934 ;;
10935
10936 sysv4.3*)
10937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10938 hardcode_shlibpath_var=no
10939 export_dynamic_flag_spec='-Bexport'
10940 ;;
10941
10942 sysv4*MP*)
10943 if test -d /usr/nec; then
10944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10945 hardcode_shlibpath_var=no
10946 runpath_var=LD_RUN_PATH
10947 hardcode_runpath_var=yes
10948 ld_shlibs=yes
10949 fi
10950 ;;
10951
10952 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10953 no_undefined_flag='$wl-z,text'
10954 archive_cmds_need_lc=no
10955 hardcode_shlibpath_var=no
10956 runpath_var='LD_RUN_PATH'
10957
10958 if test yes = "$GCC"; then
10959 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10960 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961 else
10962 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10963 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10964 fi
10965 ;;
10966
10967 sysv5* | sco3.2v5* | sco5v6*)
10968 # Note: We CANNOT use -z defs as we might desire, because we do not
10969 # link with -lc, and that would cause any symbols used from libc to
10970 # always be unresolved, which means just about no library would
10971 # ever link correctly. If we're not using GNU ld we use -z text
10972 # though, which does catch some bad symbols but isn't as heavy-handed
10973 # as -z defs.
10974 no_undefined_flag='$wl-z,text'
10975 allow_undefined_flag='$wl-z,nodefs'
10976 archive_cmds_need_lc=no
10977 hardcode_shlibpath_var=no
10978 hardcode_libdir_flag_spec='$wl-R,$libdir'
10979 hardcode_libdir_separator=':'
10980 link_all_deplibs=yes
10981 export_dynamic_flag_spec='$wl-Bexport'
10982 runpath_var='LD_RUN_PATH'
10983
10984 if test yes = "$GCC"; then
10985 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10986 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10987 else
10988 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10989 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990 fi
10991 ;;
10992
10993 uts4*)
10994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10995 hardcode_libdir_flag_spec='-L$libdir'
10996 hardcode_shlibpath_var=no
10997 ;;
10998
10999 *)
11000 ld_shlibs=no
11001 ;;
11002 esac
11003
11004 if test sni = "$host_vendor"; then
11005 case $host in
11006 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11007 export_dynamic_flag_spec='$wl-Blargedynsym'
11008 ;;
11009 esac
11010 fi
11011 fi
11012
11013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11014 printf "%s\n" "$ld_shlibs" >&6; }
11015 test no = "$ld_shlibs" && can_build_shared=no
11016
11017 with_gnu_ld=$with_gnu_ld
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033 #
11034 # Do we need to explicitly link libc?
11035 #
11036 case "x$archive_cmds_need_lc" in
11037 x|xyes)
11038 # Assume -lc should be added
11039 archive_cmds_need_lc=yes
11040
11041 if test yes,yes = "$GCC,$enable_shared"; then
11042 case $archive_cmds in
11043 *'~'*)
11044 # FIXME: we may have to deal with multi-command sequences.
11045 ;;
11046 '$CC '*)
11047 # Test whether the compiler implicitly links with -lc since on some
11048 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11049 # to ld, don't add -lc before -lgcc.
11050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11051 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11052 if test ${lt_cv_archive_cmds_need_lc+y}
11053 then :
11054 printf %s "(cached) " >&6
11055 else $as_nop
11056 $RM conftest*
11057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11058
11059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11060 (eval $ac_compile) 2>&5
11061 ac_status=$?
11062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11063 test $ac_status = 0; } 2>conftest.err; then
11064 soname=conftest
11065 lib=conftest
11066 libobjs=conftest.$ac_objext
11067 deplibs=
11068 wl=$lt_prog_compiler_wl
11069 pic_flag=$lt_prog_compiler_pic
11070 compiler_flags=-v
11071 linker_flags=-v
11072 verstring=
11073 output_objdir=.
11074 libname=conftest
11075 lt_save_allow_undefined_flag=$allow_undefined_flag
11076 allow_undefined_flag=
11077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11078 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11079 ac_status=$?
11080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11081 test $ac_status = 0; }
11082 then
11083 lt_cv_archive_cmds_need_lc=no
11084 else
11085 lt_cv_archive_cmds_need_lc=yes
11086 fi
11087 allow_undefined_flag=$lt_save_allow_undefined_flag
11088 else
11089 cat conftest.err 1>&5
11090 fi
11091 $RM conftest*
11092
11093 fi
11094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11095 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11096 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11097 ;;
11098 esac
11099 fi
11100 ;;
11101 esac
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11255 printf %s "checking dynamic linker characteristics... " >&6; }
11256
11257 if test yes = "$GCC"; then
11258 case $host_os in
11259 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11260 *) lt_awk_arg='/^libraries:/' ;;
11261 esac
11262 case $host_os in
11263 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11264 *) lt_sed_strip_eq='s|=/|/|g' ;;
11265 esac
11266 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11267 case $lt_search_path_spec in
11268 *\;*)
11269 # if the path contains ";" then we assume it to be the separator
11270 # otherwise default to the standard path separator (i.e. ":") - it is
11271 # assumed that no part of a normal pathname contains ";" but that should
11272 # okay in the real world where ";" in dirpaths is itself problematic.
11273 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11274 ;;
11275 *)
11276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11277 ;;
11278 esac
11279 # Ok, now we have the path, separated by spaces, we can step through it
11280 # and add multilib dir if necessary...
11281 lt_tmp_lt_search_path_spec=
11282 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11283 # ...but if some path component already ends with the multilib dir we assume
11284 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11285 case "$lt_multi_os_dir; $lt_search_path_spec " in
11286 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11287 lt_multi_os_dir=
11288 ;;
11289 esac
11290 for lt_sys_path in $lt_search_path_spec; do
11291 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11292 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11293 elif test -n "$lt_multi_os_dir"; then
11294 test -d "$lt_sys_path" && \
11295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11296 fi
11297 done
11298 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11299 BEGIN {RS = " "; FS = "/|\n";} {
11300 lt_foo = "";
11301 lt_count = 0;
11302 for (lt_i = NF; lt_i > 0; lt_i--) {
11303 if ($lt_i != "" && $lt_i != ".") {
11304 if ($lt_i == "..") {
11305 lt_count++;
11306 } else {
11307 if (lt_count == 0) {
11308 lt_foo = "/" $lt_i lt_foo;
11309 } else {
11310 lt_count--;
11311 }
11312 }
11313 }
11314 }
11315 if (lt_foo != "") { lt_freq[lt_foo]++; }
11316 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11317 }'`
11318 # AWK program above erroneously prepends '/' to C:/dos/paths
11319 # for these hosts.
11320 case $host_os in
11321 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11322 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11323 esac
11324 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11325 else
11326 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11327 fi
11328 library_names_spec=
11329 libname_spec='lib$name'
11330 soname_spec=
11331 shrext_cmds=.so
11332 postinstall_cmds=
11333 postuninstall_cmds=
11334 finish_cmds=
11335 finish_eval=
11336 shlibpath_var=
11337 shlibpath_overrides_runpath=unknown
11338 version_type=none
11339 dynamic_linker="$host_os ld.so"
11340 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11341 need_lib_prefix=unknown
11342 hardcode_into_libs=no
11343
11344 # when you set need_version to no, make sure it does not cause -set_version
11345 # flags to be left without arguments
11346 need_version=unknown
11347
11348
11349
11350 case $host_os in
11351 aix3*)
11352 version_type=linux # correct to gnu/linux during the next big refactor
11353 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11354 shlibpath_var=LIBPATH
11355
11356 # AIX 3 has no versioning support, so we append a major version to the name.
11357 soname_spec='$libname$release$shared_ext$major'
11358 ;;
11359
11360 aix[4-9]*)
11361 version_type=linux # correct to gnu/linux during the next big refactor
11362 need_lib_prefix=no
11363 need_version=no
11364 hardcode_into_libs=yes
11365 if test ia64 = "$host_cpu"; then
11366 # AIX 5 supports IA64
11367 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11368 shlibpath_var=LD_LIBRARY_PATH
11369 else
11370 # With GCC up to 2.95.x, collect2 would create an import file
11371 # for dependence libraries. The import file would start with
11372 # the line '#! .'. This would cause the generated library to
11373 # depend on '.', always an invalid library. This was fixed in
11374 # development snapshots of GCC prior to 3.0.
11375 case $host_os in
11376 aix4 | aix4.[01] | aix4.[01].*)
11377 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11378 echo ' yes '
11379 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11380 :
11381 else
11382 can_build_shared=no
11383 fi
11384 ;;
11385 esac
11386 # Using Import Files as archive members, it is possible to support
11387 # filename-based versioning of shared library archives on AIX. While
11388 # this would work for both with and without runtime linking, it will
11389 # prevent static linking of such archives. So we do filename-based
11390 # shared library versioning with .so extension only, which is used
11391 # when both runtime linking and shared linking is enabled.
11392 # Unfortunately, runtime linking may impact performance, so we do
11393 # not want this to be the default eventually. Also, we use the
11394 # versioned .so libs for executables only if there is the -brtl
11395 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11396 # To allow for filename-based versioning support, we need to create
11397 # libNAME.so.V as an archive file, containing:
11398 # *) an Import File, referring to the versioned filename of the
11399 # archive as well as the shared archive member, telling the
11400 # bitwidth (32 or 64) of that shared object, and providing the
11401 # list of exported symbols of that shared object, eventually
11402 # decorated with the 'weak' keyword
11403 # *) the shared object with the F_LOADONLY flag set, to really avoid
11404 # it being seen by the linker.
11405 # At run time we better use the real file rather than another symlink,
11406 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11407
11408 case $with_aix_soname,$aix_use_runtimelinking in
11409 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11410 # soname into executable. Probably we can add versioning support to
11411 # collect2, so additional links can be useful in future.
11412 aix,yes) # traditional libtool
11413 dynamic_linker='AIX unversionable lib.so'
11414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11415 # instead of lib<name>.a to let people know that these are not
11416 # typical AIX shared libraries.
11417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11418 ;;
11419 aix,no) # traditional AIX only
11420 dynamic_linker='AIX lib.a(lib.so.V)'
11421 # We preserve .a as extension for shared libraries through AIX4.2
11422 # and later when we are not doing run time linking.
11423 library_names_spec='$libname$release.a $libname.a'
11424 soname_spec='$libname$release$shared_ext$major'
11425 ;;
11426 svr4,*) # full svr4 only
11427 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11428 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11429 # We do not specify a path in Import Files, so LIBPATH fires.
11430 shlibpath_overrides_runpath=yes
11431 ;;
11432 *,yes) # both, prefer svr4
11433 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11434 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11435 # unpreferred sharedlib libNAME.a needs extra handling
11436 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"'
11437 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"'
11438 # We do not specify a path in Import Files, so LIBPATH fires.
11439 shlibpath_overrides_runpath=yes
11440 ;;
11441 *,no) # both, prefer aix
11442 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11443 library_names_spec='$libname$release.a $libname.a'
11444 soname_spec='$libname$release$shared_ext$major'
11445 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11446 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)'
11447 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"'
11448 ;;
11449 esac
11450 shlibpath_var=LIBPATH
11451 fi
11452 ;;
11453
11454 amigaos*)
11455 case $host_cpu in
11456 powerpc)
11457 # Since July 2007 AmigaOS4 officially supports .so libraries.
11458 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11460 ;;
11461 m68k)
11462 library_names_spec='$libname.ixlibrary $libname.a'
11463 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11464 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'
11465 ;;
11466 esac
11467 ;;
11468
11469 beos*)
11470 library_names_spec='$libname$shared_ext'
11471 dynamic_linker="$host_os ld.so"
11472 shlibpath_var=LIBRARY_PATH
11473 ;;
11474
11475 bsdi[45]*)
11476 version_type=linux # correct to gnu/linux during the next big refactor
11477 need_version=no
11478 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11479 soname_spec='$libname$release$shared_ext$major'
11480 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11483 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11484 # the default ld.so.conf also contains /usr/contrib/lib and
11485 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11486 # libtool to hard-code these into programs
11487 ;;
11488
11489 cygwin* | mingw* | pw32* | cegcc*)
11490 version_type=windows
11491 shrext_cmds=.dll
11492 need_version=no
11493 need_lib_prefix=no
11494
11495 case $GCC,$cc_basename in
11496 yes,*)
11497 # gcc
11498 library_names_spec='$libname.dll.a'
11499 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11500 postinstall_cmds='base_file=`basename \$file`~
11501 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11502 dldir=$destdir/`dirname \$dlpath`~
11503 test -d \$dldir || mkdir -p \$dldir~
11504 $install_prog $dir/$dlname \$dldir/$dlname~
11505 chmod a+x \$dldir/$dlname~
11506 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11507 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11508 fi'
11509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11510 dlpath=$dir/\$dldll~
11511 $RM \$dlpath'
11512 shlibpath_overrides_runpath=yes
11513
11514 case $host_os in
11515 cygwin*)
11516 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11517 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11518
11519 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11520 ;;
11521 mingw* | cegcc*)
11522 # MinGW DLLs use traditional 'lib' prefix
11523 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11524 ;;
11525 pw32*)
11526 # pw32 DLLs use 'pw' prefix rather than 'lib'
11527 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11528 ;;
11529 esac
11530 dynamic_linker='Win32 ld.exe'
11531 ;;
11532
11533 *,cl* | *,icl*)
11534 # Native MSVC or ICC
11535 libname_spec='$name'
11536 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11537 library_names_spec='$libname.dll.lib'
11538
11539 case $build_os in
11540 mingw*)
11541 sys_lib_search_path_spec=
11542 lt_save_ifs=$IFS
11543 IFS=';'
11544 for lt_path in $LIB
11545 do
11546 IFS=$lt_save_ifs
11547 # Let DOS variable expansion print the short 8.3 style file name.
11548 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11549 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11550 done
11551 IFS=$lt_save_ifs
11552 # Convert to MSYS style.
11553 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11554 ;;
11555 cygwin*)
11556 # Convert to unix form, then to dos form, then back to unix form
11557 # but this time dos style (no spaces!) so that the unix form looks
11558 # like /cygdrive/c/PROGRA~1:/cygdr...
11559 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11560 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11561 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11562 ;;
11563 *)
11564 sys_lib_search_path_spec=$LIB
11565 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11566 # It is most probably a Windows format PATH.
11567 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11568 else
11569 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11570 fi
11571 # FIXME: find the short name or the path components, as spaces are
11572 # common. (e.g. "Program Files" -> "PROGRA~1")
11573 ;;
11574 esac
11575
11576 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11577 postinstall_cmds='base_file=`basename \$file`~
11578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11579 dldir=$destdir/`dirname \$dlpath`~
11580 test -d \$dldir || mkdir -p \$dldir~
11581 $install_prog $dir/$dlname \$dldir/$dlname'
11582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11583 dlpath=$dir/\$dldll~
11584 $RM \$dlpath'
11585 shlibpath_overrides_runpath=yes
11586 dynamic_linker='Win32 link.exe'
11587 ;;
11588
11589 *)
11590 # Assume MSVC and ICC wrapper
11591 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11592 dynamic_linker='Win32 ld.exe'
11593 ;;
11594 esac
11595 # FIXME: first we should search . and the directory the executable is in
11596 shlibpath_var=PATH
11597 ;;
11598
11599 darwin* | rhapsody*)
11600 dynamic_linker="$host_os dyld"
11601 version_type=darwin
11602 need_lib_prefix=no
11603 need_version=no
11604 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11605 soname_spec='$libname$release$major$shared_ext'
11606 shlibpath_overrides_runpath=yes
11607 shlibpath_var=DYLD_LIBRARY_PATH
11608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11609
11610 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11611 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11612 ;;
11613
11614 dgux*)
11615 version_type=linux # correct to gnu/linux during the next big refactor
11616 need_lib_prefix=no
11617 need_version=no
11618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11619 soname_spec='$libname$release$shared_ext$major'
11620 shlibpath_var=LD_LIBRARY_PATH
11621 ;;
11622
11623 freebsd* | dragonfly* | midnightbsd*)
11624 # DragonFly does not have aout. When/if they implement a new
11625 # versioning mechanism, adjust this.
11626 if test -x /usr/bin/objformat; then
11627 objformat=`/usr/bin/objformat`
11628 else
11629 case $host_os in
11630 freebsd[23].*) objformat=aout ;;
11631 *) objformat=elf ;;
11632 esac
11633 fi
11634 version_type=freebsd-$objformat
11635 case $version_type in
11636 freebsd-elf*)
11637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11638 soname_spec='$libname$release$shared_ext$major'
11639 need_version=no
11640 need_lib_prefix=no
11641 ;;
11642 freebsd-*)
11643 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11644 need_version=yes
11645 ;;
11646 esac
11647 shlibpath_var=LD_LIBRARY_PATH
11648 case $host_os in
11649 freebsd2.*)
11650 shlibpath_overrides_runpath=yes
11651 ;;
11652 freebsd3.[01]* | freebsdelf3.[01]*)
11653 shlibpath_overrides_runpath=yes
11654 hardcode_into_libs=yes
11655 ;;
11656 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11657 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11658 shlibpath_overrides_runpath=no
11659 hardcode_into_libs=yes
11660 ;;
11661 *) # from 4.6 on, and DragonFly
11662 shlibpath_overrides_runpath=yes
11663 hardcode_into_libs=yes
11664 ;;
11665 esac
11666 ;;
11667
11668 haiku*)
11669 version_type=linux # correct to gnu/linux during the next big refactor
11670 need_lib_prefix=no
11671 need_version=no
11672 dynamic_linker="$host_os runtime_loader"
11673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11674 soname_spec='$libname$release$shared_ext$major'
11675 shlibpath_var=LIBRARY_PATH
11676 shlibpath_overrides_runpath=no
11677 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11678 hardcode_into_libs=yes
11679 ;;
11680
11681 hpux9* | hpux10* | hpux11*)
11682 # Give a soname corresponding to the major version so that dld.sl refuses to
11683 # link against other versions.
11684 version_type=sunos
11685 need_lib_prefix=no
11686 need_version=no
11687 case $host_cpu in
11688 ia64*)
11689 shrext_cmds='.so'
11690 hardcode_into_libs=yes
11691 dynamic_linker="$host_os dld.so"
11692 shlibpath_var=LD_LIBRARY_PATH
11693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695 soname_spec='$libname$release$shared_ext$major'
11696 if test 32 = "$HPUX_IA64_MODE"; then
11697 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11698 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11699 else
11700 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11701 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11702 fi
11703 ;;
11704 hppa*64*)
11705 shrext_cmds='.sl'
11706 hardcode_into_libs=yes
11707 dynamic_linker="$host_os dld.sl"
11708 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11711 soname_spec='$libname$release$shared_ext$major'
11712 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11714 ;;
11715 *)
11716 shrext_cmds='.sl'
11717 dynamic_linker="$host_os dld.sl"
11718 shlibpath_var=SHLIB_PATH
11719 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11721 soname_spec='$libname$release$shared_ext$major'
11722 ;;
11723 esac
11724 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11725 postinstall_cmds='chmod 555 $lib'
11726 # or fails outright, so override atomically:
11727 install_override_mode=555
11728 ;;
11729
11730 interix[3-9]*)
11731 version_type=linux # correct to gnu/linux during the next big refactor
11732 need_lib_prefix=no
11733 need_version=no
11734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11735 soname_spec='$libname$release$shared_ext$major'
11736 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11737 shlibpath_var=LD_LIBRARY_PATH
11738 shlibpath_overrides_runpath=no
11739 hardcode_into_libs=yes
11740 ;;
11741
11742 irix5* | irix6* | nonstopux*)
11743 case $host_os in
11744 nonstopux*) version_type=nonstopux ;;
11745 *)
11746 if test yes = "$lt_cv_prog_gnu_ld"; then
11747 version_type=linux # correct to gnu/linux during the next big refactor
11748 else
11749 version_type=irix
11750 fi ;;
11751 esac
11752 need_lib_prefix=no
11753 need_version=no
11754 soname_spec='$libname$release$shared_ext$major'
11755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11756 case $host_os in
11757 irix5* | nonstopux*)
11758 libsuff= shlibsuff=
11759 ;;
11760 *)
11761 case $LD in # libtool.m4 will add one of these switches to LD
11762 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11763 libsuff= shlibsuff= libmagic=32-bit;;
11764 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11765 libsuff=32 shlibsuff=N32 libmagic=N32;;
11766 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11767 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11768 *) libsuff= shlibsuff= libmagic=never-match;;
11769 esac
11770 ;;
11771 esac
11772 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11773 shlibpath_overrides_runpath=no
11774 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11775 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11776 hardcode_into_libs=yes
11777 ;;
11778
11779 # No shared lib support for Linux oldld, aout, or coff.
11780 linux*oldld* | linux*aout* | linux*coff*)
11781 dynamic_linker=no
11782 ;;
11783
11784 linux*android*)
11785 version_type=none # Android doesn't support versioned libraries.
11786 need_lib_prefix=no
11787 need_version=no
11788 library_names_spec='$libname$release$shared_ext'
11789 soname_spec='$libname$release$shared_ext'
11790 finish_cmds=
11791 shlibpath_var=LD_LIBRARY_PATH
11792 shlibpath_overrides_runpath=yes
11793
11794 # This implies no fast_install, which is unacceptable.
11795 # Some rework will be needed to allow for fast_install
11796 # before this can be enabled.
11797 hardcode_into_libs=yes
11798
11799 dynamic_linker='Android linker'
11800 # Don't embed -rpath directories since the linker doesn't support them.
11801 hardcode_libdir_flag_spec='-L$libdir'
11802 ;;
11803
11804 # This must be glibc/ELF.
11805 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11806 version_type=linux # correct to gnu/linux during the next big refactor
11807 need_lib_prefix=no
11808 need_version=no
11809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11810 soname_spec='$libname$release$shared_ext$major'
11811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 shlibpath_overrides_runpath=no
11814
11815 # Some binutils ld are patched to set DT_RUNPATH
11816 if test ${lt_cv_shlibpath_overrides_runpath+y}
11817 then :
11818 printf %s "(cached) " >&6
11819 else $as_nop
11820 lt_cv_shlibpath_overrides_runpath=no
11821 save_LDFLAGS=$LDFLAGS
11822 save_libdir=$libdir
11823 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11824 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11827
11828 int
11829 main (void)
11830 {
11831
11832 ;
11833 return 0;
11834 }
11835 _ACEOF
11836 if ac_fn_c_try_link "$LINENO"
11837 then :
11838 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11839 then :
11840 lt_cv_shlibpath_overrides_runpath=yes
11841 fi
11842 fi
11843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11844 conftest$ac_exeext conftest.$ac_ext
11845 LDFLAGS=$save_LDFLAGS
11846 libdir=$save_libdir
11847
11848 fi
11849
11850 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11851
11852 # This implies no fast_install, which is unacceptable.
11853 # Some rework will be needed to allow for fast_install
11854 # before this can be enabled.
11855 hardcode_into_libs=yes
11856
11857 # Ideally, we could use ldconfig to report *all* directores which are
11858 # searched for libraries, however this is still not possible. Aside from not
11859 # being certain /sbin/ldconfig is available, command
11860 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11861 # even though it is searched at run-time. Try to do the best guess by
11862 # appending ld.so.conf contents (and includes) to the search path.
11863 if test -f /etc/ld.so.conf; then
11864 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' ' '`
11865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11866 fi
11867
11868 # We used to test for /lib/ld.so.1 and disable shared libraries on
11869 # powerpc, because MkLinux only supported shared libraries with the
11870 # GNU dynamic linker. Since this was broken with cross compilers,
11871 # most powerpc-linux boxes support dynamic linking these days and
11872 # people can always --disable-shared, the test was removed, and we
11873 # assume the GNU/Linux dynamic linker is in use.
11874 dynamic_linker='GNU/Linux ld.so'
11875 ;;
11876
11877 netbsdelf*-gnu)
11878 version_type=linux
11879 need_lib_prefix=no
11880 need_version=no
11881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11882 soname_spec='${libname}${release}${shared_ext}$major'
11883 shlibpath_var=LD_LIBRARY_PATH
11884 shlibpath_overrides_runpath=no
11885 hardcode_into_libs=yes
11886 dynamic_linker='NetBSD ld.elf_so'
11887 ;;
11888
11889 netbsd*)
11890 version_type=sunos
11891 need_lib_prefix=no
11892 need_version=no
11893 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11894 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11896 dynamic_linker='NetBSD (a.out) ld.so'
11897 else
11898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11899 soname_spec='$libname$release$shared_ext$major'
11900 dynamic_linker='NetBSD ld.elf_so'
11901 fi
11902 shlibpath_var=LD_LIBRARY_PATH
11903 shlibpath_overrides_runpath=yes
11904 hardcode_into_libs=yes
11905 ;;
11906
11907 newsos6)
11908 version_type=linux # correct to gnu/linux during the next big refactor
11909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11910 shlibpath_var=LD_LIBRARY_PATH
11911 shlibpath_overrides_runpath=yes
11912 ;;
11913
11914 *nto* | *qnx*)
11915 version_type=qnx
11916 need_lib_prefix=no
11917 need_version=no
11918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11919 soname_spec='$libname$release$shared_ext$major'
11920 shlibpath_var=LD_LIBRARY_PATH
11921 shlibpath_overrides_runpath=no
11922 hardcode_into_libs=yes
11923 dynamic_linker='ldqnx.so'
11924 ;;
11925
11926 openbsd* | bitrig*)
11927 version_type=sunos
11928 sys_lib_dlsearch_path_spec=/usr/lib
11929 need_lib_prefix=no
11930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11931 need_version=no
11932 else
11933 need_version=yes
11934 fi
11935 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11936 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11937 shlibpath_var=LD_LIBRARY_PATH
11938 shlibpath_overrides_runpath=yes
11939 ;;
11940
11941 os2*)
11942 libname_spec='$name'
11943 version_type=windows
11944 shrext_cmds=.dll
11945 need_version=no
11946 need_lib_prefix=no
11947 # OS/2 can only load a DLL with a base name of 8 characters or less.
11948 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11949 v=$($ECHO $release$versuffix | tr -d .-);
11950 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11951 $ECHO $n$v`$shared_ext'
11952 library_names_spec='${libname}_dll.$libext'
11953 dynamic_linker='OS/2 ld.exe'
11954 shlibpath_var=BEGINLIBPATH
11955 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11957 postinstall_cmds='base_file=`basename \$file`~
11958 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11959 dldir=$destdir/`dirname \$dlpath`~
11960 test -d \$dldir || mkdir -p \$dldir~
11961 $install_prog $dir/$dlname \$dldir/$dlname~
11962 chmod a+x \$dldir/$dlname~
11963 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11964 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11965 fi'
11966 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11967 dlpath=$dir/\$dldll~
11968 $RM \$dlpath'
11969 ;;
11970
11971 osf3* | osf4* | osf5*)
11972 version_type=osf
11973 need_lib_prefix=no
11974 need_version=no
11975 soname_spec='$libname$release$shared_ext$major'
11976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11977 shlibpath_var=LD_LIBRARY_PATH
11978 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11979 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11980 ;;
11981
11982 rdos*)
11983 dynamic_linker=no
11984 ;;
11985
11986 solaris*)
11987 version_type=linux # correct to gnu/linux during the next big refactor
11988 need_lib_prefix=no
11989 need_version=no
11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11991 soname_spec='$libname$release$shared_ext$major'
11992 shlibpath_var=LD_LIBRARY_PATH
11993 shlibpath_overrides_runpath=yes
11994 hardcode_into_libs=yes
11995 # ldd complains unless libraries are executable
11996 postinstall_cmds='chmod +x $lib'
11997 ;;
11998
11999 sunos4*)
12000 version_type=sunos
12001 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12002 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12003 shlibpath_var=LD_LIBRARY_PATH
12004 shlibpath_overrides_runpath=yes
12005 if test yes = "$with_gnu_ld"; then
12006 need_lib_prefix=no
12007 fi
12008 need_version=yes
12009 ;;
12010
12011 sysv4 | sysv4.3*)
12012 version_type=linux # correct to gnu/linux during the next big refactor
12013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12014 soname_spec='$libname$release$shared_ext$major'
12015 shlibpath_var=LD_LIBRARY_PATH
12016 case $host_vendor in
12017 sni)
12018 shlibpath_overrides_runpath=no
12019 need_lib_prefix=no
12020 runpath_var=LD_RUN_PATH
12021 ;;
12022 siemens)
12023 need_lib_prefix=no
12024 ;;
12025 motorola)
12026 need_lib_prefix=no
12027 need_version=no
12028 shlibpath_overrides_runpath=no
12029 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12030 ;;
12031 esac
12032 ;;
12033
12034 sysv4*MP*)
12035 if test -d /usr/nec; then
12036 version_type=linux # correct to gnu/linux during the next big refactor
12037 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12038 soname_spec='$libname$shared_ext.$major'
12039 shlibpath_var=LD_LIBRARY_PATH
12040 fi
12041 ;;
12042
12043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12044 version_type=sco
12045 need_lib_prefix=no
12046 need_version=no
12047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12048 soname_spec='$libname$release$shared_ext$major'
12049 shlibpath_var=LD_LIBRARY_PATH
12050 shlibpath_overrides_runpath=yes
12051 hardcode_into_libs=yes
12052 if test yes = "$with_gnu_ld"; then
12053 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12054 else
12055 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12056 case $host_os in
12057 sco3.2v5*)
12058 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12059 ;;
12060 esac
12061 fi
12062 sys_lib_dlsearch_path_spec='/usr/lib'
12063 ;;
12064
12065 tpf*)
12066 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12067 version_type=linux # correct to gnu/linux during the next big refactor
12068 need_lib_prefix=no
12069 need_version=no
12070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12071 shlibpath_var=LD_LIBRARY_PATH
12072 shlibpath_overrides_runpath=no
12073 hardcode_into_libs=yes
12074 ;;
12075
12076 uts4*)
12077 version_type=linux # correct to gnu/linux during the next big refactor
12078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12079 soname_spec='$libname$release$shared_ext$major'
12080 shlibpath_var=LD_LIBRARY_PATH
12081 ;;
12082
12083 *)
12084 dynamic_linker=no
12085 ;;
12086 esac
12087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12088 printf "%s\n" "$dynamic_linker" >&6; }
12089 test no = "$dynamic_linker" && can_build_shared=no
12090
12091 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12092 if test yes = "$GCC"; then
12093 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12094 fi
12095
12096 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12097 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12098 fi
12099
12100 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12101 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12102 fi
12103
12104 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12105 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12106
12107 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12108 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12109
12110 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12111 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12210 printf %s "checking how to hardcode library paths into programs... " >&6; }
12211 hardcode_action=
12212 if test -n "$hardcode_libdir_flag_spec" ||
12213 test -n "$runpath_var" ||
12214 test yes = "$hardcode_automatic"; then
12215
12216 # We can hardcode non-existent directories.
12217 if test no != "$hardcode_direct" &&
12218 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12219 # have to relink, otherwise we might link with an installed library
12220 # when we should be linking with a yet-to-be-installed one
12221 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12222 test no != "$hardcode_minus_L"; then
12223 # Linking always hardcodes the temporary library directory.
12224 hardcode_action=relink
12225 else
12226 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12227 hardcode_action=immediate
12228 fi
12229 else
12230 # We cannot hardcode anything, or else we can only hardcode existing
12231 # directories.
12232 hardcode_action=unsupported
12233 fi
12234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12235 printf "%s\n" "$hardcode_action" >&6; }
12236
12237 if test relink = "$hardcode_action" ||
12238 test yes = "$inherit_rpath"; then
12239 # Fast installation is not supported
12240 enable_fast_install=no
12241 elif test yes = "$shlibpath_overrides_runpath" ||
12242 test no = "$enable_shared"; then
12243 # Fast installation is not necessary
12244 enable_fast_install=needless
12245 fi
12246
12247
12248
12249
12250
12251
12252 if test yes != "$enable_dlopen"; then
12253 enable_dlopen=unknown
12254 enable_dlopen_self=unknown
12255 enable_dlopen_self_static=unknown
12256 else
12257 lt_cv_dlopen=no
12258 lt_cv_dlopen_libs=
12259
12260 case $host_os in
12261 beos*)
12262 lt_cv_dlopen=load_add_on
12263 lt_cv_dlopen_libs=
12264 lt_cv_dlopen_self=yes
12265 ;;
12266
12267 mingw* | pw32* | cegcc*)
12268 lt_cv_dlopen=LoadLibrary
12269 lt_cv_dlopen_libs=
12270 ;;
12271
12272 cygwin*)
12273 lt_cv_dlopen=dlopen
12274 lt_cv_dlopen_libs=
12275 ;;
12276
12277 darwin*)
12278 # if libdl is installed we need to link against it
12279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12280 printf %s "checking for dlopen in -ldl... " >&6; }
12281 if test ${ac_cv_lib_dl_dlopen+y}
12282 then :
12283 printf %s "(cached) " >&6
12284 else $as_nop
12285 ac_check_lib_save_LIBS=$LIBS
12286 LIBS="-ldl $LIBS"
12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12289
12290 /* Override any GCC internal prototype to avoid an error.
12291 Use char because int might match the return type of a GCC
12292 builtin and then its argument prototype would still apply. */
12293 char dlopen ();
12294 int
12295 main (void)
12296 {
12297 return dlopen ();
12298 ;
12299 return 0;
12300 }
12301 _ACEOF
12302 if ac_fn_c_try_link "$LINENO"
12303 then :
12304 ac_cv_lib_dl_dlopen=yes
12305 else $as_nop
12306 ac_cv_lib_dl_dlopen=no
12307 fi
12308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12309 conftest$ac_exeext conftest.$ac_ext
12310 LIBS=$ac_check_lib_save_LIBS
12311 fi
12312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12313 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12314 if test "x$ac_cv_lib_dl_dlopen" = xyes
12315 then :
12316 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12317 else $as_nop
12318
12319 lt_cv_dlopen=dyld
12320 lt_cv_dlopen_libs=
12321 lt_cv_dlopen_self=yes
12322
12323 fi
12324
12325 ;;
12326
12327 tpf*)
12328 # Don't try to run any link tests for TPF. We know it's impossible
12329 # because TPF is a cross-compiler, and we know how we open DSOs.
12330 lt_cv_dlopen=dlopen
12331 lt_cv_dlopen_libs=
12332 lt_cv_dlopen_self=no
12333 ;;
12334
12335 *)
12336 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12337 if test "x$ac_cv_func_shl_load" = xyes
12338 then :
12339 lt_cv_dlopen=shl_load
12340 else $as_nop
12341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12342 printf %s "checking for shl_load in -ldld... " >&6; }
12343 if test ${ac_cv_lib_dld_shl_load+y}
12344 then :
12345 printf %s "(cached) " >&6
12346 else $as_nop
12347 ac_check_lib_save_LIBS=$LIBS
12348 LIBS="-ldld $LIBS"
12349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h. */
12351
12352 /* Override any GCC internal prototype to avoid an error.
12353 Use char because int might match the return type of a GCC
12354 builtin and then its argument prototype would still apply. */
12355 char shl_load ();
12356 int
12357 main (void)
12358 {
12359 return shl_load ();
12360 ;
12361 return 0;
12362 }
12363 _ACEOF
12364 if ac_fn_c_try_link "$LINENO"
12365 then :
12366 ac_cv_lib_dld_shl_load=yes
12367 else $as_nop
12368 ac_cv_lib_dld_shl_load=no
12369 fi
12370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12371 conftest$ac_exeext conftest.$ac_ext
12372 LIBS=$ac_check_lib_save_LIBS
12373 fi
12374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12375 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12376 if test "x$ac_cv_lib_dld_shl_load" = xyes
12377 then :
12378 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12379 else $as_nop
12380 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12381 if test "x$ac_cv_func_dlopen" = xyes
12382 then :
12383 lt_cv_dlopen=dlopen
12384 else $as_nop
12385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12386 printf %s "checking for dlopen in -ldl... " >&6; }
12387 if test ${ac_cv_lib_dl_dlopen+y}
12388 then :
12389 printf %s "(cached) " >&6
12390 else $as_nop
12391 ac_check_lib_save_LIBS=$LIBS
12392 LIBS="-ldl $LIBS"
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12395
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12399 char dlopen ();
12400 int
12401 main (void)
12402 {
12403 return dlopen ();
12404 ;
12405 return 0;
12406 }
12407 _ACEOF
12408 if ac_fn_c_try_link "$LINENO"
12409 then :
12410 ac_cv_lib_dl_dlopen=yes
12411 else $as_nop
12412 ac_cv_lib_dl_dlopen=no
12413 fi
12414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12415 conftest$ac_exeext conftest.$ac_ext
12416 LIBS=$ac_check_lib_save_LIBS
12417 fi
12418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12419 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12420 if test "x$ac_cv_lib_dl_dlopen" = xyes
12421 then :
12422 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12423 else $as_nop
12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12425 printf %s "checking for dlopen in -lsvld... " >&6; }
12426 if test ${ac_cv_lib_svld_dlopen+y}
12427 then :
12428 printf %s "(cached) " >&6
12429 else $as_nop
12430 ac_check_lib_save_LIBS=$LIBS
12431 LIBS="-lsvld $LIBS"
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12434
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12438 char dlopen ();
12439 int
12440 main (void)
12441 {
12442 return dlopen ();
12443 ;
12444 return 0;
12445 }
12446 _ACEOF
12447 if ac_fn_c_try_link "$LINENO"
12448 then :
12449 ac_cv_lib_svld_dlopen=yes
12450 else $as_nop
12451 ac_cv_lib_svld_dlopen=no
12452 fi
12453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12454 conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12456 fi
12457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12458 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12459 if test "x$ac_cv_lib_svld_dlopen" = xyes
12460 then :
12461 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12462 else $as_nop
12463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12464 printf %s "checking for dld_link in -ldld... " >&6; }
12465 if test ${ac_cv_lib_dld_dld_link+y}
12466 then :
12467 printf %s "(cached) " >&6
12468 else $as_nop
12469 ac_check_lib_save_LIBS=$LIBS
12470 LIBS="-ldld $LIBS"
12471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472 /* end confdefs.h. */
12473
12474 /* Override any GCC internal prototype to avoid an error.
12475 Use char because int might match the return type of a GCC
12476 builtin and then its argument prototype would still apply. */
12477 char dld_link ();
12478 int
12479 main (void)
12480 {
12481 return dld_link ();
12482 ;
12483 return 0;
12484 }
12485 _ACEOF
12486 if ac_fn_c_try_link "$LINENO"
12487 then :
12488 ac_cv_lib_dld_dld_link=yes
12489 else $as_nop
12490 ac_cv_lib_dld_dld_link=no
12491 fi
12492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12493 conftest$ac_exeext conftest.$ac_ext
12494 LIBS=$ac_check_lib_save_LIBS
12495 fi
12496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12497 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12498 if test "x$ac_cv_lib_dld_dld_link" = xyes
12499 then :
12500 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12501 fi
12502
12503
12504 fi
12505
12506
12507 fi
12508
12509
12510 fi
12511
12512
12513 fi
12514
12515
12516 fi
12517
12518 ;;
12519 esac
12520
12521 if test no = "$lt_cv_dlopen"; then
12522 enable_dlopen=no
12523 else
12524 enable_dlopen=yes
12525 fi
12526
12527 case $lt_cv_dlopen in
12528 dlopen)
12529 save_CPPFLAGS=$CPPFLAGS
12530 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12531
12532 save_LDFLAGS=$LDFLAGS
12533 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12534
12535 save_LIBS=$LIBS
12536 LIBS="$lt_cv_dlopen_libs $LIBS"
12537
12538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12539 printf %s "checking whether a program can dlopen itself... " >&6; }
12540 if test ${lt_cv_dlopen_self+y}
12541 then :
12542 printf %s "(cached) " >&6
12543 else $as_nop
12544 if test yes = "$cross_compiling"; then :
12545 lt_cv_dlopen_self=cross
12546 else
12547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12548 lt_status=$lt_dlunknown
12549 cat > conftest.$ac_ext <<_LT_EOF
12550 #line $LINENO "configure"
12551 #include "confdefs.h"
12552
12553 #if HAVE_DLFCN_H
12554 #include <dlfcn.h>
12555 #endif
12556
12557 #include <stdio.h>
12558
12559 #ifdef RTLD_GLOBAL
12560 # define LT_DLGLOBAL RTLD_GLOBAL
12561 #else
12562 # ifdef DL_GLOBAL
12563 # define LT_DLGLOBAL DL_GLOBAL
12564 # else
12565 # define LT_DLGLOBAL 0
12566 # endif
12567 #endif
12568
12569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12570 find out it does not work in some platform. */
12571 #ifndef LT_DLLAZY_OR_NOW
12572 # ifdef RTLD_LAZY
12573 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12574 # else
12575 # ifdef DL_LAZY
12576 # define LT_DLLAZY_OR_NOW DL_LAZY
12577 # else
12578 # ifdef RTLD_NOW
12579 # define LT_DLLAZY_OR_NOW RTLD_NOW
12580 # else
12581 # ifdef DL_NOW
12582 # define LT_DLLAZY_OR_NOW DL_NOW
12583 # else
12584 # define LT_DLLAZY_OR_NOW 0
12585 # endif
12586 # endif
12587 # endif
12588 # endif
12589 #endif
12590
12591 /* When -fvisibility=hidden is used, assume the code has been annotated
12592 correspondingly for the symbols needed. */
12593 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12594 int fnord () __attribute__((visibility("default")));
12595 #endif
12596
12597 int fnord () { return 42; }
12598 int main ()
12599 {
12600 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12601 int status = $lt_dlunknown;
12602
12603 if (self)
12604 {
12605 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12606 else
12607 {
12608 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12609 else puts (dlerror ());
12610 }
12611 /* dlclose (self); */
12612 }
12613 else
12614 puts (dlerror ());
12615
12616 return status;
12617 }
12618 _LT_EOF
12619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12620 (eval $ac_link) 2>&5
12621 ac_status=$?
12622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12623 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12624 (./conftest; exit; ) >&5 2>/dev/null
12625 lt_status=$?
12626 case x$lt_status in
12627 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12628 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12629 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12630 esac
12631 else :
12632 # compilation failed
12633 lt_cv_dlopen_self=no
12634 fi
12635 fi
12636 rm -fr conftest*
12637
12638
12639 fi
12640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12641 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12642
12643 if test yes = "$lt_cv_dlopen_self"; then
12644 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12646 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12647 if test ${lt_cv_dlopen_self_static+y}
12648 then :
12649 printf %s "(cached) " >&6
12650 else $as_nop
12651 if test yes = "$cross_compiling"; then :
12652 lt_cv_dlopen_self_static=cross
12653 else
12654 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12655 lt_status=$lt_dlunknown
12656 cat > conftest.$ac_ext <<_LT_EOF
12657 #line $LINENO "configure"
12658 #include "confdefs.h"
12659
12660 #if HAVE_DLFCN_H
12661 #include <dlfcn.h>
12662 #endif
12663
12664 #include <stdio.h>
12665
12666 #ifdef RTLD_GLOBAL
12667 # define LT_DLGLOBAL RTLD_GLOBAL
12668 #else
12669 # ifdef DL_GLOBAL
12670 # define LT_DLGLOBAL DL_GLOBAL
12671 # else
12672 # define LT_DLGLOBAL 0
12673 # endif
12674 #endif
12675
12676 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12677 find out it does not work in some platform. */
12678 #ifndef LT_DLLAZY_OR_NOW
12679 # ifdef RTLD_LAZY
12680 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12681 # else
12682 # ifdef DL_LAZY
12683 # define LT_DLLAZY_OR_NOW DL_LAZY
12684 # else
12685 # ifdef RTLD_NOW
12686 # define LT_DLLAZY_OR_NOW RTLD_NOW
12687 # else
12688 # ifdef DL_NOW
12689 # define LT_DLLAZY_OR_NOW DL_NOW
12690 # else
12691 # define LT_DLLAZY_OR_NOW 0
12692 # endif
12693 # endif
12694 # endif
12695 # endif
12696 #endif
12697
12698 /* When -fvisibility=hidden is used, assume the code has been annotated
12699 correspondingly for the symbols needed. */
12700 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12701 int fnord () __attribute__((visibility("default")));
12702 #endif
12703
12704 int fnord () { return 42; }
12705 int main ()
12706 {
12707 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12708 int status = $lt_dlunknown;
12709
12710 if (self)
12711 {
12712 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12713 else
12714 {
12715 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12716 else puts (dlerror ());
12717 }
12718 /* dlclose (self); */
12719 }
12720 else
12721 puts (dlerror ());
12722
12723 return status;
12724 }
12725 _LT_EOF
12726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12727 (eval $ac_link) 2>&5
12728 ac_status=$?
12729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12730 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12731 (./conftest; exit; ) >&5 2>/dev/null
12732 lt_status=$?
12733 case x$lt_status in
12734 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12735 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12736 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12737 esac
12738 else :
12739 # compilation failed
12740 lt_cv_dlopen_self_static=no
12741 fi
12742 fi
12743 rm -fr conftest*
12744
12745
12746 fi
12747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12748 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12749 fi
12750
12751 CPPFLAGS=$save_CPPFLAGS
12752 LDFLAGS=$save_LDFLAGS
12753 LIBS=$save_LIBS
12754 ;;
12755 esac
12756
12757 case $lt_cv_dlopen_self in
12758 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12759 *) enable_dlopen_self=unknown ;;
12760 esac
12761
12762 case $lt_cv_dlopen_self_static in
12763 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12764 *) enable_dlopen_self_static=unknown ;;
12765 esac
12766 fi
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784 striplib=
12785 old_striplib=
12786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12787 printf %s "checking whether stripping libraries is possible... " >&6; }
12788 if test -z "$STRIP"; then
12789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 printf "%s\n" "no" >&6; }
12791 else
12792 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12793 old_striplib="$STRIP --strip-debug"
12794 striplib="$STRIP --strip-unneeded"
12795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12796 printf "%s\n" "yes" >&6; }
12797 else
12798 case $host_os in
12799 darwin*)
12800 # FIXME - insert some real tests, host_os isn't really good enough
12801 striplib="$STRIP -x"
12802 old_striplib="$STRIP -S"
12803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12804 printf "%s\n" "yes" >&6; }
12805 ;;
12806 freebsd*)
12807 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12808 old_striplib="$STRIP --strip-debug"
12809 striplib="$STRIP --strip-unneeded"
12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12811 printf "%s\n" "yes" >&6; }
12812 else
12813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 printf "%s\n" "no" >&6; }
12815 fi
12816 ;;
12817 *)
12818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 printf "%s\n" "no" >&6; }
12820 ;;
12821 esac
12822 fi
12823 fi
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836 # Report what library types will actually be built
12837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12838 printf %s "checking if libtool supports shared libraries... " >&6; }
12839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12840 printf "%s\n" "$can_build_shared" >&6; }
12841
12842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12843 printf %s "checking whether to build shared libraries... " >&6; }
12844 test no = "$can_build_shared" && enable_shared=no
12845
12846 # On AIX, shared libraries and static libraries use the same namespace, and
12847 # are all built from PIC.
12848 case $host_os in
12849 aix3*)
12850 test yes = "$enable_shared" && enable_static=no
12851 if test -n "$RANLIB"; then
12852 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12853 postinstall_cmds='$RANLIB $lib'
12854 fi
12855 ;;
12856
12857 aix[4-9]*)
12858 if test ia64 != "$host_cpu"; then
12859 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12860 yes,aix,yes) ;; # shared object as lib.so file only
12861 yes,svr4,*) ;; # shared object as lib.so archive member only
12862 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12863 esac
12864 fi
12865 ;;
12866 esac
12867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12868 printf "%s\n" "$enable_shared" >&6; }
12869
12870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12871 printf %s "checking whether to build static libraries... " >&6; }
12872 # Make sure either enable_shared or enable_static is yes.
12873 test yes = "$enable_shared" || enable_static=yes
12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12875 printf "%s\n" "$enable_static" >&6; }
12876
12877
12878
12879
12880 fi
12881 ac_ext=c
12882 ac_cpp='$CPP $CPPFLAGS'
12883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12886
12887 CC=$lt_save_CC
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903 ac_config_commands="$ac_config_commands libtool"
12904
12905
12906
12907
12908 # Only expand once:
12909
12910
12911
12912 LTVERSION="6:2:0"
12913
12914
12915
12916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12917 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12918 set x ${MAKE-make}
12919 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12920 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
12921 then :
12922 printf %s "(cached) " >&6
12923 else $as_nop
12924 cat >conftest.make <<\_ACEOF
12925 SHELL = /bin/sh
12926 all:
12927 @echo '@@@%%%=$(MAKE)=@@@%%%'
12928 _ACEOF
12929 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12930 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12931 *@@@%%%=?*=@@@%%%*)
12932 eval ac_cv_prog_make_${ac_make}_set=yes;;
12933 *)
12934 eval ac_cv_prog_make_${ac_make}_set=no;;
12935 esac
12936 rm -f conftest.make
12937 fi
12938 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12940 printf "%s\n" "yes" >&6; }
12941 SET_MAKE=
12942 else
12943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944 printf "%s\n" "no" >&6; }
12945 SET_MAKE="MAKE=${MAKE-make}"
12946 fi
12947
12948
12949 for ac_prog in python3 python python2
12950 do
12951 # Extract the first word of "$ac_prog", so it can be a program name with args.
12952 set dummy $ac_prog; ac_word=$2
12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12954 printf %s "checking for $ac_word... " >&6; }
12955 if test ${ac_cv_prog_python_prog+y}
12956 then :
12957 printf %s "(cached) " >&6
12958 else $as_nop
12959 if test -n "$python_prog"; then
12960 ac_cv_prog_python_prog="$python_prog" # Let the user override the test.
12961 else
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12964 do
12965 IFS=$as_save_IFS
12966 case $as_dir in #(((
12967 '') as_dir=./ ;;
12968 */) ;;
12969 *) as_dir=$as_dir/ ;;
12970 esac
12971 for ac_exec_ext in '' $ac_executable_extensions; do
12972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12973 ac_cv_prog_python_prog="$ac_prog"
12974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12975 break 2
12976 fi
12977 done
12978 done
12979 IFS=$as_save_IFS
12980
12981 fi
12982 fi
12983 python_prog=$ac_cv_prog_python_prog
12984 if test -n "$python_prog"; then
12985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $python_prog" >&5
12986 printf "%s\n" "$python_prog" >&6; }
12987 else
12988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 printf "%s\n" "no" >&6; }
12990 fi
12991
12992
12993 test -n "$python_prog" && break
12994 done
12995
12996
12997
12998 # Autoupdate added the next two lines to ensure that your configure
12999 # script's behavior did not change. They are probably safe to remove.
13000
13001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13002 printf %s "checking for egrep... " >&6; }
13003 if test ${ac_cv_path_EGREP+y}
13004 then :
13005 printf %s "(cached) " >&6
13006 else $as_nop
13007 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13008 then ac_cv_path_EGREP="$GREP -E"
13009 else
13010 if test -z "$EGREP"; then
13011 ac_path_EGREP_found=false
13012 # Loop through the user's path and test for each of PROGNAME-LIST
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13015 do
13016 IFS=$as_save_IFS
13017 case $as_dir in #(((
13018 '') as_dir=./ ;;
13019 */) ;;
13020 *) as_dir=$as_dir/ ;;
13021 esac
13022 for ac_prog in egrep
13023 do
13024 for ac_exec_ext in '' $ac_executable_extensions; do
13025 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
13026 as_fn_executable_p "$ac_path_EGREP" || continue
13027 # Check for GNU ac_path_EGREP and select it if it is found.
13028 # Check for GNU $ac_path_EGREP
13029 case `"$ac_path_EGREP" --version 2>&1` in
13030 *GNU*)
13031 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13032 *)
13033 ac_count=0
13034 printf %s 0123456789 >"conftest.in"
13035 while :
13036 do
13037 cat "conftest.in" "conftest.in" >"conftest.tmp"
13038 mv "conftest.tmp" "conftest.in"
13039 cp "conftest.in" "conftest.nl"
13040 printf "%s\n" 'EGREP' >> "conftest.nl"
13041 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13042 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13043 as_fn_arith $ac_count + 1 && ac_count=$as_val
13044 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13045 # Best one so far, save it but keep looking for a better one
13046 ac_cv_path_EGREP="$ac_path_EGREP"
13047 ac_path_EGREP_max=$ac_count
13048 fi
13049 # 10*(2^10) chars as input seems more than enough
13050 test $ac_count -gt 10 && break
13051 done
13052 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13053 esac
13054
13055 $ac_path_EGREP_found && break 3
13056 done
13057 done
13058 done
13059 IFS=$as_save_IFS
13060 if test -z "$ac_cv_path_EGREP"; then
13061 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13062 fi
13063 else
13064 ac_cv_path_EGREP=$EGREP
13065 fi
13066
13067 fi
13068 fi
13069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13070 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
13071 EGREP="$ac_cv_path_EGREP"
13072
13073
13074
13075 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13076 if test "x$ac_cv_header_sys_time_h" = xyes
13077 then :
13078 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
13079
13080 fi
13081 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13082 if test "x$ac_cv_header_unistd_h" = xyes
13083 then :
13084 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13085
13086 fi
13087 ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
13088 if test "x$ac_cv_header_sys_times_h" = xyes
13089 then :
13090 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
13091
13092 fi
13093 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13094 if test "x$ac_cv_header_stdint_h" = xyes
13095 then :
13096 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
13097
13098 fi
13099
13100
13101 # The cast to long int works around a bug in the HP C Compiler
13102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13104 # This bug is HP SR number 8606223364.
13105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13106 printf %s "checking size of int... " >&6; }
13107 if test ${ac_cv_sizeof_int+y}
13108 then :
13109 printf %s "(cached) " >&6
13110 else $as_nop
13111 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
13112 then :
13113
13114 else $as_nop
13115 if test "$ac_cv_type_int" = yes; then
13116 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13117 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13118 as_fn_error 77 "cannot compute sizeof (int)
13119 See \`config.log' for more details" "$LINENO" 5; }
13120 else
13121 ac_cv_sizeof_int=0
13122 fi
13123 fi
13124
13125 fi
13126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13127 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
13128
13129
13130
13131 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
13132
13133
13134 # The cast to long int works around a bug in the HP C Compiler
13135 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13136 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13137 # This bug is HP SR number 8606223364.
13138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13139 printf %s "checking size of short... " >&6; }
13140 if test ${ac_cv_sizeof_short+y}
13141 then :
13142 printf %s "(cached) " >&6
13143 else $as_nop
13144 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
13145 then :
13146
13147 else $as_nop
13148 if test "$ac_cv_type_short" = yes; then
13149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13150 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13151 as_fn_error 77 "cannot compute sizeof (short)
13152 See \`config.log' for more details" "$LINENO" 5; }
13153 else
13154 ac_cv_sizeof_short=0
13155 fi
13156 fi
13157
13158 fi
13159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13160 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
13161
13162
13163
13164 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
13165
13166
13167 # The cast to long int works around a bug in the HP C Compiler
13168 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13169 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13170 # This bug is HP SR number 8606223364.
13171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13172 printf %s "checking size of long... " >&6; }
13173 if test ${ac_cv_sizeof_long+y}
13174 then :
13175 printf %s "(cached) " >&6
13176 else $as_nop
13177 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
13178 then :
13179
13180 else $as_nop
13181 if test "$ac_cv_type_long" = yes; then
13182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13183 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13184 as_fn_error 77 "cannot compute sizeof (long)
13185 See \`config.log' for more details" "$LINENO" 5; }
13186 else
13187 ac_cv_sizeof_long=0
13188 fi
13189 fi
13190
13191 fi
13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13193 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
13194
13195
13196
13197 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
13198
13199
13200 # The cast to long int works around a bug in the HP C Compiler
13201 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13202 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13203 # This bug is HP SR number 8606223364.
13204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
13205 printf %s "checking size of void*... " >&6; }
13206 if test ${ac_cv_sizeof_voidp+y}
13207 then :
13208 printf %s "(cached) " >&6
13209 else $as_nop
13210 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"
13211 then :
13212
13213 else $as_nop
13214 if test "$ac_cv_type_voidp" = yes; then
13215 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13216 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13217 as_fn_error 77 "cannot compute sizeof (void*)
13218 See \`config.log' for more details" "$LINENO" 5; }
13219 else
13220 ac_cv_sizeof_voidp=0
13221 fi
13222 fi
13223
13224 fi
13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
13226 printf "%s\n" "$ac_cv_sizeof_voidp" >&6; }
13227
13228
13229
13230 printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h
13231
13232
13233 # The cast to long int works around a bug in the HP C Compiler
13234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13236 # This bug is HP SR number 8606223364.
13237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13238 printf %s "checking size of long long... " >&6; }
13239 if test ${ac_cv_sizeof_long_long+y}
13240 then :
13241 printf %s "(cached) " >&6
13242 else $as_nop
13243 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
13244 then :
13245
13246 else $as_nop
13247 if test "$ac_cv_type_long_long" = yes; then
13248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13249 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13250 as_fn_error 77 "cannot compute sizeof (long long)
13251 See \`config.log' for more details" "$LINENO" 5; }
13252 else
13253 ac_cv_sizeof_long_long=0
13254 fi
13255 fi
13256
13257 fi
13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13259 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
13260
13261
13262
13263 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
13264
13265
13266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13267 printf %s "checking for an ANSI C-conforming const... " >&6; }
13268 if test ${ac_cv_c_const+y}
13269 then :
13270 printf %s "(cached) " >&6
13271 else $as_nop
13272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13273 /* end confdefs.h. */
13274
13275 int
13276 main (void)
13277 {
13278
13279 #ifndef __cplusplus
13280 /* Ultrix mips cc rejects this sort of thing. */
13281 typedef int charset[2];
13282 const charset cs = { 0, 0 };
13283 /* SunOS 4.1.1 cc rejects this. */
13284 char const *const *pcpcc;
13285 char **ppc;
13286 /* NEC SVR4.0.2 mips cc rejects this. */
13287 struct point {int x, y;};
13288 static struct point const zero = {0,0};
13289 /* IBM XL C 1.02.0.0 rejects this.
13290 It does not let you subtract one const X* pointer from another in
13291 an arm of an if-expression whose if-part is not a constant
13292 expression */
13293 const char *g = "string";
13294 pcpcc = &g + (g ? g-g : 0);
13295 /* HPUX 7.0 cc rejects these. */
13296 ++pcpcc;
13297 ppc = (char**) pcpcc;
13298 pcpcc = (char const *const *) ppc;
13299 { /* SCO 3.2v4 cc rejects this sort of thing. */
13300 char tx;
13301 char *t = &tx;
13302 char const *s = 0 ? (char *) 0 : (char const *) 0;
13303
13304 *t++ = 0;
13305 if (s) return 0;
13306 }
13307 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13308 int x[] = {25, 17};
13309 const int *foo = &x[0];
13310 ++foo;
13311 }
13312 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13313 typedef const int *iptr;
13314 iptr p = 0;
13315 ++p;
13316 }
13317 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13318 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13319 struct s { int j; const int *ap[3]; } bx;
13320 struct s *b = &bx; b->j = 5;
13321 }
13322 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13323 const int foo = 10;
13324 if (!foo) return 0;
13325 }
13326 return !cs[0] && !zero.x;
13327 #endif
13328
13329 ;
13330 return 0;
13331 }
13332 _ACEOF
13333 if ac_fn_c_try_compile "$LINENO"
13334 then :
13335 ac_cv_c_const=yes
13336 else $as_nop
13337 ac_cv_c_const=no
13338 fi
13339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13340 fi
13341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13342 printf "%s\n" "$ac_cv_c_const" >&6; }
13343 if test $ac_cv_c_const = no; then
13344
13345 printf "%s\n" "#define const /**/" >>confdefs.h
13346
13347 fi
13348
13349
13350
13351 # Obsolete code to be removed.
13352 if test $ac_cv_header_sys_time_h = yes; then
13353
13354 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13355
13356 fi
13357 # End of obsolete code.
13358
13359
13360 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13361 if test "x$ac_cv_type_size_t" = xyes
13362 then :
13363
13364 else $as_nop
13365
13366 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13367
13368 fi
13369
13370 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13371 # for constant arguments. Useless!
13372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13373 printf %s "checking for working alloca.h... " >&6; }
13374 if test ${ac_cv_working_alloca_h+y}
13375 then :
13376 printf %s "(cached) " >&6
13377 else $as_nop
13378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13379 /* end confdefs.h. */
13380 #include <alloca.h>
13381 int
13382 main (void)
13383 {
13384 char *p = (char *) alloca (2 * sizeof (int));
13385 if (p) return 0;
13386 ;
13387 return 0;
13388 }
13389 _ACEOF
13390 if ac_fn_c_try_link "$LINENO"
13391 then :
13392 ac_cv_working_alloca_h=yes
13393 else $as_nop
13394 ac_cv_working_alloca_h=no
13395 fi
13396 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13397 conftest$ac_exeext conftest.$ac_ext
13398 fi
13399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13400 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
13401 if test $ac_cv_working_alloca_h = yes; then
13402
13403 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
13404
13405 fi
13406
13407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13408 printf %s "checking for alloca... " >&6; }
13409 if test ${ac_cv_func_alloca_works+y}
13410 then :
13411 printf %s "(cached) " >&6
13412 else $as_nop
13413 if test $ac_cv_working_alloca_h = yes; then
13414 ac_cv_func_alloca_works=yes
13415 else
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13418 #include <stdlib.h>
13419 #include <stddef.h>
13420 #ifndef alloca
13421 # ifdef __GNUC__
13422 # define alloca __builtin_alloca
13423 # elif defined _MSC_VER
13424 # include <malloc.h>
13425 # define alloca _alloca
13426 # else
13427 # ifdef __cplusplus
13428 extern "C"
13429 # endif
13430 void *alloca (size_t);
13431 # endif
13432 #endif
13433
13434 int
13435 main (void)
13436 {
13437 char *p = (char *) alloca (1);
13438 if (p) return 0;
13439 ;
13440 return 0;
13441 }
13442 _ACEOF
13443 if ac_fn_c_try_link "$LINENO"
13444 then :
13445 ac_cv_func_alloca_works=yes
13446 else $as_nop
13447 ac_cv_func_alloca_works=no
13448 fi
13449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13450 conftest$ac_exeext conftest.$ac_ext
13451 fi
13452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13453 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
13454 fi
13455
13456 if test $ac_cv_func_alloca_works = yes; then
13457
13458 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
13459
13460 else
13461 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13462 # that cause trouble. Some versions do not even contain alloca or
13463 # contain a buggy version. If you still want to use their alloca,
13464 # use ar to extract alloca.o from them instead of compiling alloca.c.
13465
13466 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13467
13468 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
13469
13470
13471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13472 printf %s "checking stack direction for C alloca... " >&6; }
13473 if test ${ac_cv_c_stack_direction+y}
13474 then :
13475 printf %s "(cached) " >&6
13476 else $as_nop
13477 if test "$cross_compiling" = yes
13478 then :
13479 ac_cv_c_stack_direction=0
13480 else $as_nop
13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482 /* end confdefs.h. */
13483 $ac_includes_default
13484 int
13485 find_stack_direction (int *addr, int depth)
13486 {
13487 int dir, dummy = 0;
13488 if (! addr)
13489 addr = &dummy;
13490 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13491 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13492 return dir + dummy;
13493 }
13494
13495 int
13496 main (int argc, char **argv)
13497 {
13498 return find_stack_direction (0, argc + !argv + 20) < 0;
13499 }
13500 _ACEOF
13501 if ac_fn_c_try_run "$LINENO"
13502 then :
13503 ac_cv_c_stack_direction=1
13504 else $as_nop
13505 ac_cv_c_stack_direction=-1
13506 fi
13507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13508 conftest.$ac_objext conftest.beam conftest.$ac_ext
13509 fi
13510
13511 fi
13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13513 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
13514 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
13515
13516
13517 fi
13518
13519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
13520 printf %s "checking for working memcmp... " >&6; }
13521 if test ${ac_cv_func_memcmp_working+y}
13522 then :
13523 printf %s "(cached) " >&6
13524 else $as_nop
13525 if test "$cross_compiling" = yes
13526 then :
13527 ac_cv_func_memcmp_working=no
13528 else $as_nop
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13531 $ac_includes_default
13532 int
13533 main (void)
13534 {
13535
13536 /* Some versions of memcmp are not 8-bit clean. */
13537 char c0 = '\100', c1 = '\200', c2 = '\201';
13538 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13539 return 1;
13540
13541 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13542 or more and with at least one buffer not starting on a 4-byte boundary.
13543 William Lewis provided this test program. */
13544 {
13545 char foo[21];
13546 char bar[21];
13547 int i;
13548 for (i = 0; i < 4; i++)
13549 {
13550 char *a = foo + i;
13551 char *b = bar + i;
13552 strcpy (a, "--------01111111");
13553 strcpy (b, "--------10000000");
13554 if (memcmp (a, b, 16) >= 0)
13555 return 1;
13556 }
13557 return 0;
13558 }
13559
13560 ;
13561 return 0;
13562 }
13563 _ACEOF
13564 if ac_fn_c_try_run "$LINENO"
13565 then :
13566 ac_cv_func_memcmp_working=yes
13567 else $as_nop
13568 ac_cv_func_memcmp_working=no
13569 fi
13570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13571 conftest.$ac_objext conftest.beam conftest.$ac_ext
13572 fi
13573
13574 fi
13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
13576 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
13577 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13578 *" memcmp.$ac_objext "* ) ;;
13579 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13580 ;;
13581 esac
13582
13583
13584
13585
13586 ac_config_files="$ac_config_files Makefile onigmo-config sample/Makefile"
13587
13588 ac_config_commands="$ac_config_commands default"
13589
13590 cat >confcache <<\_ACEOF
13591 # This file is a shell script that caches the results of configure
13592 # tests run on this system so they can be shared between configure
13593 # scripts and configure runs, see configure's option --config-cache.
13594 # It is not useful on other systems. If it contains results you don't
13595 # want to keep, you may remove or edit it.
13596 #
13597 # config.status only pays attention to the cache file if you give it
13598 # the --recheck option to rerun configure.
13599 #
13600 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13601 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13602 # following values.
13603
13604 _ACEOF
13605
13606 # The following way of writing the cache mishandles newlines in values,
13607 # but we know of no workaround that is simple, portable, and efficient.
13608 # So, we kill variables containing newlines.
13609 # Ultrix sh set writes to stderr and can't be redirected directly,
13610 # and sets the high bit in the cache file unless we assign to the vars.
13611 (
13612 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13613 eval ac_val=\$$ac_var
13614 case $ac_val in #(
13615 *${as_nl}*)
13616 case $ac_var in #(
13617 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13618 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13619 esac
13620 case $ac_var in #(
13621 _ | IFS | as_nl) ;; #(
13622 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13623 *) { eval $ac_var=; unset $ac_var;} ;;
13624 esac ;;
13625 esac
13626 done
13627
13628 (set) 2>&1 |
13629 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13630 *${as_nl}ac_space=\ *)
13631 # `set' does not quote correctly, so add quotes: double-quote
13632 # substitution turns \\\\ into \\, and sed turns \\ into \.
13633 sed -n \
13634 "s/'/'\\\\''/g;
13635 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13636 ;; #(
13637 *)
13638 # `set' quotes correctly as required by POSIX, so do not add quotes.
13639 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13640 ;;
13641 esac |
13642 sort
13643 ) |
13644 sed '
13645 /^ac_cv_env_/b end
13646 t clear
13647 :clear
13648 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13649 t end
13650 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13651 :end' >>confcache
13652 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13653 if test -w "$cache_file"; then
13654 if test "x$cache_file" != "x/dev/null"; then
13655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13656 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13657 if test ! -f "$cache_file" || test -h "$cache_file"; then
13658 cat confcache >"$cache_file"
13659 else
13660 case $cache_file in #(
13661 */* | ?:*)
13662 mv -f confcache "$cache_file"$$ &&
13663 mv -f "$cache_file"$$ "$cache_file" ;; #(
13664 *)
13665 mv -f confcache "$cache_file" ;;
13666 esac
13667 fi
13668 fi
13669 else
13670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13671 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13672 fi
13673 fi
13674 rm -f confcache
13675
13676 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13677 # Let make expand exec_prefix.
13678 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13679
13680 DEFS=-DHAVE_CONFIG_H
13681
13682 ac_libobjs=
13683 ac_ltlibobjs=
13684 U=
13685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13686 # 1. Remove the extension, and $U if already installed.
13687 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13688 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13689 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13690 # will be set to the directory where LIBOBJS objects are built.
13691 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13692 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13693 done
13694 LIBOBJS=$ac_libobjs
13695
13696 LTLIBOBJS=$ac_ltlibobjs
13697
13698
13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13700 printf %s "checking that generated files are newer than configure... " >&6; }
13701 if test -n "$am_sleep_pid"; then
13702 # Hide warnings about reused PIDs.
13703 wait $am_sleep_pid 2>/dev/null
13704 fi
13705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13706 printf "%s\n" "done" >&6; }
13707 if test -n "$EXEEXT"; then
13708 am__EXEEXT_TRUE=
13709 am__EXEEXT_FALSE='#'
13710 else
13711 am__EXEEXT_TRUE='#'
13712 am__EXEEXT_FALSE=
13713 fi
13714
13715 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13716 as_fn_error $? "conditional \"AMDEP\" was never defined.
13717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13718 fi
13719 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13720 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13722 fi
13723
13724 : "${CONFIG_STATUS=./config.status}"
13725 ac_write_fail=0
13726 ac_clean_files_save=$ac_clean_files
13727 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13729 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13730 as_write_fail=0
13731 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13732 #! $SHELL
13733 # Generated by $as_me.
13734 # Run this file to recreate the current configuration.
13735 # Compiler output produced by configure, useful for debugging
13736 # configure, is in config.log if it exists.
13737
13738 debug=false
13739 ac_cs_recheck=false
13740 ac_cs_silent=false
13741
13742 SHELL=\${CONFIG_SHELL-$SHELL}
13743 export SHELL
13744 _ASEOF
13745 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13746 ## -------------------- ##
13747 ## M4sh Initialization. ##
13748 ## -------------------- ##
13749
13750 # Be more Bourne compatible
13751 DUALCASE=1; export DUALCASE # for MKS sh
13752 as_nop=:
13753 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13754 then :
13755 emulate sh
13756 NULLCMD=:
13757 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13758 # is contrary to our usage. Disable this feature.
13759 alias -g '${1+"$@"}'='"$@"'
13760 setopt NO_GLOB_SUBST
13761 else $as_nop
13762 case `(set -o) 2>/dev/null` in #(
13763 *posix*) :
13764 set -o posix ;; #(
13765 *) :
13766 ;;
13767 esac
13768 fi
13769
13770
13771
13772 # Reset variables that may have inherited troublesome values from
13773 # the environment.
13774
13775 # IFS needs to be set, to space, tab, and newline, in precisely that order.
13776 # (If _AS_PATH_WALK were called with IFS unset, it would have the
13777 # side effect of setting IFS to empty, thus disabling word splitting.)
13778 # Quoting is to prevent editors from complaining about space-tab.
13779 as_nl='
13780 '
13781 export as_nl
13782 IFS=" "" $as_nl"
13783
13784 PS1='$ '
13785 PS2='> '
13786 PS4='+ '
13787
13788 # Ensure predictable behavior from utilities with locale-dependent output.
13789 LC_ALL=C
13790 export LC_ALL
13791 LANGUAGE=C
13792 export LANGUAGE
13793
13794 # We cannot yet rely on "unset" to work, but we need these variables
13795 # to be unset--not just set to an empty or harmless value--now, to
13796 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
13797 # also avoids known problems related to "unset" and subshell syntax
13798 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13799 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13800 do eval test \${$as_var+y} \
13801 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13802 done
13803
13804 # Ensure that fds 0, 1, and 2 are open.
13805 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13806 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13807 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
13808
13809 # The user is always right.
13810 if ${PATH_SEPARATOR+false} :; then
13811 PATH_SEPARATOR=:
13812 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13813 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13814 PATH_SEPARATOR=';'
13815 }
13816 fi
13817
13818
13819 # Find who we are. Look in the path if we contain no directory separator.
13820 as_myself=
13821 case $0 in #((
13822 *[\\/]* ) as_myself=$0 ;;
13823 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13825 do
13826 IFS=$as_save_IFS
13827 case $as_dir in #(((
13828 '') as_dir=./ ;;
13829 */) ;;
13830 *) as_dir=$as_dir/ ;;
13831 esac
13832 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13833 done
13834 IFS=$as_save_IFS
13835
13836 ;;
13837 esac
13838 # We did not find ourselves, most probably we were run as `sh COMMAND'
13839 # in which case we are not to be found in the path.
13840 if test "x$as_myself" = x; then
13841 as_myself=$0
13842 fi
13843 if test ! -f "$as_myself"; then
13844 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13845 exit 1
13846 fi
13847
13848
13849
13850 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13851 # ----------------------------------------
13852 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13853 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13854 # script with STATUS, using 1 if that was 0.
13855 as_fn_error ()
13856 {
13857 as_status=$1; test $as_status -eq 0 && as_status=1
13858 if test "$4"; then
13859 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13861 fi
13862 printf "%s\n" "$as_me: error: $2" >&2
13863 as_fn_exit $as_status
13864 } # as_fn_error
13865
13866
13867
13868 # as_fn_set_status STATUS
13869 # -----------------------
13870 # Set $? to STATUS, without forking.
13871 as_fn_set_status ()
13872 {
13873 return $1
13874 } # as_fn_set_status
13875
13876 # as_fn_exit STATUS
13877 # -----------------
13878 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13879 as_fn_exit ()
13880 {
13881 set +e
13882 as_fn_set_status $1
13883 exit $1
13884 } # as_fn_exit
13885
13886 # as_fn_unset VAR
13887 # ---------------
13888 # Portably unset VAR.
13889 as_fn_unset ()
13890 {
13891 { eval $1=; unset $1;}
13892 }
13893 as_unset=as_fn_unset
13894
13895 # as_fn_append VAR VALUE
13896 # ----------------------
13897 # Append the text in VALUE to the end of the definition contained in VAR. Take
13898 # advantage of any shell optimizations that allow amortized linear growth over
13899 # repeated appends, instead of the typical quadratic growth present in naive
13900 # implementations.
13901 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
13902 then :
13903 eval 'as_fn_append ()
13904 {
13905 eval $1+=\$2
13906 }'
13907 else $as_nop
13908 as_fn_append ()
13909 {
13910 eval $1=\$$1\$2
13911 }
13912 fi # as_fn_append
13913
13914 # as_fn_arith ARG...
13915 # ------------------
13916 # Perform arithmetic evaluation on the ARGs, and store the result in the
13917 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13918 # must be portable across $(()) and expr.
13919 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
13920 then :
13921 eval 'as_fn_arith ()
13922 {
13923 as_val=$(( $* ))
13924 }'
13925 else $as_nop
13926 as_fn_arith ()
13927 {
13928 as_val=`expr "$@" || test $? -eq 1`
13929 }
13930 fi # as_fn_arith
13931
13932
13933 if expr a : '\(a\)' >/dev/null 2>&1 &&
13934 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13935 as_expr=expr
13936 else
13937 as_expr=false
13938 fi
13939
13940 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13941 as_basename=basename
13942 else
13943 as_basename=false
13944 fi
13945
13946 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13947 as_dirname=dirname
13948 else
13949 as_dirname=false
13950 fi
13951
13952 as_me=`$as_basename -- "$0" ||
13953 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13954 X"$0" : 'X\(//\)$' \| \
13955 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13956 printf "%s\n" X/"$0" |
13957 sed '/^.*\/\([^/][^/]*\)\/*$/{
13958 s//\1/
13959 q
13960 }
13961 /^X\/\(\/\/\)$/{
13962 s//\1/
13963 q
13964 }
13965 /^X\/\(\/\).*/{
13966 s//\1/
13967 q
13968 }
13969 s/.*/./; q'`
13970
13971 # Avoid depending upon Character Ranges.
13972 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13973 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13974 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13975 as_cr_digits='0123456789'
13976 as_cr_alnum=$as_cr_Letters$as_cr_digits
13977
13978
13979 # Determine whether it's possible to make 'echo' print without a newline.
13980 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13981 # for compatibility with existing Makefiles.
13982 ECHO_C= ECHO_N= ECHO_T=
13983 case `echo -n x` in #(((((
13984 -n*)
13985 case `echo 'xy\c'` in
13986 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13987 xy) ECHO_C='\c';;
13988 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13989 ECHO_T=' ';;
13990 esac;;
13991 *)
13992 ECHO_N='-n';;
13993 esac
13994
13995 # For backward compatibility with old third-party macros, we provide
13996 # the shell variables $as_echo and $as_echo_n. New code should use
13997 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13998 as_echo='printf %s\n'
13999 as_echo_n='printf %s'
14000
14001 rm -f conf$$ conf$$.exe conf$$.file
14002 if test -d conf$$.dir; then
14003 rm -f conf$$.dir/conf$$.file
14004 else
14005 rm -f conf$$.dir
14006 mkdir conf$$.dir 2>/dev/null
14007 fi
14008 if (echo >conf$$.file) 2>/dev/null; then
14009 if ln -s conf$$.file conf$$ 2>/dev/null; then
14010 as_ln_s='ln -s'
14011 # ... but there are two gotchas:
14012 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14013 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14014 # In both cases, we have to default to `cp -pR'.
14015 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14016 as_ln_s='cp -pR'
14017 elif ln conf$$.file conf$$ 2>/dev/null; then
14018 as_ln_s=ln
14019 else
14020 as_ln_s='cp -pR'
14021 fi
14022 else
14023 as_ln_s='cp -pR'
14024 fi
14025 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14026 rmdir conf$$.dir 2>/dev/null
14027
14028
14029 # as_fn_mkdir_p
14030 # -------------
14031 # Create "$as_dir" as a directory, including parents if necessary.
14032 as_fn_mkdir_p ()
14033 {
14034
14035 case $as_dir in #(
14036 -*) as_dir=./$as_dir;;
14037 esac
14038 test -d "$as_dir" || eval $as_mkdir_p || {
14039 as_dirs=
14040 while :; do
14041 case $as_dir in #(
14042 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14043 *) as_qdir=$as_dir;;
14044 esac
14045 as_dirs="'$as_qdir' $as_dirs"
14046 as_dir=`$as_dirname -- "$as_dir" ||
14047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14048 X"$as_dir" : 'X\(//\)[^/]' \| \
14049 X"$as_dir" : 'X\(//\)$' \| \
14050 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14051 printf "%s\n" X"$as_dir" |
14052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14053 s//\1/
14054 q
14055 }
14056 /^X\(\/\/\)[^/].*/{
14057 s//\1/
14058 q
14059 }
14060 /^X\(\/\/\)$/{
14061 s//\1/
14062 q
14063 }
14064 /^X\(\/\).*/{
14065 s//\1/
14066 q
14067 }
14068 s/.*/./; q'`
14069 test -d "$as_dir" && break
14070 done
14071 test -z "$as_dirs" || eval "mkdir $as_dirs"
14072 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14073
14074
14075 } # as_fn_mkdir_p
14076 if mkdir -p . 2>/dev/null; then
14077 as_mkdir_p='mkdir -p "$as_dir"'
14078 else
14079 test -d ./-p && rmdir ./-p
14080 as_mkdir_p=false
14081 fi
14082
14083
14084 # as_fn_executable_p FILE
14085 # -----------------------
14086 # Test if FILE is an executable regular file.
14087 as_fn_executable_p ()
14088 {
14089 test -f "$1" && test -x "$1"
14090 } # as_fn_executable_p
14091 as_test_x='test -x'
14092 as_executable_p=as_fn_executable_p
14093
14094 # Sed expression to map a string onto a valid CPP name.
14095 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14096
14097 # Sed expression to map a string onto a valid variable name.
14098 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14099
14100
14101 exec 6>&1
14102 ## ----------------------------------- ##
14103 ## Main body of $CONFIG_STATUS script. ##
14104 ## ----------------------------------- ##
14105 _ASEOF
14106 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14107
14108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14109 # Save the log message, to keep $0 and so on meaningful, and to
14110 # report actual input values of CONFIG_FILES etc. instead of their
14111 # values after options handling.
14112 ac_log="
14113 This file was extended by onigmo $as_me 6.1.1, which was
14114 generated by GNU Autoconf 2.71. Invocation command line was
14115
14116 CONFIG_FILES = $CONFIG_FILES
14117 CONFIG_HEADERS = $CONFIG_HEADERS
14118 CONFIG_LINKS = $CONFIG_LINKS
14119 CONFIG_COMMANDS = $CONFIG_COMMANDS
14120 $ $0 $@
14121
14122 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14123 "
14124
14125 _ACEOF
14126
14127 case $ac_config_files in *"
14128 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14129 esac
14130
14131 case $ac_config_headers in *"
14132 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14133 esac
14134
14135
14136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14137 # Files that config.status was made for.
14138 config_files="$ac_config_files"
14139 config_headers="$ac_config_headers"
14140 config_commands="$ac_config_commands"
14141
14142 _ACEOF
14143
14144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14145 ac_cs_usage="\
14146 \`$as_me' instantiates files and other configuration actions
14147 from templates according to the current configuration. Unless the files
14148 and actions are specified as TAGs, all are instantiated by default.
14149
14150 Usage: $0 [OPTION]... [TAG]...
14151
14152 -h, --help print this help, then exit
14153 -V, --version print version number and configuration settings, then exit
14154 --config print configuration, then exit
14155 -q, --quiet, --silent
14156 do not print progress messages
14157 -d, --debug don't remove temporary files
14158 --recheck update $as_me by reconfiguring in the same conditions
14159 --file=FILE[:TEMPLATE]
14160 instantiate the configuration file FILE
14161 --header=FILE[:TEMPLATE]
14162 instantiate the configuration header FILE
14163
14164 Configuration files:
14165 $config_files
14166
14167 Configuration headers:
14168 $config_headers
14169
14170 Configuration commands:
14171 $config_commands
14172
14173 Report bugs to the package provider."
14174
14175 _ACEOF
14176 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14177 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14179 ac_cs_config='$ac_cs_config_escaped'
14180 ac_cs_version="\\
14181 onigmo config.status 6.1.1
14182 configured by $0, generated by GNU Autoconf 2.71,
14183 with options \\"\$ac_cs_config\\"
14184
14185 Copyright (C) 2021 Free Software Foundation, Inc.
14186 This config.status script is free software; the Free Software Foundation
14187 gives unlimited permission to copy, distribute and modify it."
14188
14189 ac_pwd='$ac_pwd'
14190 srcdir='$srcdir'
14191 INSTALL='$INSTALL'
14192 MKDIR_P='$MKDIR_P'
14193 AWK='$AWK'
14194 test -n "\$AWK" || AWK=awk
14195 _ACEOF
14196
14197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14198 # The default lists apply if the user does not specify any file.
14199 ac_need_defaults=:
14200 while test $# != 0
14201 do
14202 case $1 in
14203 --*=?*)
14204 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14205 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14206 ac_shift=:
14207 ;;
14208 --*=)
14209 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14210 ac_optarg=
14211 ac_shift=:
14212 ;;
14213 *)
14214 ac_option=$1
14215 ac_optarg=$2
14216 ac_shift=shift
14217 ;;
14218 esac
14219
14220 case $ac_option in
14221 # Handling of the options.
14222 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14223 ac_cs_recheck=: ;;
14224 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14225 printf "%s\n" "$ac_cs_version"; exit ;;
14226 --config | --confi | --conf | --con | --co | --c )
14227 printf "%s\n" "$ac_cs_config"; exit ;;
14228 --debug | --debu | --deb | --de | --d | -d )
14229 debug=: ;;
14230 --file | --fil | --fi | --f )
14231 $ac_shift
14232 case $ac_optarg in
14233 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14234 '') as_fn_error $? "missing file argument" ;;
14235 esac
14236 as_fn_append CONFIG_FILES " '$ac_optarg'"
14237 ac_need_defaults=false;;
14238 --header | --heade | --head | --hea )
14239 $ac_shift
14240 case $ac_optarg in
14241 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14242 esac
14243 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14244 ac_need_defaults=false;;
14245 --he | --h)
14246 # Conflict between --help and --header
14247 as_fn_error $? "ambiguous option: \`$1'
14248 Try \`$0 --help' for more information.";;
14249 --help | --hel | -h )
14250 printf "%s\n" "$ac_cs_usage"; exit ;;
14251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14252 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14253 ac_cs_silent=: ;;
14254
14255 # This is an error.
14256 -*) as_fn_error $? "unrecognized option: \`$1'
14257 Try \`$0 --help' for more information." ;;
14258
14259 *) as_fn_append ac_config_targets " $1"
14260 ac_need_defaults=false ;;
14261
14262 esac
14263 shift
14264 done
14265
14266 ac_configure_extra_args=
14267
14268 if $ac_cs_silent; then
14269 exec 6>/dev/null
14270 ac_configure_extra_args="$ac_configure_extra_args --silent"
14271 fi
14272
14273 _ACEOF
14274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14275 if \$ac_cs_recheck; then
14276 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14277 shift
14278 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14279 CONFIG_SHELL='$SHELL'
14280 export CONFIG_SHELL
14281 exec "\$@"
14282 fi
14283
14284 _ACEOF
14285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14286 exec 5>>config.log
14287 {
14288 echo
14289 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14290 ## Running $as_me. ##
14291 _ASBOX
14292 printf "%s\n" "$ac_log"
14293 } >&5
14294
14295 _ACEOF
14296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14297 #
14298 # INIT-COMMANDS
14299 #
14300 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14301
14302
14303 # The HP-UX ksh and POSIX shell print the target directory to stdout
14304 # if CDPATH is set.
14305 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14306
14307 sed_quote_subst='$sed_quote_subst'
14308 double_quote_subst='$double_quote_subst'
14309 delay_variable_subst='$delay_variable_subst'
14310 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14311 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14312 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14313 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14314 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14315 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14316 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14317 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14318 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14319 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14320 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14321 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14322 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14323 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14324 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14325 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14326 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14327 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14328 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14329 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14330 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14331 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14332 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14333 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14334 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14335 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14336 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14337 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14338 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14339 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14340 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14341 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14342 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14343 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14344 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
14345 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14346 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14347 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14348 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14349 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14350 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14351 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14352 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14353 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
14354 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14355 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14356 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14357 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14358 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14359 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14360 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14361 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14362 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14363 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14364 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14365 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14366 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14367 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14368 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14369 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14370 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"`'
14371 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14372 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14373 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14374 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14375 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14376 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14377 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14378 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14379 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14380 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14381 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14382 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14383 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14384 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14385 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14386 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14387 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14388 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14389 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14390 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14391 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14392 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14393 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14394 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14395 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14396 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14397 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14398 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14399 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14400 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14401 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14402 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14403 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14404 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14405 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14406 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14407 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14408 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14409 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14410 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14411 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14412 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14413 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14414 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14415 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14416 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14417 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14418 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14419 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14420 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14421 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14422 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14423 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14424 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14425 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14426 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14427 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14428 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14429 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14430 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14431 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14432 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14433 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14434 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14435 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14436 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14437 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14438 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14439 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14440 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14441 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14442 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14443 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14444 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14445 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14446 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14447
14448 LTCC='$LTCC'
14449 LTCFLAGS='$LTCFLAGS'
14450 compiler='$compiler_DEFAULT'
14451
14452 # A function that is used when there is no print builtin or printf.
14453 func_fallback_echo ()
14454 {
14455 eval 'cat <<_LTECHO_EOF
14456 \$1
14457 _LTECHO_EOF'
14458 }
14459
14460 # Quote evaled strings.
14461 for var in SHELL \
14462 ECHO \
14463 PATH_SEPARATOR \
14464 SED \
14465 GREP \
14466 EGREP \
14467 FGREP \
14468 LD \
14469 NM \
14470 LN_S \
14471 lt_SP2NL \
14472 lt_NL2SP \
14473 reload_flag \
14474 FILECMD \
14475 OBJDUMP \
14476 deplibs_check_method \
14477 file_magic_cmd \
14478 file_magic_glob \
14479 want_nocaseglob \
14480 DLLTOOL \
14481 sharedlib_from_linklib_cmd \
14482 AR \
14483 archiver_list_spec \
14484 STRIP \
14485 RANLIB \
14486 CC \
14487 CFLAGS \
14488 compiler \
14489 lt_cv_sys_global_symbol_pipe \
14490 lt_cv_sys_global_symbol_to_cdecl \
14491 lt_cv_sys_global_symbol_to_import \
14492 lt_cv_sys_global_symbol_to_c_name_address \
14493 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14494 lt_cv_nm_interface \
14495 nm_file_list_spec \
14496 lt_cv_truncate_bin \
14497 lt_prog_compiler_no_builtin_flag \
14498 lt_prog_compiler_pic \
14499 lt_prog_compiler_wl \
14500 lt_prog_compiler_static \
14501 lt_cv_prog_compiler_c_o \
14502 need_locks \
14503 MANIFEST_TOOL \
14504 DSYMUTIL \
14505 NMEDIT \
14506 LIPO \
14507 OTOOL \
14508 OTOOL64 \
14509 shrext_cmds \
14510 export_dynamic_flag_spec \
14511 whole_archive_flag_spec \
14512 compiler_needs_object \
14513 with_gnu_ld \
14514 allow_undefined_flag \
14515 no_undefined_flag \
14516 hardcode_libdir_flag_spec \
14517 hardcode_libdir_separator \
14518 exclude_expsyms \
14519 include_expsyms \
14520 file_list_spec \
14521 variables_saved_for_relink \
14522 libname_spec \
14523 library_names_spec \
14524 soname_spec \
14525 install_override_mode \
14526 finish_eval \
14527 old_striplib \
14528 striplib; do
14529 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14530 *[\\\\\\\`\\"\\\$]*)
14531 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14532 ;;
14533 *)
14534 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14535 ;;
14536 esac
14537 done
14538
14539 # Double-quote double-evaled strings.
14540 for var in reload_cmds \
14541 old_postinstall_cmds \
14542 old_postuninstall_cmds \
14543 old_archive_cmds \
14544 extract_expsyms_cmds \
14545 old_archive_from_new_cmds \
14546 old_archive_from_expsyms_cmds \
14547 archive_cmds \
14548 archive_expsym_cmds \
14549 module_cmds \
14550 module_expsym_cmds \
14551 export_symbols_cmds \
14552 prelink_cmds \
14553 postlink_cmds \
14554 postinstall_cmds \
14555 postuninstall_cmds \
14556 finish_cmds \
14557 sys_lib_search_path_spec \
14558 configure_time_dlsearch_path \
14559 configure_time_lt_sys_library_path; do
14560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14561 *[\\\\\\\`\\"\\\$]*)
14562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14563 ;;
14564 *)
14565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14566 ;;
14567 esac
14568 done
14569
14570 ac_aux_dir='$ac_aux_dir'
14571
14572 # See if we are running on zsh, and set the options that allow our
14573 # commands through without removal of \ escapes INIT.
14574 if test -n "\${ZSH_VERSION+set}"; then
14575 setopt NO_GLOB_SUBST
14576 fi
14577
14578
14579 PACKAGE='$PACKAGE'
14580 VERSION='$VERSION'
14581 RM='$RM'
14582 ofile='$ofile'
14583
14584
14585
14586
14587 _ACEOF
14588
14589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14590
14591 # Handling of arguments.
14592 for ac_config_target in $ac_config_targets
14593 do
14594 case $ac_config_target in
14595 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14596 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14597 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14598 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14599 "onigmo-config") CONFIG_FILES="$CONFIG_FILES onigmo-config" ;;
14600 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
14601 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14602
14603 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14604 esac
14605 done
14606
14607
14608 # If the user did not use the arguments to specify the items to instantiate,
14609 # then the envvar interface is used. Set only those that are not.
14610 # We use the long form for the default assignment because of an extremely
14611 # bizarre bug on SunOS 4.1.3.
14612 if $ac_need_defaults; then
14613 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14614 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14615 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
14616 fi
14617
14618 # Have a temporary directory for convenience. Make it in the build tree
14619 # simply because there is no reason against having it here, and in addition,
14620 # creating and moving files from /tmp can sometimes cause problems.
14621 # Hook for its removal unless debugging.
14622 # Note that there is a small window in which the directory will not be cleaned:
14623 # after its creation but before its name has been assigned to `$tmp'.
14624 $debug ||
14625 {
14626 tmp= ac_tmp=
14627 trap 'exit_status=$?
14628 : "${ac_tmp:=$tmp}"
14629 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14630 ' 0
14631 trap 'as_fn_exit 1' 1 2 13 15
14632 }
14633 # Create a (secure) tmp directory for tmp files.
14634
14635 {
14636 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14637 test -d "$tmp"
14638 } ||
14639 {
14640 tmp=./conf$$-$RANDOM
14641 (umask 077 && mkdir "$tmp")
14642 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14643 ac_tmp=$tmp
14644
14645 # Set up the scripts for CONFIG_FILES section.
14646 # No need to generate them if there are no CONFIG_FILES.
14647 # This happens for instance with `./config.status config.h'.
14648 if test -n "$CONFIG_FILES"; then
14649
14650
14651 ac_cr=`echo X | tr X '\015'`
14652 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14653 # But we know of no other shell where ac_cr would be empty at this
14654 # point, so we can use a bashism as a fallback.
14655 if test "x$ac_cr" = x; then
14656 eval ac_cr=\$\'\\r\'
14657 fi
14658 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14659 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14660 ac_cs_awk_cr='\\r'
14661 else
14662 ac_cs_awk_cr=$ac_cr
14663 fi
14664
14665 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14666 _ACEOF
14667
14668
14669 {
14670 echo "cat >conf$$subs.awk <<_ACEOF" &&
14671 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14672 echo "_ACEOF"
14673 } >conf$$subs.sh ||
14674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14675 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14676 ac_delim='%!_!# '
14677 for ac_last_try in false false false false false :; do
14678 . ./conf$$subs.sh ||
14679 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14680
14681 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14682 if test $ac_delim_n = $ac_delim_num; then
14683 break
14684 elif $ac_last_try; then
14685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14686 else
14687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14688 fi
14689 done
14690 rm -f conf$$subs.sh
14691
14692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14693 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14694 _ACEOF
14695 sed -n '
14696 h
14697 s/^/S["/; s/!.*/"]=/
14698 p
14699 g
14700 s/^[^!]*!//
14701 :repl
14702 t repl
14703 s/'"$ac_delim"'$//
14704 t delim
14705 :nl
14706 h
14707 s/\(.\{148\}\)..*/\1/
14708 t more1
14709 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14710 p
14711 n
14712 b repl
14713 :more1
14714 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14715 p
14716 g
14717 s/.\{148\}//
14718 t nl
14719 :delim
14720 h
14721 s/\(.\{148\}\)..*/\1/
14722 t more2
14723 s/["\\]/\\&/g; s/^/"/; s/$/"/
14724 p
14725 b
14726 :more2
14727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14728 p
14729 g
14730 s/.\{148\}//
14731 t delim
14732 ' <conf$$subs.awk | sed '
14733 /^[^""]/{
14734 N
14735 s/\n//
14736 }
14737 ' >>$CONFIG_STATUS || ac_write_fail=1
14738 rm -f conf$$subs.awk
14739 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14740 _ACAWK
14741 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14742 for (key in S) S_is_set[key] = 1
14743 FS = ""
14744
14745 }
14746 {
14747 line = $ 0
14748 nfields = split(line, field, "@")
14749 substed = 0
14750 len = length(field[1])
14751 for (i = 2; i < nfields; i++) {
14752 key = field[i]
14753 keylen = length(key)
14754 if (S_is_set[key]) {
14755 value = S[key]
14756 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14757 len += length(value) + length(field[++i])
14758 substed = 1
14759 } else
14760 len += 1 + keylen
14761 }
14762
14763 print line
14764 }
14765
14766 _ACAWK
14767 _ACEOF
14768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14769 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14770 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14771 else
14772 cat
14773 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14774 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14775 _ACEOF
14776
14777 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14778 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14779 # trailing colons and then remove the whole line if VPATH becomes empty
14780 # (actually we leave an empty line to preserve line numbers).
14781 if test "x$srcdir" = x.; then
14782 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14783 h
14784 s///
14785 s/^/:/
14786 s/[ ]*$/:/
14787 s/:\$(srcdir):/:/g
14788 s/:\${srcdir}:/:/g
14789 s/:@srcdir@:/:/g
14790 s/^:*//
14791 s/:*$//
14792 x
14793 s/\(=[ ]*\).*/\1/
14794 G
14795 s/\n//
14796 s/^[^=]*=[ ]*$//
14797 }'
14798 fi
14799
14800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14801 fi # test -n "$CONFIG_FILES"
14802
14803 # Set up the scripts for CONFIG_HEADERS section.
14804 # No need to generate them if there are no CONFIG_HEADERS.
14805 # This happens for instance with `./config.status Makefile'.
14806 if test -n "$CONFIG_HEADERS"; then
14807 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14808 BEGIN {
14809 _ACEOF
14810
14811 # Transform confdefs.h into an awk script `defines.awk', embedded as
14812 # here-document in config.status, that substitutes the proper values into
14813 # config.h.in to produce config.h.
14814
14815 # Create a delimiter string that does not exist in confdefs.h, to ease
14816 # handling of long lines.
14817 ac_delim='%!_!# '
14818 for ac_last_try in false false :; do
14819 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14820 if test -z "$ac_tt"; then
14821 break
14822 elif $ac_last_try; then
14823 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14824 else
14825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14826 fi
14827 done
14828
14829 # For the awk script, D is an array of macro values keyed by name,
14830 # likewise P contains macro parameters if any. Preserve backslash
14831 # newline sequences.
14832
14833 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14834 sed -n '
14835 s/.\{148\}/&'"$ac_delim"'/g
14836 t rset
14837 :rset
14838 s/^[ ]*#[ ]*define[ ][ ]*/ /
14839 t def
14840 d
14841 :def
14842 s/\\$//
14843 t bsnl
14844 s/["\\]/\\&/g
14845 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14846 D["\1"]=" \3"/p
14847 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14848 d
14849 :bsnl
14850 s/["\\]/\\&/g
14851 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14852 D["\1"]=" \3\\\\\\n"\\/p
14853 t cont
14854 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14855 t cont
14856 d
14857 :cont
14858 n
14859 s/.\{148\}/&'"$ac_delim"'/g
14860 t clear
14861 :clear
14862 s/\\$//
14863 t bsnlc
14864 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14865 d
14866 :bsnlc
14867 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14868 b cont
14869 ' <confdefs.h | sed '
14870 s/'"$ac_delim"'/"\\\
14871 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14872
14873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14874 for (key in D) D_is_set[key] = 1
14875 FS = ""
14876 }
14877 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14878 line = \$ 0
14879 split(line, arg, " ")
14880 if (arg[1] == "#") {
14881 defundef = arg[2]
14882 mac1 = arg[3]
14883 } else {
14884 defundef = substr(arg[1], 2)
14885 mac1 = arg[2]
14886 }
14887 split(mac1, mac2, "(") #)
14888 macro = mac2[1]
14889 prefix = substr(line, 1, index(line, defundef) - 1)
14890 if (D_is_set[macro]) {
14891 # Preserve the white space surrounding the "#".
14892 print prefix "define", macro P[macro] D[macro]
14893 next
14894 } else {
14895 # Replace #undef with comments. This is necessary, for example,
14896 # in the case of _POSIX_SOURCE, which is predefined and required
14897 # on some systems where configure will not decide to define it.
14898 if (defundef == "undef") {
14899 print "/*", prefix defundef, macro, "*/"
14900 next
14901 }
14902 }
14903 }
14904 { print }
14905 _ACAWK
14906 _ACEOF
14907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14908 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14909 fi # test -n "$CONFIG_HEADERS"
14910
14911
14912 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14913 shift
14914 for ac_tag
14915 do
14916 case $ac_tag in
14917 :[FHLC]) ac_mode=$ac_tag; continue;;
14918 esac
14919 case $ac_mode$ac_tag in
14920 :[FHL]*:*);;
14921 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14922 :[FH]-) ac_tag=-:-;;
14923 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14924 esac
14925 ac_save_IFS=$IFS
14926 IFS=:
14927 set x $ac_tag
14928 IFS=$ac_save_IFS
14929 shift
14930 ac_file=$1
14931 shift
14932
14933 case $ac_mode in
14934 :L) ac_source=$1;;
14935 :[FH])
14936 ac_file_inputs=
14937 for ac_f
14938 do
14939 case $ac_f in
14940 -) ac_f="$ac_tmp/stdin";;
14941 *) # Look for the file first in the build tree, then in the source tree
14942 # (if the path is not absolute). The absolute path cannot be DOS-style,
14943 # because $ac_f cannot contain `:'.
14944 test -f "$ac_f" ||
14945 case $ac_f in
14946 [\\/$]*) false;;
14947 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14948 esac ||
14949 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14950 esac
14951 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14952 as_fn_append ac_file_inputs " '$ac_f'"
14953 done
14954
14955 # Let's still pretend it is `configure' which instantiates (i.e., don't
14956 # use $as_me), people would be surprised to read:
14957 # /* config.h. Generated by config.status. */
14958 configure_input='Generated from '`
14959 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14960 `' by configure.'
14961 if test x"$ac_file" != x-; then
14962 configure_input="$ac_file. $configure_input"
14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14964 printf "%s\n" "$as_me: creating $ac_file" >&6;}
14965 fi
14966 # Neutralize special characters interpreted by sed in replacement strings.
14967 case $configure_input in #(
14968 *\&* | *\|* | *\\* )
14969 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
14970 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14971 *) ac_sed_conf_input=$configure_input;;
14972 esac
14973
14974 case $ac_tag in
14975 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14977 esac
14978 ;;
14979 esac
14980
14981 ac_dir=`$as_dirname -- "$ac_file" ||
14982 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14983 X"$ac_file" : 'X\(//\)[^/]' \| \
14984 X"$ac_file" : 'X\(//\)$' \| \
14985 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14986 printf "%s\n" X"$ac_file" |
14987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14988 s//\1/
14989 q
14990 }
14991 /^X\(\/\/\)[^/].*/{
14992 s//\1/
14993 q
14994 }
14995 /^X\(\/\/\)$/{
14996 s//\1/
14997 q
14998 }
14999 /^X\(\/\).*/{
15000 s//\1/
15001 q
15002 }
15003 s/.*/./; q'`
15004 as_dir="$ac_dir"; as_fn_mkdir_p
15005 ac_builddir=.
15006
15007 case "$ac_dir" in
15008 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15009 *)
15010 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15011 # A ".." for each directory in $ac_dir_suffix.
15012 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15013 case $ac_top_builddir_sub in
15014 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15015 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15016 esac ;;
15017 esac
15018 ac_abs_top_builddir=$ac_pwd
15019 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15020 # for backward compatibility:
15021 ac_top_builddir=$ac_top_build_prefix
15022
15023 case $srcdir in
15024 .) # We are building in place.
15025 ac_srcdir=.
15026 ac_top_srcdir=$ac_top_builddir_sub
15027 ac_abs_top_srcdir=$ac_pwd ;;
15028 [\\/]* | ?:[\\/]* ) # Absolute name.
15029 ac_srcdir=$srcdir$ac_dir_suffix;
15030 ac_top_srcdir=$srcdir
15031 ac_abs_top_srcdir=$srcdir ;;
15032 *) # Relative name.
15033 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15034 ac_top_srcdir=$ac_top_build_prefix$srcdir
15035 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15036 esac
15037 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15038
15039
15040 case $ac_mode in
15041 :F)
15042 #
15043 # CONFIG_FILE
15044 #
15045
15046 case $INSTALL in
15047 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15048 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15049 esac
15050 ac_MKDIR_P=$MKDIR_P
15051 case $MKDIR_P in
15052 [\\/$]* | ?:[\\/]* ) ;;
15053 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15054 esac
15055 _ACEOF
15056
15057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15058 # If the template does not know about datarootdir, expand it.
15059 # FIXME: This hack should be removed a few years after 2.60.
15060 ac_datarootdir_hack=; ac_datarootdir_seen=
15061 ac_sed_dataroot='
15062 /datarootdir/ {
15063 p
15064 q
15065 }
15066 /@datadir@/p
15067 /@docdir@/p
15068 /@infodir@/p
15069 /@localedir@/p
15070 /@mandir@/p'
15071 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15072 *datarootdir*) ac_datarootdir_seen=yes;;
15073 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15075 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15076 _ACEOF
15077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15078 ac_datarootdir_hack='
15079 s&@datadir@&$datadir&g
15080 s&@docdir@&$docdir&g
15081 s&@infodir@&$infodir&g
15082 s&@localedir@&$localedir&g
15083 s&@mandir@&$mandir&g
15084 s&\\\${datarootdir}&$datarootdir&g' ;;
15085 esac
15086 _ACEOF
15087
15088 # Neutralize VPATH when `$srcdir' = `.'.
15089 # Shell code in configure.ac might set extrasub.
15090 # FIXME: do we really want to maintain this feature?
15091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15092 ac_sed_extra="$ac_vpsub
15093 $extrasub
15094 _ACEOF
15095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15096 :t
15097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15098 s|@configure_input@|$ac_sed_conf_input|;t t
15099 s&@top_builddir@&$ac_top_builddir_sub&;t t
15100 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15101 s&@srcdir@&$ac_srcdir&;t t
15102 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15103 s&@top_srcdir@&$ac_top_srcdir&;t t
15104 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15105 s&@builddir@&$ac_builddir&;t t
15106 s&@abs_builddir@&$ac_abs_builddir&;t t
15107 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15108 s&@INSTALL@&$ac_INSTALL&;t t
15109 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15110 $ac_datarootdir_hack
15111 "
15112 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15113 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15114
15115 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15116 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15117 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15118 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15120 which seems to be undefined. Please make sure it is defined" >&5
15121 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15122 which seems to be undefined. Please make sure it is defined" >&2;}
15123
15124 rm -f "$ac_tmp/stdin"
15125 case $ac_file in
15126 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15127 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15128 esac \
15129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15130 ;;
15131 :H)
15132 #
15133 # CONFIG_HEADER
15134 #
15135 if test x"$ac_file" != x-; then
15136 {
15137 printf "%s\n" "/* $configure_input */" >&1 \
15138 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15139 } >"$ac_tmp/config.h" \
15140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15141 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15143 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
15144 else
15145 rm -f "$ac_file"
15146 mv "$ac_tmp/config.h" "$ac_file" \
15147 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15148 fi
15149 else
15150 printf "%s\n" "/* $configure_input */" >&1 \
15151 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15152 || as_fn_error $? "could not create -" "$LINENO" 5
15153 fi
15154 # Compute "$ac_file"'s index in $config_headers.
15155 _am_arg="$ac_file"
15156 _am_stamp_count=1
15157 for _am_header in $config_headers :; do
15158 case $_am_header in
15159 $_am_arg | $_am_arg:* )
15160 break ;;
15161 * )
15162 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15163 esac
15164 done
15165 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15166 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15167 X"$_am_arg" : 'X\(//\)[^/]' \| \
15168 X"$_am_arg" : 'X\(//\)$' \| \
15169 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15170 printf "%s\n" X"$_am_arg" |
15171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15172 s//\1/
15173 q
15174 }
15175 /^X\(\/\/\)[^/].*/{
15176 s//\1/
15177 q
15178 }
15179 /^X\(\/\/\)$/{
15180 s//\1/
15181 q
15182 }
15183 /^X\(\/\).*/{
15184 s//\1/
15185 q
15186 }
15187 s/.*/./; q'`/stamp-h$_am_stamp_count
15188 ;;
15189
15190 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15191 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
15192 ;;
15193 esac
15194
15195
15196 case $ac_file$ac_mode in
15197 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15198 # Older Autoconf quotes --file arguments for eval, but not when files
15199 # are listed without --file. Let's play safe and only enable the eval
15200 # if we detect the quoting.
15201 # TODO: see whether this extra hack can be removed once we start
15202 # requiring Autoconf 2.70 or later.
15203 case $CONFIG_FILES in #(
15204 *\'*) :
15205 eval set x "$CONFIG_FILES" ;; #(
15206 *) :
15207 set x $CONFIG_FILES ;; #(
15208 *) :
15209 ;;
15210 esac
15211 shift
15212 # Used to flag and report bootstrapping failures.
15213 am_rc=0
15214 for am_mf
15215 do
15216 # Strip MF so we end up with the name of the file.
15217 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
15218 # Check whether this is an Automake generated Makefile which includes
15219 # dependency-tracking related rules and includes.
15220 # Grep'ing the whole file directly is not great: AIX grep has a line
15221 # limit of 2048, but all sed's we know have understand at least 4000.
15222 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
15223 || continue
15224 am_dirpart=`$as_dirname -- "$am_mf" ||
15225 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15226 X"$am_mf" : 'X\(//\)[^/]' \| \
15227 X"$am_mf" : 'X\(//\)$' \| \
15228 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15229 printf "%s\n" X"$am_mf" |
15230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15231 s//\1/
15232 q
15233 }
15234 /^X\(\/\/\)[^/].*/{
15235 s//\1/
15236 q
15237 }
15238 /^X\(\/\/\)$/{
15239 s//\1/
15240 q
15241 }
15242 /^X\(\/\).*/{
15243 s//\1/
15244 q
15245 }
15246 s/.*/./; q'`
15247 am_filepart=`$as_basename -- "$am_mf" ||
15248 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
15249 X"$am_mf" : 'X\(//\)$' \| \
15250 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
15251 printf "%s\n" X/"$am_mf" |
15252 sed '/^.*\/\([^/][^/]*\)\/*$/{
15253 s//\1/
15254 q
15255 }
15256 /^X\/\(\/\/\)$/{
15257 s//\1/
15258 q
15259 }
15260 /^X\/\(\/\).*/{
15261 s//\1/
15262 q
15263 }
15264 s/.*/./; q'`
15265 { echo "$as_me:$LINENO: cd "$am_dirpart" \
15266 && sed -e '/# am--include-marker/d' "$am_filepart" \
15267 | $MAKE -f - am--depfiles" >&5
15268 (cd "$am_dirpart" \
15269 && sed -e '/# am--include-marker/d' "$am_filepart" \
15270 | $MAKE -f - am--depfiles) >&5 2>&5
15271 ac_status=$?
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } || am_rc=$?
15274 done
15275 if test $am_rc -ne 0; then
15276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15277 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15278 as_fn_error $? "Something went wrong bootstrapping makefile fragments
15279 for automatic dependency tracking. If GNU make was not used, consider
15280 re-running the configure script with MAKE=\"gmake\" (or whatever is
15281 necessary). You can also try re-running configure with the
15282 '--disable-dependency-tracking' option to at least be able to build
15283 the package (albeit without support for automatic dependency tracking).
15284 See \`config.log' for more details" "$LINENO" 5; }
15285 fi
15286 { am_dirpart=; unset am_dirpart;}
15287 { am_filepart=; unset am_filepart;}
15288 { am_mf=; unset am_mf;}
15289 { am_rc=; unset am_rc;}
15290 rm -f conftest-deps.mk
15291 }
15292 ;;
15293 "libtool":C)
15294
15295 # See if we are running on zsh, and set the options that allow our
15296 # commands through without removal of \ escapes.
15297 if test -n "${ZSH_VERSION+set}"; then
15298 setopt NO_GLOB_SUBST
15299 fi
15300
15301 cfgfile=${ofile}T
15302 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15303 $RM "$cfgfile"
15304
15305 cat <<_LT_EOF >> "$cfgfile"
15306 #! $SHELL
15307 # Generated automatically by $as_me ($PACKAGE) $VERSION
15308 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15309
15310 # Provide generalized library-building support services.
15311 # Written by Gordon Matzigkeit, 1996
15312
15313 # Copyright (C) 2014 Free Software Foundation, Inc.
15314 # This is free software; see the source for copying conditions. There is NO
15315 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15316
15317 # GNU Libtool is free software; you can redistribute it and/or modify
15318 # it under the terms of the GNU General Public License as published by
15319 # the Free Software Foundation; either version 2 of of the License, or
15320 # (at your option) any later version.
15321 #
15322 # As a special exception to the GNU General Public License, if you
15323 # distribute this file as part of a program or library that is built
15324 # using GNU Libtool, you may include this file under the same
15325 # distribution terms that you use for the rest of that program.
15326 #
15327 # GNU Libtool is distributed in the hope that it will be useful, but
15328 # WITHOUT ANY WARRANTY; without even the implied warranty of
15329 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15330 # GNU General Public License for more details.
15331 #
15332 # You should have received a copy of the GNU General Public License
15333 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15334
15335
15336 # The names of the tagged configurations supported by this script.
15337 available_tags=''
15338
15339 # Configured defaults for sys_lib_dlsearch_path munging.
15340 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15341
15342 # ### BEGIN LIBTOOL CONFIG
15343
15344 # Which release of libtool.m4 was used?
15345 macro_version=$macro_version
15346 macro_revision=$macro_revision
15347
15348 # Whether or not to build shared libraries.
15349 build_libtool_libs=$enable_shared
15350
15351 # Whether or not to build static libraries.
15352 build_old_libs=$enable_static
15353
15354 # What type of objects to build.
15355 pic_mode=$pic_mode
15356
15357 # Whether or not to optimize for fast installation.
15358 fast_install=$enable_fast_install
15359
15360 # Shared archive member basename,for filename based shared library versioning on AIX.
15361 shared_archive_member_spec=$shared_archive_member_spec
15362
15363 # Shell to use when invoking shell scripts.
15364 SHELL=$lt_SHELL
15365
15366 # An echo program that protects backslashes.
15367 ECHO=$lt_ECHO
15368
15369 # The PATH separator for the build system.
15370 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15371
15372 # The host system.
15373 host_alias=$host_alias
15374 host=$host
15375 host_os=$host_os
15376
15377 # The build system.
15378 build_alias=$build_alias
15379 build=$build
15380 build_os=$build_os
15381
15382 # A sed program that does not truncate output.
15383 SED=$lt_SED
15384
15385 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15386 Xsed="\$SED -e 1s/^X//"
15387
15388 # A grep program that handles long lines.
15389 GREP=$lt_GREP
15390
15391 # An ERE matcher.
15392 EGREP=$lt_EGREP
15393
15394 # A literal string matcher.
15395 FGREP=$lt_FGREP
15396
15397 # A BSD- or MS-compatible name lister.
15398 NM=$lt_NM
15399
15400 # Whether we need soft or hard links.
15401 LN_S=$lt_LN_S
15402
15403 # What is the maximum length of a command?
15404 max_cmd_len=$max_cmd_len
15405
15406 # Object file suffix (normally "o").
15407 objext=$ac_objext
15408
15409 # Executable file suffix (normally "").
15410 exeext=$exeext
15411
15412 # whether the shell understands "unset".
15413 lt_unset=$lt_unset
15414
15415 # turn spaces into newlines.
15416 SP2NL=$lt_lt_SP2NL
15417
15418 # turn newlines into spaces.
15419 NL2SP=$lt_lt_NL2SP
15420
15421 # convert \$build file names to \$host format.
15422 to_host_file_cmd=$lt_cv_to_host_file_cmd
15423
15424 # convert \$build files to toolchain format.
15425 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15426
15427 # A file(cmd) program that detects file types.
15428 FILECMD=$lt_FILECMD
15429
15430 # An object symbol dumper.
15431 OBJDUMP=$lt_OBJDUMP
15432
15433 # Method to check whether dependent libraries are shared objects.
15434 deplibs_check_method=$lt_deplibs_check_method
15435
15436 # Command to use when deplibs_check_method = "file_magic".
15437 file_magic_cmd=$lt_file_magic_cmd
15438
15439 # How to find potential files when deplibs_check_method = "file_magic".
15440 file_magic_glob=$lt_file_magic_glob
15441
15442 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15443 want_nocaseglob=$lt_want_nocaseglob
15444
15445 # DLL creation program.
15446 DLLTOOL=$lt_DLLTOOL
15447
15448 # Command to associate shared and link libraries.
15449 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15450
15451 # The archiver.
15452 AR=$lt_AR
15453
15454 # Flags to create an archive (by configure).
15455 lt_ar_flags=$lt_ar_flags
15456
15457 # Flags to create an archive.
15458 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
15459
15460 # How to feed a file listing to the archiver.
15461 archiver_list_spec=$lt_archiver_list_spec
15462
15463 # A symbol stripping program.
15464 STRIP=$lt_STRIP
15465
15466 # Commands used to install an old-style archive.
15467 RANLIB=$lt_RANLIB
15468 old_postinstall_cmds=$lt_old_postinstall_cmds
15469 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15470
15471 # Whether to use a lock for old archive extraction.
15472 lock_old_archive_extraction=$lock_old_archive_extraction
15473
15474 # A C compiler.
15475 LTCC=$lt_CC
15476
15477 # LTCC compiler flags.
15478 LTCFLAGS=$lt_CFLAGS
15479
15480 # Take the output of nm and produce a listing of raw symbols and C names.
15481 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15482
15483 # Transform the output of nm in a proper C declaration.
15484 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15485
15486 # Transform the output of nm into a list of symbols to manually relocate.
15487 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15488
15489 # Transform the output of nm in a C name address pair.
15490 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15491
15492 # Transform the output of nm in a C name address pair when lib prefix is needed.
15493 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15494
15495 # The name lister interface.
15496 nm_interface=$lt_lt_cv_nm_interface
15497
15498 # Specify filename containing input files for \$NM.
15499 nm_file_list_spec=$lt_nm_file_list_spec
15500
15501 # The root where to search for dependent libraries,and where our libraries should be installed.
15502 lt_sysroot=$lt_sysroot
15503
15504 # Command to truncate a binary pipe.
15505 lt_truncate_bin=$lt_lt_cv_truncate_bin
15506
15507 # The name of the directory that contains temporary libtool files.
15508 objdir=$objdir
15509
15510 # Used to examine libraries when file_magic_cmd begins with "file".
15511 MAGIC_CMD=$MAGIC_CMD
15512
15513 # Must we lock files when doing compilation?
15514 need_locks=$lt_need_locks
15515
15516 # Manifest tool.
15517 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15518
15519 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15520 DSYMUTIL=$lt_DSYMUTIL
15521
15522 # Tool to change global to local symbols on Mac OS X.
15523 NMEDIT=$lt_NMEDIT
15524
15525 # Tool to manipulate fat objects and archives on Mac OS X.
15526 LIPO=$lt_LIPO
15527
15528 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15529 OTOOL=$lt_OTOOL
15530
15531 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15532 OTOOL64=$lt_OTOOL64
15533
15534 # Old archive suffix (normally "a").
15535 libext=$libext
15536
15537 # Shared library suffix (normally ".so").
15538 shrext_cmds=$lt_shrext_cmds
15539
15540 # The commands to extract the exported symbol list from a shared archive.
15541 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15542
15543 # Variables whose values should be saved in libtool wrapper scripts and
15544 # restored at link time.
15545 variables_saved_for_relink=$lt_variables_saved_for_relink
15546
15547 # Do we need the "lib" prefix for modules?
15548 need_lib_prefix=$need_lib_prefix
15549
15550 # Do we need a version for libraries?
15551 need_version=$need_version
15552
15553 # Library versioning type.
15554 version_type=$version_type
15555
15556 # Shared library runtime path variable.
15557 runpath_var=$runpath_var
15558
15559 # Shared library path variable.
15560 shlibpath_var=$shlibpath_var
15561
15562 # Is shlibpath searched before the hard-coded library search path?
15563 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15564
15565 # Format of library name prefix.
15566 libname_spec=$lt_libname_spec
15567
15568 # List of archive names. First name is the real one, the rest are links.
15569 # The last name is the one that the linker finds with -lNAME
15570 library_names_spec=$lt_library_names_spec
15571
15572 # The coded name of the library, if different from the real name.
15573 soname_spec=$lt_soname_spec
15574
15575 # Permission mode override for installation of shared libraries.
15576 install_override_mode=$lt_install_override_mode
15577
15578 # Command to use after installation of a shared archive.
15579 postinstall_cmds=$lt_postinstall_cmds
15580
15581 # Command to use after uninstallation of a shared archive.
15582 postuninstall_cmds=$lt_postuninstall_cmds
15583
15584 # Commands used to finish a libtool library installation in a directory.
15585 finish_cmds=$lt_finish_cmds
15586
15587 # As "finish_cmds", except a single script fragment to be evaled but
15588 # not shown.
15589 finish_eval=$lt_finish_eval
15590
15591 # Whether we should hardcode library paths into libraries.
15592 hardcode_into_libs=$hardcode_into_libs
15593
15594 # Compile-time system search path for libraries.
15595 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15596
15597 # Detected run-time system search path for libraries.
15598 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15599
15600 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15601 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15602
15603 # Whether dlopen is supported.
15604 dlopen_support=$enable_dlopen
15605
15606 # Whether dlopen of programs is supported.
15607 dlopen_self=$enable_dlopen_self
15608
15609 # Whether dlopen of statically linked programs is supported.
15610 dlopen_self_static=$enable_dlopen_self_static
15611
15612 # Commands to strip libraries.
15613 old_striplib=$lt_old_striplib
15614 striplib=$lt_striplib
15615
15616
15617 # The linker used to build libraries.
15618 LD=$lt_LD
15619
15620 # How to create reloadable object files.
15621 reload_flag=$lt_reload_flag
15622 reload_cmds=$lt_reload_cmds
15623
15624 # Commands used to build an old-style archive.
15625 old_archive_cmds=$lt_old_archive_cmds
15626
15627 # A language specific compiler.
15628 CC=$lt_compiler
15629
15630 # Is the compiler the GNU compiler?
15631 with_gcc=$GCC
15632
15633 # Compiler flag to turn off builtin functions.
15634 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15635
15636 # Additional compiler flags for building library objects.
15637 pic_flag=$lt_lt_prog_compiler_pic
15638
15639 # How to pass a linker flag through the compiler.
15640 wl=$lt_lt_prog_compiler_wl
15641
15642 # Compiler flag to prevent dynamic linking.
15643 link_static_flag=$lt_lt_prog_compiler_static
15644
15645 # Does compiler simultaneously support -c and -o options?
15646 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15647
15648 # Whether or not to add -lc for building shared libraries.
15649 build_libtool_need_lc=$archive_cmds_need_lc
15650
15651 # Whether or not to disallow shared libs when runtime libs are static.
15652 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15653
15654 # Compiler flag to allow reflexive dlopens.
15655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15656
15657 # Compiler flag to generate shared objects directly from archives.
15658 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15659
15660 # Whether the compiler copes with passing no objects directly.
15661 compiler_needs_object=$lt_compiler_needs_object
15662
15663 # Create an old-style archive from a shared archive.
15664 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15665
15666 # Create a temporary old-style archive to link instead of a shared archive.
15667 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15668
15669 # Commands used to build a shared archive.
15670 archive_cmds=$lt_archive_cmds
15671 archive_expsym_cmds=$lt_archive_expsym_cmds
15672
15673 # Commands used to build a loadable module if different from building
15674 # a shared archive.
15675 module_cmds=$lt_module_cmds
15676 module_expsym_cmds=$lt_module_expsym_cmds
15677
15678 # Whether we are building with GNU ld or not.
15679 with_gnu_ld=$lt_with_gnu_ld
15680
15681 # Flag that allows shared libraries with undefined symbols to be built.
15682 allow_undefined_flag=$lt_allow_undefined_flag
15683
15684 # Flag that enforces no undefined symbols.
15685 no_undefined_flag=$lt_no_undefined_flag
15686
15687 # Flag to hardcode \$libdir into a binary during linking.
15688 # This must work even if \$libdir does not exist
15689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15690
15691 # Whether we need a single "-rpath" flag with a separated argument.
15692 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15693
15694 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15695 # DIR into the resulting binary.
15696 hardcode_direct=$hardcode_direct
15697
15698 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15699 # DIR into the resulting binary and the resulting library dependency is
15700 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15701 # library is relocated.
15702 hardcode_direct_absolute=$hardcode_direct_absolute
15703
15704 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15705 # into the resulting binary.
15706 hardcode_minus_L=$hardcode_minus_L
15707
15708 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15709 # into the resulting binary.
15710 hardcode_shlibpath_var=$hardcode_shlibpath_var
15711
15712 # Set to "yes" if building a shared library automatically hardcodes DIR
15713 # into the library and all subsequent libraries and executables linked
15714 # against it.
15715 hardcode_automatic=$hardcode_automatic
15716
15717 # Set to yes if linker adds runtime paths of dependent libraries
15718 # to runtime path list.
15719 inherit_rpath=$inherit_rpath
15720
15721 # Whether libtool must link a program against all its dependency libraries.
15722 link_all_deplibs=$link_all_deplibs
15723
15724 # Set to "yes" if exported symbols are required.
15725 always_export_symbols=$always_export_symbols
15726
15727 # The commands to list exported symbols.
15728 export_symbols_cmds=$lt_export_symbols_cmds
15729
15730 # Symbols that should not be listed in the preloaded symbols.
15731 exclude_expsyms=$lt_exclude_expsyms
15732
15733 # Symbols that must always be exported.
15734 include_expsyms=$lt_include_expsyms
15735
15736 # Commands necessary for linking programs (against libraries) with templates.
15737 prelink_cmds=$lt_prelink_cmds
15738
15739 # Commands necessary for finishing linking programs.
15740 postlink_cmds=$lt_postlink_cmds
15741
15742 # Specify filename containing input files.
15743 file_list_spec=$lt_file_list_spec
15744
15745 # How to hardcode a shared library path into an executable.
15746 hardcode_action=$hardcode_action
15747
15748 # ### END LIBTOOL CONFIG
15749
15750 _LT_EOF
15751
15752 cat <<'_LT_EOF' >> "$cfgfile"
15753
15754 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15755
15756 # func_munge_path_list VARIABLE PATH
15757 # -----------------------------------
15758 # VARIABLE is name of variable containing _space_ separated list of
15759 # directories to be munged by the contents of PATH, which is string
15760 # having a format:
15761 # "DIR[:DIR]:"
15762 # string "DIR[ DIR]" will be prepended to VARIABLE
15763 # ":DIR[:DIR]"
15764 # string "DIR[ DIR]" will be appended to VARIABLE
15765 # "DIRP[:DIRP]::[DIRA:]DIRA"
15766 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15767 # "DIRA[ DIRA]" will be appended to VARIABLE
15768 # "DIR[:DIR]"
15769 # VARIABLE will be replaced by "DIR[ DIR]"
15770 func_munge_path_list ()
15771 {
15772 case x$2 in
15773 x)
15774 ;;
15775 *:)
15776 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15777 ;;
15778 x:*)
15779 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15780 ;;
15781 *::*)
15782 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15783 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15784 ;;
15785 *)
15786 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15787 ;;
15788 esac
15789 }
15790
15791
15792 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15793 func_cc_basename ()
15794 {
15795 for cc_temp in $*""; do
15796 case $cc_temp in
15797 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15798 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15799 \-*) ;;
15800 *) break;;
15801 esac
15802 done
15803 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15804 }
15805
15806
15807 # ### END FUNCTIONS SHARED WITH CONFIGURE
15808
15809 _LT_EOF
15810
15811 case $host_os in
15812 aix3*)
15813 cat <<\_LT_EOF >> "$cfgfile"
15814 # AIX sometimes has problems with the GCC collect2 program. For some
15815 # reason, if we set the COLLECT_NAMES environment variable, the problems
15816 # vanish in a puff of smoke.
15817 if test set != "${COLLECT_NAMES+set}"; then
15818 COLLECT_NAMES=
15819 export COLLECT_NAMES
15820 fi
15821 _LT_EOF
15822 ;;
15823 esac
15824
15825
15826
15827 ltmain=$ac_aux_dir/ltmain.sh
15828
15829
15830 # We use sed instead of cat because bash on DJGPP gets confused if
15831 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15832 # text mode, it properly converts lines to CR/LF. This bash problem
15833 # is reportedly fixed, but why not run on old versions too?
15834 $SED '$q' "$ltmain" >> "$cfgfile" \
15835 || (rm -f "$cfgfile"; exit 1)
15836
15837 mv -f "$cfgfile" "$ofile" ||
15838 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15839 chmod +x "$ofile"
15840
15841 ;;
15842 "default":C) chmod +x onigmo-config ;;
15843
15844 esac
15845 done # for ac_tag
15846
15847
15848 as_fn_exit 0
15849 _ACEOF
15850 ac_clean_files=$ac_clean_files_save
15851
15852 test $ac_write_fail = 0 ||
15853 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15854
15855
15856 # configure is writing to config.log, and then calls config.status.
15857 # config.status does its own redirection, appending to config.log.
15858 # Unfortunately, on DOS this fails, as config.log is still kept open
15859 # by configure, so config.status won't be able to write to it; its
15860 # output is simply discarded. So we exec the FD to /dev/null,
15861 # effectively closing config.log, so it can be properly (re)opened and
15862 # appended to by config.status. When coming back to configure, we
15863 # need to make the FD available again.
15864 if test "$no_create" != yes; then
15865 ac_cs_success=:
15866 ac_config_status_args=
15867 test "$silent" = yes &&
15868 ac_config_status_args="$ac_config_status_args --quiet"
15869 exec 5>/dev/null
15870 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15871 exec 5>>config.log
15872 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15873 # would make configure fail if this is the last instruction.
15874 $ac_cs_success || as_fn_exit 1
15875 fi
15876 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15878 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15879 fi
15880
15881