Annotation of embedaddon/pcre/configure, revision 1.1.1.4
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.4 ! misho 3: # Generated by GNU Autoconf 2.69 for PCRE 8.33.
1.1 misho 4: #
5: #
1.1.1.4 ! misho 6: # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
1.1 misho 7: #
8: #
9: # This configure script is free software; the Free Software Foundation
10: # gives unlimited permission to copy, distribute and modify it.
11: ## -------------------- ##
12: ## M4sh Initialization. ##
13: ## -------------------- ##
14:
15: # Be more Bourne compatible
16: DUALCASE=1; export DUALCASE # for MKS sh
17: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18: emulate sh
19: NULLCMD=:
20: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21: # is contrary to our usage. Disable this feature.
22: alias -g '${1+"$@"}'='"$@"'
23: setopt NO_GLOB_SUBST
24: else
25: case `(set -o) 2>/dev/null` in #(
26: *posix*) :
27: set -o posix ;; #(
28: *) :
29: ;;
30: esac
31: fi
32:
33:
34: as_nl='
35: '
36: export as_nl
37: # Printing a long string crashes Solaris 7 /usr/bin/printf.
38: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41: # Prefer a ksh shell builtin over an external printf program on Solaris,
42: # but without wasting forks for bash or zsh.
43: if test -z "$BASH_VERSION$ZSH_VERSION" \
44: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45: as_echo='print -r --'
46: as_echo_n='print -rn --'
47: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in #(
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
70: fi
71:
72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
79: fi
80:
81:
82: # IFS
83: # We need space, tab and new line, in precisely that order. Quoting is
84: # there to prevent editors from complaining about space-tab.
85: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86: # splitting by setting IFS to empty value.)
87: IFS=" "" $as_nl"
88:
89: # Find who we are. Look in the path if we contain no directory separator.
90: as_myself=
91: case $0 in #((
92: *[\\/]* ) as_myself=$0 ;;
93: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94: for as_dir in $PATH
95: do
96: IFS=$as_save_IFS
97: test -z "$as_dir" && as_dir=.
98: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
104: # We did not find ourselves, most probably we were run as `sh COMMAND'
105: # in which case we are not to be found in the path.
106: if test "x$as_myself" = x; then
107: as_myself=$0
108: fi
109: if test ! -f "$as_myself"; then
110: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111: exit 1
112: fi
113:
114: # Unset variables that we do not need and which cause bugs (e.g. in
115: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116: # suppresses any "Segmentation fault" message there. '((' could
117: # trigger a bug in pdksh 5.2.14.
118: for as_var in BASH_ENV ENV MAIL MAILPATH
119: do eval test x\${$as_var+set} = xset \
120: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121: done
122: PS1='$ '
123: PS2='> '
124: PS4='+ '
125:
126: # NLS nuisances.
127: LC_ALL=C
128: export LC_ALL
129: LANGUAGE=C
130: export LANGUAGE
131:
132: # CDPATH.
133: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134:
1.1.1.4 ! misho 135: # Use a proper internal environment variable to ensure we don't fall
! 136: # into an infinite loop, continuously re-executing ourselves.
! 137: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
! 138: _as_can_reexec=no; export _as_can_reexec;
! 139: # We cannot yet assume a decent shell, so we have to provide a
! 140: # neutralization value for shells without unset; and this also
! 141: # works around shells that cannot unset nonexistent variables.
! 142: # Preserve -v and -x to the replacement shell.
! 143: BASH_ENV=/dev/null
! 144: ENV=/dev/null
! 145: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 146: case $- in # ((((
! 147: *v*x* | *x*v* ) as_opts=-vx ;;
! 148: *v* ) as_opts=-v ;;
! 149: *x* ) as_opts=-x ;;
! 150: * ) as_opts= ;;
! 151: esac
! 152: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
! 153: # Admittedly, this is quite paranoid, since all the known shells bail
! 154: # out after a failed `exec'.
! 155: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
! 156: as_fn_exit 255
! 157: fi
! 158: # We don't want this to propagate to other subprocesses.
! 159: { _as_can_reexec=; unset _as_can_reexec;}
1.1 misho 160: if test "x$CONFIG_SHELL" = x; then
161: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162: emulate sh
163: NULLCMD=:
164: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165: # is contrary to our usage. Disable this feature.
166: alias -g '\${1+\"\$@\"}'='\"\$@\"'
167: setopt NO_GLOB_SUBST
168: else
169: case \`(set -o) 2>/dev/null\` in #(
170: *posix*) :
171: set -o posix ;; #(
172: *) :
173: ;;
174: esac
175: fi
176: "
177: as_required="as_fn_return () { (exit \$1); }
178: as_fn_success () { as_fn_return 0; }
179: as_fn_failure () { as_fn_return 1; }
180: as_fn_ret_success () { return 0; }
181: as_fn_ret_failure () { return 1; }
182:
183: exitcode=0
184: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189:
190: else
191: exitcode=1; echo positional parameters were not saved.
192: fi
1.1.1.4 ! misho 193: test x\$exitcode = x0 || exit 1
! 194: test -x / || exit 1"
1.1 misho 195: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199: test \$(( 1 + 1 )) = 2 || exit 1
200:
201: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205: PATH=/empty FPATH=/empty; export PATH FPATH
206: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208: if (eval "$as_required") 2>/dev/null; then :
209: as_have_required=yes
210: else
211: as_have_required=no
212: fi
213: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214:
215: else
216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217: as_found=false
218: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219: do
220: IFS=$as_save_IFS
221: test -z "$as_dir" && as_dir=.
222: as_found=:
223: case $as_dir in #(
224: /*)
225: for as_base in sh bash ksh sh5; do
226: # Try only shells that exist, to save several forks.
227: as_shell=$as_dir/$as_base
228: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230: CONFIG_SHELL=$as_shell as_have_required=yes
231: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232: break 2
233: fi
234: fi
235: done;;
236: esac
237: as_found=false
238: done
239: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241: CONFIG_SHELL=$SHELL as_have_required=yes
242: fi; }
243: IFS=$as_save_IFS
244:
245:
246: if test "x$CONFIG_SHELL" != x; then :
1.1.1.4 ! misho 247: export CONFIG_SHELL
! 248: # We cannot yet assume a decent shell, so we have to provide a
! 249: # neutralization value for shells without unset; and this also
! 250: # works around shells that cannot unset nonexistent variables.
! 251: # Preserve -v and -x to the replacement shell.
! 252: BASH_ENV=/dev/null
! 253: ENV=/dev/null
! 254: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
! 255: case $- in # ((((
! 256: *v*x* | *x*v* ) as_opts=-vx ;;
! 257: *v* ) as_opts=-v ;;
! 258: *x* ) as_opts=-x ;;
! 259: * ) as_opts= ;;
! 260: esac
! 261: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
! 262: # Admittedly, this is quite paranoid, since all the known shells bail
! 263: # out after a failed `exec'.
! 264: $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
! 265: exit 255
1.1 misho 266: fi
267:
268: if test x$as_have_required = xno; then :
269: $as_echo "$0: This script requires a shell more modern than all"
270: $as_echo "$0: the shells that I found on your system."
271: if test x${ZSH_VERSION+set} = xset ; then
272: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274: else
275: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276: $0: including any error possibly output before this
277: $0: message. Then install a modern shell, or manually run
278: $0: the script under such a shell if you do have one."
279: fi
280: exit 1
281: fi
282: fi
283: fi
284: SHELL=${CONFIG_SHELL-/bin/sh}
285: export SHELL
286: # Unset more variables known to interfere with behavior of common tools.
287: CLICOLOR_FORCE= GREP_OPTIONS=
288: unset CLICOLOR_FORCE GREP_OPTIONS
289:
290: ## --------------------- ##
291: ## M4sh Shell Functions. ##
292: ## --------------------- ##
293: # as_fn_unset VAR
294: # ---------------
295: # Portably unset VAR.
296: as_fn_unset ()
297: {
298: { eval $1=; unset $1;}
299: }
300: as_unset=as_fn_unset
301:
302: # as_fn_set_status STATUS
303: # -----------------------
304: # Set $? to STATUS, without forking.
305: as_fn_set_status ()
306: {
307: return $1
308: } # as_fn_set_status
309:
310: # as_fn_exit STATUS
311: # -----------------
312: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313: as_fn_exit ()
314: {
315: set +e
316: as_fn_set_status $1
317: exit $1
318: } # as_fn_exit
319:
320: # as_fn_mkdir_p
321: # -------------
322: # Create "$as_dir" as a directory, including parents if necessary.
323: as_fn_mkdir_p ()
324: {
325:
326: case $as_dir in #(
327: -*) as_dir=./$as_dir;;
328: esac
329: test -d "$as_dir" || eval $as_mkdir_p || {
330: as_dirs=
331: while :; do
332: case $as_dir in #(
333: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334: *) as_qdir=$as_dir;;
335: esac
336: as_dirs="'$as_qdir' $as_dirs"
337: as_dir=`$as_dirname -- "$as_dir" ||
338: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339: X"$as_dir" : 'X\(//\)[^/]' \| \
340: X"$as_dir" : 'X\(//\)$' \| \
341: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342: $as_echo X"$as_dir" |
343: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344: s//\1/
345: q
346: }
347: /^X\(\/\/\)[^/].*/{
348: s//\1/
349: q
350: }
351: /^X\(\/\/\)$/{
352: s//\1/
353: q
354: }
355: /^X\(\/\).*/{
356: s//\1/
357: q
358: }
359: s/.*/./; q'`
360: test -d "$as_dir" && break
361: done
362: test -z "$as_dirs" || eval "mkdir $as_dirs"
363: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364:
365:
366: } # as_fn_mkdir_p
1.1.1.4 ! misho 367:
! 368: # as_fn_executable_p FILE
! 369: # -----------------------
! 370: # Test if FILE is an executable regular file.
! 371: as_fn_executable_p ()
! 372: {
! 373: test -f "$1" && test -x "$1"
! 374: } # as_fn_executable_p
1.1 misho 375: # as_fn_append VAR VALUE
376: # ----------------------
377: # Append the text in VALUE to the end of the definition contained in VAR. Take
378: # advantage of any shell optimizations that allow amortized linear growth over
379: # repeated appends, instead of the typical quadratic growth present in naive
380: # implementations.
381: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382: eval 'as_fn_append ()
383: {
384: eval $1+=\$2
385: }'
386: else
387: as_fn_append ()
388: {
389: eval $1=\$$1\$2
390: }
391: fi # as_fn_append
392:
393: # as_fn_arith ARG...
394: # ------------------
395: # Perform arithmetic evaluation on the ARGs, and store the result in the
396: # global $as_val. Take advantage of shells that can avoid forks. The arguments
397: # must be portable across $(()) and expr.
398: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399: eval 'as_fn_arith ()
400: {
401: as_val=$(( $* ))
402: }'
403: else
404: as_fn_arith ()
405: {
406: as_val=`expr "$@" || test $? -eq 1`
407: }
408: fi # as_fn_arith
409:
410:
411: # as_fn_error STATUS ERROR [LINENO LOG_FD]
412: # ----------------------------------------
413: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415: # script with STATUS, using 1 if that was 0.
416: as_fn_error ()
417: {
418: as_status=$1; test $as_status -eq 0 && as_status=1
419: if test "$4"; then
420: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422: fi
423: $as_echo "$as_me: error: $2" >&2
424: as_fn_exit $as_status
425: } # as_fn_error
426:
427: if expr a : '\(a\)' >/dev/null 2>&1 &&
428: test "X`expr 00001 : '.*\(...\)'`" = X001; then
429: as_expr=expr
430: else
431: as_expr=false
432: fi
433:
434: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435: as_basename=basename
436: else
437: as_basename=false
438: fi
439:
440: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441: as_dirname=dirname
442: else
443: as_dirname=false
444: fi
445:
446: as_me=`$as_basename -- "$0" ||
447: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448: X"$0" : 'X\(//\)$' \| \
449: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450: $as_echo X/"$0" |
451: sed '/^.*\/\([^/][^/]*\)\/*$/{
452: s//\1/
453: q
454: }
455: /^X\/\(\/\/\)$/{
456: s//\1/
457: q
458: }
459: /^X\/\(\/\).*/{
460: s//\1/
461: q
462: }
463: s/.*/./; q'`
464:
465: # Avoid depending upon Character Ranges.
466: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469: as_cr_digits='0123456789'
470: as_cr_alnum=$as_cr_Letters$as_cr_digits
471:
472:
473: as_lineno_1=$LINENO as_lineno_1a=$LINENO
474: as_lineno_2=$LINENO as_lineno_2a=$LINENO
475: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478: sed -n '
479: p
480: /[$]LINENO/=
481: ' <$as_myself |
482: sed '
483: s/[$]LINENO.*/&-/
484: t lineno
485: b
486: :lineno
487: N
488: :loop
489: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490: t loop
491: s/-\n.*//
492: ' >$as_me.lineno &&
493: chmod +x "$as_me.lineno" ||
494: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495:
1.1.1.4 ! misho 496: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
! 497: # already done that, so ensure we don't try to do so again and fall
! 498: # in an infinite loop. This has already happened in practice.
! 499: _as_can_reexec=no; export _as_can_reexec
1.1 misho 500: # Don't try to exec as it changes $[0], causing all sort of problems
501: # (the dirname of $[0] is not the place where we might find the
502: # original and so on. Autoconf is especially sensitive to this).
503: . "./$as_me.lineno"
504: # Exit status is that of the last command.
505: exit
506: }
507:
508: ECHO_C= ECHO_N= ECHO_T=
509: case `echo -n x` in #(((((
510: -n*)
511: case `echo 'xy\c'` in
512: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513: xy) ECHO_C='\c';;
514: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515: ECHO_T=' ';;
516: esac;;
517: *)
518: ECHO_N='-n';;
519: esac
520:
521: rm -f conf$$ conf$$.exe conf$$.file
522: if test -d conf$$.dir; then
523: rm -f conf$$.dir/conf$$.file
524: else
525: rm -f conf$$.dir
526: mkdir conf$$.dir 2>/dev/null
527: fi
528: if (echo >conf$$.file) 2>/dev/null; then
529: if ln -s conf$$.file conf$$ 2>/dev/null; then
530: as_ln_s='ln -s'
531: # ... but there are two gotchas:
532: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.4 ! misho 534: # In both cases, we have to default to `cp -pR'.
1.1 misho 535: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.4 ! misho 536: as_ln_s='cp -pR'
1.1 misho 537: elif ln conf$$.file conf$$ 2>/dev/null; then
538: as_ln_s=ln
539: else
1.1.1.4 ! misho 540: as_ln_s='cp -pR'
1.1 misho 541: fi
542: else
1.1.1.4 ! misho 543: as_ln_s='cp -pR'
1.1 misho 544: fi
545: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546: rmdir conf$$.dir 2>/dev/null
547:
548: if mkdir -p . 2>/dev/null; then
549: as_mkdir_p='mkdir -p "$as_dir"'
550: else
551: test -d ./-p && rmdir ./-p
552: as_mkdir_p=false
553: fi
554:
1.1.1.4 ! misho 555: as_test_x='test -x'
! 556: as_executable_p=as_fn_executable_p
1.1 misho 557:
558: # Sed expression to map a string onto a valid CPP name.
559: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560:
561: # Sed expression to map a string onto a valid variable name.
562: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563:
564: SHELL=${CONFIG_SHELL-/bin/sh}
565:
566:
567: test -n "$DJDIR" || exec 7<&0 </dev/null
568: exec 6>&1
569:
570: # Name of the host.
571: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572: # so uname gets run too.
573: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574:
575: #
576: # Initializations.
577: #
578: ac_default_prefix=/usr/local
579: ac_clean_files=
580: ac_config_libobj_dir=.
581: LIBOBJS=
582: cross_compiling=no
583: subdirs=
584: MFLAGS=
585: MAKEFLAGS=
586:
587: # Identity of this package.
588: PACKAGE_NAME='PCRE'
589: PACKAGE_TARNAME='pcre'
1.1.1.4 ! misho 590: PACKAGE_VERSION='8.33'
! 591: PACKAGE_STRING='PCRE 8.33'
1.1 misho 592: PACKAGE_BUGREPORT=''
593: PACKAGE_URL=''
594:
595: ac_unique_file="pcre.h.in"
596: # Factoring default headers for most tests.
597: ac_includes_default="\
598: #include <stdio.h>
599: #ifdef HAVE_SYS_TYPES_H
600: # include <sys/types.h>
601: #endif
602: #ifdef HAVE_SYS_STAT_H
603: # include <sys/stat.h>
604: #endif
605: #ifdef STDC_HEADERS
606: # include <stdlib.h>
607: # include <stddef.h>
608: #else
609: # ifdef HAVE_STDLIB_H
610: # include <stdlib.h>
611: # endif
612: #endif
613: #ifdef HAVE_STRING_H
614: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615: # include <memory.h>
616: # endif
617: # include <string.h>
618: #endif
619: #ifdef HAVE_STRINGS_H
620: # include <strings.h>
621: #endif
622: #ifdef HAVE_INTTYPES_H
623: # include <inttypes.h>
624: #endif
625: #ifdef HAVE_STDINT_H
626: # include <stdint.h>
627: #endif
628: #ifdef HAVE_UNISTD_H
629: # include <unistd.h>
630: #endif"
631:
632: ac_subst_vars='am__EXEEXT_FALSE
633: am__EXEEXT_TRUE
634: LTLIBOBJS
635: LIBOBJS
1.1.1.4 ! misho 636: WITH_GCOV_FALSE
! 637: WITH_GCOV_TRUE
! 638: GCOV_LIBS
! 639: GCOV_CXXFLAGS
! 640: GCOV_CFLAGS
! 641: GENHTML
! 642: LCOV
! 643: SHTOOL
! 644: VALGRIND_LIBS
! 645: VALGRIND_CFLAGS
! 646: PKG_CONFIG_LIBDIR
! 647: PKG_CONFIG_PATH
! 648: PKG_CONFIG
1.1 misho 649: LIBBZ2
650: LIBZ
651: DISTCHECK_CONFIGURE_FLAGS
652: EXTRA_LIBPCRECPP_LDFLAGS
653: EXTRA_LIBPCREPOSIX_LDFLAGS
1.1.1.4 ! misho 654: EXTRA_LIBPCRE32_LDFLAGS
1.1.1.2 misho 655: EXTRA_LIBPCRE16_LDFLAGS
1.1 misho 656: EXTRA_LIBPCRE_LDFLAGS
1.1.1.4 ! misho 657: PTHREAD_CFLAGS
! 658: PTHREAD_LIBS
! 659: PTHREAD_CC
! 660: ax_pthread_config
1.1 misho 661: PCRE_STATIC_CFLAG
1.1.1.2 misho 662: LIBREADLINE
1.1.1.4 ! misho 663: WITH_VALGRIND_FALSE
! 664: WITH_VALGRIND_TRUE
1.1.1.2 misho 665: WITH_UTF_FALSE
666: WITH_UTF_TRUE
1.1 misho 667: WITH_JIT_FALSE
668: WITH_JIT_TRUE
669: WITH_REBUILD_CHARTABLES_FALSE
670: WITH_REBUILD_CHARTABLES_TRUE
671: WITH_PCRE_CPP_FALSE
672: WITH_PCRE_CPP_TRUE
1.1.1.4 ! misho 673: WITH_PCRE32_FALSE
! 674: WITH_PCRE32_TRUE
1.1.1.2 misho 675: WITH_PCRE16_FALSE
676: WITH_PCRE16_TRUE
677: WITH_PCRE8_FALSE
678: WITH_PCRE8_TRUE
1.1 misho 679: pcre_have_bits_type_traits
680: pcre_have_type_traits
681: pcre_have_ulong_long
682: pcre_have_long_long
683: enable_cpp
1.1.1.4 ! misho 684: enable_pcre32
1.1.1.2 misho 685: enable_pcre16
686: enable_pcre8
1.1 misho 687: PCRE_DATE
688: PCRE_PRERELEASE
689: PCRE_MINOR
690: PCRE_MAJOR
1.1.1.4 ! misho 691: HAVE_VISIBILITY
! 692: VISIBILITY_CXXFLAGS
! 693: VISIBILITY_CFLAGS
1.1 misho 694: CXXCPP
695: OTOOL64
696: OTOOL
697: LIPO
698: NMEDIT
699: DSYMUTIL
700: MANIFEST_TOOL
701: RANLIB
702: LN_S
703: NM
704: ac_ct_DUMPBIN
705: DUMPBIN
706: LD
707: FGREP
708: SED
709: LIBTOOL
710: OBJDUMP
711: DLLTOOL
712: AS
713: host_os
714: host_vendor
715: host_cpu
716: host
717: build_os
718: build_vendor
719: build_cpu
720: build
721: EGREP
722: GREP
723: CPP
724: am__fastdepCXX_FALSE
725: am__fastdepCXX_TRUE
726: CXXDEPMODE
727: ac_ct_CXX
728: CXXFLAGS
729: CXX
730: am__fastdepCC_FALSE
731: am__fastdepCC_TRUE
732: CCDEPMODE
1.1.1.4 ! misho 733: am__nodep
1.1 misho 734: AMDEPBACKSLASH
735: AMDEP_FALSE
736: AMDEP_TRUE
737: am__quote
738: am__include
739: DEPDIR
740: OBJEXT
741: EXEEXT
742: ac_ct_CC
743: CPPFLAGS
744: LDFLAGS
745: CFLAGS
746: CC
1.1.1.4 ! misho 747: ac_ct_AR
! 748: AR
1.1.1.2 misho 749: AM_BACKSLASH
750: AM_DEFAULT_VERBOSITY
1.1.1.4 ! misho 751: AM_DEFAULT_V
! 752: AM_V
1.1 misho 753: am__untar
754: am__tar
755: AMTAR
756: am__leading_dot
757: SET_MAKE
758: AWK
759: mkdir_p
760: MKDIR_P
761: INSTALL_STRIP_PROGRAM
762: STRIP
763: install_sh
764: MAKEINFO
765: AUTOHEADER
766: AUTOMAKE
767: AUTOCONF
768: ACLOCAL
769: VERSION
770: PACKAGE
771: CYGPATH_W
772: am__isrc
773: INSTALL_DATA
774: INSTALL_SCRIPT
775: INSTALL_PROGRAM
776: target_alias
777: host_alias
778: build_alias
779: LIBS
780: ECHO_T
781: ECHO_N
782: ECHO_C
783: DEFS
784: mandir
785: localedir
786: libdir
787: psdir
788: pdfdir
789: dvidir
790: htmldir
791: infodir
792: docdir
793: oldincludedir
794: includedir
795: localstatedir
796: sharedstatedir
797: sysconfdir
798: datadir
799: datarootdir
800: libexecdir
801: sbindir
802: bindir
803: program_transform_name
804: prefix
805: exec_prefix
806: PACKAGE_URL
807: PACKAGE_BUGREPORT
808: PACKAGE_STRING
809: PACKAGE_VERSION
810: PACKAGE_TARNAME
811: PACKAGE_NAME
812: PATH_SEPARATOR
813: SHELL'
814: ac_subst_files=''
815: ac_user_opts='
816: enable_option_checking
1.1.1.2 misho 817: enable_silent_rules
1.1 misho 818: enable_dependency_tracking
819: enable_shared
820: enable_static
821: with_pic
822: enable_fast_install
823: with_gnu_ld
824: with_sysroot
825: enable_libtool_lock
1.1.1.2 misho 826: enable_pcre8
827: enable_pcre16
1.1.1.4 ! misho 828: enable_pcre32
1.1 misho 829: enable_cpp
830: enable_jit
831: enable_pcregrep_jit
832: enable_rebuild_chartables
833: enable_utf8
1.1.1.2 misho 834: enable_utf
1.1 misho 835: enable_unicode_properties
836: enable_newline_is_cr
837: enable_newline_is_lf
838: enable_newline_is_crlf
839: enable_newline_is_anycrlf
840: enable_newline_is_any
841: enable_bsr_anycrlf
842: enable_ebcdic
1.1.1.4 ! misho 843: enable_ebcdic_nl25
1.1 misho 844: enable_stack_for_recursion
845: enable_pcregrep_libz
846: enable_pcregrep_libbz2
847: with_pcregrep_bufsize
1.1.1.3 misho 848: enable_pcretest_libedit
1.1 misho 849: enable_pcretest_libreadline
850: with_posix_malloc_threshold
851: with_link_size
852: with_match_limit
853: with_match_limit_recursion
1.1.1.4 ! misho 854: enable_valgrind
! 855: enable_coverage
1.1 misho 856: '
857: ac_precious_vars='build_alias
858: host_alias
859: target_alias
860: CC
861: CFLAGS
862: LDFLAGS
863: LIBS
864: CPPFLAGS
865: CXX
866: CXXFLAGS
867: CCC
868: CPP
1.1.1.4 ! misho 869: CXXCPP
! 870: PKG_CONFIG
! 871: PKG_CONFIG_PATH
! 872: PKG_CONFIG_LIBDIR
! 873: VALGRIND_CFLAGS
! 874: VALGRIND_LIBS
! 875: LCOV
! 876: GENHTML'
1.1 misho 877:
878:
879: # Initialize some variables set by options.
880: ac_init_help=
881: ac_init_version=false
882: ac_unrecognized_opts=
883: ac_unrecognized_sep=
884: # The variables have the same names as the options, with
885: # dashes changed to underlines.
886: cache_file=/dev/null
887: exec_prefix=NONE
888: no_create=
889: no_recursion=
890: prefix=NONE
891: program_prefix=NONE
892: program_suffix=NONE
893: program_transform_name=s,x,x,
894: silent=
895: site=
896: srcdir=
897: verbose=
898: x_includes=NONE
899: x_libraries=NONE
900:
901: # Installation directory options.
902: # These are left unexpanded so users can "make install exec_prefix=/foo"
903: # and all the variables that are supposed to be based on exec_prefix
904: # by default will actually change.
905: # Use braces instead of parens because sh, perl, etc. also accept them.
906: # (The list follows the same order as the GNU Coding Standards.)
907: bindir='${exec_prefix}/bin'
908: sbindir='${exec_prefix}/sbin'
909: libexecdir='${exec_prefix}/libexec'
910: datarootdir='${prefix}/share'
911: datadir='${datarootdir}'
912: sysconfdir='${prefix}/etc'
913: sharedstatedir='${prefix}/com'
914: localstatedir='${prefix}/var'
915: includedir='${prefix}/include'
916: oldincludedir='/usr/include'
917: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918: infodir='${datarootdir}/info'
919: htmldir='${docdir}'
920: dvidir='${docdir}'
921: pdfdir='${docdir}'
922: psdir='${docdir}'
923: libdir='${exec_prefix}/lib'
924: localedir='${datarootdir}/locale'
925: mandir='${datarootdir}/man'
926:
927: ac_prev=
928: ac_dashdash=
929: for ac_option
930: do
931: # If the previous option needs an argument, assign it.
932: if test -n "$ac_prev"; then
933: eval $ac_prev=\$ac_option
934: ac_prev=
935: continue
936: fi
937:
938: case $ac_option in
939: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940: *=) ac_optarg= ;;
941: *) ac_optarg=yes ;;
942: esac
943:
944: # Accept the important Cygnus configure options, so we can diagnose typos.
945:
946: case $ac_dashdash$ac_option in
947: --)
948: ac_dashdash=yes ;;
949:
950: -bindir | --bindir | --bindi | --bind | --bin | --bi)
951: ac_prev=bindir ;;
952: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953: bindir=$ac_optarg ;;
954:
955: -build | --build | --buil | --bui | --bu)
956: ac_prev=build_alias ;;
957: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958: build_alias=$ac_optarg ;;
959:
960: -cache-file | --cache-file | --cache-fil | --cache-fi \
961: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962: ac_prev=cache_file ;;
963: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965: cache_file=$ac_optarg ;;
966:
967: --config-cache | -C)
968: cache_file=config.cache ;;
969:
970: -datadir | --datadir | --datadi | --datad)
971: ac_prev=datadir ;;
972: -datadir=* | --datadir=* | --datadi=* | --datad=*)
973: datadir=$ac_optarg ;;
974:
975: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976: | --dataroo | --dataro | --datar)
977: ac_prev=datarootdir ;;
978: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980: datarootdir=$ac_optarg ;;
981:
982: -disable-* | --disable-*)
983: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984: # Reject names that are not valid shell variable names.
985: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986: as_fn_error $? "invalid feature name: $ac_useropt"
987: ac_useropt_orig=$ac_useropt
988: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989: case $ac_user_opts in
990: *"
991: "enable_$ac_useropt"
992: "*) ;;
993: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994: ac_unrecognized_sep=', ';;
995: esac
996: eval enable_$ac_useropt=no ;;
997:
998: -docdir | --docdir | --docdi | --doc | --do)
999: ac_prev=docdir ;;
1000: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001: docdir=$ac_optarg ;;
1002:
1003: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004: ac_prev=dvidir ;;
1005: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006: dvidir=$ac_optarg ;;
1007:
1008: -enable-* | --enable-*)
1009: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010: # Reject names that are not valid shell variable names.
1011: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012: as_fn_error $? "invalid feature name: $ac_useropt"
1013: ac_useropt_orig=$ac_useropt
1014: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015: case $ac_user_opts in
1016: *"
1017: "enable_$ac_useropt"
1018: "*) ;;
1019: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020: ac_unrecognized_sep=', ';;
1021: esac
1022: eval enable_$ac_useropt=\$ac_optarg ;;
1023:
1024: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026: | --exec | --exe | --ex)
1027: ac_prev=exec_prefix ;;
1028: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030: | --exec=* | --exe=* | --ex=*)
1031: exec_prefix=$ac_optarg ;;
1032:
1033: -gas | --gas | --ga | --g)
1034: # Obsolete; use --with-gas.
1035: with_gas=yes ;;
1036:
1037: -help | --help | --hel | --he | -h)
1038: ac_init_help=long ;;
1039: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040: ac_init_help=recursive ;;
1041: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042: ac_init_help=short ;;
1043:
1044: -host | --host | --hos | --ho)
1045: ac_prev=host_alias ;;
1046: -host=* | --host=* | --hos=* | --ho=*)
1047: host_alias=$ac_optarg ;;
1048:
1049: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050: ac_prev=htmldir ;;
1051: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052: | --ht=*)
1053: htmldir=$ac_optarg ;;
1054:
1055: -includedir | --includedir | --includedi | --included | --include \
1056: | --includ | --inclu | --incl | --inc)
1057: ac_prev=includedir ;;
1058: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059: | --includ=* | --inclu=* | --incl=* | --inc=*)
1060: includedir=$ac_optarg ;;
1061:
1062: -infodir | --infodir | --infodi | --infod | --info | --inf)
1063: ac_prev=infodir ;;
1064: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065: infodir=$ac_optarg ;;
1066:
1067: -libdir | --libdir | --libdi | --libd)
1068: ac_prev=libdir ;;
1069: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070: libdir=$ac_optarg ;;
1071:
1072: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073: | --libexe | --libex | --libe)
1074: ac_prev=libexecdir ;;
1075: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076: | --libexe=* | --libex=* | --libe=*)
1077: libexecdir=$ac_optarg ;;
1078:
1079: -localedir | --localedir | --localedi | --localed | --locale)
1080: ac_prev=localedir ;;
1081: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082: localedir=$ac_optarg ;;
1083:
1084: -localstatedir | --localstatedir | --localstatedi | --localstated \
1085: | --localstate | --localstat | --localsta | --localst | --locals)
1086: ac_prev=localstatedir ;;
1087: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089: localstatedir=$ac_optarg ;;
1090:
1091: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092: ac_prev=mandir ;;
1093: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094: mandir=$ac_optarg ;;
1095:
1096: -nfp | --nfp | --nf)
1097: # Obsolete; use --without-fp.
1098: with_fp=no ;;
1099:
1100: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101: | --no-cr | --no-c | -n)
1102: no_create=yes ;;
1103:
1104: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106: no_recursion=yes ;;
1107:
1108: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110: | --oldin | --oldi | --old | --ol | --o)
1111: ac_prev=oldincludedir ;;
1112: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115: oldincludedir=$ac_optarg ;;
1116:
1117: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118: ac_prev=prefix ;;
1119: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120: prefix=$ac_optarg ;;
1121:
1122: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123: | --program-pre | --program-pr | --program-p)
1124: ac_prev=program_prefix ;;
1125: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127: program_prefix=$ac_optarg ;;
1128:
1129: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130: | --program-suf | --program-su | --program-s)
1131: ac_prev=program_suffix ;;
1132: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134: program_suffix=$ac_optarg ;;
1135:
1136: -program-transform-name | --program-transform-name \
1137: | --program-transform-nam | --program-transform-na \
1138: | --program-transform-n | --program-transform- \
1139: | --program-transform | --program-transfor \
1140: | --program-transfo | --program-transf \
1141: | --program-trans | --program-tran \
1142: | --progr-tra | --program-tr | --program-t)
1143: ac_prev=program_transform_name ;;
1144: -program-transform-name=* | --program-transform-name=* \
1145: | --program-transform-nam=* | --program-transform-na=* \
1146: | --program-transform-n=* | --program-transform-=* \
1147: | --program-transform=* | --program-transfor=* \
1148: | --program-transfo=* | --program-transf=* \
1149: | --program-trans=* | --program-tran=* \
1150: | --progr-tra=* | --program-tr=* | --program-t=*)
1151: program_transform_name=$ac_optarg ;;
1152:
1153: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154: ac_prev=pdfdir ;;
1155: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156: pdfdir=$ac_optarg ;;
1157:
1158: -psdir | --psdir | --psdi | --psd | --ps)
1159: ac_prev=psdir ;;
1160: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161: psdir=$ac_optarg ;;
1162:
1163: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164: | -silent | --silent | --silen | --sile | --sil)
1165: silent=yes ;;
1166:
1167: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168: ac_prev=sbindir ;;
1169: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170: | --sbi=* | --sb=*)
1171: sbindir=$ac_optarg ;;
1172:
1173: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175: | --sharedst | --shareds | --shared | --share | --shar \
1176: | --sha | --sh)
1177: ac_prev=sharedstatedir ;;
1178: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181: | --sha=* | --sh=*)
1182: sharedstatedir=$ac_optarg ;;
1183:
1184: -site | --site | --sit)
1185: ac_prev=site ;;
1186: -site=* | --site=* | --sit=*)
1187: site=$ac_optarg ;;
1188:
1189: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190: ac_prev=srcdir ;;
1191: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192: srcdir=$ac_optarg ;;
1193:
1194: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195: | --syscon | --sysco | --sysc | --sys | --sy)
1196: ac_prev=sysconfdir ;;
1197: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199: sysconfdir=$ac_optarg ;;
1200:
1201: -target | --target | --targe | --targ | --tar | --ta | --t)
1202: ac_prev=target_alias ;;
1203: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204: target_alias=$ac_optarg ;;
1205:
1206: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207: verbose=yes ;;
1208:
1209: -version | --version | --versio | --versi | --vers | -V)
1210: ac_init_version=: ;;
1211:
1212: -with-* | --with-*)
1213: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214: # Reject names that are not valid shell variable names.
1215: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216: as_fn_error $? "invalid package name: $ac_useropt"
1217: ac_useropt_orig=$ac_useropt
1218: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219: case $ac_user_opts in
1220: *"
1221: "with_$ac_useropt"
1222: "*) ;;
1223: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224: ac_unrecognized_sep=', ';;
1225: esac
1226: eval with_$ac_useropt=\$ac_optarg ;;
1227:
1228: -without-* | --without-*)
1229: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230: # Reject names that are not valid shell variable names.
1231: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232: as_fn_error $? "invalid package name: $ac_useropt"
1233: ac_useropt_orig=$ac_useropt
1234: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235: case $ac_user_opts in
1236: *"
1237: "with_$ac_useropt"
1238: "*) ;;
1239: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240: ac_unrecognized_sep=', ';;
1241: esac
1242: eval with_$ac_useropt=no ;;
1243:
1244: --x)
1245: # Obsolete; use --with-x.
1246: with_x=yes ;;
1247:
1248: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249: | --x-incl | --x-inc | --x-in | --x-i)
1250: ac_prev=x_includes ;;
1251: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253: x_includes=$ac_optarg ;;
1254:
1255: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257: ac_prev=x_libraries ;;
1258: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260: x_libraries=$ac_optarg ;;
1261:
1262: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263: Try \`$0 --help' for more information"
1264: ;;
1265:
1266: *=*)
1267: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268: # Reject names that are not valid shell variable names.
1269: case $ac_envvar in #(
1270: '' | [0-9]* | *[!_$as_cr_alnum]* )
1271: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272: esac
1273: eval $ac_envvar=\$ac_optarg
1274: export $ac_envvar ;;
1275:
1276: *)
1277: # FIXME: should be removed in autoconf 3.0.
1278: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282: ;;
1283:
1284: esac
1285: done
1286:
1287: if test -n "$ac_prev"; then
1288: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289: as_fn_error $? "missing argument to $ac_option"
1290: fi
1291:
1292: if test -n "$ac_unrecognized_opts"; then
1293: case $enable_option_checking in
1294: no) ;;
1295: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297: esac
1298: fi
1299:
1300: # Check all directory arguments for consistency.
1301: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302: datadir sysconfdir sharedstatedir localstatedir includedir \
1303: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304: libdir localedir mandir
1305: do
1306: eval ac_val=\$$ac_var
1307: # Remove trailing slashes.
1308: case $ac_val in
1309: */ )
1310: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311: eval $ac_var=\$ac_val;;
1312: esac
1313: # Be sure to have absolute directory names.
1314: case $ac_val in
1315: [\\/$]* | ?:[\\/]* ) continue;;
1316: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317: esac
1318: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319: done
1320:
1321: # There might be people who depend on the old broken behavior: `$host'
1322: # used to hold the argument of --host etc.
1323: # FIXME: To remove some day.
1324: build=$build_alias
1325: host=$host_alias
1326: target=$target_alias
1327:
1328: # FIXME: To remove some day.
1329: if test "x$host_alias" != x; then
1330: if test "x$build_alias" = x; then
1331: cross_compiling=maybe
1332: elif test "x$build_alias" != "x$host_alias"; then
1333: cross_compiling=yes
1334: fi
1335: fi
1336:
1337: ac_tool_prefix=
1338: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339:
1340: test "$silent" = yes && exec 6>/dev/null
1341:
1342:
1343: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344: ac_ls_di=`ls -di .` &&
1345: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346: as_fn_error $? "working directory cannot be determined"
1347: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348: as_fn_error $? "pwd does not report name of working directory"
1349:
1350:
1351: # Find the source files, if location was not specified.
1352: if test -z "$srcdir"; then
1353: ac_srcdir_defaulted=yes
1354: # Try the directory containing this script, then the parent directory.
1355: ac_confdir=`$as_dirname -- "$as_myself" ||
1356: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357: X"$as_myself" : 'X\(//\)[^/]' \| \
1358: X"$as_myself" : 'X\(//\)$' \| \
1359: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360: $as_echo X"$as_myself" |
1361: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362: s//\1/
1363: q
1364: }
1365: /^X\(\/\/\)[^/].*/{
1366: s//\1/
1367: q
1368: }
1369: /^X\(\/\/\)$/{
1370: s//\1/
1371: q
1372: }
1373: /^X\(\/\).*/{
1374: s//\1/
1375: q
1376: }
1377: s/.*/./; q'`
1378: srcdir=$ac_confdir
1379: if test ! -r "$srcdir/$ac_unique_file"; then
1380: srcdir=..
1381: fi
1382: else
1383: ac_srcdir_defaulted=no
1384: fi
1385: if test ! -r "$srcdir/$ac_unique_file"; then
1386: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388: fi
1389: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390: ac_abs_confdir=`(
1391: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392: pwd)`
1393: # When building in place, set srcdir=.
1394: if test "$ac_abs_confdir" = "$ac_pwd"; then
1395: srcdir=.
1396: fi
1397: # Remove unnecessary trailing slashes from srcdir.
1398: # Double slashes in file names in object file debugging info
1399: # mess up M-x gdb in Emacs.
1400: case $srcdir in
1401: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402: esac
1403: for ac_var in $ac_precious_vars; do
1404: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405: eval ac_env_${ac_var}_value=\$${ac_var}
1406: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408: done
1409:
1410: #
1411: # Report the --help message.
1412: #
1413: if test "$ac_init_help" = "long"; then
1414: # Omit some internal or obsolete options to make the list less imposing.
1415: # This message is too long to be a string in the A/UX 3.1 sh.
1416: cat <<_ACEOF
1.1.1.4 ! misho 1417: \`configure' configures PCRE 8.33 to adapt to many kinds of systems.
1.1 misho 1418:
1419: Usage: $0 [OPTION]... [VAR=VALUE]...
1420:
1421: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422: VAR=VALUE. See below for descriptions of some of the useful variables.
1423:
1424: Defaults for the options are specified in brackets.
1425:
1426: Configuration:
1427: -h, --help display this help and exit
1428: --help=short display options specific to this package
1429: --help=recursive display the short help of all the included packages
1430: -V, --version display version information and exit
1431: -q, --quiet, --silent do not print \`checking ...' messages
1432: --cache-file=FILE cache test results in FILE [disabled]
1433: -C, --config-cache alias for \`--cache-file=config.cache'
1434: -n, --no-create do not create output files
1435: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436:
1437: Installation directories:
1438: --prefix=PREFIX install architecture-independent files in PREFIX
1439: [$ac_default_prefix]
1440: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441: [PREFIX]
1442:
1443: By default, \`make install' will install all the files in
1444: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446: for instance \`--prefix=\$HOME'.
1447:
1448: For better control, use the options below.
1449:
1450: Fine tuning of the installation directories:
1451: --bindir=DIR user executables [EPREFIX/bin]
1452: --sbindir=DIR system admin executables [EPREFIX/sbin]
1453: --libexecdir=DIR program executables [EPREFIX/libexec]
1454: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457: --libdir=DIR object code libraries [EPREFIX/lib]
1458: --includedir=DIR C header files [PREFIX/include]
1459: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462: --infodir=DIR info documentation [DATAROOTDIR/info]
1463: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464: --mandir=DIR man documentation [DATAROOTDIR/man]
1465: --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
1466: --htmldir=DIR html documentation [DOCDIR]
1467: --dvidir=DIR dvi documentation [DOCDIR]
1468: --pdfdir=DIR pdf documentation [DOCDIR]
1469: --psdir=DIR ps documentation [DOCDIR]
1470: _ACEOF
1471:
1472: cat <<\_ACEOF
1473:
1474: Program names:
1475: --program-prefix=PREFIX prepend PREFIX to installed program names
1476: --program-suffix=SUFFIX append SUFFIX to installed program names
1477: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478:
1479: System types:
1480: --build=BUILD configure for building on BUILD [guessed]
1481: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482: _ACEOF
1483: fi
1484:
1485: if test -n "$ac_init_help"; then
1486: case $ac_init_help in
1.1.1.4 ! misho 1487: short | recursive ) echo "Configuration of PCRE 8.33:";;
1.1 misho 1488: esac
1489: cat <<\_ACEOF
1490:
1491: Optional Features:
1492: --disable-option-checking ignore unrecognized --enable/--with options
1493: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.1.1.4 ! misho 1495: --enable-silent-rules less verbose build output (undo: "make V=1")
! 1496: --disable-silent-rules verbose build output (undo: "make V=0")
! 1497: --enable-dependency-tracking
! 1498: do not reject slow dependency extractors
! 1499: --disable-dependency-tracking
! 1500: speeds up one-time build
1.1 misho 1501: --enable-shared[=PKGS] build shared libraries [default=yes]
1502: --enable-static[=PKGS] build static libraries [default=yes]
1503: --enable-fast-install[=PKGS]
1504: optimize for fast installation [default=yes]
1505: --disable-libtool-lock avoid locking (might break parallel builds)
1.1.1.2 misho 1506: --disable-pcre8 disable 8 bit character support
1507: --enable-pcre16 enable 16 bit character support
1.1.1.4 ! misho 1508: --enable-pcre32 enable 32 bit character support
1.1 misho 1509: --disable-cpp disable C++ support
1510: --enable-jit enable Just-In-Time compiling support
1511: --disable-pcregrep-jit disable JIT support in pcregrep
1512: --enable-rebuild-chartables
1513: rebuild character tables in current locale
1.1.1.2 misho 1514: --enable-utf8 another name for --enable-utf. Kept only for
1515: compatibility reasons
1.1.1.4 ! misho 1516: --enable-utf enable UTF-8/16/32 support (incompatible with
1.1 misho 1517: --enable-ebcdic)
1518: --enable-unicode-properties
1519: enable Unicode properties support (implies
1.1.1.2 misho 1520: --enable-utf)
1.1 misho 1521: --enable-newline-is-cr use CR as newline character
1522: --enable-newline-is-lf use LF as newline character (default)
1523: --enable-newline-is-crlf
1524: use CRLF as newline sequence
1525: --enable-newline-is-anycrlf
1526: use CR, LF, or CRLF as newline sequence
1527: --enable-newline-is-any use any valid Unicode newline sequence
1528: --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
1529: --enable-ebcdic assume EBCDIC coding rather than ASCII; incompatible
1.1.1.2 misho 1530: with --enable-utf; use only in (uncommon) EBCDIC
1.1 misho 1531: environments; it implies --enable-rebuild-chartables
1.1.1.4 ! misho 1532: --enable-ebcdic-nl25 set EBCDIC code for NL to 0x25 instead of 0x15; it
! 1533: implies --enable-ebcdic
1.1 misho 1534: --disable-stack-for-recursion
1535: don't use stack recursion when matching
1536: --enable-pcregrep-libz link pcregrep with libz to handle .gz files
1537: --enable-pcregrep-libbz2
1538: link pcregrep with libbz2 to handle .bz2 files
1.1.1.3 misho 1539: --enable-pcretest-libedit
1540: link pcretest with libedit
1.1 misho 1541: --enable-pcretest-libreadline
1542: link pcretest with libreadline
1.1.1.4 ! misho 1543: --enable-valgrind valgrind support
! 1544: --enable-coverage enable code coverage reports using gcov
1.1 misho 1545:
1546: Optional Packages:
1547: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1548: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.1.1.4 ! misho 1549: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.1 misho 1550: both]
1551: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1552: --with-sysroot=DIR Search for dependent libraries within DIR
1553: (or the compiler's sysroot if not specified).
1554: --with-pcregrep-bufsize=N
1555: pcregrep buffer size (default=20480)
1556: --with-posix-malloc-threshold=NBYTES
1557: threshold for POSIX malloc usage (default=10)
1558: --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
1559: --with-match-limit=N default limit on internal looping (default=10000000)
1560: --with-match-limit-recursion=N
1561: default limit on internal recursion
1562: (default=MATCH_LIMIT)
1563:
1564: Some influential environment variables:
1565: CC C compiler command
1566: CFLAGS C compiler flags
1567: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568: nonstandard directory <lib dir>
1569: LIBS libraries to pass to the linker, e.g. -l<library>
1570: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1571: you have headers in a nonstandard directory <include dir>
1572: CXX C++ compiler command
1573: CXXFLAGS C++ compiler flags
1574: CPP C preprocessor
1575: CXXCPP C++ preprocessor
1.1.1.4 ! misho 1576: PKG_CONFIG path to pkg-config utility
! 1577: PKG_CONFIG_PATH
! 1578: directories to add to pkg-config's search path
! 1579: PKG_CONFIG_LIBDIR
! 1580: path overriding pkg-config's built-in search path
! 1581: VALGRIND_CFLAGS
! 1582: C compiler flags for VALGRIND, overriding pkg-config
! 1583: VALGRIND_LIBS
! 1584: linker flags for VALGRIND, overriding pkg-config
! 1585: LCOV the ltp lcov program
! 1586: GENHTML the ltp genhtml program
1.1 misho 1587:
1588: Use these variables to override the choices made by `configure' or to help
1589: it to find libraries and programs with nonstandard names/locations.
1590:
1591: Report bugs to the package provider.
1592: _ACEOF
1593: ac_status=$?
1594: fi
1595:
1596: if test "$ac_init_help" = "recursive"; then
1597: # If there are subdirs, report their specific --help.
1598: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599: test -d "$ac_dir" ||
1600: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601: continue
1602: ac_builddir=.
1603:
1604: case "$ac_dir" in
1605: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606: *)
1607: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1608: # A ".." for each directory in $ac_dir_suffix.
1609: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610: case $ac_top_builddir_sub in
1611: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613: esac ;;
1614: esac
1615: ac_abs_top_builddir=$ac_pwd
1616: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617: # for backward compatibility:
1618: ac_top_builddir=$ac_top_build_prefix
1619:
1620: case $srcdir in
1621: .) # We are building in place.
1622: ac_srcdir=.
1623: ac_top_srcdir=$ac_top_builddir_sub
1624: ac_abs_top_srcdir=$ac_pwd ;;
1625: [\\/]* | ?:[\\/]* ) # Absolute name.
1626: ac_srcdir=$srcdir$ac_dir_suffix;
1627: ac_top_srcdir=$srcdir
1628: ac_abs_top_srcdir=$srcdir ;;
1629: *) # Relative name.
1630: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631: ac_top_srcdir=$ac_top_build_prefix$srcdir
1632: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633: esac
1634: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635:
1636: cd "$ac_dir" || { ac_status=$?; continue; }
1637: # Check for guested configure.
1638: if test -f "$ac_srcdir/configure.gnu"; then
1639: echo &&
1640: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641: elif test -f "$ac_srcdir/configure"; then
1642: echo &&
1643: $SHELL "$ac_srcdir/configure" --help=recursive
1644: else
1645: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646: fi || ac_status=$?
1647: cd "$ac_pwd" || { ac_status=$?; break; }
1648: done
1649: fi
1650:
1651: test -n "$ac_init_help" && exit $ac_status
1652: if $ac_init_version; then
1653: cat <<\_ACEOF
1.1.1.4 ! misho 1654: PCRE configure 8.33
! 1655: generated by GNU Autoconf 2.69
1.1 misho 1656:
1.1.1.4 ! misho 1657: Copyright (C) 2012 Free Software Foundation, Inc.
1.1 misho 1658: This configure script is free software; the Free Software Foundation
1659: gives unlimited permission to copy, distribute and modify it.
1660: _ACEOF
1661: exit
1662: fi
1663:
1664: ## ------------------------ ##
1665: ## Autoconf initialization. ##
1666: ## ------------------------ ##
1667:
1668: # ac_fn_c_try_compile LINENO
1669: # --------------------------
1670: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671: ac_fn_c_try_compile ()
1672: {
1673: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674: rm -f conftest.$ac_objext
1675: if { { ac_try="$ac_compile"
1676: case "(($ac_try" in
1677: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678: *) ac_try_echo=$ac_try;;
1679: esac
1680: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681: $as_echo "$ac_try_echo"; } >&5
1682: (eval "$ac_compile") 2>conftest.err
1683: ac_status=$?
1684: if test -s conftest.err; then
1685: grep -v '^ *+' conftest.err >conftest.er1
1686: cat conftest.er1 >&5
1687: mv -f conftest.er1 conftest.err
1688: fi
1689: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690: test $ac_status = 0; } && {
1691: test -z "$ac_c_werror_flag" ||
1692: test ! -s conftest.err
1693: } && test -s conftest.$ac_objext; then :
1694: ac_retval=0
1695: else
1696: $as_echo "$as_me: failed program was:" >&5
1697: sed 's/^/| /' conftest.$ac_ext >&5
1698:
1699: ac_retval=1
1700: fi
1701: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702: as_fn_set_status $ac_retval
1703:
1704: } # ac_fn_c_try_compile
1705:
1706: # ac_fn_cxx_try_compile LINENO
1707: # ----------------------------
1708: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1709: ac_fn_cxx_try_compile ()
1710: {
1711: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712: rm -f conftest.$ac_objext
1713: if { { ac_try="$ac_compile"
1714: case "(($ac_try" in
1715: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716: *) ac_try_echo=$ac_try;;
1717: esac
1718: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719: $as_echo "$ac_try_echo"; } >&5
1720: (eval "$ac_compile") 2>conftest.err
1721: ac_status=$?
1722: if test -s conftest.err; then
1723: grep -v '^ *+' conftest.err >conftest.er1
1724: cat conftest.er1 >&5
1725: mv -f conftest.er1 conftest.err
1726: fi
1727: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728: test $ac_status = 0; } && {
1729: test -z "$ac_cxx_werror_flag" ||
1730: test ! -s conftest.err
1731: } && test -s conftest.$ac_objext; then :
1732: ac_retval=0
1733: else
1734: $as_echo "$as_me: failed program was:" >&5
1735: sed 's/^/| /' conftest.$ac_ext >&5
1736:
1737: ac_retval=1
1738: fi
1739: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740: as_fn_set_status $ac_retval
1741:
1742: } # ac_fn_cxx_try_compile
1743:
1744: # ac_fn_c_try_cpp LINENO
1745: # ----------------------
1746: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1747: ac_fn_c_try_cpp ()
1748: {
1749: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750: if { { ac_try="$ac_cpp conftest.$ac_ext"
1751: case "(($ac_try" in
1752: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753: *) ac_try_echo=$ac_try;;
1754: esac
1755: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756: $as_echo "$ac_try_echo"; } >&5
1757: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1758: ac_status=$?
1759: if test -s conftest.err; then
1760: grep -v '^ *+' conftest.err >conftest.er1
1761: cat conftest.er1 >&5
1762: mv -f conftest.er1 conftest.err
1763: fi
1764: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765: test $ac_status = 0; } > conftest.i && {
1766: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1767: test ! -s conftest.err
1768: }; then :
1769: ac_retval=0
1770: else
1771: $as_echo "$as_me: failed program was:" >&5
1772: sed 's/^/| /' conftest.$ac_ext >&5
1773:
1774: ac_retval=1
1775: fi
1776: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777: as_fn_set_status $ac_retval
1778:
1779: } # ac_fn_c_try_cpp
1780:
1781: # ac_fn_c_try_run LINENO
1782: # ----------------------
1783: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1784: # that executables *can* be run.
1785: ac_fn_c_try_run ()
1786: {
1787: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788: if { { ac_try="$ac_link"
1789: case "(($ac_try" in
1790: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791: *) ac_try_echo=$ac_try;;
1792: esac
1793: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794: $as_echo "$ac_try_echo"; } >&5
1795: (eval "$ac_link") 2>&5
1796: ac_status=$?
1797: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1799: { { case "(($ac_try" in
1800: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801: *) ac_try_echo=$ac_try;;
1802: esac
1803: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804: $as_echo "$ac_try_echo"; } >&5
1805: (eval "$ac_try") 2>&5
1806: ac_status=$?
1807: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808: test $ac_status = 0; }; }; then :
1809: ac_retval=0
1810: else
1811: $as_echo "$as_me: program exited with status $ac_status" >&5
1812: $as_echo "$as_me: failed program was:" >&5
1813: sed 's/^/| /' conftest.$ac_ext >&5
1814:
1815: ac_retval=$ac_status
1816: fi
1817: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819: as_fn_set_status $ac_retval
1820:
1821: } # ac_fn_c_try_run
1822:
1823: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1824: # -------------------------------------------------------
1825: # Tests whether HEADER exists and can be compiled using the include files in
1826: # INCLUDES, setting the cache variable VAR accordingly.
1827: ac_fn_c_check_header_compile ()
1828: {
1829: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831: $as_echo_n "checking for $2... " >&6; }
1832: if eval \${$3+:} false; then :
1833: $as_echo_n "(cached) " >&6
1834: else
1835: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836: /* end confdefs.h. */
1837: $4
1838: #include <$2>
1839: _ACEOF
1840: if ac_fn_c_try_compile "$LINENO"; then :
1841: eval "$3=yes"
1842: else
1843: eval "$3=no"
1844: fi
1845: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846: fi
1847: eval ac_res=\$$3
1848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849: $as_echo "$ac_res" >&6; }
1850: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851:
1852: } # ac_fn_c_check_header_compile
1853:
1854: # ac_fn_c_find_intX_t LINENO BITS VAR
1855: # -----------------------------------
1856: # Finds a signed integer type with width BITS, setting cache variable VAR
1857: # accordingly.
1858: ac_fn_c_find_intX_t ()
1859: {
1860: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1862: $as_echo_n "checking for int$2_t... " >&6; }
1863: if eval \${$3+:} false; then :
1864: $as_echo_n "(cached) " >&6
1865: else
1866: eval "$3=no"
1867: # Order is important - never check a type that is potentially smaller
1868: # than half of the expected target width.
1869: for ac_type in int$2_t 'int' 'long int' \
1870: 'long long int' 'short int' 'signed char'; do
1871: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872: /* end confdefs.h. */
1873: $ac_includes_default
1874: enum { N = $2 / 2 - 1 };
1875: int
1876: main ()
1877: {
1878: static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1.1.1.4 ! misho 1879: test_array [0] = 0;
! 1880: return test_array [0];
1.1 misho 1881:
1882: ;
1883: return 0;
1884: }
1885: _ACEOF
1886: if ac_fn_c_try_compile "$LINENO"; then :
1887: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888: /* end confdefs.h. */
1889: $ac_includes_default
1890: enum { N = $2 / 2 - 1 };
1891: int
1892: main ()
1893: {
1894: static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1895: < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1.1.1.4 ! misho 1896: test_array [0] = 0;
! 1897: return test_array [0];
1.1 misho 1898:
1899: ;
1900: return 0;
1901: }
1902: _ACEOF
1903: if ac_fn_c_try_compile "$LINENO"; then :
1904:
1905: else
1906: case $ac_type in #(
1907: int$2_t) :
1908: eval "$3=yes" ;; #(
1909: *) :
1910: eval "$3=\$ac_type" ;;
1911: esac
1912: fi
1913: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914: fi
1915: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916: if eval test \"x\$"$3"\" = x"no"; then :
1917:
1918: else
1919: break
1920: fi
1921: done
1922: fi
1923: eval ac_res=\$$3
1924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925: $as_echo "$ac_res" >&6; }
1926: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927:
1928: } # ac_fn_c_find_intX_t
1929:
1930: # ac_fn_c_try_link LINENO
1931: # -----------------------
1932: # Try to link conftest.$ac_ext, and return whether this succeeded.
1933: ac_fn_c_try_link ()
1934: {
1935: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936: rm -f conftest.$ac_objext conftest$ac_exeext
1937: if { { ac_try="$ac_link"
1938: case "(($ac_try" in
1939: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940: *) ac_try_echo=$ac_try;;
1941: esac
1942: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943: $as_echo "$ac_try_echo"; } >&5
1944: (eval "$ac_link") 2>conftest.err
1945: ac_status=$?
1946: if test -s conftest.err; then
1947: grep -v '^ *+' conftest.err >conftest.er1
1948: cat conftest.er1 >&5
1949: mv -f conftest.er1 conftest.err
1950: fi
1951: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952: test $ac_status = 0; } && {
1953: test -z "$ac_c_werror_flag" ||
1954: test ! -s conftest.err
1955: } && test -s conftest$ac_exeext && {
1956: test "$cross_compiling" = yes ||
1.1.1.4 ! misho 1957: test -x conftest$ac_exeext
1.1 misho 1958: }; then :
1959: ac_retval=0
1960: else
1961: $as_echo "$as_me: failed program was:" >&5
1962: sed 's/^/| /' conftest.$ac_ext >&5
1963:
1964: ac_retval=1
1965: fi
1966: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968: # interfere with the next link command; also delete a directory that is
1969: # left behind by Apple's compiler. We do this before executing the actions.
1970: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972: as_fn_set_status $ac_retval
1973:
1974: } # ac_fn_c_try_link
1975:
1976: # ac_fn_c_check_func LINENO FUNC VAR
1977: # ----------------------------------
1978: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1979: ac_fn_c_check_func ()
1980: {
1981: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983: $as_echo_n "checking for $2... " >&6; }
1984: if eval \${$3+:} false; then :
1985: $as_echo_n "(cached) " >&6
1986: else
1987: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988: /* end confdefs.h. */
1989: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1990: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1991: #define $2 innocuous_$2
1992:
1993: /* System header to define __stub macros and hopefully few prototypes,
1994: which can conflict with char $2 (); below.
1995: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1996: <limits.h> exists even on freestanding compilers. */
1997:
1998: #ifdef __STDC__
1999: # include <limits.h>
2000: #else
2001: # include <assert.h>
2002: #endif
2003:
2004: #undef $2
2005:
2006: /* Override any GCC internal prototype to avoid an error.
2007: Use char because int might match the return type of a GCC
2008: builtin and then its argument prototype would still apply. */
2009: #ifdef __cplusplus
2010: extern "C"
2011: #endif
2012: char $2 ();
2013: /* The GNU C library defines this for functions which it implements
2014: to always fail with ENOSYS. Some functions are actually named
2015: something starting with __ and the normal name is an alias. */
2016: #if defined __stub_$2 || defined __stub___$2
2017: choke me
2018: #endif
2019:
2020: int
2021: main ()
2022: {
2023: return $2 ();
2024: ;
2025: return 0;
2026: }
2027: _ACEOF
2028: if ac_fn_c_try_link "$LINENO"; then :
2029: eval "$3=yes"
2030: else
2031: eval "$3=no"
2032: fi
2033: rm -f core conftest.err conftest.$ac_objext \
2034: conftest$ac_exeext conftest.$ac_ext
2035: fi
2036: eval ac_res=\$$3
2037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038: $as_echo "$ac_res" >&6; }
2039: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040:
2041: } # ac_fn_c_check_func
2042:
2043: # ac_fn_cxx_try_cpp LINENO
2044: # ------------------------
2045: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2046: ac_fn_cxx_try_cpp ()
2047: {
2048: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049: if { { ac_try="$ac_cpp conftest.$ac_ext"
2050: case "(($ac_try" in
2051: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052: *) ac_try_echo=$ac_try;;
2053: esac
2054: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055: $as_echo "$ac_try_echo"; } >&5
2056: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2057: ac_status=$?
2058: if test -s conftest.err; then
2059: grep -v '^ *+' conftest.err >conftest.er1
2060: cat conftest.er1 >&5
2061: mv -f conftest.er1 conftest.err
2062: fi
2063: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064: test $ac_status = 0; } > conftest.i && {
2065: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2066: test ! -s conftest.err
2067: }; then :
2068: ac_retval=0
2069: else
2070: $as_echo "$as_me: failed program was:" >&5
2071: sed 's/^/| /' conftest.$ac_ext >&5
2072:
2073: ac_retval=1
2074: fi
2075: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076: as_fn_set_status $ac_retval
2077:
2078: } # ac_fn_cxx_try_cpp
2079:
2080: # ac_fn_cxx_try_link LINENO
2081: # -------------------------
2082: # Try to link conftest.$ac_ext, and return whether this succeeded.
2083: ac_fn_cxx_try_link ()
2084: {
2085: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086: rm -f conftest.$ac_objext conftest$ac_exeext
2087: if { { ac_try="$ac_link"
2088: case "(($ac_try" in
2089: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090: *) ac_try_echo=$ac_try;;
2091: esac
2092: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093: $as_echo "$ac_try_echo"; } >&5
2094: (eval "$ac_link") 2>conftest.err
2095: ac_status=$?
2096: if test -s conftest.err; then
2097: grep -v '^ *+' conftest.err >conftest.er1
2098: cat conftest.er1 >&5
2099: mv -f conftest.er1 conftest.err
2100: fi
2101: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2102: test $ac_status = 0; } && {
2103: test -z "$ac_cxx_werror_flag" ||
2104: test ! -s conftest.err
2105: } && test -s conftest$ac_exeext && {
2106: test "$cross_compiling" = yes ||
1.1.1.4 ! misho 2107: test -x conftest$ac_exeext
1.1 misho 2108: }; then :
2109: ac_retval=0
2110: else
2111: $as_echo "$as_me: failed program was:" >&5
2112: sed 's/^/| /' conftest.$ac_ext >&5
2113:
2114: ac_retval=1
2115: fi
2116: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2117: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2118: # interfere with the next link command; also delete a directory that is
2119: # left behind by Apple's compiler. We do this before executing the actions.
2120: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2121: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122: as_fn_set_status $ac_retval
2123:
2124: } # ac_fn_cxx_try_link
2125:
2126: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2127: # -------------------------------------------------------
2128: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2129: # the include files in INCLUDES and setting the cache variable VAR
2130: # accordingly.
2131: ac_fn_c_check_header_mongrel ()
2132: {
2133: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134: if eval \${$3+:} false; then :
2135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136: $as_echo_n "checking for $2... " >&6; }
2137: if eval \${$3+:} false; then :
2138: $as_echo_n "(cached) " >&6
2139: fi
2140: eval ac_res=\$$3
2141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142: $as_echo "$ac_res" >&6; }
2143: else
2144: # Is the header compilable?
2145: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2146: $as_echo_n "checking $2 usability... " >&6; }
2147: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148: /* end confdefs.h. */
2149: $4
2150: #include <$2>
2151: _ACEOF
2152: if ac_fn_c_try_compile "$LINENO"; then :
2153: ac_header_compiler=yes
2154: else
2155: ac_header_compiler=no
2156: fi
2157: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2159: $as_echo "$ac_header_compiler" >&6; }
2160:
2161: # Is the header present?
2162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2163: $as_echo_n "checking $2 presence... " >&6; }
2164: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165: /* end confdefs.h. */
2166: #include <$2>
2167: _ACEOF
2168: if ac_fn_c_try_cpp "$LINENO"; then :
2169: ac_header_preproc=yes
2170: else
2171: ac_header_preproc=no
2172: fi
2173: rm -f conftest.err conftest.i conftest.$ac_ext
2174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2175: $as_echo "$ac_header_preproc" >&6; }
2176:
2177: # So? What about this header?
2178: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2179: yes:no: )
2180: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2181: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2182: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2183: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2184: ;;
2185: no:yes:* )
2186: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2187: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2188: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2189: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2190: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2191: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2192: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2193: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2194: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2195: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2196: ;;
2197: esac
2198: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199: $as_echo_n "checking for $2... " >&6; }
2200: if eval \${$3+:} false; then :
2201: $as_echo_n "(cached) " >&6
2202: else
2203: eval "$3=\$ac_header_compiler"
2204: fi
2205: eval ac_res=\$$3
2206: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207: $as_echo "$ac_res" >&6; }
2208: fi
2209: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210:
2211: } # ac_fn_c_check_header_mongrel
2212:
2213: # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2214: # ---------------------------------------------------------
2215: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2216: # the include files in INCLUDES and setting the cache variable VAR
2217: # accordingly.
2218: ac_fn_cxx_check_header_mongrel ()
2219: {
2220: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221: if eval \${$3+:} false; then :
2222: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223: $as_echo_n "checking for $2... " >&6; }
2224: if eval \${$3+:} false; then :
2225: $as_echo_n "(cached) " >&6
2226: fi
2227: eval ac_res=\$$3
2228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229: $as_echo "$ac_res" >&6; }
2230: else
2231: # Is the header compilable?
2232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2233: $as_echo_n "checking $2 usability... " >&6; }
2234: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235: /* end confdefs.h. */
2236: $4
2237: #include <$2>
2238: _ACEOF
2239: if ac_fn_cxx_try_compile "$LINENO"; then :
2240: ac_header_compiler=yes
2241: else
2242: ac_header_compiler=no
2243: fi
2244: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2246: $as_echo "$ac_header_compiler" >&6; }
2247:
2248: # Is the header present?
2249: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2250: $as_echo_n "checking $2 presence... " >&6; }
2251: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252: /* end confdefs.h. */
2253: #include <$2>
2254: _ACEOF
2255: if ac_fn_cxx_try_cpp "$LINENO"; then :
2256: ac_header_preproc=yes
2257: else
2258: ac_header_preproc=no
2259: fi
2260: rm -f conftest.err conftest.i conftest.$ac_ext
2261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2262: $as_echo "$ac_header_preproc" >&6; }
2263:
2264: # So? What about this header?
2265: case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2266: yes:no: )
2267: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2268: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2269: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2270: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2271: ;;
2272: no:yes:* )
2273: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2274: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2275: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2276: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2277: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2278: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2279: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2280: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2281: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2282: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2283: ;;
2284: esac
2285: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286: $as_echo_n "checking for $2... " >&6; }
2287: if eval \${$3+:} false; then :
2288: $as_echo_n "(cached) " >&6
2289: else
2290: eval "$3=\$ac_header_compiler"
2291: fi
2292: eval ac_res=\$$3
2293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294: $as_echo "$ac_res" >&6; }
2295: fi
2296: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297:
2298: } # ac_fn_cxx_check_header_mongrel
2299:
2300: # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2301: # ---------------------------------------------
2302: # Tests whether TYPE exists after having included INCLUDES, setting cache
2303: # variable VAR accordingly.
2304: ac_fn_cxx_check_type ()
2305: {
2306: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2308: $as_echo_n "checking for $2... " >&6; }
2309: if eval \${$3+:} false; then :
2310: $as_echo_n "(cached) " >&6
2311: else
2312: eval "$3=no"
2313: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2314: /* end confdefs.h. */
2315: $4
2316: int
2317: main ()
2318: {
2319: if (sizeof ($2))
2320: return 0;
2321: ;
2322: return 0;
2323: }
2324: _ACEOF
2325: if ac_fn_cxx_try_compile "$LINENO"; then :
2326: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327: /* end confdefs.h. */
2328: $4
2329: int
2330: main ()
2331: {
2332: if (sizeof (($2)))
2333: return 0;
2334: ;
2335: return 0;
2336: }
2337: _ACEOF
2338: if ac_fn_cxx_try_compile "$LINENO"; then :
2339:
2340: else
2341: eval "$3=yes"
2342: fi
2343: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344: fi
2345: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346: fi
2347: eval ac_res=\$$3
2348: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349: $as_echo "$ac_res" >&6; }
2350: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351:
2352: } # ac_fn_cxx_check_type
2353:
2354: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2355: # -------------------------------------------
2356: # Tests whether TYPE exists after having included INCLUDES, setting cache
2357: # variable VAR accordingly.
2358: ac_fn_c_check_type ()
2359: {
2360: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362: $as_echo_n "checking for $2... " >&6; }
2363: if eval \${$3+:} false; then :
2364: $as_echo_n "(cached) " >&6
2365: else
2366: eval "$3=no"
2367: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368: /* end confdefs.h. */
2369: $4
2370: int
2371: main ()
2372: {
2373: if (sizeof ($2))
2374: return 0;
2375: ;
2376: return 0;
2377: }
2378: _ACEOF
2379: if ac_fn_c_try_compile "$LINENO"; then :
2380: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381: /* end confdefs.h. */
2382: $4
2383: int
2384: main ()
2385: {
2386: if (sizeof (($2)))
2387: return 0;
2388: ;
2389: return 0;
2390: }
2391: _ACEOF
2392: if ac_fn_c_try_compile "$LINENO"; then :
2393:
2394: else
2395: eval "$3=yes"
2396: fi
2397: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398: fi
2399: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400: fi
2401: eval ac_res=\$$3
2402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403: $as_echo "$ac_res" >&6; }
2404: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2405:
2406: } # ac_fn_c_check_type
2407: cat >config.log <<_ACEOF
2408: This file contains any messages produced by compilers while
2409: running configure, to aid debugging if configure makes a mistake.
2410:
1.1.1.4 ! misho 2411: It was created by PCRE $as_me 8.33, which was
! 2412: generated by GNU Autoconf 2.69. Invocation command line was
1.1 misho 2413:
2414: $ $0 $@
2415:
2416: _ACEOF
2417: exec 5>>config.log
2418: {
2419: cat <<_ASUNAME
2420: ## --------- ##
2421: ## Platform. ##
2422: ## --------- ##
2423:
2424: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2425: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2426: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2427: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2428: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2429:
2430: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2431: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2432:
2433: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2434: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2435: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2436: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2437: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2438: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2439: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2440:
2441: _ASUNAME
2442:
2443: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444: for as_dir in $PATH
2445: do
2446: IFS=$as_save_IFS
2447: test -z "$as_dir" && as_dir=.
2448: $as_echo "PATH: $as_dir"
2449: done
2450: IFS=$as_save_IFS
2451:
2452: } >&5
2453:
2454: cat >&5 <<_ACEOF
2455:
2456:
2457: ## ----------- ##
2458: ## Core tests. ##
2459: ## ----------- ##
2460:
2461: _ACEOF
2462:
2463:
2464: # Keep a trace of the command line.
2465: # Strip out --no-create and --no-recursion so they do not pile up.
2466: # Strip out --silent because we don't want to record it for future runs.
2467: # Also quote any args containing shell meta-characters.
2468: # Make two passes to allow for proper duplicate-argument suppression.
2469: ac_configure_args=
2470: ac_configure_args0=
2471: ac_configure_args1=
2472: ac_must_keep_next=false
2473: for ac_pass in 1 2
2474: do
2475: for ac_arg
2476: do
2477: case $ac_arg in
2478: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2479: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2480: | -silent | --silent | --silen | --sile | --sil)
2481: continue ;;
2482: *\'*)
2483: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2484: esac
2485: case $ac_pass in
2486: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2487: 2)
2488: as_fn_append ac_configure_args1 " '$ac_arg'"
2489: if test $ac_must_keep_next = true; then
2490: ac_must_keep_next=false # Got value, back to normal.
2491: else
2492: case $ac_arg in
2493: *=* | --config-cache | -C | -disable-* | --disable-* \
2494: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2495: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2496: | -with-* | --with-* | -without-* | --without-* | --x)
2497: case "$ac_configure_args0 " in
2498: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2499: esac
2500: ;;
2501: -* ) ac_must_keep_next=true ;;
2502: esac
2503: fi
2504: as_fn_append ac_configure_args " '$ac_arg'"
2505: ;;
2506: esac
2507: done
2508: done
2509: { ac_configure_args0=; unset ac_configure_args0;}
2510: { ac_configure_args1=; unset ac_configure_args1;}
2511:
2512: # When interrupted or exit'd, cleanup temporary files, and complete
2513: # config.log. We remove comments because anyway the quotes in there
2514: # would cause problems or look ugly.
2515: # WARNING: Use '\'' to represent an apostrophe within the trap.
2516: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2517: trap 'exit_status=$?
2518: # Save into config.log some information that might help in debugging.
2519: {
2520: echo
2521:
2522: $as_echo "## ---------------- ##
2523: ## Cache variables. ##
2524: ## ---------------- ##"
2525: echo
2526: # The following way of writing the cache mishandles newlines in values,
2527: (
2528: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2529: eval ac_val=\$$ac_var
2530: case $ac_val in #(
2531: *${as_nl}*)
2532: case $ac_var in #(
2533: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2534: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2535: esac
2536: case $ac_var in #(
2537: _ | IFS | as_nl) ;; #(
2538: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2539: *) { eval $ac_var=; unset $ac_var;} ;;
2540: esac ;;
2541: esac
2542: done
2543: (set) 2>&1 |
2544: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2545: *${as_nl}ac_space=\ *)
2546: sed -n \
2547: "s/'\''/'\''\\\\'\'''\''/g;
2548: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2549: ;; #(
2550: *)
2551: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2552: ;;
2553: esac |
2554: sort
2555: )
2556: echo
2557:
2558: $as_echo "## ----------------- ##
2559: ## Output variables. ##
2560: ## ----------------- ##"
2561: echo
2562: for ac_var in $ac_subst_vars
2563: do
2564: eval ac_val=\$$ac_var
2565: case $ac_val in
2566: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2567: esac
2568: $as_echo "$ac_var='\''$ac_val'\''"
2569: done | sort
2570: echo
2571:
2572: if test -n "$ac_subst_files"; then
2573: $as_echo "## ------------------- ##
2574: ## File substitutions. ##
2575: ## ------------------- ##"
2576: echo
2577: for ac_var in $ac_subst_files
2578: do
2579: eval ac_val=\$$ac_var
2580: case $ac_val in
2581: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2582: esac
2583: $as_echo "$ac_var='\''$ac_val'\''"
2584: done | sort
2585: echo
2586: fi
2587:
2588: if test -s confdefs.h; then
2589: $as_echo "## ----------- ##
2590: ## confdefs.h. ##
2591: ## ----------- ##"
2592: echo
2593: cat confdefs.h
2594: echo
2595: fi
2596: test "$ac_signal" != 0 &&
2597: $as_echo "$as_me: caught signal $ac_signal"
2598: $as_echo "$as_me: exit $exit_status"
2599: } >&5
2600: rm -f core *.core core.conftest.* &&
2601: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2602: exit $exit_status
2603: ' 0
2604: for ac_signal in 1 2 13 15; do
2605: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2606: done
2607: ac_signal=0
2608:
2609: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2610: rm -f -r conftest* confdefs.h
2611:
2612: $as_echo "/* confdefs.h */" > confdefs.h
2613:
2614: # Predefined preprocessor variables.
2615:
2616: cat >>confdefs.h <<_ACEOF
2617: #define PACKAGE_NAME "$PACKAGE_NAME"
2618: _ACEOF
2619:
2620: cat >>confdefs.h <<_ACEOF
2621: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2622: _ACEOF
2623:
2624: cat >>confdefs.h <<_ACEOF
2625: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2626: _ACEOF
2627:
2628: cat >>confdefs.h <<_ACEOF
2629: #define PACKAGE_STRING "$PACKAGE_STRING"
2630: _ACEOF
2631:
2632: cat >>confdefs.h <<_ACEOF
2633: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2634: _ACEOF
2635:
2636: cat >>confdefs.h <<_ACEOF
2637: #define PACKAGE_URL "$PACKAGE_URL"
2638: _ACEOF
2639:
2640:
2641: # Let the site file select an alternate cache file if it wants to.
2642: # Prefer an explicitly selected file to automatically selected ones.
2643: ac_site_file1=NONE
2644: ac_site_file2=NONE
2645: if test -n "$CONFIG_SITE"; then
2646: # We do not want a PATH search for config.site.
2647: case $CONFIG_SITE in #((
2648: -*) ac_site_file1=./$CONFIG_SITE;;
2649: */*) ac_site_file1=$CONFIG_SITE;;
2650: *) ac_site_file1=./$CONFIG_SITE;;
2651: esac
2652: elif test "x$prefix" != xNONE; then
2653: ac_site_file1=$prefix/share/config.site
2654: ac_site_file2=$prefix/etc/config.site
2655: else
2656: ac_site_file1=$ac_default_prefix/share/config.site
2657: ac_site_file2=$ac_default_prefix/etc/config.site
2658: fi
2659: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2660: do
2661: test "x$ac_site_file" = xNONE && continue
2662: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2663: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2664: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2665: sed 's/^/| /' "$ac_site_file" >&5
2666: . "$ac_site_file" \
2667: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2668: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2669: as_fn_error $? "failed to load site script $ac_site_file
2670: See \`config.log' for more details" "$LINENO" 5; }
2671: fi
2672: done
2673:
2674: if test -r "$cache_file"; then
2675: # Some versions of bash will fail to source /dev/null (special files
2676: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2677: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2678: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2679: $as_echo "$as_me: loading cache $cache_file" >&6;}
2680: case $cache_file in
2681: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2682: *) . "./$cache_file";;
2683: esac
2684: fi
2685: else
2686: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2687: $as_echo "$as_me: creating cache $cache_file" >&6;}
2688: >$cache_file
2689: fi
2690:
2691: # Check that the precious variables saved in the cache have kept the same
2692: # value.
2693: ac_cache_corrupted=false
2694: for ac_var in $ac_precious_vars; do
2695: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2696: eval ac_new_set=\$ac_env_${ac_var}_set
2697: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2698: eval ac_new_val=\$ac_env_${ac_var}_value
2699: case $ac_old_set,$ac_new_set in
2700: set,)
2701: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2702: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2703: ac_cache_corrupted=: ;;
2704: ,set)
2705: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2706: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2707: ac_cache_corrupted=: ;;
2708: ,);;
2709: *)
2710: if test "x$ac_old_val" != "x$ac_new_val"; then
2711: # differences in whitespace do not lead to failure.
2712: ac_old_val_w=`echo x $ac_old_val`
2713: ac_new_val_w=`echo x $ac_new_val`
2714: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2715: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2716: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2717: ac_cache_corrupted=:
2718: else
2719: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2720: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2721: eval $ac_var=\$ac_old_val
2722: fi
2723: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2724: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2725: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2726: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2727: fi;;
2728: esac
2729: # Pass precious variables to config.status.
2730: if test "$ac_new_set" = set; then
2731: case $ac_new_val in
2732: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2733: *) ac_arg=$ac_var=$ac_new_val ;;
2734: esac
2735: case " $ac_configure_args " in
2736: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2737: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2738: esac
2739: fi
2740: done
2741: if $ac_cache_corrupted; then
2742: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2743: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2744: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2745: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2746: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2747: fi
2748: ## -------------------- ##
2749: ## Main body of script. ##
2750: ## -------------------- ##
2751:
2752: ac_ext=c
2753: ac_cpp='$CPP $CPPFLAGS'
2754: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757:
2758:
2759:
1.1.1.4 ! misho 2760: am__api_version='1.13'
1.1 misho 2761:
2762: ac_aux_dir=
2763: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2764: if test -f "$ac_dir/install-sh"; then
2765: ac_aux_dir=$ac_dir
2766: ac_install_sh="$ac_aux_dir/install-sh -c"
2767: break
2768: elif test -f "$ac_dir/install.sh"; then
2769: ac_aux_dir=$ac_dir
2770: ac_install_sh="$ac_aux_dir/install.sh -c"
2771: break
2772: elif test -f "$ac_dir/shtool"; then
2773: ac_aux_dir=$ac_dir
2774: ac_install_sh="$ac_aux_dir/shtool install -c"
2775: break
2776: fi
2777: done
2778: if test -z "$ac_aux_dir"; then
2779: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2780: fi
2781:
2782: # These three variables are undocumented and unsupported,
2783: # and are intended to be withdrawn in a future Autoconf release.
2784: # They can cause serious problems if a builder's source tree is in a directory
2785: # whose full name contains unusual characters.
2786: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2787: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2788: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2789:
2790:
2791: # Find a good install program. We prefer a C program (faster),
2792: # so one script is as good as another. But avoid the broken or
2793: # incompatible versions:
2794: # SysV /etc/install, /usr/sbin/install
2795: # SunOS /usr/etc/install
2796: # IRIX /sbin/install
2797: # AIX /bin/install
2798: # AmigaOS /C/install, which installs bootblocks on floppy discs
2799: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2800: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2801: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2802: # OS/2's system install, which has a completely different semantic
2803: # ./install, which can be erroneously created by make from ./install.sh.
2804: # Reject install programs that cannot install multiple files.
2805: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2806: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2807: if test -z "$INSTALL"; then
2808: if ${ac_cv_path_install+:} false; then :
2809: $as_echo_n "(cached) " >&6
2810: else
2811: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812: for as_dir in $PATH
2813: do
2814: IFS=$as_save_IFS
2815: test -z "$as_dir" && as_dir=.
2816: # Account for people who put trailing slashes in PATH elements.
2817: case $as_dir/ in #((
2818: ./ | .// | /[cC]/* | \
2819: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2820: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2821: /usr/ucb/* ) ;;
2822: *)
2823: # OSF1 and SCO ODT 3.0 have their own names for install.
2824: # Don't use installbsd from OSF since it installs stuff as root
2825: # by default.
2826: for ac_prog in ginstall scoinst install; do
2827: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 2828: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1 misho 2829: if test $ac_prog = install &&
2830: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2831: # AIX install. It has an incompatible calling convention.
2832: :
2833: elif test $ac_prog = install &&
2834: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2835: # program-specific install script used by HP pwplus--don't use.
2836: :
2837: else
2838: rm -rf conftest.one conftest.two conftest.dir
2839: echo one > conftest.one
2840: echo two > conftest.two
2841: mkdir conftest.dir
2842: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2843: test -s conftest.one && test -s conftest.two &&
2844: test -s conftest.dir/conftest.one &&
2845: test -s conftest.dir/conftest.two
2846: then
2847: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2848: break 3
2849: fi
2850: fi
2851: fi
2852: done
2853: done
2854: ;;
2855: esac
2856:
2857: done
2858: IFS=$as_save_IFS
2859:
2860: rm -rf conftest.one conftest.two conftest.dir
2861:
2862: fi
2863: if test "${ac_cv_path_install+set}" = set; then
2864: INSTALL=$ac_cv_path_install
2865: else
2866: # As a last resort, use the slow shell script. Don't cache a
2867: # value for INSTALL within a source directory, because that will
2868: # break other packages using the cache if that directory is
2869: # removed, or if the value is a relative name.
2870: INSTALL=$ac_install_sh
2871: fi
2872: fi
2873: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2874: $as_echo "$INSTALL" >&6; }
2875:
2876: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2877: # It thinks the first close brace ends the variable substitution.
2878: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2879:
2880: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2881:
2882: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2883:
2884: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2885: $as_echo_n "checking whether build environment is sane... " >&6; }
2886: # Reject unsafe characters in $srcdir or the absolute working directory
2887: # name. Accept space and tab only in the latter.
2888: am_lf='
2889: '
2890: case `pwd` in
2891: *[\\\"\#\$\&\'\`$am_lf]*)
2892: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2893: esac
2894: case $srcdir in
2895: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.1.1.4 ! misho 2896: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.1 misho 2897: esac
2898:
1.1.1.4 ! misho 2899: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 misho 2900: # arguments. Must try -L first in case configure is actually a
2901: # symlink; some systems play weird games with the mod time of symlinks
2902: # (eg FreeBSD returns the mod time of the symlink's containing
2903: # directory).
2904: if (
1.1.1.4 ! misho 2905: am_has_slept=no
! 2906: for am_try in 1 2; do
! 2907: echo "timestamp, slept: $am_has_slept" > conftest.file
! 2908: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
! 2909: if test "$*" = "X"; then
! 2910: # -L didn't work.
! 2911: set X `ls -t "$srcdir/configure" conftest.file`
! 2912: fi
! 2913: if test "$*" != "X $srcdir/configure conftest.file" \
! 2914: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 misho 2915:
1.1.1.4 ! misho 2916: # If neither matched, then we have a broken ls. This can happen
! 2917: # if, for instance, CONFIG_SHELL is bash and it inherits a
! 2918: # broken ls alias from the environment. This has actually
! 2919: # happened. Such a system could not be considered "sane".
! 2920: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
! 2921: alias in your environment" "$LINENO" 5
! 2922: fi
! 2923: if test "$2" = conftest.file || test $am_try -eq 2; then
! 2924: break
! 2925: fi
! 2926: # Just in case.
! 2927: sleep 1
! 2928: am_has_slept=yes
! 2929: done
1.1 misho 2930: test "$2" = conftest.file
2931: )
2932: then
2933: # Ok.
2934: :
2935: else
2936: as_fn_error $? "newly created file is older than distributed files!
2937: Check your system clock" "$LINENO" 5
2938: fi
2939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2940: $as_echo "yes" >&6; }
1.1.1.4 ! misho 2941: # If we didn't sleep, we still need to ensure time stamps of config.status and
! 2942: # generated files are strictly newer.
! 2943: am_sleep_pid=
! 2944: if grep 'slept: no' conftest.file >/dev/null 2>&1; then
! 2945: ( sleep 1 ) &
! 2946: am_sleep_pid=$!
! 2947: fi
! 2948:
! 2949: rm -f conftest.file
! 2950:
1.1 misho 2951: test "$program_prefix" != NONE &&
2952: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2953: # Use a double $ so make ignores it.
2954: test "$program_suffix" != NONE &&
2955: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2956: # Double any \ or $.
2957: # By default was `s,x,x', remove it if useless.
2958: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2959: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2960:
2961: # expand $ac_aux_dir to an absolute path
2962: am_aux_dir=`cd $ac_aux_dir && pwd`
2963:
2964: if test x"${MISSING+set}" != xset; then
2965: case $am_aux_dir in
2966: *\ * | *\ *)
2967: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2968: *)
2969: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2970: esac
2971: fi
2972: # Use eval to expand $SHELL
1.1.1.4 ! misho 2973: if eval "$MISSING --is-lightweight"; then
! 2974: am_missing_run="$MISSING "
1.1 misho 2975: else
2976: am_missing_run=
1.1.1.4 ! misho 2977: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
! 2978: $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.1 misho 2979: fi
2980:
2981: if test x"${install_sh}" != xset; then
2982: case $am_aux_dir in
2983: *\ * | *\ *)
2984: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2985: *)
2986: install_sh="\${SHELL} $am_aux_dir/install-sh"
2987: esac
2988: fi
2989:
1.1.1.4 ! misho 2990: # Installed binaries are usually stripped using 'strip' when the user
! 2991: # run "make install-strip". However 'strip' might not be the right
1.1 misho 2992: # tool to use in cross-compilation environments, therefore Automake
1.1.1.4 ! misho 2993: # will honor the 'STRIP' environment variable to overrule this program.
1.1 misho 2994: if test "$cross_compiling" != no; then
2995: if test -n "$ac_tool_prefix"; then
2996: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2997: set dummy ${ac_tool_prefix}strip; ac_word=$2
2998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999: $as_echo_n "checking for $ac_word... " >&6; }
3000: if ${ac_cv_prog_STRIP+:} false; then :
3001: $as_echo_n "(cached) " >&6
3002: else
3003: if test -n "$STRIP"; then
3004: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3005: else
3006: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007: for as_dir in $PATH
3008: do
3009: IFS=$as_save_IFS
3010: test -z "$as_dir" && as_dir=.
3011: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 3012: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3013: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3014: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015: break 2
3016: fi
3017: done
3018: done
3019: IFS=$as_save_IFS
3020:
3021: fi
3022: fi
3023: STRIP=$ac_cv_prog_STRIP
3024: if test -n "$STRIP"; then
3025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3026: $as_echo "$STRIP" >&6; }
3027: else
3028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029: $as_echo "no" >&6; }
3030: fi
3031:
3032:
3033: fi
3034: if test -z "$ac_cv_prog_STRIP"; then
3035: ac_ct_STRIP=$STRIP
3036: # Extract the first word of "strip", so it can be a program name with args.
3037: set dummy strip; ac_word=$2
3038: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039: $as_echo_n "checking for $ac_word... " >&6; }
3040: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3041: $as_echo_n "(cached) " >&6
3042: else
3043: if test -n "$ac_ct_STRIP"; then
3044: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3045: else
3046: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047: for as_dir in $PATH
3048: do
3049: IFS=$as_save_IFS
3050: test -z "$as_dir" && as_dir=.
3051: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 3052: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3053: ac_cv_prog_ac_ct_STRIP="strip"
3054: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055: break 2
3056: fi
3057: done
3058: done
3059: IFS=$as_save_IFS
3060:
3061: fi
3062: fi
3063: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3064: if test -n "$ac_ct_STRIP"; then
3065: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3066: $as_echo "$ac_ct_STRIP" >&6; }
3067: else
3068: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069: $as_echo "no" >&6; }
3070: fi
3071:
3072: if test "x$ac_ct_STRIP" = x; then
3073: STRIP=":"
3074: else
3075: case $cross_compiling:$ac_tool_warned in
3076: yes:)
3077: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079: ac_tool_warned=yes ;;
3080: esac
3081: STRIP=$ac_ct_STRIP
3082: fi
3083: else
3084: STRIP="$ac_cv_prog_STRIP"
3085: fi
3086:
3087: fi
3088: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3089:
3090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3091: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3092: if test -z "$MKDIR_P"; then
3093: if ${ac_cv_path_mkdir+:} false; then :
3094: $as_echo_n "(cached) " >&6
3095: else
3096: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3098: do
3099: IFS=$as_save_IFS
3100: test -z "$as_dir" && as_dir=.
3101: for ac_prog in mkdir gmkdir; do
3102: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 3103: as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
1.1 misho 3104: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3105: 'mkdir (GNU coreutils) '* | \
3106: 'mkdir (coreutils) '* | \
3107: 'mkdir (fileutils) '4.1*)
3108: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3109: break 3;;
3110: esac
3111: done
3112: done
3113: done
3114: IFS=$as_save_IFS
3115:
3116: fi
3117:
3118: test -d ./--version && rmdir ./--version
3119: if test "${ac_cv_path_mkdir+set}" = set; then
3120: MKDIR_P="$ac_cv_path_mkdir -p"
3121: else
3122: # As a last resort, use the slow shell script. Don't cache a
3123: # value for MKDIR_P within a source directory, because that will
3124: # break other packages using the cache if that directory is
3125: # removed, or if the value is a relative name.
3126: MKDIR_P="$ac_install_sh -d"
3127: fi
3128: fi
3129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3130: $as_echo "$MKDIR_P" >&6; }
3131:
3132: for ac_prog in gawk mawk nawk awk
3133: do
3134: # Extract the first word of "$ac_prog", so it can be a program name with args.
3135: set dummy $ac_prog; ac_word=$2
3136: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137: $as_echo_n "checking for $ac_word... " >&6; }
3138: if ${ac_cv_prog_AWK+:} false; then :
3139: $as_echo_n "(cached) " >&6
3140: else
3141: if test -n "$AWK"; then
3142: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3143: else
3144: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145: for as_dir in $PATH
3146: do
3147: IFS=$as_save_IFS
3148: test -z "$as_dir" && as_dir=.
3149: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 3150: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3151: ac_cv_prog_AWK="$ac_prog"
3152: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153: break 2
3154: fi
3155: done
3156: done
3157: IFS=$as_save_IFS
3158:
3159: fi
3160: fi
3161: AWK=$ac_cv_prog_AWK
3162: if test -n "$AWK"; then
3163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3164: $as_echo "$AWK" >&6; }
3165: else
3166: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167: $as_echo "no" >&6; }
3168: fi
3169:
3170:
3171: test -n "$AWK" && break
3172: done
3173:
3174: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3175: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3176: set x ${MAKE-make}
3177: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3178: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3179: $as_echo_n "(cached) " >&6
3180: else
3181: cat >conftest.make <<\_ACEOF
3182: SHELL = /bin/sh
3183: all:
3184: @echo '@@@%%%=$(MAKE)=@@@%%%'
3185: _ACEOF
3186: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3187: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3188: *@@@%%%=?*=@@@%%%*)
3189: eval ac_cv_prog_make_${ac_make}_set=yes;;
3190: *)
3191: eval ac_cv_prog_make_${ac_make}_set=no;;
3192: esac
3193: rm -f conftest.make
3194: fi
3195: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3196: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3197: $as_echo "yes" >&6; }
3198: SET_MAKE=
3199: else
3200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201: $as_echo "no" >&6; }
3202: SET_MAKE="MAKE=${MAKE-make}"
3203: fi
3204:
3205: rm -rf .tst 2>/dev/null
3206: mkdir .tst 2>/dev/null
3207: if test -d .tst; then
3208: am__leading_dot=.
3209: else
3210: am__leading_dot=_
3211: fi
3212: rmdir .tst 2>/dev/null
3213:
1.1.1.4 ! misho 3214: # Check whether --enable-silent-rules was given.
! 3215: if test "${enable_silent_rules+set}" = set; then :
! 3216: enableval=$enable_silent_rules;
! 3217: fi
! 3218:
! 3219: case $enable_silent_rules in # (((
! 3220: yes) AM_DEFAULT_VERBOSITY=0;;
! 3221: no) AM_DEFAULT_VERBOSITY=1;;
! 3222: *) AM_DEFAULT_VERBOSITY=1;;
! 3223: esac
! 3224: am_make=${MAKE-make}
! 3225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
! 3226: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
! 3227: if ${am_cv_make_support_nested_variables+:} false; then :
! 3228: $as_echo_n "(cached) " >&6
! 3229: else
! 3230: if $as_echo 'TRUE=$(BAR$(V))
! 3231: BAR0=false
! 3232: BAR1=true
! 3233: V=1
! 3234: am__doit:
! 3235: @$(TRUE)
! 3236: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
! 3237: am_cv_make_support_nested_variables=yes
! 3238: else
! 3239: am_cv_make_support_nested_variables=no
! 3240: fi
! 3241: fi
! 3242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
! 3243: $as_echo "$am_cv_make_support_nested_variables" >&6; }
! 3244: if test $am_cv_make_support_nested_variables = yes; then
! 3245: AM_V='$(V)'
! 3246: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
! 3247: else
! 3248: AM_V=$AM_DEFAULT_VERBOSITY
! 3249: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
! 3250: fi
! 3251: AM_BACKSLASH='\'
! 3252:
1.1 misho 3253: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3254: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3255: # is not polluted with repeated "-I."
3256: am__isrc=' -I$(srcdir)'
3257: # test to see if srcdir already configured
3258: if test -f $srcdir/config.status; then
3259: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3260: fi
3261: fi
3262:
3263: # test whether we have cygpath
3264: if test -z "$CYGPATH_W"; then
3265: if (cygpath --version) >/dev/null 2>/dev/null; then
3266: CYGPATH_W='cygpath -w'
3267: else
3268: CYGPATH_W=echo
3269: fi
3270: fi
3271:
3272:
3273: # Define the identity of the package.
3274: PACKAGE='pcre'
1.1.1.4 ! misho 3275: VERSION='8.33'
1.1 misho 3276:
3277:
3278: cat >>confdefs.h <<_ACEOF
3279: #define PACKAGE "$PACKAGE"
3280: _ACEOF
3281:
3282:
3283: cat >>confdefs.h <<_ACEOF
3284: #define VERSION "$VERSION"
3285: _ACEOF
3286:
3287: # Some tools Automake needs.
3288:
3289: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3290:
3291:
3292: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3293:
3294:
3295: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3296:
3297:
3298: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3299:
3300:
3301: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3302:
1.1.1.4 ! misho 3303: # For better backward compatibility. To be removed once Automake 1.9.x
! 3304: # dies out for good. For more background, see:
! 3305: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
! 3306: # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
! 3307: mkdir_p='$(MKDIR_P)'
! 3308:
1.1 misho 3309: # We need awk for the "check" target. The system "awk" is bad on
3310: # some platforms.
1.1.1.4 ! misho 3311: # Always define AMTAR for backward compatibility. Yes, it's still used
! 3312: # in the wild :-( We should find a proper way to deprecate it ...
! 3313: AMTAR='$${TAR-tar}'
1.1 misho 3314:
3315:
1.1.1.4 ! misho 3316: # We'll loop over all known methods to create a tar archive until one works.
! 3317: _am_tools='gnutar pax cpio none'
! 3318:
! 3319: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
! 3320:
1.1 misho 3321:
3322:
3323:
3324:
3325:
1.1.1.2 misho 3326: # Check whether --enable-silent-rules was given.
3327: if test "${enable_silent_rules+set}" = set; then :
3328: enableval=$enable_silent_rules;
3329: fi
3330:
1.1.1.4 ! misho 3331: case $enable_silent_rules in # (((
! 3332: yes) AM_DEFAULT_VERBOSITY=0;;
! 3333: no) AM_DEFAULT_VERBOSITY=1;;
! 3334: *) AM_DEFAULT_VERBOSITY=0;;
1.1.1.2 misho 3335: esac
1.1.1.4 ! misho 3336: am_make=${MAKE-make}
! 3337: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
! 3338: $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
! 3339: if ${am_cv_make_support_nested_variables+:} false; then :
! 3340: $as_echo_n "(cached) " >&6
! 3341: else
! 3342: if $as_echo 'TRUE=$(BAR$(V))
! 3343: BAR0=false
! 3344: BAR1=true
! 3345: V=1
! 3346: am__doit:
! 3347: @$(TRUE)
! 3348: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
! 3349: am_cv_make_support_nested_variables=yes
! 3350: else
! 3351: am_cv_make_support_nested_variables=no
! 3352: fi
! 3353: fi
! 3354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
! 3355: $as_echo "$am_cv_make_support_nested_variables" >&6; }
! 3356: if test $am_cv_make_support_nested_variables = yes; then
! 3357: AM_V='$(V)'
! 3358: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
! 3359: else
! 3360: AM_V=$AM_DEFAULT_VERBOSITY
! 3361: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
! 3362: fi
1.1.1.2 misho 3363: AM_BACKSLASH='\'
3364:
1.1 misho 3365: ac_config_headers="$ac_config_headers config.h"
3366:
3367:
1.1.1.4 ! misho 3368: # This is a new thing required to stop a warning from automake 1.12
! 3369: DEPDIR="${am__leading_dot}deps"
1.1 misho 3370:
1.1.1.4 ! misho 3371: ac_config_commands="$ac_config_commands depfiles"
1.1 misho 3372:
3373:
1.1.1.4 ! misho 3374: am_make=${MAKE-make}
! 3375: cat > confinc << 'END'
! 3376: am__doit:
! 3377: @echo this is the am__doit target
! 3378: .PHONY: am__doit
! 3379: END
! 3380: # If we don't find an include directive, just comment out the code.
! 3381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
! 3382: $as_echo_n "checking for style of include used by $am_make... " >&6; }
! 3383: am__include="#"
! 3384: am__quote=
! 3385: _am_result=none
! 3386: # First try GNU make style include.
! 3387: echo "include confinc" > confmf
! 3388: # Ignore all kinds of additional output from 'make'.
! 3389: case `$am_make -s -f confmf 2> /dev/null` in #(
! 3390: *the\ am__doit\ target*)
! 3391: am__include=include
! 3392: am__quote=
! 3393: _am_result=GNU
! 3394: ;;
! 3395: esac
! 3396: # Now try BSD make style include.
! 3397: if test "$am__include" = "#"; then
! 3398: echo '.include "confinc"' > confmf
! 3399: case `$am_make -s -f confmf 2> /dev/null` in #(
! 3400: *the\ am__doit\ target*)
! 3401: am__include=.include
! 3402: am__quote="\""
! 3403: _am_result=BSD
! 3404: ;;
! 3405: esac
! 3406: fi
! 3407:
! 3408:
! 3409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
! 3410: $as_echo "$_am_result" >&6; }
! 3411: rm -f confinc confmf
! 3412:
! 3413: # Check whether --enable-dependency-tracking was given.
! 3414: if test "${enable_dependency_tracking+set}" = set; then :
! 3415: enableval=$enable_dependency_tracking;
! 3416: fi
! 3417:
! 3418: if test "x$enable_dependency_tracking" != xno; then
! 3419: am_depcomp="$ac_aux_dir/depcomp"
! 3420: AMDEPBACKSLASH='\'
! 3421: am__nodep='_no'
! 3422: fi
! 3423: if test "x$enable_dependency_tracking" != xno; then
! 3424: AMDEP_TRUE=
! 3425: AMDEP_FALSE='#'
! 3426: else
! 3427: AMDEP_TRUE='#'
! 3428: AMDEP_FALSE=
! 3429: fi
! 3430:
1.1 misho 3431:
3432: ac_ext=c
3433: ac_cpp='$CPP $CPPFLAGS'
3434: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437: if test -n "$ac_tool_prefix"; then
3438: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3439: set dummy ${ac_tool_prefix}gcc; ac_word=$2
3440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441: $as_echo_n "checking for $ac_word... " >&6; }
3442: if ${ac_cv_prog_CC+:} false; then :
3443: $as_echo_n "(cached) " >&6
3444: else
3445: if test -n "$CC"; then
3446: ac_cv_prog_CC="$CC" # Let the user override the test.
3447: else
3448: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449: for as_dir in $PATH
3450: do
3451: IFS=$as_save_IFS
3452: test -z "$as_dir" && as_dir=.
3453: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 3454: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3455: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3456: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457: break 2
3458: fi
3459: done
3460: done
3461: IFS=$as_save_IFS
3462:
3463: fi
3464: fi
3465: CC=$ac_cv_prog_CC
3466: if test -n "$CC"; then
3467: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468: $as_echo "$CC" >&6; }
3469: else
3470: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471: $as_echo "no" >&6; }
3472: fi
3473:
3474:
3475: fi
3476: if test -z "$ac_cv_prog_CC"; then
3477: ac_ct_CC=$CC
3478: # Extract the first word of "gcc", so it can be a program name with args.
3479: set dummy gcc; ac_word=$2
3480: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3481: $as_echo_n "checking for $ac_word... " >&6; }
3482: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3483: $as_echo_n "(cached) " >&6
3484: else
3485: if test -n "$ac_ct_CC"; then
3486: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3487: else
3488: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489: for as_dir in $PATH
3490: do
3491: IFS=$as_save_IFS
3492: test -z "$as_dir" && as_dir=.
3493: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 3494: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3495: ac_cv_prog_ac_ct_CC="gcc"
3496: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3497: break 2
3498: fi
3499: done
3500: done
3501: IFS=$as_save_IFS
3502:
3503: fi
3504: fi
3505: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3506: if test -n "$ac_ct_CC"; then
3507: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3508: $as_echo "$ac_ct_CC" >&6; }
3509: else
3510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511: $as_echo "no" >&6; }
3512: fi
3513:
3514: if test "x$ac_ct_CC" = x; then
3515: CC=""
3516: else
3517: case $cross_compiling:$ac_tool_warned in
3518: yes:)
3519: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3520: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3521: ac_tool_warned=yes ;;
3522: esac
3523: CC=$ac_ct_CC
3524: fi
3525: else
3526: CC="$ac_cv_prog_CC"
3527: fi
3528:
3529: if test -z "$CC"; then
3530: if test -n "$ac_tool_prefix"; then
3531: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3532: set dummy ${ac_tool_prefix}cc; ac_word=$2
3533: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534: $as_echo_n "checking for $ac_word... " >&6; }
3535: if ${ac_cv_prog_CC+:} false; then :
3536: $as_echo_n "(cached) " >&6
3537: else
3538: if test -n "$CC"; then
3539: ac_cv_prog_CC="$CC" # Let the user override the test.
3540: else
3541: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542: for as_dir in $PATH
3543: do
3544: IFS=$as_save_IFS
3545: test -z "$as_dir" && as_dir=.
3546: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 3547: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3548: ac_cv_prog_CC="${ac_tool_prefix}cc"
3549: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550: break 2
3551: fi
3552: done
3553: done
3554: IFS=$as_save_IFS
3555:
3556: fi
3557: fi
3558: CC=$ac_cv_prog_CC
3559: if test -n "$CC"; then
3560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3561: $as_echo "$CC" >&6; }
3562: else
3563: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564: $as_echo "no" >&6; }
3565: fi
3566:
3567:
3568: fi
3569: fi
3570: if test -z "$CC"; then
3571: # Extract the first word of "cc", so it can be a program name with args.
3572: set dummy cc; ac_word=$2
3573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574: $as_echo_n "checking for $ac_word... " >&6; }
3575: if ${ac_cv_prog_CC+:} false; then :
3576: $as_echo_n "(cached) " >&6
3577: else
3578: if test -n "$CC"; then
3579: ac_cv_prog_CC="$CC" # Let the user override the test.
3580: else
3581: ac_prog_rejected=no
3582: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583: for as_dir in $PATH
3584: do
3585: IFS=$as_save_IFS
3586: test -z "$as_dir" && as_dir=.
3587: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 3588: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3589: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3590: ac_prog_rejected=yes
3591: continue
3592: fi
3593: ac_cv_prog_CC="cc"
3594: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595: break 2
3596: fi
3597: done
3598: done
3599: IFS=$as_save_IFS
3600:
3601: if test $ac_prog_rejected = yes; then
3602: # We found a bogon in the path, so make sure we never use it.
3603: set dummy $ac_cv_prog_CC
3604: shift
3605: if test $# != 0; then
3606: # We chose a different compiler from the bogus one.
3607: # However, it has the same basename, so the bogon will be chosen
3608: # first if we set CC to just the basename; use the full file name.
3609: shift
3610: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3611: fi
3612: fi
3613: fi
3614: fi
3615: CC=$ac_cv_prog_CC
3616: if test -n "$CC"; then
3617: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618: $as_echo "$CC" >&6; }
3619: else
3620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621: $as_echo "no" >&6; }
3622: fi
3623:
3624:
3625: fi
3626: if test -z "$CC"; then
3627: if test -n "$ac_tool_prefix"; then
3628: for ac_prog in cl.exe
3629: do
3630: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3631: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3632: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633: $as_echo_n "checking for $ac_word... " >&6; }
3634: if ${ac_cv_prog_CC+:} false; then :
3635: $as_echo_n "(cached) " >&6
3636: else
3637: if test -n "$CC"; then
3638: ac_cv_prog_CC="$CC" # Let the user override the test.
3639: else
3640: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641: for as_dir in $PATH
3642: do
3643: IFS=$as_save_IFS
3644: test -z "$as_dir" && as_dir=.
3645: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 3646: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3647: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3648: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649: break 2
3650: fi
3651: done
3652: done
3653: IFS=$as_save_IFS
3654:
3655: fi
3656: fi
3657: CC=$ac_cv_prog_CC
3658: if test -n "$CC"; then
3659: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3660: $as_echo "$CC" >&6; }
3661: else
3662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663: $as_echo "no" >&6; }
3664: fi
3665:
3666:
3667: test -n "$CC" && break
3668: done
3669: fi
3670: if test -z "$CC"; then
3671: ac_ct_CC=$CC
3672: for ac_prog in cl.exe
3673: do
3674: # Extract the first word of "$ac_prog", so it can be a program name with args.
3675: set dummy $ac_prog; ac_word=$2
3676: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677: $as_echo_n "checking for $ac_word... " >&6; }
3678: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3679: $as_echo_n "(cached) " >&6
3680: else
3681: if test -n "$ac_ct_CC"; then
3682: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3683: else
3684: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685: for as_dir in $PATH
3686: do
3687: IFS=$as_save_IFS
3688: test -z "$as_dir" && as_dir=.
3689: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 3690: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 3691: ac_cv_prog_ac_ct_CC="$ac_prog"
3692: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693: break 2
3694: fi
3695: done
3696: done
3697: IFS=$as_save_IFS
3698:
3699: fi
3700: fi
3701: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3702: if test -n "$ac_ct_CC"; then
3703: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3704: $as_echo "$ac_ct_CC" >&6; }
3705: else
3706: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707: $as_echo "no" >&6; }
3708: fi
3709:
3710:
3711: test -n "$ac_ct_CC" && break
3712: done
3713:
3714: if test "x$ac_ct_CC" = x; then
3715: CC=""
3716: else
3717: case $cross_compiling:$ac_tool_warned in
3718: yes:)
3719: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3720: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3721: ac_tool_warned=yes ;;
3722: esac
3723: CC=$ac_ct_CC
3724: fi
3725: fi
3726:
3727: fi
3728:
3729:
3730: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732: as_fn_error $? "no acceptable C compiler found in \$PATH
3733: See \`config.log' for more details" "$LINENO" 5; }
3734:
3735: # Provide some information about the compiler.
3736: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3737: set X $ac_compile
3738: ac_compiler=$2
3739: for ac_option in --version -v -V -qversion; do
3740: { { ac_try="$ac_compiler $ac_option >&5"
3741: case "(($ac_try" in
3742: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743: *) ac_try_echo=$ac_try;;
3744: esac
3745: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746: $as_echo "$ac_try_echo"; } >&5
3747: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3748: ac_status=$?
3749: if test -s conftest.err; then
3750: sed '10a\
3751: ... rest of stderr output deleted ...
3752: 10q' conftest.err >conftest.er1
3753: cat conftest.er1 >&5
3754: fi
3755: rm -f conftest.er1 conftest.err
3756: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3757: test $ac_status = 0; }
3758: done
3759:
3760: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761: /* end confdefs.h. */
3762:
3763: int
3764: main ()
3765: {
3766:
3767: ;
3768: return 0;
3769: }
3770: _ACEOF
3771: ac_clean_files_save=$ac_clean_files
3772: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3773: # Try to create an executable without -o first, disregard a.out.
3774: # It will help us diagnose broken compilers, and finding out an intuition
3775: # of exeext.
3776: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3777: $as_echo_n "checking whether the C compiler works... " >&6; }
3778: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3779:
3780: # The possible output files:
3781: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3782:
3783: ac_rmfiles=
3784: for ac_file in $ac_files
3785: do
3786: case $ac_file in
3787: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3788: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3789: esac
3790: done
3791: rm -f $ac_rmfiles
3792:
3793: if { { ac_try="$ac_link_default"
3794: case "(($ac_try" in
3795: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796: *) ac_try_echo=$ac_try;;
3797: esac
3798: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799: $as_echo "$ac_try_echo"; } >&5
3800: (eval "$ac_link_default") 2>&5
3801: ac_status=$?
3802: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3803: test $ac_status = 0; }; then :
3804: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3805: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3806: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3807: # so that the user can short-circuit this test for compilers unknown to
3808: # Autoconf.
3809: for ac_file in $ac_files ''
3810: do
3811: test -f "$ac_file" || continue
3812: case $ac_file in
3813: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3814: ;;
3815: [ab].out )
3816: # We found the default executable, but exeext='' is most
3817: # certainly right.
3818: break;;
3819: *.* )
3820: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3821: then :; else
3822: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3823: fi
3824: # We set ac_cv_exeext here because the later test for it is not
3825: # safe: cross compilers may not add the suffix if given an `-o'
3826: # argument, so we may need to know it at that point already.
3827: # Even if this section looks crufty: it has the advantage of
3828: # actually working.
3829: break;;
3830: * )
3831: break;;
3832: esac
3833: done
3834: test "$ac_cv_exeext" = no && ac_cv_exeext=
3835:
3836: else
3837: ac_file=''
3838: fi
3839: if test -z "$ac_file"; then :
3840: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841: $as_echo "no" >&6; }
3842: $as_echo "$as_me: failed program was:" >&5
3843: sed 's/^/| /' conftest.$ac_ext >&5
3844:
3845: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847: as_fn_error 77 "C compiler cannot create executables
3848: See \`config.log' for more details" "$LINENO" 5; }
3849: else
3850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3851: $as_echo "yes" >&6; }
3852: fi
3853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3854: $as_echo_n "checking for C compiler default output file name... " >&6; }
3855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3856: $as_echo "$ac_file" >&6; }
3857: ac_exeext=$ac_cv_exeext
3858:
3859: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3860: ac_clean_files=$ac_clean_files_save
3861: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3862: $as_echo_n "checking for suffix of executables... " >&6; }
3863: if { { ac_try="$ac_link"
3864: case "(($ac_try" in
3865: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866: *) ac_try_echo=$ac_try;;
3867: esac
3868: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869: $as_echo "$ac_try_echo"; } >&5
3870: (eval "$ac_link") 2>&5
3871: ac_status=$?
3872: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873: test $ac_status = 0; }; then :
3874: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3875: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3876: # work properly (i.e., refer to `conftest.exe'), while it won't with
3877: # `rm'.
3878: for ac_file in conftest.exe conftest conftest.*; do
3879: test -f "$ac_file" || continue
3880: case $ac_file in
3881: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3882: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3883: break;;
3884: * ) break;;
3885: esac
3886: done
3887: else
3888: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3889: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3890: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3891: See \`config.log' for more details" "$LINENO" 5; }
3892: fi
3893: rm -f conftest conftest$ac_cv_exeext
3894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3895: $as_echo "$ac_cv_exeext" >&6; }
3896:
3897: rm -f conftest.$ac_ext
3898: EXEEXT=$ac_cv_exeext
3899: ac_exeext=$EXEEXT
3900: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901: /* end confdefs.h. */
3902: #include <stdio.h>
3903: int
3904: main ()
3905: {
3906: FILE *f = fopen ("conftest.out", "w");
3907: return ferror (f) || fclose (f) != 0;
3908:
3909: ;
3910: return 0;
3911: }
3912: _ACEOF
3913: ac_clean_files="$ac_clean_files conftest.out"
3914: # Check that the compiler produces executables we can run. If not, either
3915: # the compiler is broken, or we cross compile.
3916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3917: $as_echo_n "checking whether we are cross compiling... " >&6; }
3918: if test "$cross_compiling" != yes; then
3919: { { ac_try="$ac_link"
3920: case "(($ac_try" in
3921: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922: *) ac_try_echo=$ac_try;;
3923: esac
3924: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925: $as_echo "$ac_try_echo"; } >&5
3926: (eval "$ac_link") 2>&5
3927: ac_status=$?
3928: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929: test $ac_status = 0; }
3930: if { ac_try='./conftest$ac_cv_exeext'
3931: { { case "(($ac_try" in
3932: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933: *) ac_try_echo=$ac_try;;
3934: esac
3935: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936: $as_echo "$ac_try_echo"; } >&5
3937: (eval "$ac_try") 2>&5
3938: ac_status=$?
3939: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940: test $ac_status = 0; }; }; then
3941: cross_compiling=no
3942: else
3943: if test "$cross_compiling" = maybe; then
3944: cross_compiling=yes
3945: else
3946: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948: as_fn_error $? "cannot run C compiled programs.
3949: If you meant to cross compile, use \`--host'.
3950: See \`config.log' for more details" "$LINENO" 5; }
3951: fi
3952: fi
3953: fi
3954: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3955: $as_echo "$cross_compiling" >&6; }
3956:
3957: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3958: ac_clean_files=$ac_clean_files_save
3959: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3960: $as_echo_n "checking for suffix of object files... " >&6; }
3961: if ${ac_cv_objext+:} false; then :
3962: $as_echo_n "(cached) " >&6
3963: else
3964: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965: /* end confdefs.h. */
3966:
3967: int
3968: main ()
3969: {
3970:
3971: ;
3972: return 0;
3973: }
3974: _ACEOF
3975: rm -f conftest.o conftest.obj
3976: if { { ac_try="$ac_compile"
3977: case "(($ac_try" in
3978: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979: *) ac_try_echo=$ac_try;;
3980: esac
3981: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982: $as_echo "$ac_try_echo"; } >&5
3983: (eval "$ac_compile") 2>&5
3984: ac_status=$?
3985: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986: test $ac_status = 0; }; then :
3987: for ac_file in conftest.o conftest.obj conftest.*; do
3988: test -f "$ac_file" || continue;
3989: case $ac_file in
3990: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3991: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3992: break;;
3993: esac
3994: done
3995: else
3996: $as_echo "$as_me: failed program was:" >&5
3997: sed 's/^/| /' conftest.$ac_ext >&5
3998:
3999: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001: as_fn_error $? "cannot compute suffix of object files: cannot compile
4002: See \`config.log' for more details" "$LINENO" 5; }
4003: fi
4004: rm -f conftest.$ac_cv_objext conftest.$ac_ext
4005: fi
4006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4007: $as_echo "$ac_cv_objext" >&6; }
4008: OBJEXT=$ac_cv_objext
4009: ac_objext=$OBJEXT
4010: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4011: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4012: if ${ac_cv_c_compiler_gnu+:} false; then :
4013: $as_echo_n "(cached) " >&6
4014: else
4015: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016: /* end confdefs.h. */
4017:
4018: int
4019: main ()
4020: {
4021: #ifndef __GNUC__
4022: choke me
4023: #endif
4024:
4025: ;
4026: return 0;
4027: }
4028: _ACEOF
4029: if ac_fn_c_try_compile "$LINENO"; then :
4030: ac_compiler_gnu=yes
4031: else
4032: ac_compiler_gnu=no
4033: fi
4034: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4036:
4037: fi
4038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4039: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4040: if test $ac_compiler_gnu = yes; then
4041: GCC=yes
4042: else
4043: GCC=
4044: fi
4045: ac_test_CFLAGS=${CFLAGS+set}
4046: ac_save_CFLAGS=$CFLAGS
4047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4048: $as_echo_n "checking whether $CC accepts -g... " >&6; }
4049: if ${ac_cv_prog_cc_g+:} false; then :
4050: $as_echo_n "(cached) " >&6
4051: else
4052: ac_save_c_werror_flag=$ac_c_werror_flag
4053: ac_c_werror_flag=yes
4054: ac_cv_prog_cc_g=no
4055: CFLAGS="-g"
4056: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057: /* end confdefs.h. */
4058:
4059: int
4060: main ()
4061: {
4062:
4063: ;
4064: return 0;
4065: }
4066: _ACEOF
4067: if ac_fn_c_try_compile "$LINENO"; then :
4068: ac_cv_prog_cc_g=yes
4069: else
4070: CFLAGS=""
4071: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072: /* end confdefs.h. */
4073:
4074: int
4075: main ()
4076: {
4077:
4078: ;
4079: return 0;
4080: }
4081: _ACEOF
4082: if ac_fn_c_try_compile "$LINENO"; then :
4083:
4084: else
4085: ac_c_werror_flag=$ac_save_c_werror_flag
4086: CFLAGS="-g"
4087: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088: /* end confdefs.h. */
4089:
4090: int
4091: main ()
4092: {
4093:
4094: ;
4095: return 0;
4096: }
4097: _ACEOF
4098: if ac_fn_c_try_compile "$LINENO"; then :
4099: ac_cv_prog_cc_g=yes
4100: fi
4101: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102: fi
4103: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104: fi
4105: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106: ac_c_werror_flag=$ac_save_c_werror_flag
4107: fi
4108: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4109: $as_echo "$ac_cv_prog_cc_g" >&6; }
4110: if test "$ac_test_CFLAGS" = set; then
4111: CFLAGS=$ac_save_CFLAGS
4112: elif test $ac_cv_prog_cc_g = yes; then
4113: if test "$GCC" = yes; then
4114: CFLAGS="-g -O2"
4115: else
4116: CFLAGS="-g"
4117: fi
4118: else
4119: if test "$GCC" = yes; then
4120: CFLAGS="-O2"
4121: else
4122: CFLAGS=
4123: fi
4124: fi
4125: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4126: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4127: if ${ac_cv_prog_cc_c89+:} false; then :
4128: $as_echo_n "(cached) " >&6
4129: else
4130: ac_cv_prog_cc_c89=no
4131: ac_save_CC=$CC
4132: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133: /* end confdefs.h. */
4134: #include <stdarg.h>
4135: #include <stdio.h>
1.1.1.4 ! misho 4136: struct stat;
1.1 misho 4137: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4138: struct buf { int x; };
4139: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4140: static char *e (p, i)
4141: char **p;
4142: int i;
4143: {
4144: return p[i];
4145: }
4146: static char *f (char * (*g) (char **, int), char **p, ...)
4147: {
4148: char *s;
4149: va_list v;
4150: va_start (v,p);
4151: s = g (p, va_arg (v,int));
4152: va_end (v);
4153: return s;
4154: }
4155:
4156: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4157: function prototypes and stuff, but not '\xHH' hex character constants.
4158: These don't provoke an error unfortunately, instead are silently treated
4159: as 'x'. The following induces an error, until -std is added to get
4160: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4161: array size at least. It's necessary to write '\x00'==0 to get something
4162: that's true only with -std. */
4163: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4164:
4165: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4166: inside strings and character constants. */
4167: #define FOO(x) 'x'
4168: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4169:
4170: int test (int i, double x);
4171: struct s1 {int (*f) (int a);};
4172: struct s2 {int (*f) (double a);};
4173: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4174: int argc;
4175: char **argv;
4176: int
4177: main ()
4178: {
4179: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4180: ;
4181: return 0;
4182: }
4183: _ACEOF
4184: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4185: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4186: do
4187: CC="$ac_save_CC $ac_arg"
4188: if ac_fn_c_try_compile "$LINENO"; then :
4189: ac_cv_prog_cc_c89=$ac_arg
4190: fi
4191: rm -f core conftest.err conftest.$ac_objext
4192: test "x$ac_cv_prog_cc_c89" != "xno" && break
4193: done
4194: rm -f conftest.$ac_ext
4195: CC=$ac_save_CC
4196:
4197: fi
4198: # AC_CACHE_VAL
4199: case "x$ac_cv_prog_cc_c89" in
4200: x)
4201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4202: $as_echo "none needed" >&6; } ;;
4203: xno)
4204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4205: $as_echo "unsupported" >&6; } ;;
4206: *)
4207: CC="$CC $ac_cv_prog_cc_c89"
4208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4209: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4210: esac
4211: if test "x$ac_cv_prog_cc_c89" != xno; then :
4212:
4213: fi
4214:
4215: ac_ext=c
4216: ac_cpp='$CPP $CPPFLAGS'
4217: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4218: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4219: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4220:
4221: depcc="$CC" am_compiler_list=
4222:
4223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4224: $as_echo_n "checking dependency style of $depcc... " >&6; }
4225: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4226: $as_echo_n "(cached) " >&6
4227: else
4228: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4229: # We make a subdir and do the tests there. Otherwise we can end up
4230: # making bogus files that we don't know about and never remove. For
4231: # instance it was reported that on HP-UX the gcc test will end up
1.1.1.4 ! misho 4232: # making a dummy file named 'D' -- because '-MD' means "put the output
! 4233: # in D".
! 4234: rm -rf conftest.dir
1.1 misho 4235: mkdir conftest.dir
4236: # Copy depcomp to subdir because otherwise we won't find it if we're
4237: # using a relative directory.
4238: cp "$am_depcomp" conftest.dir
4239: cd conftest.dir
4240: # We will build objects and dependencies in a subdirectory because
4241: # it helps to detect inapplicable dependency modes. For instance
4242: # both Tru64's cc and ICC support -MD to output dependencies as a
4243: # side effect of compilation, but ICC will put the dependencies in
4244: # the current directory while Tru64 will put them in the object
4245: # directory.
4246: mkdir sub
4247:
4248: am_cv_CC_dependencies_compiler_type=none
4249: if test "$am_compiler_list" = ""; then
4250: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4251: fi
4252: am__universal=false
4253: case " $depcc " in #(
4254: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4255: esac
4256:
4257: for depmode in $am_compiler_list; do
4258: # Setup a source with many dependencies, because some compilers
4259: # like to wrap large dependency lists on column 80 (with \), and
4260: # we should not choose a depcomp mode which is confused by this.
4261: #
4262: # We need to recreate these files for each test, as the compiler may
4263: # overwrite some of them when testing with obscure command lines.
4264: # This happens at least with the AIX C compiler.
4265: : > sub/conftest.c
4266: for i in 1 2 3 4 5 6; do
4267: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.1.1.4 ! misho 4268: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
! 4269: # Solaris 10 /bin/sh.
! 4270: echo '/* dummy */' > sub/conftst$i.h
1.1 misho 4271: done
4272: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4273:
1.1.1.4 ! misho 4274: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.1 misho 4275: # mode. It turns out that the SunPro C++ compiler does not properly
1.1.1.4 ! misho 4276: # handle '-M -o', and we need to detect this. Also, some Intel
! 4277: # versions had trouble with output in subdirs.
1.1 misho 4278: am__obj=sub/conftest.${OBJEXT-o}
4279: am__minus_obj="-o $am__obj"
4280: case $depmode in
4281: gcc)
4282: # This depmode causes a compiler race in universal mode.
4283: test "$am__universal" = false || continue
4284: ;;
4285: nosideeffect)
1.1.1.4 ! misho 4286: # After this tag, mechanisms are not by side-effect, so they'll
! 4287: # only be used when explicitly requested.
1.1 misho 4288: if test "x$enable_dependency_tracking" = xyes; then
4289: continue
4290: else
4291: break
4292: fi
4293: ;;
1.1.1.4 ! misho 4294: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
! 4295: # This compiler won't grok '-c -o', but also, the minuso test has
1.1 misho 4296: # not run yet. These depmodes are late enough in the game, and
4297: # so weak that their functioning should not be impacted.
4298: am__obj=conftest.${OBJEXT-o}
4299: am__minus_obj=
4300: ;;
4301: none) break ;;
4302: esac
4303: if depmode=$depmode \
4304: source=sub/conftest.c object=$am__obj \
4305: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4306: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4307: >/dev/null 2>conftest.err &&
4308: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4309: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4310: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4311: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4312: # icc doesn't choke on unknown options, it will just issue warnings
4313: # or remarks (even with -Werror). So we grep stderr for any message
4314: # that says an option was ignored or not supported.
4315: # When given -MP, icc 7.0 and 7.1 complain thusly:
4316: # icc: Command line warning: ignoring option '-M'; no argument required
4317: # The diagnosis changed in icc 8.0:
4318: # icc: Command line remark: option '-MP' not supported
4319: if (grep 'ignoring option' conftest.err ||
4320: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4321: am_cv_CC_dependencies_compiler_type=$depmode
4322: break
4323: fi
4324: fi
4325: done
4326:
4327: cd ..
4328: rm -rf conftest.dir
4329: else
4330: am_cv_CC_dependencies_compiler_type=none
4331: fi
4332:
4333: fi
4334: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4335: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4336: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4337:
4338: if
4339: test "x$enable_dependency_tracking" != xno \
4340: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4341: am__fastdepCC_TRUE=
4342: am__fastdepCC_FALSE='#'
4343: else
4344: am__fastdepCC_TRUE='#'
4345: am__fastdepCC_FALSE=
4346: fi
4347:
4348:
1.1.1.4 ! misho 4349:
! 4350: if test -n "$ac_tool_prefix"; then
! 4351: for ac_prog in ar lib "link -lib"
1.1 misho 4352: do
4353: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4354: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4355: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.4 ! misho 4357: if ${ac_cv_prog_AR+:} false; then :
1.1 misho 4358: $as_echo_n "(cached) " >&6
4359: else
1.1.1.4 ! misho 4360: if test -n "$AR"; then
! 4361: ac_cv_prog_AR="$AR" # Let the user override the test.
1.1 misho 4362: else
4363: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364: for as_dir in $PATH
4365: do
4366: IFS=$as_save_IFS
4367: test -z "$as_dir" && as_dir=.
4368: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 4369: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 4370: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.1 misho 4371: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372: break 2
4373: fi
4374: done
4375: done
4376: IFS=$as_save_IFS
4377:
4378: fi
4379: fi
1.1.1.4 ! misho 4380: AR=$ac_cv_prog_AR
! 4381: if test -n "$AR"; then
! 4382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
! 4383: $as_echo "$AR" >&6; }
1.1 misho 4384: else
4385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386: $as_echo "no" >&6; }
4387: fi
4388:
4389:
1.1.1.4 ! misho 4390: test -n "$AR" && break
1.1 misho 4391: done
4392: fi
1.1.1.4 ! misho 4393: if test -z "$AR"; then
! 4394: ac_ct_AR=$AR
! 4395: for ac_prog in ar lib "link -lib"
1.1 misho 4396: do
4397: # Extract the first word of "$ac_prog", so it can be a program name with args.
4398: set dummy $ac_prog; ac_word=$2
4399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.4 ! misho 4401: if ${ac_cv_prog_ac_ct_AR+:} false; then :
1.1 misho 4402: $as_echo_n "(cached) " >&6
4403: else
1.1.1.4 ! misho 4404: if test -n "$ac_ct_AR"; then
! 4405: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1.1 misho 4406: else
4407: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408: for as_dir in $PATH
4409: do
4410: IFS=$as_save_IFS
4411: test -z "$as_dir" && as_dir=.
4412: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 4413: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 4414: ac_cv_prog_ac_ct_AR="$ac_prog"
1.1 misho 4415: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416: break 2
4417: fi
4418: done
4419: done
4420: IFS=$as_save_IFS
4421:
4422: fi
4423: fi
1.1.1.4 ! misho 4424: ac_ct_AR=$ac_cv_prog_ac_ct_AR
! 4425: if test -n "$ac_ct_AR"; then
! 4426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
! 4427: $as_echo "$ac_ct_AR" >&6; }
1.1 misho 4428: else
4429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430: $as_echo "no" >&6; }
4431: fi
4432:
4433:
1.1.1.4 ! misho 4434: test -n "$ac_ct_AR" && break
1.1 misho 4435: done
4436:
1.1.1.4 ! misho 4437: if test "x$ac_ct_AR" = x; then
! 4438: AR="false"
1.1 misho 4439: else
4440: case $cross_compiling:$ac_tool_warned in
4441: yes:)
4442: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4443: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4444: ac_tool_warned=yes ;;
4445: esac
1.1.1.4 ! misho 4446: AR=$ac_ct_AR
1.1 misho 4447: fi
4448: fi
4449:
1.1.1.4 ! misho 4450: : ${AR=ar}
! 4451:
! 4452: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
! 4453: $as_echo_n "checking the archiver ($AR) interface... " >&6; }
! 4454: if ${am_cv_ar_interface+:} false; then :
! 4455: $as_echo_n "(cached) " >&6
! 4456: else
! 4457: am_cv_ar_interface=ar
! 4458: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4459: /* end confdefs.h. */
! 4460: int some_variable = 0;
! 4461: _ACEOF
! 4462: if ac_fn_c_try_compile "$LINENO"; then :
! 4463: am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
! 4464: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
! 4465: (eval $am_ar_try) 2>&5
! 4466: ac_status=$?
! 4467: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4468: test $ac_status = 0; }
! 4469: if test "$ac_status" -eq 0; then
! 4470: am_cv_ar_interface=ar
! 4471: else
! 4472: am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
! 4473: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
! 4474: (eval $am_ar_try) 2>&5
! 4475: ac_status=$?
! 4476: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4477: test $ac_status = 0; }
! 4478: if test "$ac_status" -eq 0; then
! 4479: am_cv_ar_interface=lib
! 4480: else
! 4481: am_cv_ar_interface=unknown
! 4482: fi
! 4483: fi
! 4484: rm -f conftest.lib libconftest.a
! 4485:
! 4486: fi
! 4487: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4488:
! 4489: fi
! 4490: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
! 4491: $as_echo "$am_cv_ar_interface" >&6; }
! 4492:
! 4493: case $am_cv_ar_interface in
! 4494: ar)
! 4495: ;;
! 4496: lib)
! 4497: # Microsoft lib, so override with the ar-lib wrapper script.
! 4498: # FIXME: It is wrong to rewrite AR.
! 4499: # But if we don't then we get into trouble of one sort or another.
! 4500: # A longer-term fix would be to have automake use am__AR in this case,
! 4501: # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
! 4502: # similar.
! 4503: AR="$am_aux_dir/ar-lib $AR"
! 4504: ;;
! 4505: unknown)
! 4506: as_fn_error $? "could not determine $AR interface" "$LINENO" 5
! 4507: ;;
! 4508: esac
! 4509:
! 4510:
! 4511: # This was added at the suggestion of libtoolize (03-Jan-10)
! 4512:
! 4513:
! 4514: # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
! 4515: # "-g" for any other compiler. There doesn't seem to be a standard way of
! 4516: # getting rid of the -g (which I don't think is needed for a production
! 4517: # library). This fudge seems to achieve the necessary. First, we remember the
! 4518: # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
! 4519: # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
! 4520: # set, they will be set to Autoconf's defaults. Afterwards, if the original
! 4521: # values were not set, remove the -g from the Autoconf defaults.
! 4522: # (PH 02-May-07)
! 4523:
! 4524: remember_set_CFLAGS="$CFLAGS"
! 4525: remember_set_CXXFLAGS="$CXXFLAGS"
! 4526:
! 4527: ac_ext=c
! 4528: ac_cpp='$CPP $CPPFLAGS'
! 4529: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 4530: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 4531: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 4532: if test -n "$ac_tool_prefix"; then
! 4533: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
! 4534: set dummy ${ac_tool_prefix}gcc; ac_word=$2
! 4535: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4536: $as_echo_n "checking for $ac_word... " >&6; }
! 4537: if ${ac_cv_prog_CC+:} false; then :
! 4538: $as_echo_n "(cached) " >&6
! 4539: else
! 4540: if test -n "$CC"; then
! 4541: ac_cv_prog_CC="$CC" # Let the user override the test.
! 4542: else
! 4543: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4544: for as_dir in $PATH
! 4545: do
! 4546: IFS=$as_save_IFS
! 4547: test -z "$as_dir" && as_dir=.
! 4548: for ac_exec_ext in '' $ac_executable_extensions; do
! 4549: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 4550: ac_cv_prog_CC="${ac_tool_prefix}gcc"
! 4551: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4552: break 2
! 4553: fi
! 4554: done
! 4555: done
! 4556: IFS=$as_save_IFS
! 4557:
! 4558: fi
! 4559: fi
! 4560: CC=$ac_cv_prog_CC
! 4561: if test -n "$CC"; then
! 4562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 4563: $as_echo "$CC" >&6; }
! 4564: else
! 4565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4566: $as_echo "no" >&6; }
! 4567: fi
! 4568:
! 4569:
! 4570: fi
! 4571: if test -z "$ac_cv_prog_CC"; then
! 4572: ac_ct_CC=$CC
! 4573: # Extract the first word of "gcc", so it can be a program name with args.
! 4574: set dummy gcc; ac_word=$2
! 4575: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4576: $as_echo_n "checking for $ac_word... " >&6; }
! 4577: if ${ac_cv_prog_ac_ct_CC+:} false; then :
! 4578: $as_echo_n "(cached) " >&6
! 4579: else
! 4580: if test -n "$ac_ct_CC"; then
! 4581: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 4582: else
! 4583: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4584: for as_dir in $PATH
! 4585: do
! 4586: IFS=$as_save_IFS
! 4587: test -z "$as_dir" && as_dir=.
! 4588: for ac_exec_ext in '' $ac_executable_extensions; do
! 4589: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 4590: ac_cv_prog_ac_ct_CC="gcc"
! 4591: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4592: break 2
! 4593: fi
! 4594: done
! 4595: done
! 4596: IFS=$as_save_IFS
! 4597:
! 4598: fi
! 4599: fi
! 4600: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 4601: if test -n "$ac_ct_CC"; then
! 4602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 4603: $as_echo "$ac_ct_CC" >&6; }
! 4604: else
! 4605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4606: $as_echo "no" >&6; }
! 4607: fi
! 4608:
! 4609: if test "x$ac_ct_CC" = x; then
! 4610: CC=""
! 4611: else
! 4612: case $cross_compiling:$ac_tool_warned in
! 4613: yes:)
! 4614: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 4615: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 4616: ac_tool_warned=yes ;;
! 4617: esac
! 4618: CC=$ac_ct_CC
! 4619: fi
! 4620: else
! 4621: CC="$ac_cv_prog_CC"
! 4622: fi
! 4623:
! 4624: if test -z "$CC"; then
! 4625: if test -n "$ac_tool_prefix"; then
! 4626: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
! 4627: set dummy ${ac_tool_prefix}cc; ac_word=$2
! 4628: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4629: $as_echo_n "checking for $ac_word... " >&6; }
! 4630: if ${ac_cv_prog_CC+:} false; then :
! 4631: $as_echo_n "(cached) " >&6
! 4632: else
! 4633: if test -n "$CC"; then
! 4634: ac_cv_prog_CC="$CC" # Let the user override the test.
! 4635: else
! 4636: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4637: for as_dir in $PATH
! 4638: do
! 4639: IFS=$as_save_IFS
! 4640: test -z "$as_dir" && as_dir=.
! 4641: for ac_exec_ext in '' $ac_executable_extensions; do
! 4642: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 4643: ac_cv_prog_CC="${ac_tool_prefix}cc"
! 4644: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4645: break 2
! 4646: fi
! 4647: done
! 4648: done
! 4649: IFS=$as_save_IFS
! 4650:
! 4651: fi
! 4652: fi
! 4653: CC=$ac_cv_prog_CC
! 4654: if test -n "$CC"; then
! 4655: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 4656: $as_echo "$CC" >&6; }
! 4657: else
! 4658: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4659: $as_echo "no" >&6; }
! 4660: fi
! 4661:
! 4662:
! 4663: fi
! 4664: fi
! 4665: if test -z "$CC"; then
! 4666: # Extract the first word of "cc", so it can be a program name with args.
! 4667: set dummy cc; ac_word=$2
! 4668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4669: $as_echo_n "checking for $ac_word... " >&6; }
! 4670: if ${ac_cv_prog_CC+:} false; then :
! 4671: $as_echo_n "(cached) " >&6
! 4672: else
! 4673: if test -n "$CC"; then
! 4674: ac_cv_prog_CC="$CC" # Let the user override the test.
! 4675: else
! 4676: ac_prog_rejected=no
! 4677: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4678: for as_dir in $PATH
! 4679: do
! 4680: IFS=$as_save_IFS
! 4681: test -z "$as_dir" && as_dir=.
! 4682: for ac_exec_ext in '' $ac_executable_extensions; do
! 4683: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 4684: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
! 4685: ac_prog_rejected=yes
! 4686: continue
! 4687: fi
! 4688: ac_cv_prog_CC="cc"
! 4689: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4690: break 2
! 4691: fi
! 4692: done
! 4693: done
! 4694: IFS=$as_save_IFS
! 4695:
! 4696: if test $ac_prog_rejected = yes; then
! 4697: # We found a bogon in the path, so make sure we never use it.
! 4698: set dummy $ac_cv_prog_CC
! 4699: shift
! 4700: if test $# != 0; then
! 4701: # We chose a different compiler from the bogus one.
! 4702: # However, it has the same basename, so the bogon will be chosen
! 4703: # first if we set CC to just the basename; use the full file name.
! 4704: shift
! 4705: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
! 4706: fi
! 4707: fi
! 4708: fi
! 4709: fi
! 4710: CC=$ac_cv_prog_CC
! 4711: if test -n "$CC"; then
! 4712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 4713: $as_echo "$CC" >&6; }
! 4714: else
! 4715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4716: $as_echo "no" >&6; }
! 4717: fi
! 4718:
! 4719:
! 4720: fi
! 4721: if test -z "$CC"; then
! 4722: if test -n "$ac_tool_prefix"; then
! 4723: for ac_prog in cl.exe
! 4724: do
! 4725: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 4726: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 4727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4728: $as_echo_n "checking for $ac_word... " >&6; }
! 4729: if ${ac_cv_prog_CC+:} false; then :
! 4730: $as_echo_n "(cached) " >&6
! 4731: else
! 4732: if test -n "$CC"; then
! 4733: ac_cv_prog_CC="$CC" # Let the user override the test.
! 4734: else
! 4735: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4736: for as_dir in $PATH
! 4737: do
! 4738: IFS=$as_save_IFS
! 4739: test -z "$as_dir" && as_dir=.
! 4740: for ac_exec_ext in '' $ac_executable_extensions; do
! 4741: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 4742: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
! 4743: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4744: break 2
! 4745: fi
! 4746: done
! 4747: done
! 4748: IFS=$as_save_IFS
! 4749:
! 4750: fi
! 4751: fi
! 4752: CC=$ac_cv_prog_CC
! 4753: if test -n "$CC"; then
! 4754: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 4755: $as_echo "$CC" >&6; }
! 4756: else
! 4757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4758: $as_echo "no" >&6; }
! 4759: fi
! 4760:
! 4761:
! 4762: test -n "$CC" && break
! 4763: done
! 4764: fi
! 4765: if test -z "$CC"; then
! 4766: ac_ct_CC=$CC
! 4767: for ac_prog in cl.exe
! 4768: do
! 4769: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 4770: set dummy $ac_prog; ac_word=$2
! 4771: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4772: $as_echo_n "checking for $ac_word... " >&6; }
! 4773: if ${ac_cv_prog_ac_ct_CC+:} false; then :
! 4774: $as_echo_n "(cached) " >&6
! 4775: else
! 4776: if test -n "$ac_ct_CC"; then
! 4777: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 4778: else
! 4779: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4780: for as_dir in $PATH
! 4781: do
! 4782: IFS=$as_save_IFS
! 4783: test -z "$as_dir" && as_dir=.
! 4784: for ac_exec_ext in '' $ac_executable_extensions; do
! 4785: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 4786: ac_cv_prog_ac_ct_CC="$ac_prog"
! 4787: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 4788: break 2
! 4789: fi
! 4790: done
! 4791: done
! 4792: IFS=$as_save_IFS
! 4793:
! 4794: fi
! 4795: fi
! 4796: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 4797: if test -n "$ac_ct_CC"; then
! 4798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 4799: $as_echo "$ac_ct_CC" >&6; }
! 4800: else
! 4801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4802: $as_echo "no" >&6; }
! 4803: fi
! 4804:
! 4805:
! 4806: test -n "$ac_ct_CC" && break
! 4807: done
! 4808:
! 4809: if test "x$ac_ct_CC" = x; then
! 4810: CC=""
! 4811: else
! 4812: case $cross_compiling:$ac_tool_warned in
! 4813: yes:)
! 4814: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 4815: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 4816: ac_tool_warned=yes ;;
! 4817: esac
! 4818: CC=$ac_ct_CC
! 4819: fi
! 4820: fi
! 4821:
! 4822: fi
! 4823:
! 4824:
! 4825: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 4826: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 4827: as_fn_error $? "no acceptable C compiler found in \$PATH
! 4828: See \`config.log' for more details" "$LINENO" 5; }
! 4829:
! 4830: # Provide some information about the compiler.
! 4831: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
! 4832: set X $ac_compile
! 4833: ac_compiler=$2
! 4834: for ac_option in --version -v -V -qversion; do
! 4835: { { ac_try="$ac_compiler $ac_option >&5"
! 4836: case "(($ac_try" in
! 4837: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 4838: *) ac_try_echo=$ac_try;;
! 4839: esac
! 4840: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 4841: $as_echo "$ac_try_echo"; } >&5
! 4842: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
! 4843: ac_status=$?
! 4844: if test -s conftest.err; then
! 4845: sed '10a\
! 4846: ... rest of stderr output deleted ...
! 4847: 10q' conftest.err >conftest.er1
! 4848: cat conftest.er1 >&5
! 4849: fi
! 4850: rm -f conftest.er1 conftest.err
! 4851: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4852: test $ac_status = 0; }
! 4853: done
! 4854:
! 4855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
! 4856: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
! 4857: if ${ac_cv_c_compiler_gnu+:} false; then :
! 4858: $as_echo_n "(cached) " >&6
! 4859: else
! 4860: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4861: /* end confdefs.h. */
! 4862:
! 4863: int
! 4864: main ()
! 4865: {
! 4866: #ifndef __GNUC__
! 4867: choke me
! 4868: #endif
! 4869:
! 4870: ;
! 4871: return 0;
! 4872: }
! 4873: _ACEOF
! 4874: if ac_fn_c_try_compile "$LINENO"; then :
! 4875: ac_compiler_gnu=yes
! 4876: else
! 4877: ac_compiler_gnu=no
! 4878: fi
! 4879: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4880: ac_cv_c_compiler_gnu=$ac_compiler_gnu
! 4881:
! 4882: fi
! 4883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
! 4884: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
! 4885: if test $ac_compiler_gnu = yes; then
! 4886: GCC=yes
! 4887: else
! 4888: GCC=
! 4889: fi
! 4890: ac_test_CFLAGS=${CFLAGS+set}
! 4891: ac_save_CFLAGS=$CFLAGS
! 4892: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
! 4893: $as_echo_n "checking whether $CC accepts -g... " >&6; }
! 4894: if ${ac_cv_prog_cc_g+:} false; then :
! 4895: $as_echo_n "(cached) " >&6
! 4896: else
! 4897: ac_save_c_werror_flag=$ac_c_werror_flag
! 4898: ac_c_werror_flag=yes
! 4899: ac_cv_prog_cc_g=no
! 4900: CFLAGS="-g"
! 4901: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4902: /* end confdefs.h. */
! 4903:
! 4904: int
! 4905: main ()
! 4906: {
! 4907:
! 4908: ;
! 4909: return 0;
! 4910: }
! 4911: _ACEOF
! 4912: if ac_fn_c_try_compile "$LINENO"; then :
! 4913: ac_cv_prog_cc_g=yes
! 4914: else
! 4915: CFLAGS=""
! 4916: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4917: /* end confdefs.h. */
! 4918:
! 4919: int
! 4920: main ()
! 4921: {
! 4922:
! 4923: ;
! 4924: return 0;
! 4925: }
! 4926: _ACEOF
! 4927: if ac_fn_c_try_compile "$LINENO"; then :
! 4928:
! 4929: else
! 4930: ac_c_werror_flag=$ac_save_c_werror_flag
! 4931: CFLAGS="-g"
! 4932: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4933: /* end confdefs.h. */
! 4934:
! 4935: int
! 4936: main ()
! 4937: {
! 4938:
! 4939: ;
! 4940: return 0;
! 4941: }
! 4942: _ACEOF
! 4943: if ac_fn_c_try_compile "$LINENO"; then :
! 4944: ac_cv_prog_cc_g=yes
! 4945: fi
! 4946: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4947: fi
! 4948: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4949: fi
! 4950: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 4951: ac_c_werror_flag=$ac_save_c_werror_flag
! 4952: fi
! 4953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
! 4954: $as_echo "$ac_cv_prog_cc_g" >&6; }
! 4955: if test "$ac_test_CFLAGS" = set; then
! 4956: CFLAGS=$ac_save_CFLAGS
! 4957: elif test $ac_cv_prog_cc_g = yes; then
! 4958: if test "$GCC" = yes; then
! 4959: CFLAGS="-g -O2"
! 4960: else
! 4961: CFLAGS="-g"
! 4962: fi
! 4963: else
! 4964: if test "$GCC" = yes; then
! 4965: CFLAGS="-O2"
! 4966: else
! 4967: CFLAGS=
! 4968: fi
! 4969: fi
! 4970: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
! 4971: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
! 4972: if ${ac_cv_prog_cc_c89+:} false; then :
! 4973: $as_echo_n "(cached) " >&6
! 4974: else
! 4975: ac_cv_prog_cc_c89=no
! 4976: ac_save_CC=$CC
! 4977: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4978: /* end confdefs.h. */
! 4979: #include <stdarg.h>
! 4980: #include <stdio.h>
! 4981: struct stat;
! 4982: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
! 4983: struct buf { int x; };
! 4984: FILE * (*rcsopen) (struct buf *, struct stat *, int);
! 4985: static char *e (p, i)
! 4986: char **p;
! 4987: int i;
! 4988: {
! 4989: return p[i];
! 4990: }
! 4991: static char *f (char * (*g) (char **, int), char **p, ...)
! 4992: {
! 4993: char *s;
! 4994: va_list v;
! 4995: va_start (v,p);
! 4996: s = g (p, va_arg (v,int));
! 4997: va_end (v);
! 4998: return s;
! 4999: }
! 5000:
! 5001: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
! 5002: function prototypes and stuff, but not '\xHH' hex character constants.
! 5003: These don't provoke an error unfortunately, instead are silently treated
! 5004: as 'x'. The following induces an error, until -std is added to get
! 5005: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
! 5006: array size at least. It's necessary to write '\x00'==0 to get something
! 5007: that's true only with -std. */
! 5008: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
! 5009:
! 5010: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 5011: inside strings and character constants. */
! 5012: #define FOO(x) 'x'
! 5013: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
! 5014:
! 5015: int test (int i, double x);
! 5016: struct s1 {int (*f) (int a);};
! 5017: struct s2 {int (*f) (double a);};
! 5018: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
! 5019: int argc;
! 5020: char **argv;
! 5021: int
! 5022: main ()
! 5023: {
! 5024: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
! 5025: ;
! 5026: return 0;
! 5027: }
! 5028: _ACEOF
! 5029: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
! 5030: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
! 5031: do
! 5032: CC="$ac_save_CC $ac_arg"
! 5033: if ac_fn_c_try_compile "$LINENO"; then :
! 5034: ac_cv_prog_cc_c89=$ac_arg
! 5035: fi
! 5036: rm -f core conftest.err conftest.$ac_objext
! 5037: test "x$ac_cv_prog_cc_c89" != "xno" && break
! 5038: done
! 5039: rm -f conftest.$ac_ext
! 5040: CC=$ac_save_CC
! 5041:
! 5042: fi
! 5043: # AC_CACHE_VAL
! 5044: case "x$ac_cv_prog_cc_c89" in
! 5045: x)
! 5046: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 5047: $as_echo "none needed" >&6; } ;;
! 5048: xno)
! 5049: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 5050: $as_echo "unsupported" >&6; } ;;
! 5051: *)
! 5052: CC="$CC $ac_cv_prog_cc_c89"
! 5053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
! 5054: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
! 5055: esac
! 5056: if test "x$ac_cv_prog_cc_c89" != xno; then :
! 5057:
! 5058: fi
! 5059:
! 5060: ac_ext=c
! 5061: ac_cpp='$CPP $CPPFLAGS'
! 5062: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5063: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5064: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 5065:
! 5066: depcc="$CC" am_compiler_list=
! 5067:
! 5068: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
! 5069: $as_echo_n "checking dependency style of $depcc... " >&6; }
! 5070: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
! 5071: $as_echo_n "(cached) " >&6
! 5072: else
! 5073: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
! 5074: # We make a subdir and do the tests there. Otherwise we can end up
! 5075: # making bogus files that we don't know about and never remove. For
! 5076: # instance it was reported that on HP-UX the gcc test will end up
! 5077: # making a dummy file named 'D' -- because '-MD' means "put the output
! 5078: # in D".
! 5079: rm -rf conftest.dir
! 5080: mkdir conftest.dir
! 5081: # Copy depcomp to subdir because otherwise we won't find it if we're
! 5082: # using a relative directory.
! 5083: cp "$am_depcomp" conftest.dir
! 5084: cd conftest.dir
! 5085: # We will build objects and dependencies in a subdirectory because
! 5086: # it helps to detect inapplicable dependency modes. For instance
! 5087: # both Tru64's cc and ICC support -MD to output dependencies as a
! 5088: # side effect of compilation, but ICC will put the dependencies in
! 5089: # the current directory while Tru64 will put them in the object
! 5090: # directory.
! 5091: mkdir sub
! 5092:
! 5093: am_cv_CC_dependencies_compiler_type=none
! 5094: if test "$am_compiler_list" = ""; then
! 5095: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
! 5096: fi
! 5097: am__universal=false
! 5098: case " $depcc " in #(
! 5099: *\ -arch\ *\ -arch\ *) am__universal=true ;;
! 5100: esac
! 5101:
! 5102: for depmode in $am_compiler_list; do
! 5103: # Setup a source with many dependencies, because some compilers
! 5104: # like to wrap large dependency lists on column 80 (with \), and
! 5105: # we should not choose a depcomp mode which is confused by this.
! 5106: #
! 5107: # We need to recreate these files for each test, as the compiler may
! 5108: # overwrite some of them when testing with obscure command lines.
! 5109: # This happens at least with the AIX C compiler.
! 5110: : > sub/conftest.c
! 5111: for i in 1 2 3 4 5 6; do
! 5112: echo '#include "conftst'$i'.h"' >> sub/conftest.c
! 5113: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
! 5114: # Solaris 10 /bin/sh.
! 5115: echo '/* dummy */' > sub/conftst$i.h
! 5116: done
! 5117: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
! 5118:
! 5119: # We check with '-c' and '-o' for the sake of the "dashmstdout"
! 5120: # mode. It turns out that the SunPro C++ compiler does not properly
! 5121: # handle '-M -o', and we need to detect this. Also, some Intel
! 5122: # versions had trouble with output in subdirs.
! 5123: am__obj=sub/conftest.${OBJEXT-o}
! 5124: am__minus_obj="-o $am__obj"
! 5125: case $depmode in
! 5126: gcc)
! 5127: # This depmode causes a compiler race in universal mode.
! 5128: test "$am__universal" = false || continue
! 5129: ;;
! 5130: nosideeffect)
! 5131: # After this tag, mechanisms are not by side-effect, so they'll
! 5132: # only be used when explicitly requested.
! 5133: if test "x$enable_dependency_tracking" = xyes; then
! 5134: continue
! 5135: else
! 5136: break
! 5137: fi
! 5138: ;;
! 5139: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
! 5140: # This compiler won't grok '-c -o', but also, the minuso test has
! 5141: # not run yet. These depmodes are late enough in the game, and
! 5142: # so weak that their functioning should not be impacted.
! 5143: am__obj=conftest.${OBJEXT-o}
! 5144: am__minus_obj=
! 5145: ;;
! 5146: none) break ;;
! 5147: esac
! 5148: if depmode=$depmode \
! 5149: source=sub/conftest.c object=$am__obj \
! 5150: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
! 5151: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
! 5152: >/dev/null 2>conftest.err &&
! 5153: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
! 5154: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
! 5155: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
! 5156: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
! 5157: # icc doesn't choke on unknown options, it will just issue warnings
! 5158: # or remarks (even with -Werror). So we grep stderr for any message
! 5159: # that says an option was ignored or not supported.
! 5160: # When given -MP, icc 7.0 and 7.1 complain thusly:
! 5161: # icc: Command line warning: ignoring option '-M'; no argument required
! 5162: # The diagnosis changed in icc 8.0:
! 5163: # icc: Command line remark: option '-MP' not supported
! 5164: if (grep 'ignoring option' conftest.err ||
! 5165: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
! 5166: am_cv_CC_dependencies_compiler_type=$depmode
! 5167: break
! 5168: fi
! 5169: fi
! 5170: done
! 5171:
! 5172: cd ..
! 5173: rm -rf conftest.dir
! 5174: else
! 5175: am_cv_CC_dependencies_compiler_type=none
! 5176: fi
! 5177:
! 5178: fi
! 5179: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
! 5180: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
! 5181: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
! 5182:
! 5183: if
! 5184: test "x$enable_dependency_tracking" != xno \
! 5185: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
! 5186: am__fastdepCC_TRUE=
! 5187: am__fastdepCC_FALSE='#'
! 5188: else
! 5189: am__fastdepCC_TRUE='#'
! 5190: am__fastdepCC_FALSE=
! 5191: fi
! 5192:
! 5193:
! 5194: ac_ext=cpp
! 5195: ac_cpp='$CXXCPP $CPPFLAGS'
! 5196: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5197: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5198: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 5199: if test -z "$CXX"; then
! 5200: if test -n "$CCC"; then
! 5201: CXX=$CCC
! 5202: else
! 5203: if test -n "$ac_tool_prefix"; then
! 5204: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
! 5205: do
! 5206: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 5207: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 5208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5209: $as_echo_n "checking for $ac_word... " >&6; }
! 5210: if ${ac_cv_prog_CXX+:} false; then :
! 5211: $as_echo_n "(cached) " >&6
! 5212: else
! 5213: if test -n "$CXX"; then
! 5214: ac_cv_prog_CXX="$CXX" # Let the user override the test.
! 5215: else
! 5216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5217: for as_dir in $PATH
! 5218: do
! 5219: IFS=$as_save_IFS
! 5220: test -z "$as_dir" && as_dir=.
! 5221: for ac_exec_ext in '' $ac_executable_extensions; do
! 5222: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5223: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
! 5224: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5225: break 2
! 5226: fi
! 5227: done
! 5228: done
! 5229: IFS=$as_save_IFS
! 5230:
! 5231: fi
! 5232: fi
! 5233: CXX=$ac_cv_prog_CXX
! 5234: if test -n "$CXX"; then
! 5235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
! 5236: $as_echo "$CXX" >&6; }
! 5237: else
! 5238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5239: $as_echo "no" >&6; }
! 5240: fi
! 5241:
! 5242:
! 5243: test -n "$CXX" && break
! 5244: done
! 5245: fi
! 5246: if test -z "$CXX"; then
! 5247: ac_ct_CXX=$CXX
! 5248: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
! 5249: do
! 5250: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 5251: set dummy $ac_prog; ac_word=$2
! 5252: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5253: $as_echo_n "checking for $ac_word... " >&6; }
! 5254: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
! 5255: $as_echo_n "(cached) " >&6
! 5256: else
! 5257: if test -n "$ac_ct_CXX"; then
! 5258: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
! 5259: else
! 5260: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5261: for as_dir in $PATH
! 5262: do
! 5263: IFS=$as_save_IFS
! 5264: test -z "$as_dir" && as_dir=.
! 5265: for ac_exec_ext in '' $ac_executable_extensions; do
! 5266: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5267: ac_cv_prog_ac_ct_CXX="$ac_prog"
! 5268: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5269: break 2
! 5270: fi
! 5271: done
! 5272: done
! 5273: IFS=$as_save_IFS
! 5274:
! 5275: fi
! 5276: fi
! 5277: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
! 5278: if test -n "$ac_ct_CXX"; then
! 5279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
! 5280: $as_echo "$ac_ct_CXX" >&6; }
! 5281: else
! 5282: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5283: $as_echo "no" >&6; }
! 5284: fi
! 5285:
! 5286:
! 5287: test -n "$ac_ct_CXX" && break
! 5288: done
! 5289:
! 5290: if test "x$ac_ct_CXX" = x; then
! 5291: CXX="g++"
! 5292: else
! 5293: case $cross_compiling:$ac_tool_warned in
! 5294: yes:)
! 5295: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5296: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5297: ac_tool_warned=yes ;;
! 5298: esac
! 5299: CXX=$ac_ct_CXX
! 5300: fi
! 5301: fi
! 5302:
! 5303: fi
! 5304: fi
! 5305: # Provide some information about the compiler.
! 5306: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
! 5307: set X $ac_compile
! 5308: ac_compiler=$2
! 5309: for ac_option in --version -v -V -qversion; do
! 5310: { { ac_try="$ac_compiler $ac_option >&5"
! 5311: case "(($ac_try" in
! 5312: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.1 misho 5313: *) ac_try_echo=$ac_try;;
5314: esac
5315: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5316: $as_echo "$ac_try_echo"; } >&5
5317: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5318: ac_status=$?
5319: if test -s conftest.err; then
5320: sed '10a\
5321: ... rest of stderr output deleted ...
5322: 10q' conftest.err >conftest.er1
5323: cat conftest.er1 >&5
5324: fi
5325: rm -f conftest.er1 conftest.err
5326: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5327: test $ac_status = 0; }
5328: done
5329:
5330: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5331: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5332: if ${ac_cv_cxx_compiler_gnu+:} false; then :
5333: $as_echo_n "(cached) " >&6
5334: else
5335: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336: /* end confdefs.h. */
5337:
5338: int
5339: main ()
5340: {
5341: #ifndef __GNUC__
5342: choke me
5343: #endif
5344:
5345: ;
5346: return 0;
5347: }
5348: _ACEOF
5349: if ac_fn_cxx_try_compile "$LINENO"; then :
5350: ac_compiler_gnu=yes
5351: else
5352: ac_compiler_gnu=no
5353: fi
5354: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5356:
5357: fi
5358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5359: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5360: if test $ac_compiler_gnu = yes; then
5361: GXX=yes
5362: else
5363: GXX=
5364: fi
5365: ac_test_CXXFLAGS=${CXXFLAGS+set}
5366: ac_save_CXXFLAGS=$CXXFLAGS
5367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5368: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5369: if ${ac_cv_prog_cxx_g+:} false; then :
5370: $as_echo_n "(cached) " >&6
5371: else
5372: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5373: ac_cxx_werror_flag=yes
5374: ac_cv_prog_cxx_g=no
5375: CXXFLAGS="-g"
5376: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377: /* end confdefs.h. */
5378:
5379: int
5380: main ()
5381: {
5382:
5383: ;
5384: return 0;
5385: }
5386: _ACEOF
5387: if ac_fn_cxx_try_compile "$LINENO"; then :
5388: ac_cv_prog_cxx_g=yes
5389: else
5390: CXXFLAGS=""
5391: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392: /* end confdefs.h. */
5393:
5394: int
5395: main ()
5396: {
5397:
5398: ;
5399: return 0;
5400: }
5401: _ACEOF
5402: if ac_fn_cxx_try_compile "$LINENO"; then :
5403:
5404: else
5405: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5406: CXXFLAGS="-g"
5407: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408: /* end confdefs.h. */
5409:
5410: int
5411: main ()
5412: {
5413:
5414: ;
5415: return 0;
5416: }
5417: _ACEOF
5418: if ac_fn_cxx_try_compile "$LINENO"; then :
5419: ac_cv_prog_cxx_g=yes
5420: fi
5421: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422: fi
5423: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424: fi
5425: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5427: fi
5428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5429: $as_echo "$ac_cv_prog_cxx_g" >&6; }
5430: if test "$ac_test_CXXFLAGS" = set; then
5431: CXXFLAGS=$ac_save_CXXFLAGS
5432: elif test $ac_cv_prog_cxx_g = yes; then
5433: if test "$GXX" = yes; then
5434: CXXFLAGS="-g -O2"
5435: else
5436: CXXFLAGS="-g"
5437: fi
5438: else
5439: if test "$GXX" = yes; then
5440: CXXFLAGS="-O2"
5441: else
5442: CXXFLAGS=
5443: fi
5444: fi
5445: ac_ext=c
5446: ac_cpp='$CPP $CPPFLAGS'
5447: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5448: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5449: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5450:
5451: depcc="$CXX" am_compiler_list=
5452:
5453: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5454: $as_echo_n "checking dependency style of $depcc... " >&6; }
5455: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5456: $as_echo_n "(cached) " >&6
5457: else
5458: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5459: # We make a subdir and do the tests there. Otherwise we can end up
5460: # making bogus files that we don't know about and never remove. For
5461: # instance it was reported that on HP-UX the gcc test will end up
1.1.1.4 ! misho 5462: # making a dummy file named 'D' -- because '-MD' means "put the output
! 5463: # in D".
! 5464: rm -rf conftest.dir
1.1 misho 5465: mkdir conftest.dir
5466: # Copy depcomp to subdir because otherwise we won't find it if we're
5467: # using a relative directory.
5468: cp "$am_depcomp" conftest.dir
5469: cd conftest.dir
5470: # We will build objects and dependencies in a subdirectory because
5471: # it helps to detect inapplicable dependency modes. For instance
5472: # both Tru64's cc and ICC support -MD to output dependencies as a
5473: # side effect of compilation, but ICC will put the dependencies in
5474: # the current directory while Tru64 will put them in the object
5475: # directory.
5476: mkdir sub
5477:
5478: am_cv_CXX_dependencies_compiler_type=none
5479: if test "$am_compiler_list" = ""; then
5480: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5481: fi
5482: am__universal=false
5483: case " $depcc " in #(
5484: *\ -arch\ *\ -arch\ *) am__universal=true ;;
5485: esac
5486:
5487: for depmode in $am_compiler_list; do
5488: # Setup a source with many dependencies, because some compilers
5489: # like to wrap large dependency lists on column 80 (with \), and
5490: # we should not choose a depcomp mode which is confused by this.
5491: #
5492: # We need to recreate these files for each test, as the compiler may
5493: # overwrite some of them when testing with obscure command lines.
5494: # This happens at least with the AIX C compiler.
5495: : > sub/conftest.c
5496: for i in 1 2 3 4 5 6; do
5497: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.1.1.4 ! misho 5498: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
! 5499: # Solaris 10 /bin/sh.
! 5500: echo '/* dummy */' > sub/conftst$i.h
1.1 misho 5501: done
5502: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5503:
1.1.1.4 ! misho 5504: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.1 misho 5505: # mode. It turns out that the SunPro C++ compiler does not properly
1.1.1.4 ! misho 5506: # handle '-M -o', and we need to detect this. Also, some Intel
! 5507: # versions had trouble with output in subdirs.
1.1 misho 5508: am__obj=sub/conftest.${OBJEXT-o}
5509: am__minus_obj="-o $am__obj"
5510: case $depmode in
5511: gcc)
5512: # This depmode causes a compiler race in universal mode.
5513: test "$am__universal" = false || continue
5514: ;;
5515: nosideeffect)
1.1.1.4 ! misho 5516: # After this tag, mechanisms are not by side-effect, so they'll
! 5517: # only be used when explicitly requested.
1.1 misho 5518: if test "x$enable_dependency_tracking" = xyes; then
5519: continue
5520: else
5521: break
5522: fi
5523: ;;
1.1.1.4 ! misho 5524: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
! 5525: # This compiler won't grok '-c -o', but also, the minuso test has
1.1 misho 5526: # not run yet. These depmodes are late enough in the game, and
5527: # so weak that their functioning should not be impacted.
5528: am__obj=conftest.${OBJEXT-o}
5529: am__minus_obj=
5530: ;;
5531: none) break ;;
5532: esac
5533: if depmode=$depmode \
5534: source=sub/conftest.c object=$am__obj \
5535: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5536: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5537: >/dev/null 2>conftest.err &&
5538: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5539: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5540: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5541: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5542: # icc doesn't choke on unknown options, it will just issue warnings
5543: # or remarks (even with -Werror). So we grep stderr for any message
5544: # that says an option was ignored or not supported.
5545: # When given -MP, icc 7.0 and 7.1 complain thusly:
5546: # icc: Command line warning: ignoring option '-M'; no argument required
5547: # The diagnosis changed in icc 8.0:
5548: # icc: Command line remark: option '-MP' not supported
5549: if (grep 'ignoring option' conftest.err ||
5550: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5551: am_cv_CXX_dependencies_compiler_type=$depmode
5552: break
5553: fi
5554: fi
5555: done
5556:
5557: cd ..
5558: rm -rf conftest.dir
5559: else
5560: am_cv_CXX_dependencies_compiler_type=none
5561: fi
5562:
5563: fi
5564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5565: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5566: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5567:
5568: if
5569: test "x$enable_dependency_tracking" != xno \
5570: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5571: am__fastdepCXX_TRUE=
5572: am__fastdepCXX_FALSE='#'
5573: else
5574: am__fastdepCXX_TRUE='#'
5575: am__fastdepCXX_FALSE=
5576: fi
5577:
5578:
1.1.1.4 ! misho 5579: if test "x$CC" != xcc; then
! 5580: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
! 5581: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
! 5582: else
! 5583: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
! 5584: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
! 5585: fi
! 5586: set dummy $CC; ac_cc=`$as_echo "$2" |
! 5587: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
! 5588: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
! 5589: $as_echo_n "(cached) " >&6
! 5590: else
! 5591: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 5592: /* end confdefs.h. */
! 5593:
! 5594: int
! 5595: main ()
! 5596: {
! 5597:
! 5598: ;
! 5599: return 0;
! 5600: }
! 5601: _ACEOF
! 5602: # Make sure it works both with $CC and with simple cc.
! 5603: # We do the test twice because some compilers refuse to overwrite an
! 5604: # existing .o file with -o, though they will create one.
! 5605: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
! 5606: rm -f conftest2.*
! 5607: if { { case "(($ac_try" in
! 5608: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5609: *) ac_try_echo=$ac_try;;
! 5610: esac
! 5611: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 5612: $as_echo "$ac_try_echo"; } >&5
! 5613: (eval "$ac_try") 2>&5
! 5614: ac_status=$?
! 5615: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 5616: test $ac_status = 0; } &&
! 5617: test -f conftest2.$ac_objext && { { case "(($ac_try" in
! 5618: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5619: *) ac_try_echo=$ac_try;;
! 5620: esac
! 5621: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 5622: $as_echo "$ac_try_echo"; } >&5
! 5623: (eval "$ac_try") 2>&5
! 5624: ac_status=$?
! 5625: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 5626: test $ac_status = 0; };
! 5627: then
! 5628: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
! 5629: if test "x$CC" != xcc; then
! 5630: # Test first that cc exists at all.
! 5631: if { ac_try='cc -c conftest.$ac_ext >&5'
! 5632: { { case "(($ac_try" in
! 5633: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5634: *) ac_try_echo=$ac_try;;
! 5635: esac
! 5636: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 5637: $as_echo "$ac_try_echo"; } >&5
! 5638: (eval "$ac_try") 2>&5
! 5639: ac_status=$?
! 5640: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 5641: test $ac_status = 0; }; }; then
! 5642: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
! 5643: rm -f conftest2.*
! 5644: if { { case "(($ac_try" in
! 5645: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5646: *) ac_try_echo=$ac_try;;
! 5647: esac
! 5648: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 5649: $as_echo "$ac_try_echo"; } >&5
! 5650: (eval "$ac_try") 2>&5
! 5651: ac_status=$?
! 5652: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 5653: test $ac_status = 0; } &&
! 5654: test -f conftest2.$ac_objext && { { case "(($ac_try" in
! 5655: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 5656: *) ac_try_echo=$ac_try;;
! 5657: esac
! 5658: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 5659: $as_echo "$ac_try_echo"; } >&5
! 5660: (eval "$ac_try") 2>&5
! 5661: ac_status=$?
! 5662: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 5663: test $ac_status = 0; };
! 5664: then
! 5665: # cc works too.
! 5666: :
! 5667: else
! 5668: # cc exists but doesn't like -o.
! 5669: eval ac_cv_prog_cc_${ac_cc}_c_o=no
! 5670: fi
! 5671: fi
! 5672: fi
! 5673: else
! 5674: eval ac_cv_prog_cc_${ac_cc}_c_o=no
! 5675: fi
! 5676: rm -f core conftest*
! 5677:
! 5678: fi
! 5679: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
! 5680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 5681: $as_echo "yes" >&6; }
! 5682: else
! 5683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5684: $as_echo "no" >&6; }
! 5685:
! 5686: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
! 5687:
! 5688: fi
! 5689:
! 5690: # FIXME: we rely on the cache variable name because
! 5691: # there is no other way.
! 5692: set dummy $CC
! 5693: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
! 5694: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
! 5695: if test "$am_t" != yes; then
! 5696: # Losing compiler, so override with the script.
! 5697: # FIXME: It is wrong to rewrite CC.
! 5698: # But if we don't then we get into trouble of one sort or another.
! 5699: # A longer-term fix would be to have automake use am__CC in this case,
! 5700: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
! 5701: CC="$am_aux_dir/compile $CC"
! 5702: fi
! 5703:
! 5704:
1.1 misho 5705:
5706: if test "x$remember_set_CFLAGS" = "x"
5707: then
5708: if test "$CFLAGS" = "-g -O2"
5709: then
5710: CFLAGS="-O2"
5711: elif test "$CFLAGS" = "-g"
5712: then
5713: CFLAGS=""
5714: fi
5715: fi
5716:
5717: if test "x$remember_set_CXXFLAGS" = "x"
5718: then
5719: if test "$CXXFLAGS" = "-g -O2"
5720: then
5721: CXXFLAGS="-O2"
5722: elif test "$CXXFLAGS" = "-g"
5723: then
5724: CXXFLAGS=""
5725: fi
5726: fi
5727:
5728: # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
5729: # Check for that case, and just disable c++ code if g++ doesn't run.
5730: ac_ext=cpp
5731: ac_cpp='$CXXCPP $CPPFLAGS'
5732: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5733: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5734: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5735:
5736:
5737: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738: /* end confdefs.h. */
5739:
5740: int
5741: main ()
5742: {
5743:
5744: ;
5745: return 0;
5746: }
5747: _ACEOF
5748: if ac_fn_cxx_try_compile "$LINENO"; then :
5749:
5750: else
5751: CXX=""; CXXCP=""; CXXFLAGS=""
5752: fi
5753: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5754: ac_ext=c
5755: ac_cpp='$CPP $CPPFLAGS'
5756: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5759:
5760:
5761: # Check for a 64-bit integer type
5762: ac_ext=c
5763: ac_cpp='$CPP $CPPFLAGS'
5764: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5767: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5768: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5769: # On Suns, sometimes $CPP names a directory.
5770: if test -n "$CPP" && test -d "$CPP"; then
5771: CPP=
5772: fi
5773: if test -z "$CPP"; then
5774: if ${ac_cv_prog_CPP+:} false; then :
5775: $as_echo_n "(cached) " >&6
5776: else
5777: # Double quotes because CPP needs to be expanded
5778: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5779: do
5780: ac_preproc_ok=false
5781: for ac_c_preproc_warn_flag in '' yes
5782: do
5783: # Use a header file that comes with gcc, so configuring glibc
5784: # with a fresh cross-compiler works.
5785: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786: # <limits.h> exists even on freestanding compilers.
5787: # On the NeXT, cc -E runs the code through the compiler's parser,
5788: # not just through cpp. "Syntax error" is here to catch this case.
5789: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790: /* end confdefs.h. */
5791: #ifdef __STDC__
5792: # include <limits.h>
5793: #else
5794: # include <assert.h>
5795: #endif
5796: Syntax error
5797: _ACEOF
5798: if ac_fn_c_try_cpp "$LINENO"; then :
5799:
5800: else
5801: # Broken: fails on valid input.
5802: continue
5803: fi
5804: rm -f conftest.err conftest.i conftest.$ac_ext
5805:
5806: # OK, works on sane cases. Now check whether nonexistent headers
5807: # can be detected and how.
5808: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809: /* end confdefs.h. */
5810: #include <ac_nonexistent.h>
5811: _ACEOF
5812: if ac_fn_c_try_cpp "$LINENO"; then :
5813: # Broken: success on invalid input.
5814: continue
5815: else
5816: # Passes both tests.
5817: ac_preproc_ok=:
5818: break
5819: fi
5820: rm -f conftest.err conftest.i conftest.$ac_ext
5821:
5822: done
5823: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5824: rm -f conftest.i conftest.err conftest.$ac_ext
5825: if $ac_preproc_ok; then :
5826: break
5827: fi
5828:
5829: done
5830: ac_cv_prog_CPP=$CPP
5831:
5832: fi
5833: CPP=$ac_cv_prog_CPP
5834: else
5835: ac_cv_prog_CPP=$CPP
5836: fi
5837: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5838: $as_echo "$CPP" >&6; }
5839: ac_preproc_ok=false
5840: for ac_c_preproc_warn_flag in '' yes
5841: do
5842: # Use a header file that comes with gcc, so configuring glibc
5843: # with a fresh cross-compiler works.
5844: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5845: # <limits.h> exists even on freestanding compilers.
5846: # On the NeXT, cc -E runs the code through the compiler's parser,
5847: # not just through cpp. "Syntax error" is here to catch this case.
5848: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849: /* end confdefs.h. */
5850: #ifdef __STDC__
5851: # include <limits.h>
5852: #else
5853: # include <assert.h>
5854: #endif
5855: Syntax error
5856: _ACEOF
5857: if ac_fn_c_try_cpp "$LINENO"; then :
5858:
5859: else
5860: # Broken: fails on valid input.
5861: continue
5862: fi
5863: rm -f conftest.err conftest.i conftest.$ac_ext
5864:
5865: # OK, works on sane cases. Now check whether nonexistent headers
5866: # can be detected and how.
5867: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868: /* end confdefs.h. */
5869: #include <ac_nonexistent.h>
5870: _ACEOF
5871: if ac_fn_c_try_cpp "$LINENO"; then :
5872: # Broken: success on invalid input.
5873: continue
5874: else
5875: # Passes both tests.
5876: ac_preproc_ok=:
5877: break
5878: fi
5879: rm -f conftest.err conftest.i conftest.$ac_ext
5880:
5881: done
5882: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5883: rm -f conftest.i conftest.err conftest.$ac_ext
5884: if $ac_preproc_ok; then :
5885:
5886: else
5887: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5888: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5889: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5890: See \`config.log' for more details" "$LINENO" 5; }
5891: fi
5892:
5893: ac_ext=c
5894: ac_cpp='$CPP $CPPFLAGS'
5895: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5896: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5897: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5898:
5899:
5900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5901: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5902: if ${ac_cv_path_GREP+:} false; then :
5903: $as_echo_n "(cached) " >&6
5904: else
5905: if test -z "$GREP"; then
5906: ac_path_GREP_found=false
5907: # Loop through the user's path and test for each of PROGNAME-LIST
5908: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5910: do
5911: IFS=$as_save_IFS
5912: test -z "$as_dir" && as_dir=.
5913: for ac_prog in grep ggrep; do
5914: for ac_exec_ext in '' $ac_executable_extensions; do
5915: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.4 ! misho 5916: as_fn_executable_p "$ac_path_GREP" || continue
1.1 misho 5917: # Check for GNU ac_path_GREP and select it if it is found.
5918: # Check for GNU $ac_path_GREP
5919: case `"$ac_path_GREP" --version 2>&1` in
5920: *GNU*)
5921: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5922: *)
5923: ac_count=0
5924: $as_echo_n 0123456789 >"conftest.in"
5925: while :
5926: do
5927: cat "conftest.in" "conftest.in" >"conftest.tmp"
5928: mv "conftest.tmp" "conftest.in"
5929: cp "conftest.in" "conftest.nl"
5930: $as_echo 'GREP' >> "conftest.nl"
5931: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5932: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5933: as_fn_arith $ac_count + 1 && ac_count=$as_val
5934: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5935: # Best one so far, save it but keep looking for a better one
5936: ac_cv_path_GREP="$ac_path_GREP"
5937: ac_path_GREP_max=$ac_count
5938: fi
5939: # 10*(2^10) chars as input seems more than enough
5940: test $ac_count -gt 10 && break
5941: done
5942: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5943: esac
5944:
5945: $ac_path_GREP_found && break 3
5946: done
5947: done
5948: done
5949: IFS=$as_save_IFS
5950: if test -z "$ac_cv_path_GREP"; then
5951: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5952: fi
5953: else
5954: ac_cv_path_GREP=$GREP
5955: fi
5956:
5957: fi
5958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5959: $as_echo "$ac_cv_path_GREP" >&6; }
5960: GREP="$ac_cv_path_GREP"
5961:
5962:
5963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5964: $as_echo_n "checking for egrep... " >&6; }
5965: if ${ac_cv_path_EGREP+:} false; then :
5966: $as_echo_n "(cached) " >&6
5967: else
5968: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5969: then ac_cv_path_EGREP="$GREP -E"
5970: else
5971: if test -z "$EGREP"; then
5972: ac_path_EGREP_found=false
5973: # Loop through the user's path and test for each of PROGNAME-LIST
5974: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5976: do
5977: IFS=$as_save_IFS
5978: test -z "$as_dir" && as_dir=.
5979: for ac_prog in egrep; do
5980: for ac_exec_ext in '' $ac_executable_extensions; do
5981: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.4 ! misho 5982: as_fn_executable_p "$ac_path_EGREP" || continue
1.1 misho 5983: # Check for GNU ac_path_EGREP and select it if it is found.
5984: # Check for GNU $ac_path_EGREP
5985: case `"$ac_path_EGREP" --version 2>&1` in
5986: *GNU*)
5987: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5988: *)
5989: ac_count=0
5990: $as_echo_n 0123456789 >"conftest.in"
5991: while :
5992: do
5993: cat "conftest.in" "conftest.in" >"conftest.tmp"
5994: mv "conftest.tmp" "conftest.in"
5995: cp "conftest.in" "conftest.nl"
5996: $as_echo 'EGREP' >> "conftest.nl"
5997: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5998: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5999: as_fn_arith $ac_count + 1 && ac_count=$as_val
6000: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6001: # Best one so far, save it but keep looking for a better one
6002: ac_cv_path_EGREP="$ac_path_EGREP"
6003: ac_path_EGREP_max=$ac_count
6004: fi
6005: # 10*(2^10) chars as input seems more than enough
6006: test $ac_count -gt 10 && break
6007: done
6008: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6009: esac
6010:
6011: $ac_path_EGREP_found && break 3
6012: done
6013: done
6014: done
6015: IFS=$as_save_IFS
6016: if test -z "$ac_cv_path_EGREP"; then
6017: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6018: fi
6019: else
6020: ac_cv_path_EGREP=$EGREP
6021: fi
6022:
6023: fi
6024: fi
6025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6026: $as_echo "$ac_cv_path_EGREP" >&6; }
6027: EGREP="$ac_cv_path_EGREP"
6028:
6029:
6030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6031: $as_echo_n "checking for ANSI C header files... " >&6; }
6032: if ${ac_cv_header_stdc+:} false; then :
6033: $as_echo_n "(cached) " >&6
6034: else
6035: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036: /* end confdefs.h. */
6037: #include <stdlib.h>
6038: #include <stdarg.h>
6039: #include <string.h>
6040: #include <float.h>
6041:
6042: int
6043: main ()
6044: {
6045:
6046: ;
6047: return 0;
6048: }
6049: _ACEOF
6050: if ac_fn_c_try_compile "$LINENO"; then :
6051: ac_cv_header_stdc=yes
6052: else
6053: ac_cv_header_stdc=no
6054: fi
6055: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056:
6057: if test $ac_cv_header_stdc = yes; then
6058: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6059: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060: /* end confdefs.h. */
6061: #include <string.h>
6062:
6063: _ACEOF
6064: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065: $EGREP "memchr" >/dev/null 2>&1; then :
6066:
6067: else
6068: ac_cv_header_stdc=no
6069: fi
6070: rm -f conftest*
6071:
6072: fi
6073:
6074: if test $ac_cv_header_stdc = yes; then
6075: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6076: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077: /* end confdefs.h. */
6078: #include <stdlib.h>
6079:
6080: _ACEOF
6081: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6082: $EGREP "free" >/dev/null 2>&1; then :
6083:
6084: else
6085: ac_cv_header_stdc=no
6086: fi
6087: rm -f conftest*
6088:
6089: fi
6090:
6091: if test $ac_cv_header_stdc = yes; then
6092: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6093: if test "$cross_compiling" = yes; then :
6094: :
6095: else
6096: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097: /* end confdefs.h. */
6098: #include <ctype.h>
6099: #include <stdlib.h>
6100: #if ((' ' & 0x0FF) == 0x020)
6101: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6102: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6103: #else
6104: # define ISLOWER(c) \
6105: (('a' <= (c) && (c) <= 'i') \
6106: || ('j' <= (c) && (c) <= 'r') \
6107: || ('s' <= (c) && (c) <= 'z'))
6108: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6109: #endif
6110:
6111: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6112: int
6113: main ()
6114: {
6115: int i;
6116: for (i = 0; i < 256; i++)
6117: if (XOR (islower (i), ISLOWER (i))
6118: || toupper (i) != TOUPPER (i))
6119: return 2;
6120: return 0;
6121: }
6122: _ACEOF
6123: if ac_fn_c_try_run "$LINENO"; then :
6124:
6125: else
6126: ac_cv_header_stdc=no
6127: fi
6128: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6129: conftest.$ac_objext conftest.beam conftest.$ac_ext
6130: fi
6131:
6132: fi
6133: fi
6134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6135: $as_echo "$ac_cv_header_stdc" >&6; }
6136: if test $ac_cv_header_stdc = yes; then
6137:
6138: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6139:
6140: fi
6141:
6142: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6143: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6144: inttypes.h stdint.h unistd.h
6145: do :
6146: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6147: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6148: "
6149: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6150: cat >>confdefs.h <<_ACEOF
6151: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6152: _ACEOF
6153:
6154: fi
6155:
6156: done
6157:
6158:
6159: ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
6160: case $ac_cv_c_int64_t in #(
6161: no|yes) ;; #(
6162: *)
6163:
6164: cat >>confdefs.h <<_ACEOF
6165: #define int64_t $ac_cv_c_int64_t
6166: _ACEOF
6167: ;;
6168: esac
6169:
6170:
6171:
6172: # Make sure we can run config.sub.
6173: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6174: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6175:
6176: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6177: $as_echo_n "checking build system type... " >&6; }
6178: if ${ac_cv_build+:} false; then :
6179: $as_echo_n "(cached) " >&6
6180: else
6181: ac_build_alias=$build_alias
6182: test "x$ac_build_alias" = x &&
6183: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6184: test "x$ac_build_alias" = x &&
6185: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6186: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6187: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6188:
6189: fi
6190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6191: $as_echo "$ac_cv_build" >&6; }
6192: case $ac_cv_build in
6193: *-*-*) ;;
6194: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6195: esac
6196: build=$ac_cv_build
6197: ac_save_IFS=$IFS; IFS='-'
6198: set x $ac_cv_build
6199: shift
6200: build_cpu=$1
6201: build_vendor=$2
6202: shift; shift
6203: # Remember, the first character of IFS is used to create $*,
6204: # except with old shells:
6205: build_os=$*
6206: IFS=$ac_save_IFS
6207: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6208:
6209:
6210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6211: $as_echo_n "checking host system type... " >&6; }
6212: if ${ac_cv_host+:} false; then :
6213: $as_echo_n "(cached) " >&6
6214: else
6215: if test "x$host_alias" = x; then
6216: ac_cv_host=$ac_cv_build
6217: else
6218: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6219: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6220: fi
6221:
6222: fi
6223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6224: $as_echo "$ac_cv_host" >&6; }
6225: case $ac_cv_host in
6226: *-*-*) ;;
6227: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6228: esac
6229: host=$ac_cv_host
6230: ac_save_IFS=$IFS; IFS='-'
6231: set x $ac_cv_host
6232: shift
6233: host_cpu=$1
6234: host_vendor=$2
6235: shift; shift
6236: # Remember, the first character of IFS is used to create $*,
6237: # except with old shells:
6238: host_os=$*
6239: IFS=$ac_save_IFS
6240: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6241:
6242:
6243: enable_win32_dll=yes
6244:
6245: case $host in
6246: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6247: if test -n "$ac_tool_prefix"; then
6248: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6249: set dummy ${ac_tool_prefix}as; ac_word=$2
6250: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251: $as_echo_n "checking for $ac_word... " >&6; }
6252: if ${ac_cv_prog_AS+:} false; then :
6253: $as_echo_n "(cached) " >&6
6254: else
6255: if test -n "$AS"; then
6256: ac_cv_prog_AS="$AS" # Let the user override the test.
6257: else
6258: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259: for as_dir in $PATH
6260: do
6261: IFS=$as_save_IFS
6262: test -z "$as_dir" && as_dir=.
6263: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 6264: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6265: ac_cv_prog_AS="${ac_tool_prefix}as"
6266: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267: break 2
6268: fi
6269: done
6270: done
6271: IFS=$as_save_IFS
6272:
6273: fi
6274: fi
6275: AS=$ac_cv_prog_AS
6276: if test -n "$AS"; then
6277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6278: $as_echo "$AS" >&6; }
6279: else
6280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281: $as_echo "no" >&6; }
6282: fi
6283:
6284:
6285: fi
6286: if test -z "$ac_cv_prog_AS"; then
6287: ac_ct_AS=$AS
6288: # Extract the first word of "as", so it can be a program name with args.
6289: set dummy as; ac_word=$2
6290: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291: $as_echo_n "checking for $ac_word... " >&6; }
6292: if ${ac_cv_prog_ac_ct_AS+:} false; then :
6293: $as_echo_n "(cached) " >&6
6294: else
6295: if test -n "$ac_ct_AS"; then
6296: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6297: else
6298: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299: for as_dir in $PATH
6300: do
6301: IFS=$as_save_IFS
6302: test -z "$as_dir" && as_dir=.
6303: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 6304: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6305: ac_cv_prog_ac_ct_AS="as"
6306: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307: break 2
6308: fi
6309: done
6310: done
6311: IFS=$as_save_IFS
6312:
6313: fi
6314: fi
6315: ac_ct_AS=$ac_cv_prog_ac_ct_AS
6316: if test -n "$ac_ct_AS"; then
6317: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6318: $as_echo "$ac_ct_AS" >&6; }
6319: else
6320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321: $as_echo "no" >&6; }
6322: fi
6323:
6324: if test "x$ac_ct_AS" = x; then
6325: AS="false"
6326: else
6327: case $cross_compiling:$ac_tool_warned in
6328: yes:)
6329: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331: ac_tool_warned=yes ;;
6332: esac
6333: AS=$ac_ct_AS
6334: fi
6335: else
6336: AS="$ac_cv_prog_AS"
6337: fi
6338:
6339: if test -n "$ac_tool_prefix"; then
6340: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6341: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6342: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343: $as_echo_n "checking for $ac_word... " >&6; }
6344: if ${ac_cv_prog_DLLTOOL+:} false; then :
6345: $as_echo_n "(cached) " >&6
6346: else
6347: if test -n "$DLLTOOL"; then
6348: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6349: else
6350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351: for as_dir in $PATH
6352: do
6353: IFS=$as_save_IFS
6354: test -z "$as_dir" && as_dir=.
6355: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 6356: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6357: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6358: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359: break 2
6360: fi
6361: done
6362: done
6363: IFS=$as_save_IFS
6364:
6365: fi
6366: fi
6367: DLLTOOL=$ac_cv_prog_DLLTOOL
6368: if test -n "$DLLTOOL"; then
6369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6370: $as_echo "$DLLTOOL" >&6; }
6371: else
6372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373: $as_echo "no" >&6; }
6374: fi
6375:
6376:
6377: fi
6378: if test -z "$ac_cv_prog_DLLTOOL"; then
6379: ac_ct_DLLTOOL=$DLLTOOL
6380: # Extract the first word of "dlltool", so it can be a program name with args.
6381: set dummy dlltool; ac_word=$2
6382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383: $as_echo_n "checking for $ac_word... " >&6; }
6384: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6385: $as_echo_n "(cached) " >&6
6386: else
6387: if test -n "$ac_ct_DLLTOOL"; then
6388: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6389: else
6390: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391: for as_dir in $PATH
6392: do
6393: IFS=$as_save_IFS
6394: test -z "$as_dir" && as_dir=.
6395: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 6396: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6397: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6398: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399: break 2
6400: fi
6401: done
6402: done
6403: IFS=$as_save_IFS
6404:
6405: fi
6406: fi
6407: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6408: if test -n "$ac_ct_DLLTOOL"; then
6409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6410: $as_echo "$ac_ct_DLLTOOL" >&6; }
6411: else
6412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413: $as_echo "no" >&6; }
6414: fi
6415:
6416: if test "x$ac_ct_DLLTOOL" = x; then
6417: DLLTOOL="false"
6418: else
6419: case $cross_compiling:$ac_tool_warned in
6420: yes:)
6421: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6422: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6423: ac_tool_warned=yes ;;
6424: esac
6425: DLLTOOL=$ac_ct_DLLTOOL
6426: fi
6427: else
6428: DLLTOOL="$ac_cv_prog_DLLTOOL"
6429: fi
6430:
6431: if test -n "$ac_tool_prefix"; then
6432: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6433: set dummy ${ac_tool_prefix}objdump; ac_word=$2
6434: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435: $as_echo_n "checking for $ac_word... " >&6; }
6436: if ${ac_cv_prog_OBJDUMP+:} false; then :
6437: $as_echo_n "(cached) " >&6
6438: else
6439: if test -n "$OBJDUMP"; then
6440: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6441: else
6442: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443: for as_dir in $PATH
6444: do
6445: IFS=$as_save_IFS
6446: test -z "$as_dir" && as_dir=.
6447: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 6448: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6449: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6450: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451: break 2
6452: fi
6453: done
6454: done
6455: IFS=$as_save_IFS
6456:
6457: fi
6458: fi
6459: OBJDUMP=$ac_cv_prog_OBJDUMP
6460: if test -n "$OBJDUMP"; then
6461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6462: $as_echo "$OBJDUMP" >&6; }
6463: else
6464: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465: $as_echo "no" >&6; }
6466: fi
6467:
6468:
6469: fi
6470: if test -z "$ac_cv_prog_OBJDUMP"; then
6471: ac_ct_OBJDUMP=$OBJDUMP
6472: # Extract the first word of "objdump", so it can be a program name with args.
6473: set dummy objdump; ac_word=$2
6474: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6475: $as_echo_n "checking for $ac_word... " >&6; }
6476: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6477: $as_echo_n "(cached) " >&6
6478: else
6479: if test -n "$ac_ct_OBJDUMP"; then
6480: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6481: else
6482: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483: for as_dir in $PATH
6484: do
6485: IFS=$as_save_IFS
6486: test -z "$as_dir" && as_dir=.
6487: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 6488: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6489: ac_cv_prog_ac_ct_OBJDUMP="objdump"
6490: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491: break 2
6492: fi
6493: done
6494: done
6495: IFS=$as_save_IFS
6496:
6497: fi
6498: fi
6499: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6500: if test -n "$ac_ct_OBJDUMP"; then
6501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6502: $as_echo "$ac_ct_OBJDUMP" >&6; }
6503: else
6504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6505: $as_echo "no" >&6; }
6506: fi
6507:
6508: if test "x$ac_ct_OBJDUMP" = x; then
6509: OBJDUMP="false"
6510: else
6511: case $cross_compiling:$ac_tool_warned in
6512: yes:)
6513: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6514: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6515: ac_tool_warned=yes ;;
6516: esac
6517: OBJDUMP=$ac_ct_OBJDUMP
6518: fi
6519: else
6520: OBJDUMP="$ac_cv_prog_OBJDUMP"
6521: fi
6522:
6523: ;;
6524: esac
6525:
6526: test -z "$AS" && AS=as
6527:
6528:
6529:
6530:
6531:
6532: test -z "$DLLTOOL" && DLLTOOL=dlltool
6533:
6534:
6535:
6536:
6537:
6538: test -z "$OBJDUMP" && OBJDUMP=objdump
6539:
6540:
6541:
6542:
6543:
6544:
6545:
6546: case `pwd` in
6547: *\ * | *\ *)
6548: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6549: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6550: esac
6551:
6552:
6553:
1.1.1.4 ! misho 6554: macro_version='2.4.2'
! 6555: macro_revision='1.3337'
1.1 misho 6556:
6557:
6558:
6559:
6560:
6561:
6562:
6563:
6564:
6565:
6566:
6567:
6568:
6569: ltmain="$ac_aux_dir/ltmain.sh"
6570:
6571: # Backslashify metacharacters that are still active within
6572: # double-quoted strings.
6573: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6574:
6575: # Same as above, but do not quote variable references.
6576: double_quote_subst='s/\(["`\\]\)/\\\1/g'
6577:
6578: # Sed substitution to delay expansion of an escaped shell variable in a
6579: # double_quote_subst'ed string.
6580: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6581:
6582: # Sed substitution to delay expansion of an escaped single quote.
6583: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6584:
6585: # Sed substitution to avoid accidental globbing in evaled expressions
6586: no_glob_subst='s/\*/\\\*/g'
6587:
6588: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6589: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6590: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6591:
6592: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6593: $as_echo_n "checking how to print strings... " >&6; }
6594: # Test print first, because it will be a builtin if present.
6595: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6596: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6597: ECHO='print -r --'
6598: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6599: ECHO='printf %s\n'
6600: else
6601: # Use this function as a fallback that always works.
6602: func_fallback_echo ()
6603: {
6604: eval 'cat <<_LTECHO_EOF
6605: $1
6606: _LTECHO_EOF'
6607: }
6608: ECHO='func_fallback_echo'
6609: fi
6610:
6611: # func_echo_all arg...
6612: # Invoke $ECHO with all args, space-separated.
6613: func_echo_all ()
6614: {
6615: $ECHO ""
6616: }
6617:
6618: case "$ECHO" in
6619: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6620: $as_echo "printf" >&6; } ;;
6621: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6622: $as_echo "print -r" >&6; } ;;
6623: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6624: $as_echo "cat" >&6; } ;;
6625: esac
6626:
6627:
6628:
6629:
6630:
6631:
6632:
6633:
6634:
6635:
6636:
6637:
6638:
6639:
6640: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6641: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6642: if ${ac_cv_path_SED+:} false; then :
6643: $as_echo_n "(cached) " >&6
6644: else
6645: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6646: for ac_i in 1 2 3 4 5 6 7; do
6647: ac_script="$ac_script$as_nl$ac_script"
6648: done
6649: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6650: { ac_script=; unset ac_script;}
6651: if test -z "$SED"; then
6652: ac_path_SED_found=false
6653: # Loop through the user's path and test for each of PROGNAME-LIST
6654: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655: for as_dir in $PATH
6656: do
6657: IFS=$as_save_IFS
6658: test -z "$as_dir" && as_dir=.
6659: for ac_prog in sed gsed; do
6660: for ac_exec_ext in '' $ac_executable_extensions; do
6661: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.4 ! misho 6662: as_fn_executable_p "$ac_path_SED" || continue
1.1 misho 6663: # Check for GNU ac_path_SED and select it if it is found.
6664: # Check for GNU $ac_path_SED
6665: case `"$ac_path_SED" --version 2>&1` in
6666: *GNU*)
6667: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6668: *)
6669: ac_count=0
6670: $as_echo_n 0123456789 >"conftest.in"
6671: while :
6672: do
6673: cat "conftest.in" "conftest.in" >"conftest.tmp"
6674: mv "conftest.tmp" "conftest.in"
6675: cp "conftest.in" "conftest.nl"
6676: $as_echo '' >> "conftest.nl"
6677: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6678: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6679: as_fn_arith $ac_count + 1 && ac_count=$as_val
6680: if test $ac_count -gt ${ac_path_SED_max-0}; then
6681: # Best one so far, save it but keep looking for a better one
6682: ac_cv_path_SED="$ac_path_SED"
6683: ac_path_SED_max=$ac_count
6684: fi
6685: # 10*(2^10) chars as input seems more than enough
6686: test $ac_count -gt 10 && break
6687: done
6688: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6689: esac
6690:
6691: $ac_path_SED_found && break 3
6692: done
6693: done
6694: done
6695: IFS=$as_save_IFS
6696: if test -z "$ac_cv_path_SED"; then
6697: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6698: fi
6699: else
6700: ac_cv_path_SED=$SED
6701: fi
6702:
6703: fi
6704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6705: $as_echo "$ac_cv_path_SED" >&6; }
6706: SED="$ac_cv_path_SED"
6707: rm -f conftest.sed
6708:
6709: test -z "$SED" && SED=sed
6710: Xsed="$SED -e 1s/^X//"
6711:
6712:
6713:
6714:
6715:
6716:
6717:
6718:
6719:
6720:
6721:
6722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6723: $as_echo_n "checking for fgrep... " >&6; }
6724: if ${ac_cv_path_FGREP+:} false; then :
6725: $as_echo_n "(cached) " >&6
6726: else
6727: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6728: then ac_cv_path_FGREP="$GREP -F"
6729: else
6730: if test -z "$FGREP"; then
6731: ac_path_FGREP_found=false
6732: # Loop through the user's path and test for each of PROGNAME-LIST
6733: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6735: do
6736: IFS=$as_save_IFS
6737: test -z "$as_dir" && as_dir=.
6738: for ac_prog in fgrep; do
6739: for ac_exec_ext in '' $ac_executable_extensions; do
6740: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
1.1.1.4 ! misho 6741: as_fn_executable_p "$ac_path_FGREP" || continue
1.1 misho 6742: # Check for GNU ac_path_FGREP and select it if it is found.
6743: # Check for GNU $ac_path_FGREP
6744: case `"$ac_path_FGREP" --version 2>&1` in
6745: *GNU*)
6746: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6747: *)
6748: ac_count=0
6749: $as_echo_n 0123456789 >"conftest.in"
6750: while :
6751: do
6752: cat "conftest.in" "conftest.in" >"conftest.tmp"
6753: mv "conftest.tmp" "conftest.in"
6754: cp "conftest.in" "conftest.nl"
6755: $as_echo 'FGREP' >> "conftest.nl"
6756: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6757: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6758: as_fn_arith $ac_count + 1 && ac_count=$as_val
6759: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6760: # Best one so far, save it but keep looking for a better one
6761: ac_cv_path_FGREP="$ac_path_FGREP"
6762: ac_path_FGREP_max=$ac_count
6763: fi
6764: # 10*(2^10) chars as input seems more than enough
6765: test $ac_count -gt 10 && break
6766: done
6767: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6768: esac
6769:
6770: $ac_path_FGREP_found && break 3
6771: done
6772: done
6773: done
6774: IFS=$as_save_IFS
6775: if test -z "$ac_cv_path_FGREP"; then
6776: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6777: fi
6778: else
6779: ac_cv_path_FGREP=$FGREP
6780: fi
6781:
6782: fi
6783: fi
6784: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6785: $as_echo "$ac_cv_path_FGREP" >&6; }
6786: FGREP="$ac_cv_path_FGREP"
6787:
6788:
6789: test -z "$GREP" && GREP=grep
6790:
6791:
6792:
6793:
6794:
6795:
6796:
6797:
6798:
6799:
6800:
6801:
6802:
6803:
6804:
6805:
6806:
6807:
6808:
6809: # Check whether --with-gnu-ld was given.
6810: if test "${with_gnu_ld+set}" = set; then :
6811: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6812: else
6813: with_gnu_ld=no
6814: fi
6815:
6816: ac_prog=ld
6817: if test "$GCC" = yes; then
6818: # Check if gcc -print-prog-name=ld gives a path.
6819: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6820: $as_echo_n "checking for ld used by $CC... " >&6; }
6821: case $host in
6822: *-*-mingw*)
6823: # gcc leaves a trailing carriage return which upsets mingw
6824: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6825: *)
6826: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6827: esac
6828: case $ac_prog in
6829: # Accept absolute paths.
6830: [\\/]* | ?:[\\/]*)
6831: re_direlt='/[^/][^/]*/\.\./'
6832: # Canonicalize the pathname of ld
6833: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6834: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6835: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6836: done
6837: test -z "$LD" && LD="$ac_prog"
6838: ;;
6839: "")
6840: # If it fails, then pretend we aren't using GCC.
6841: ac_prog=ld
6842: ;;
6843: *)
6844: # If it is relative, then search for the first ld in PATH.
6845: with_gnu_ld=unknown
6846: ;;
6847: esac
6848: elif test "$with_gnu_ld" = yes; then
6849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6850: $as_echo_n "checking for GNU ld... " >&6; }
6851: else
6852: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6853: $as_echo_n "checking for non-GNU ld... " >&6; }
6854: fi
6855: if ${lt_cv_path_LD+:} false; then :
6856: $as_echo_n "(cached) " >&6
6857: else
6858: if test -z "$LD"; then
6859: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6860: for ac_dir in $PATH; do
6861: IFS="$lt_save_ifs"
6862: test -z "$ac_dir" && ac_dir=.
6863: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6864: lt_cv_path_LD="$ac_dir/$ac_prog"
6865: # Check to see if the program is GNU ld. I'd rather use --version,
6866: # but apparently some variants of GNU ld only accept -v.
6867: # Break only if it was the GNU/non-GNU ld that we prefer.
6868: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6869: *GNU* | *'with BFD'*)
6870: test "$with_gnu_ld" != no && break
6871: ;;
6872: *)
6873: test "$with_gnu_ld" != yes && break
6874: ;;
6875: esac
6876: fi
6877: done
6878: IFS="$lt_save_ifs"
6879: else
6880: lt_cv_path_LD="$LD" # Let the user override the test with a path.
6881: fi
6882: fi
6883:
6884: LD="$lt_cv_path_LD"
6885: if test -n "$LD"; then
6886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6887: $as_echo "$LD" >&6; }
6888: else
6889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890: $as_echo "no" >&6; }
6891: fi
6892: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6893: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6894: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6895: if ${lt_cv_prog_gnu_ld+:} false; then :
6896: $as_echo_n "(cached) " >&6
6897: else
6898: # I'd rather use --version here, but apparently some GNU lds only accept -v.
6899: case `$LD -v 2>&1 </dev/null` in
6900: *GNU* | *'with BFD'*)
6901: lt_cv_prog_gnu_ld=yes
6902: ;;
6903: *)
6904: lt_cv_prog_gnu_ld=no
6905: ;;
6906: esac
6907: fi
6908: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6909: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6910: with_gnu_ld=$lt_cv_prog_gnu_ld
6911:
6912:
6913:
6914:
6915:
6916:
6917:
6918:
6919:
6920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6921: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6922: if ${lt_cv_path_NM+:} false; then :
6923: $as_echo_n "(cached) " >&6
6924: else
6925: if test -n "$NM"; then
6926: # Let the user override the test.
6927: lt_cv_path_NM="$NM"
6928: else
6929: lt_nm_to_check="${ac_tool_prefix}nm"
6930: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6931: lt_nm_to_check="$lt_nm_to_check nm"
6932: fi
6933: for lt_tmp_nm in $lt_nm_to_check; do
6934: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6935: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6936: IFS="$lt_save_ifs"
6937: test -z "$ac_dir" && ac_dir=.
6938: tmp_nm="$ac_dir/$lt_tmp_nm"
6939: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6940: # Check to see if the nm accepts a BSD-compat flag.
6941: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6942: # nm: unknown option "B" ignored
6943: # Tru64's nm complains that /dev/null is an invalid object file
6944: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6945: */dev/null* | *'Invalid file or object type'*)
6946: lt_cv_path_NM="$tmp_nm -B"
6947: break
6948: ;;
6949: *)
6950: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6951: */dev/null*)
6952: lt_cv_path_NM="$tmp_nm -p"
6953: break
6954: ;;
6955: *)
6956: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6957: continue # so that we can try to find one that supports BSD flags
6958: ;;
6959: esac
6960: ;;
6961: esac
6962: fi
6963: done
6964: IFS="$lt_save_ifs"
6965: done
6966: : ${lt_cv_path_NM=no}
6967: fi
6968: fi
6969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6970: $as_echo "$lt_cv_path_NM" >&6; }
6971: if test "$lt_cv_path_NM" != "no"; then
6972: NM="$lt_cv_path_NM"
6973: else
6974: # Didn't find any BSD compatible name lister, look for dumpbin.
6975: if test -n "$DUMPBIN"; then :
6976: # Let the user override the test.
6977: else
6978: if test -n "$ac_tool_prefix"; then
6979: for ac_prog in dumpbin "link -dump"
6980: do
6981: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6982: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6983: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984: $as_echo_n "checking for $ac_word... " >&6; }
6985: if ${ac_cv_prog_DUMPBIN+:} false; then :
6986: $as_echo_n "(cached) " >&6
6987: else
6988: if test -n "$DUMPBIN"; then
6989: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6990: else
6991: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992: for as_dir in $PATH
6993: do
6994: IFS=$as_save_IFS
6995: test -z "$as_dir" && as_dir=.
6996: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 6997: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 6998: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6999: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000: break 2
7001: fi
7002: done
7003: done
7004: IFS=$as_save_IFS
7005:
7006: fi
7007: fi
7008: DUMPBIN=$ac_cv_prog_DUMPBIN
7009: if test -n "$DUMPBIN"; then
7010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7011: $as_echo "$DUMPBIN" >&6; }
7012: else
7013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014: $as_echo "no" >&6; }
7015: fi
7016:
7017:
7018: test -n "$DUMPBIN" && break
7019: done
7020: fi
7021: if test -z "$DUMPBIN"; then
7022: ac_ct_DUMPBIN=$DUMPBIN
7023: for ac_prog in dumpbin "link -dump"
7024: do
7025: # Extract the first word of "$ac_prog", so it can be a program name with args.
7026: set dummy $ac_prog; ac_word=$2
7027: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028: $as_echo_n "checking for $ac_word... " >&6; }
7029: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7030: $as_echo_n "(cached) " >&6
7031: else
7032: if test -n "$ac_ct_DUMPBIN"; then
7033: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7034: else
7035: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036: for as_dir in $PATH
7037: do
7038: IFS=$as_save_IFS
7039: test -z "$as_dir" && as_dir=.
7040: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 7041: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7042: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7043: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044: break 2
7045: fi
7046: done
7047: done
7048: IFS=$as_save_IFS
7049:
7050: fi
7051: fi
7052: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7053: if test -n "$ac_ct_DUMPBIN"; then
7054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7055: $as_echo "$ac_ct_DUMPBIN" >&6; }
7056: else
7057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058: $as_echo "no" >&6; }
7059: fi
7060:
7061:
7062: test -n "$ac_ct_DUMPBIN" && break
7063: done
7064:
7065: if test "x$ac_ct_DUMPBIN" = x; then
7066: DUMPBIN=":"
7067: else
7068: case $cross_compiling:$ac_tool_warned in
7069: yes:)
7070: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7071: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7072: ac_tool_warned=yes ;;
7073: esac
7074: DUMPBIN=$ac_ct_DUMPBIN
7075: fi
7076: fi
7077:
7078: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7079: *COFF*)
7080: DUMPBIN="$DUMPBIN -symbols"
7081: ;;
7082: *)
7083: DUMPBIN=:
7084: ;;
7085: esac
7086: fi
7087:
7088: if test "$DUMPBIN" != ":"; then
7089: NM="$DUMPBIN"
7090: fi
7091: fi
7092: test -z "$NM" && NM=nm
7093:
7094:
7095:
7096:
7097:
7098:
7099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7100: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7101: if ${lt_cv_nm_interface+:} false; then :
7102: $as_echo_n "(cached) " >&6
7103: else
7104: lt_cv_nm_interface="BSD nm"
7105: echo "int some_variable = 0;" > conftest.$ac_ext
7106: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7107: (eval "$ac_compile" 2>conftest.err)
7108: cat conftest.err >&5
7109: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7110: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7111: cat conftest.err >&5
7112: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7113: cat conftest.out >&5
7114: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7115: lt_cv_nm_interface="MS dumpbin"
7116: fi
7117: rm -f conftest*
7118: fi
7119: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7120: $as_echo "$lt_cv_nm_interface" >&6; }
7121:
7122: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7123: $as_echo_n "checking whether ln -s works... " >&6; }
7124: LN_S=$as_ln_s
7125: if test "$LN_S" = "ln -s"; then
7126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7127: $as_echo "yes" >&6; }
7128: else
7129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7130: $as_echo "no, using $LN_S" >&6; }
7131: fi
7132:
7133: # find the maximum length of command line arguments
7134: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7135: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7136: if ${lt_cv_sys_max_cmd_len+:} false; then :
7137: $as_echo_n "(cached) " >&6
7138: else
7139: i=0
7140: teststring="ABCD"
7141:
7142: case $build_os in
7143: msdosdjgpp*)
7144: # On DJGPP, this test can blow up pretty badly due to problems in libc
7145: # (any single argument exceeding 2000 bytes causes a buffer overrun
7146: # during glob expansion). Even if it were fixed, the result of this
7147: # check would be larger than it should be.
7148: lt_cv_sys_max_cmd_len=12288; # 12K is about right
7149: ;;
7150:
7151: gnu*)
7152: # Under GNU Hurd, this test is not required because there is
7153: # no limit to the length of command line arguments.
7154: # Libtool will interpret -1 as no limit whatsoever
7155: lt_cv_sys_max_cmd_len=-1;
7156: ;;
7157:
7158: cygwin* | mingw* | cegcc*)
7159: # On Win9x/ME, this test blows up -- it succeeds, but takes
7160: # about 5 minutes as the teststring grows exponentially.
7161: # Worse, since 9x/ME are not pre-emptively multitasking,
7162: # you end up with a "frozen" computer, even though with patience
7163: # the test eventually succeeds (with a max line length of 256k).
7164: # Instead, let's just punt: use the minimum linelength reported by
7165: # all of the supported platforms: 8192 (on NT/2K/XP).
7166: lt_cv_sys_max_cmd_len=8192;
7167: ;;
7168:
7169: mint*)
7170: # On MiNT this can take a long time and run out of memory.
7171: lt_cv_sys_max_cmd_len=8192;
7172: ;;
7173:
7174: amigaos*)
7175: # On AmigaOS with pdksh, this test takes hours, literally.
7176: # So we just punt and use a minimum line length of 8192.
7177: lt_cv_sys_max_cmd_len=8192;
7178: ;;
7179:
7180: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7181: # This has been around since 386BSD, at least. Likely further.
7182: if test -x /sbin/sysctl; then
7183: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7184: elif test -x /usr/sbin/sysctl; then
7185: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7186: else
7187: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7188: fi
7189: # And add a safety zone
7190: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7191: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7192: ;;
7193:
7194: interix*)
7195: # We know the value 262144 and hardcode it with a safety zone (like BSD)
7196: lt_cv_sys_max_cmd_len=196608
7197: ;;
7198:
1.1.1.4 ! misho 7199: os2*)
! 7200: # The test takes a long time on OS/2.
! 7201: lt_cv_sys_max_cmd_len=8192
! 7202: ;;
! 7203:
1.1 misho 7204: osf*)
7205: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7206: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7207: # nice to cause kernel panics so lets avoid the loop below.
7208: # First set a reasonable default.
7209: lt_cv_sys_max_cmd_len=16384
7210: #
7211: if test -x /sbin/sysconfig; then
7212: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7213: *1*) lt_cv_sys_max_cmd_len=-1 ;;
7214: esac
7215: fi
7216: ;;
7217: sco3.2v5*)
7218: lt_cv_sys_max_cmd_len=102400
7219: ;;
7220: sysv5* | sco5v6* | sysv4.2uw2*)
7221: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7222: if test -n "$kargmax"; then
7223: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7224: else
7225: lt_cv_sys_max_cmd_len=32768
7226: fi
7227: ;;
7228: *)
7229: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7230: if test -n "$lt_cv_sys_max_cmd_len"; then
7231: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7232: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7233: else
7234: # Make teststring a little bigger before we do anything with it.
7235: # a 1K string should be a reasonable start.
7236: for i in 1 2 3 4 5 6 7 8 ; do
7237: teststring=$teststring$teststring
7238: done
7239: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7240: # If test is not a shell built-in, we'll probably end up computing a
7241: # maximum length that is only half of the actual maximum length, but
7242: # we can't tell.
1.1.1.4 ! misho 7243: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1.1 misho 7244: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7245: test $i != 17 # 1/2 MB should be enough
7246: do
7247: i=`expr $i + 1`
7248: teststring=$teststring$teststring
7249: done
7250: # Only check the string length outside the loop.
7251: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7252: teststring=
7253: # Add a significant safety factor because C++ compilers can tack on
7254: # massive amounts of additional arguments before passing them to the
7255: # linker. It appears as though 1/2 is a usable value.
7256: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7257: fi
7258: ;;
7259: esac
7260:
7261: fi
7262:
7263: if test -n $lt_cv_sys_max_cmd_len ; then
7264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7265: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7266: else
7267: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7268: $as_echo "none" >&6; }
7269: fi
7270: max_cmd_len=$lt_cv_sys_max_cmd_len
7271:
7272:
7273:
7274:
7275:
7276:
7277: : ${CP="cp -f"}
7278: : ${MV="mv -f"}
7279: : ${RM="rm -f"}
7280:
7281: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7282: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7283: # Try some XSI features
7284: xsi_shell=no
7285: ( _lt_dummy="a/b/c"
7286: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7287: = c,a/b,b/c, \
7288: && eval 'test $(( 1 + 1 )) -eq 2 \
7289: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7290: && xsi_shell=yes
7291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7292: $as_echo "$xsi_shell" >&6; }
7293:
7294:
7295: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7296: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7297: lt_shell_append=no
7298: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7299: >/dev/null 2>&1 \
7300: && lt_shell_append=yes
7301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7302: $as_echo "$lt_shell_append" >&6; }
7303:
7304:
7305: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7306: lt_unset=unset
7307: else
7308: lt_unset=false
7309: fi
7310:
7311:
7312:
7313:
7314:
7315: # test EBCDIC or ASCII
7316: case `echo X|tr X '\101'` in
7317: A) # ASCII based system
7318: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7319: lt_SP2NL='tr \040 \012'
7320: lt_NL2SP='tr \015\012 \040\040'
7321: ;;
7322: *) # EBCDIC based system
7323: lt_SP2NL='tr \100 \n'
7324: lt_NL2SP='tr \r\n \100\100'
7325: ;;
7326: esac
7327:
7328:
7329:
7330:
7331:
7332:
7333:
7334:
7335:
7336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7337: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7338: if ${lt_cv_to_host_file_cmd+:} false; then :
7339: $as_echo_n "(cached) " >&6
7340: else
7341: case $host in
7342: *-*-mingw* )
7343: case $build in
7344: *-*-mingw* ) # actually msys
7345: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7346: ;;
7347: *-*-cygwin* )
7348: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7349: ;;
7350: * ) # otherwise, assume *nix
7351: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7352: ;;
7353: esac
7354: ;;
7355: *-*-cygwin* )
7356: case $build in
7357: *-*-mingw* ) # actually msys
7358: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7359: ;;
7360: *-*-cygwin* )
7361: lt_cv_to_host_file_cmd=func_convert_file_noop
7362: ;;
7363: * ) # otherwise, assume *nix
7364: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7365: ;;
7366: esac
7367: ;;
7368: * ) # unhandled hosts (and "normal" native builds)
7369: lt_cv_to_host_file_cmd=func_convert_file_noop
7370: ;;
7371: esac
7372:
7373: fi
7374:
7375: to_host_file_cmd=$lt_cv_to_host_file_cmd
7376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7377: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7378:
7379:
7380:
7381:
7382:
7383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7384: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7385: if ${lt_cv_to_tool_file_cmd+:} false; then :
7386: $as_echo_n "(cached) " >&6
7387: else
7388: #assume ordinary cross tools, or native build.
7389: lt_cv_to_tool_file_cmd=func_convert_file_noop
7390: case $host in
7391: *-*-mingw* )
7392: case $build in
7393: *-*-mingw* ) # actually msys
7394: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7395: ;;
7396: esac
7397: ;;
7398: esac
7399:
7400: fi
7401:
7402: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7403: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7404: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7405:
7406:
7407:
7408:
7409:
7410: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7411: $as_echo_n "checking for $LD option to reload object files... " >&6; }
7412: if ${lt_cv_ld_reload_flag+:} false; then :
7413: $as_echo_n "(cached) " >&6
7414: else
7415: lt_cv_ld_reload_flag='-r'
7416: fi
7417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7418: $as_echo "$lt_cv_ld_reload_flag" >&6; }
7419: reload_flag=$lt_cv_ld_reload_flag
7420: case $reload_flag in
7421: "" | " "*) ;;
7422: *) reload_flag=" $reload_flag" ;;
7423: esac
7424: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7425: case $host_os in
7426: cygwin* | mingw* | pw32* | cegcc*)
7427: if test "$GCC" != yes; then
7428: reload_cmds=false
7429: fi
7430: ;;
7431: darwin*)
7432: if test "$GCC" = yes; then
7433: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7434: else
7435: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7436: fi
7437: ;;
7438: esac
7439:
7440:
7441:
7442:
7443:
7444:
7445:
7446:
7447:
7448: if test -n "$ac_tool_prefix"; then
7449: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7450: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7451: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452: $as_echo_n "checking for $ac_word... " >&6; }
7453: if ${ac_cv_prog_OBJDUMP+:} false; then :
7454: $as_echo_n "(cached) " >&6
7455: else
7456: if test -n "$OBJDUMP"; then
7457: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7458: else
7459: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460: for as_dir in $PATH
7461: do
7462: IFS=$as_save_IFS
7463: test -z "$as_dir" && as_dir=.
7464: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 7465: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7466: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7467: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468: break 2
7469: fi
7470: done
7471: done
7472: IFS=$as_save_IFS
7473:
7474: fi
7475: fi
7476: OBJDUMP=$ac_cv_prog_OBJDUMP
7477: if test -n "$OBJDUMP"; then
7478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7479: $as_echo "$OBJDUMP" >&6; }
7480: else
7481: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482: $as_echo "no" >&6; }
7483: fi
7484:
7485:
7486: fi
7487: if test -z "$ac_cv_prog_OBJDUMP"; then
7488: ac_ct_OBJDUMP=$OBJDUMP
7489: # Extract the first word of "objdump", so it can be a program name with args.
7490: set dummy objdump; ac_word=$2
7491: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492: $as_echo_n "checking for $ac_word... " >&6; }
7493: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7494: $as_echo_n "(cached) " >&6
7495: else
7496: if test -n "$ac_ct_OBJDUMP"; then
7497: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7498: else
7499: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500: for as_dir in $PATH
7501: do
7502: IFS=$as_save_IFS
7503: test -z "$as_dir" && as_dir=.
7504: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 7505: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7506: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7507: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508: break 2
7509: fi
7510: done
7511: done
7512: IFS=$as_save_IFS
7513:
7514: fi
7515: fi
7516: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7517: if test -n "$ac_ct_OBJDUMP"; then
7518: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7519: $as_echo "$ac_ct_OBJDUMP" >&6; }
7520: else
7521: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522: $as_echo "no" >&6; }
7523: fi
7524:
7525: if test "x$ac_ct_OBJDUMP" = x; then
7526: OBJDUMP="false"
7527: else
7528: case $cross_compiling:$ac_tool_warned in
7529: yes:)
7530: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7531: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7532: ac_tool_warned=yes ;;
7533: esac
7534: OBJDUMP=$ac_ct_OBJDUMP
7535: fi
7536: else
7537: OBJDUMP="$ac_cv_prog_OBJDUMP"
7538: fi
7539:
7540: test -z "$OBJDUMP" && OBJDUMP=objdump
7541:
7542:
7543:
7544:
7545:
7546:
7547: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7548: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7549: if ${lt_cv_deplibs_check_method+:} false; then :
7550: $as_echo_n "(cached) " >&6
7551: else
7552: lt_cv_file_magic_cmd='$MAGIC_CMD'
7553: lt_cv_file_magic_test_file=
7554: lt_cv_deplibs_check_method='unknown'
7555: # Need to set the preceding variable on all platforms that support
7556: # interlibrary dependencies.
7557: # 'none' -- dependencies not supported.
7558: # `unknown' -- same as none, but documents that we really don't know.
7559: # 'pass_all' -- all dependencies passed with no checks.
7560: # 'test_compile' -- check by making test program.
7561: # 'file_magic [[regex]]' -- check by looking for files in library path
7562: # which responds to the $file_magic_cmd with a given extended regex.
7563: # If you have `file' or equivalent on your system and you're not sure
7564: # whether `pass_all' will *always* work, you probably want this one.
7565:
7566: case $host_os in
7567: aix[4-9]*)
7568: lt_cv_deplibs_check_method=pass_all
7569: ;;
7570:
7571: beos*)
7572: lt_cv_deplibs_check_method=pass_all
7573: ;;
7574:
7575: bsdi[45]*)
7576: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7577: lt_cv_file_magic_cmd='/usr/bin/file -L'
7578: lt_cv_file_magic_test_file=/shlib/libc.so
7579: ;;
7580:
7581: cygwin*)
7582: # func_win32_libid is a shell function defined in ltmain.sh
7583: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7584: lt_cv_file_magic_cmd='func_win32_libid'
7585: ;;
7586:
7587: mingw* | pw32*)
7588: # Base MSYS/MinGW do not provide the 'file' command needed by
7589: # func_win32_libid shell function, so use a weaker test based on 'objdump',
7590: # unless we find 'file', for example because we are cross-compiling.
7591: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7592: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7593: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7594: lt_cv_file_magic_cmd='func_win32_libid'
7595: else
7596: # Keep this pattern in sync with the one in func_win32_libid.
7597: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7598: lt_cv_file_magic_cmd='$OBJDUMP -f'
7599: fi
7600: ;;
7601:
7602: cegcc*)
7603: # use the weaker test based on 'objdump'. See mingw*.
7604: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7605: lt_cv_file_magic_cmd='$OBJDUMP -f'
7606: ;;
7607:
7608: darwin* | rhapsody*)
7609: lt_cv_deplibs_check_method=pass_all
7610: ;;
7611:
7612: freebsd* | dragonfly*)
7613: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7614: case $host_cpu in
7615: i*86 )
7616: # Not sure whether the presence of OpenBSD here was a mistake.
7617: # Let's accept both of them until this is cleared up.
7618: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7619: lt_cv_file_magic_cmd=/usr/bin/file
7620: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7621: ;;
7622: esac
7623: else
7624: lt_cv_deplibs_check_method=pass_all
7625: fi
7626: ;;
7627:
7628: gnu*)
7629: lt_cv_deplibs_check_method=pass_all
7630: ;;
7631:
7632: haiku*)
7633: lt_cv_deplibs_check_method=pass_all
7634: ;;
7635:
7636: hpux10.20* | hpux11*)
7637: lt_cv_file_magic_cmd=/usr/bin/file
7638: case $host_cpu in
7639: ia64*)
7640: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7641: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7642: ;;
7643: hppa*64*)
7644: 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]'
7645: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7646: ;;
7647: *)
7648: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7649: lt_cv_file_magic_test_file=/usr/lib/libc.sl
7650: ;;
7651: esac
7652: ;;
7653:
7654: interix[3-9]*)
7655: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7656: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7657: ;;
7658:
7659: irix5* | irix6* | nonstopux*)
7660: case $LD in
7661: *-32|*"-32 ") libmagic=32-bit;;
7662: *-n32|*"-n32 ") libmagic=N32;;
7663: *-64|*"-64 ") libmagic=64-bit;;
7664: *) libmagic=never-match;;
7665: esac
7666: lt_cv_deplibs_check_method=pass_all
7667: ;;
7668:
1.1.1.4 ! misho 7669: # This must be glibc/ELF.
1.1 misho 7670: linux* | k*bsd*-gnu | kopensolaris*-gnu)
7671: lt_cv_deplibs_check_method=pass_all
7672: ;;
7673:
7674: netbsd*)
7675: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7676: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7677: else
7678: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7679: fi
7680: ;;
7681:
7682: newos6*)
7683: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7684: lt_cv_file_magic_cmd=/usr/bin/file
7685: lt_cv_file_magic_test_file=/usr/lib/libnls.so
7686: ;;
7687:
7688: *nto* | *qnx*)
7689: lt_cv_deplibs_check_method=pass_all
7690: ;;
7691:
7692: openbsd*)
7693: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7694: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7695: else
7696: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7697: fi
7698: ;;
7699:
7700: osf3* | osf4* | osf5*)
7701: lt_cv_deplibs_check_method=pass_all
7702: ;;
7703:
7704: rdos*)
7705: lt_cv_deplibs_check_method=pass_all
7706: ;;
7707:
7708: solaris*)
7709: lt_cv_deplibs_check_method=pass_all
7710: ;;
7711:
7712: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7713: lt_cv_deplibs_check_method=pass_all
7714: ;;
7715:
7716: sysv4 | sysv4.3*)
7717: case $host_vendor in
7718: motorola)
7719: 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]'
7720: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7721: ;;
7722: ncr)
7723: lt_cv_deplibs_check_method=pass_all
7724: ;;
7725: sequent)
7726: lt_cv_file_magic_cmd='/bin/file'
7727: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7728: ;;
7729: sni)
7730: lt_cv_file_magic_cmd='/bin/file'
7731: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7732: lt_cv_file_magic_test_file=/lib/libc.so
7733: ;;
7734: siemens)
7735: lt_cv_deplibs_check_method=pass_all
7736: ;;
7737: pc)
7738: lt_cv_deplibs_check_method=pass_all
7739: ;;
7740: esac
7741: ;;
7742:
7743: tpf*)
7744: lt_cv_deplibs_check_method=pass_all
7745: ;;
7746: esac
7747:
7748: fi
7749: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7750: $as_echo "$lt_cv_deplibs_check_method" >&6; }
7751:
7752: file_magic_glob=
7753: want_nocaseglob=no
7754: if test "$build" = "$host"; then
7755: case $host_os in
7756: mingw* | pw32*)
7757: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7758: want_nocaseglob=yes
7759: else
7760: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7761: fi
7762: ;;
7763: esac
7764: fi
7765:
7766: file_magic_cmd=$lt_cv_file_magic_cmd
7767: deplibs_check_method=$lt_cv_deplibs_check_method
7768: test -z "$deplibs_check_method" && deplibs_check_method=unknown
7769:
7770:
7771:
7772:
7773:
7774:
7775:
7776:
7777:
7778:
7779:
7780:
7781:
7782:
7783:
7784:
7785:
7786:
7787:
7788:
7789:
7790:
7791: if test -n "$ac_tool_prefix"; then
7792: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7793: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7794: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795: $as_echo_n "checking for $ac_word... " >&6; }
7796: if ${ac_cv_prog_DLLTOOL+:} false; then :
7797: $as_echo_n "(cached) " >&6
7798: else
7799: if test -n "$DLLTOOL"; then
7800: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7801: else
7802: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803: for as_dir in $PATH
7804: do
7805: IFS=$as_save_IFS
7806: test -z "$as_dir" && as_dir=.
7807: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 7808: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7809: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7810: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811: break 2
7812: fi
7813: done
7814: done
7815: IFS=$as_save_IFS
7816:
7817: fi
7818: fi
7819: DLLTOOL=$ac_cv_prog_DLLTOOL
7820: if test -n "$DLLTOOL"; then
7821: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7822: $as_echo "$DLLTOOL" >&6; }
7823: else
7824: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825: $as_echo "no" >&6; }
7826: fi
7827:
7828:
7829: fi
7830: if test -z "$ac_cv_prog_DLLTOOL"; then
7831: ac_ct_DLLTOOL=$DLLTOOL
7832: # Extract the first word of "dlltool", so it can be a program name with args.
7833: set dummy dlltool; ac_word=$2
7834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835: $as_echo_n "checking for $ac_word... " >&6; }
7836: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7837: $as_echo_n "(cached) " >&6
7838: else
7839: if test -n "$ac_ct_DLLTOOL"; then
7840: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7841: else
7842: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843: for as_dir in $PATH
7844: do
7845: IFS=$as_save_IFS
7846: test -z "$as_dir" && as_dir=.
7847: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 7848: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7849: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7850: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851: break 2
7852: fi
7853: done
7854: done
7855: IFS=$as_save_IFS
7856:
7857: fi
7858: fi
7859: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7860: if test -n "$ac_ct_DLLTOOL"; then
7861: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7862: $as_echo "$ac_ct_DLLTOOL" >&6; }
7863: else
7864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865: $as_echo "no" >&6; }
7866: fi
7867:
7868: if test "x$ac_ct_DLLTOOL" = x; then
7869: DLLTOOL="false"
7870: else
7871: case $cross_compiling:$ac_tool_warned in
7872: yes:)
7873: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7874: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7875: ac_tool_warned=yes ;;
7876: esac
7877: DLLTOOL=$ac_ct_DLLTOOL
7878: fi
7879: else
7880: DLLTOOL="$ac_cv_prog_DLLTOOL"
7881: fi
7882:
7883: test -z "$DLLTOOL" && DLLTOOL=dlltool
7884:
7885:
7886:
7887:
7888:
7889:
7890:
7891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7892: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7893: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7894: $as_echo_n "(cached) " >&6
7895: else
7896: lt_cv_sharedlib_from_linklib_cmd='unknown'
7897:
7898: case $host_os in
7899: cygwin* | mingw* | pw32* | cegcc*)
7900: # two different shell functions defined in ltmain.sh
7901: # decide which to use based on capabilities of $DLLTOOL
7902: case `$DLLTOOL --help 2>&1` in
7903: *--identify-strict*)
7904: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7905: ;;
7906: *)
7907: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7908: ;;
7909: esac
7910: ;;
7911: *)
7912: # fallback: assume linklib IS sharedlib
7913: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7914: ;;
7915: esac
7916:
7917: fi
7918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7919: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7920: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7921: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7922:
7923:
7924:
7925:
7926:
7927:
7928:
7929: if test -n "$ac_tool_prefix"; then
7930: for ac_prog in ar
7931: do
7932: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7933: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7934: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935: $as_echo_n "checking for $ac_word... " >&6; }
7936: if ${ac_cv_prog_AR+:} false; then :
7937: $as_echo_n "(cached) " >&6
7938: else
7939: if test -n "$AR"; then
7940: ac_cv_prog_AR="$AR" # Let the user override the test.
7941: else
7942: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943: for as_dir in $PATH
7944: do
7945: IFS=$as_save_IFS
7946: test -z "$as_dir" && as_dir=.
7947: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 7948: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7949: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7950: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951: break 2
7952: fi
7953: done
7954: done
7955: IFS=$as_save_IFS
7956:
7957: fi
7958: fi
7959: AR=$ac_cv_prog_AR
7960: if test -n "$AR"; then
7961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7962: $as_echo "$AR" >&6; }
7963: else
7964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965: $as_echo "no" >&6; }
7966: fi
7967:
7968:
7969: test -n "$AR" && break
7970: done
7971: fi
7972: if test -z "$AR"; then
7973: ac_ct_AR=$AR
7974: for ac_prog in ar
7975: do
7976: # Extract the first word of "$ac_prog", so it can be a program name with args.
7977: set dummy $ac_prog; ac_word=$2
7978: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979: $as_echo_n "checking for $ac_word... " >&6; }
7980: if ${ac_cv_prog_ac_ct_AR+:} false; then :
7981: $as_echo_n "(cached) " >&6
7982: else
7983: if test -n "$ac_ct_AR"; then
7984: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7985: else
7986: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987: for as_dir in $PATH
7988: do
7989: IFS=$as_save_IFS
7990: test -z "$as_dir" && as_dir=.
7991: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 7992: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 7993: ac_cv_prog_ac_ct_AR="$ac_prog"
7994: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995: break 2
7996: fi
7997: done
7998: done
7999: IFS=$as_save_IFS
8000:
8001: fi
8002: fi
8003: ac_ct_AR=$ac_cv_prog_ac_ct_AR
8004: if test -n "$ac_ct_AR"; then
8005: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8006: $as_echo "$ac_ct_AR" >&6; }
8007: else
8008: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009: $as_echo "no" >&6; }
8010: fi
8011:
8012:
8013: test -n "$ac_ct_AR" && break
8014: done
8015:
8016: if test "x$ac_ct_AR" = x; then
8017: AR="false"
8018: else
8019: case $cross_compiling:$ac_tool_warned in
8020: yes:)
8021: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8022: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8023: ac_tool_warned=yes ;;
8024: esac
8025: AR=$ac_ct_AR
8026: fi
8027: fi
8028:
8029: : ${AR=ar}
8030: : ${AR_FLAGS=cru}
8031:
8032:
8033:
8034:
8035:
8036:
8037:
8038:
8039:
8040:
8041:
8042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8043: $as_echo_n "checking for archiver @FILE support... " >&6; }
8044: if ${lt_cv_ar_at_file+:} false; then :
8045: $as_echo_n "(cached) " >&6
8046: else
8047: lt_cv_ar_at_file=no
8048: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049: /* end confdefs.h. */
8050:
8051: int
8052: main ()
8053: {
8054:
8055: ;
8056: return 0;
8057: }
8058: _ACEOF
8059: if ac_fn_c_try_compile "$LINENO"; then :
8060: echo conftest.$ac_objext > conftest.lst
8061: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8062: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8063: (eval $lt_ar_try) 2>&5
8064: ac_status=$?
8065: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8066: test $ac_status = 0; }
8067: if test "$ac_status" -eq 0; then
8068: # Ensure the archiver fails upon bogus file names.
8069: rm -f conftest.$ac_objext libconftest.a
8070: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8071: (eval $lt_ar_try) 2>&5
8072: ac_status=$?
8073: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8074: test $ac_status = 0; }
8075: if test "$ac_status" -ne 0; then
8076: lt_cv_ar_at_file=@
8077: fi
8078: fi
8079: rm -f conftest.* libconftest.a
8080:
8081: fi
8082: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083:
8084: fi
8085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8086: $as_echo "$lt_cv_ar_at_file" >&6; }
8087:
8088: if test "x$lt_cv_ar_at_file" = xno; then
8089: archiver_list_spec=
8090: else
8091: archiver_list_spec=$lt_cv_ar_at_file
8092: fi
8093:
8094:
8095:
8096:
8097:
8098:
8099:
8100: if test -n "$ac_tool_prefix"; then
8101: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8102: set dummy ${ac_tool_prefix}strip; ac_word=$2
8103: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104: $as_echo_n "checking for $ac_word... " >&6; }
8105: if ${ac_cv_prog_STRIP+:} false; then :
8106: $as_echo_n "(cached) " >&6
8107: else
8108: if test -n "$STRIP"; then
8109: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8110: else
8111: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112: for as_dir in $PATH
8113: do
8114: IFS=$as_save_IFS
8115: test -z "$as_dir" && as_dir=.
8116: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 8117: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 8118: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8119: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8120: break 2
8121: fi
8122: done
8123: done
8124: IFS=$as_save_IFS
8125:
8126: fi
8127: fi
8128: STRIP=$ac_cv_prog_STRIP
8129: if test -n "$STRIP"; then
8130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8131: $as_echo "$STRIP" >&6; }
8132: else
8133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134: $as_echo "no" >&6; }
8135: fi
8136:
8137:
8138: fi
8139: if test -z "$ac_cv_prog_STRIP"; then
8140: ac_ct_STRIP=$STRIP
8141: # Extract the first word of "strip", so it can be a program name with args.
8142: set dummy strip; ac_word=$2
8143: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8144: $as_echo_n "checking for $ac_word... " >&6; }
8145: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8146: $as_echo_n "(cached) " >&6
8147: else
8148: if test -n "$ac_ct_STRIP"; then
8149: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8150: else
8151: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152: for as_dir in $PATH
8153: do
8154: IFS=$as_save_IFS
8155: test -z "$as_dir" && as_dir=.
8156: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 8157: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 8158: ac_cv_prog_ac_ct_STRIP="strip"
8159: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160: break 2
8161: fi
8162: done
8163: done
8164: IFS=$as_save_IFS
8165:
8166: fi
8167: fi
8168: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8169: if test -n "$ac_ct_STRIP"; then
8170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8171: $as_echo "$ac_ct_STRIP" >&6; }
8172: else
8173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174: $as_echo "no" >&6; }
8175: fi
8176:
8177: if test "x$ac_ct_STRIP" = x; then
8178: STRIP=":"
8179: else
8180: case $cross_compiling:$ac_tool_warned in
8181: yes:)
8182: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8183: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8184: ac_tool_warned=yes ;;
8185: esac
8186: STRIP=$ac_ct_STRIP
8187: fi
8188: else
8189: STRIP="$ac_cv_prog_STRIP"
8190: fi
8191:
8192: test -z "$STRIP" && STRIP=:
8193:
8194:
8195:
8196:
8197:
8198:
8199: if test -n "$ac_tool_prefix"; then
8200: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8201: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8202: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203: $as_echo_n "checking for $ac_word... " >&6; }
8204: if ${ac_cv_prog_RANLIB+:} false; then :
8205: $as_echo_n "(cached) " >&6
8206: else
8207: if test -n "$RANLIB"; then
8208: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8209: else
8210: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211: for as_dir in $PATH
8212: do
8213: IFS=$as_save_IFS
8214: test -z "$as_dir" && as_dir=.
8215: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 8216: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 8217: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8218: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219: break 2
8220: fi
8221: done
8222: done
8223: IFS=$as_save_IFS
8224:
8225: fi
8226: fi
8227: RANLIB=$ac_cv_prog_RANLIB
8228: if test -n "$RANLIB"; then
8229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8230: $as_echo "$RANLIB" >&6; }
8231: else
8232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233: $as_echo "no" >&6; }
8234: fi
8235:
8236:
8237: fi
8238: if test -z "$ac_cv_prog_RANLIB"; then
8239: ac_ct_RANLIB=$RANLIB
8240: # Extract the first word of "ranlib", so it can be a program name with args.
8241: set dummy ranlib; ac_word=$2
8242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243: $as_echo_n "checking for $ac_word... " >&6; }
8244: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8245: $as_echo_n "(cached) " >&6
8246: else
8247: if test -n "$ac_ct_RANLIB"; then
8248: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8249: else
8250: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251: for as_dir in $PATH
8252: do
8253: IFS=$as_save_IFS
8254: test -z "$as_dir" && as_dir=.
8255: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 8256: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 8257: ac_cv_prog_ac_ct_RANLIB="ranlib"
8258: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259: break 2
8260: fi
8261: done
8262: done
8263: IFS=$as_save_IFS
8264:
8265: fi
8266: fi
8267: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8268: if test -n "$ac_ct_RANLIB"; then
8269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8270: $as_echo "$ac_ct_RANLIB" >&6; }
8271: else
8272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273: $as_echo "no" >&6; }
8274: fi
8275:
8276: if test "x$ac_ct_RANLIB" = x; then
8277: RANLIB=":"
8278: else
8279: case $cross_compiling:$ac_tool_warned in
8280: yes:)
8281: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8282: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8283: ac_tool_warned=yes ;;
8284: esac
8285: RANLIB=$ac_ct_RANLIB
8286: fi
8287: else
8288: RANLIB="$ac_cv_prog_RANLIB"
8289: fi
8290:
8291: test -z "$RANLIB" && RANLIB=:
8292:
8293:
8294:
8295:
8296:
8297:
8298: # Determine commands to create old-style static archives.
8299: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8300: old_postinstall_cmds='chmod 644 $oldlib'
8301: old_postuninstall_cmds=
8302:
8303: if test -n "$RANLIB"; then
8304: case $host_os in
8305: openbsd*)
1.1.1.4 ! misho 8306: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1 misho 8307: ;;
8308: *)
1.1.1.4 ! misho 8309: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1 misho 8310: ;;
8311: esac
1.1.1.4 ! misho 8312: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.1 misho 8313: fi
8314:
8315: case $host_os in
8316: darwin*)
8317: lock_old_archive_extraction=yes ;;
8318: *)
8319: lock_old_archive_extraction=no ;;
8320: esac
8321:
8322:
8323:
8324:
8325:
8326:
8327:
8328:
8329:
8330:
8331:
8332:
8333:
8334:
8335:
8336:
8337:
8338:
8339:
8340:
8341:
8342:
8343:
8344:
8345:
8346:
8347:
8348:
8349:
8350:
8351:
8352:
8353:
8354:
8355:
8356:
8357:
8358:
8359:
8360: # If no C compiler was specified, use CC.
8361: LTCC=${LTCC-"$CC"}
8362:
8363: # If no C compiler flags were specified, use CFLAGS.
8364: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8365:
8366: # Allow CC to be a program name with arguments.
8367: compiler=$CC
8368:
8369:
8370: # Check for command to grab the raw symbol name followed by C symbol from nm.
8371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8372: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8373: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8374: $as_echo_n "(cached) " >&6
8375: else
8376:
8377: # These are sane defaults that work on at least a few old systems.
8378: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8379:
8380: # Character class describing NM global symbol codes.
8381: symcode='[BCDEGRST]'
8382:
8383: # Regexp to match symbols that can be accessed directly from C.
8384: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8385:
8386: # Define system-specific variables.
8387: case $host_os in
8388: aix*)
8389: symcode='[BCDT]'
8390: ;;
8391: cygwin* | mingw* | pw32* | cegcc*)
8392: symcode='[ABCDGISTW]'
8393: ;;
8394: hpux*)
8395: if test "$host_cpu" = ia64; then
8396: symcode='[ABCDEGRST]'
8397: fi
8398: ;;
8399: irix* | nonstopux*)
8400: symcode='[BCDEGRST]'
8401: ;;
8402: osf*)
8403: symcode='[BCDEGQRST]'
8404: ;;
8405: solaris*)
8406: symcode='[BDRT]'
8407: ;;
8408: sco3.2v5*)
8409: symcode='[DT]'
8410: ;;
8411: sysv4.2uw2*)
8412: symcode='[DT]'
8413: ;;
8414: sysv5* | sco5v6* | unixware* | OpenUNIX*)
8415: symcode='[ABDT]'
8416: ;;
8417: sysv4)
8418: symcode='[DFNSTU]'
8419: ;;
8420: esac
8421:
8422: # If we're using GNU nm, then use its standard symbol codes.
8423: case `$NM -V 2>&1` in
8424: *GNU* | *'with BFD'*)
8425: symcode='[ABCDGIRSTW]' ;;
8426: esac
8427:
8428: # Transform an extracted symbol line into a proper C declaration.
8429: # Some systems (esp. on ia64) link data and code symbols differently,
8430: # so use this general approach.
8431: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8432:
8433: # Transform an extracted symbol line into symbol name and symbol address
8434: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8435: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8436:
8437: # Handle CRLF in mingw tool chain
8438: opt_cr=
8439: case $build_os in
8440: mingw*)
8441: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8442: ;;
8443: esac
8444:
8445: # Try without a prefix underscore, then with it.
8446: for ac_symprfx in "" "_"; do
8447:
8448: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8449: symxfrm="\\1 $ac_symprfx\\2 \\2"
8450:
8451: # Write the raw and C identifiers.
8452: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8453: # Fake it for dumpbin and say T for any non-static function
8454: # and D for any global variable.
8455: # Also find C++ and __fastcall symbols from MSVC++,
8456: # which start with @ or ?.
8457: lt_cv_sys_global_symbol_pipe="$AWK '"\
8458: " {last_section=section; section=\$ 3};"\
1.1.1.4 ! misho 8459: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
1.1 misho 8460: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8461: " \$ 0!~/External *\|/{next};"\
8462: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8463: " {if(hide[section]) next};"\
8464: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8465: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8466: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8467: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8468: " ' prfx=^$ac_symprfx"
8469: else
8470: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8471: fi
8472: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8473:
8474: # Check to see that the pipe works correctly.
8475: pipe_works=no
8476:
8477: rm -f conftest*
8478: cat > conftest.$ac_ext <<_LT_EOF
8479: #ifdef __cplusplus
8480: extern "C" {
8481: #endif
8482: char nm_test_var;
8483: void nm_test_func(void);
8484: void nm_test_func(void){}
8485: #ifdef __cplusplus
8486: }
8487: #endif
8488: int main(){nm_test_var='a';nm_test_func();return(0);}
8489: _LT_EOF
8490:
8491: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8492: (eval $ac_compile) 2>&5
8493: ac_status=$?
8494: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8495: test $ac_status = 0; }; then
8496: # Now try to grab the symbols.
8497: nlist=conftest.nm
8498: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8499: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8500: ac_status=$?
8501: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8502: test $ac_status = 0; } && test -s "$nlist"; then
8503: # Try sorting and uniquifying the output.
8504: if sort "$nlist" | uniq > "$nlist"T; then
8505: mv -f "$nlist"T "$nlist"
8506: else
8507: rm -f "$nlist"T
8508: fi
8509:
8510: # Make sure that we snagged all the symbols we need.
8511: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8512: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8513: cat <<_LT_EOF > conftest.$ac_ext
8514: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8515: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8516: /* DATA imports from DLLs on WIN32 con't be const, because runtime
8517: relocations are performed -- see ld's documentation on pseudo-relocs. */
8518: # define LT_DLSYM_CONST
8519: #elif defined(__osf__)
8520: /* This system does not cope well with relocations in const data. */
8521: # define LT_DLSYM_CONST
8522: #else
8523: # define LT_DLSYM_CONST const
8524: #endif
8525:
8526: #ifdef __cplusplus
8527: extern "C" {
8528: #endif
8529:
8530: _LT_EOF
8531: # Now generate the symbol file.
8532: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8533:
8534: cat <<_LT_EOF >> conftest.$ac_ext
8535:
8536: /* The mapping between symbol names and symbols. */
8537: LT_DLSYM_CONST struct {
8538: const char *name;
8539: void *address;
8540: }
8541: lt__PROGRAM__LTX_preloaded_symbols[] =
8542: {
8543: { "@PROGRAM@", (void *) 0 },
8544: _LT_EOF
8545: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8546: cat <<\_LT_EOF >> conftest.$ac_ext
8547: {0, (void *) 0}
8548: };
8549:
8550: /* This works around a problem in FreeBSD linker */
8551: #ifdef FREEBSD_WORKAROUND
8552: static const void *lt_preloaded_setup() {
8553: return lt__PROGRAM__LTX_preloaded_symbols;
8554: }
8555: #endif
8556:
8557: #ifdef __cplusplus
8558: }
8559: #endif
8560: _LT_EOF
8561: # Now try linking the two files.
8562: mv conftest.$ac_objext conftstm.$ac_objext
8563: lt_globsym_save_LIBS=$LIBS
8564: lt_globsym_save_CFLAGS=$CFLAGS
8565: LIBS="conftstm.$ac_objext"
8566: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8567: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8568: (eval $ac_link) 2>&5
8569: ac_status=$?
8570: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8571: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8572: pipe_works=yes
8573: fi
8574: LIBS=$lt_globsym_save_LIBS
8575: CFLAGS=$lt_globsym_save_CFLAGS
8576: else
8577: echo "cannot find nm_test_func in $nlist" >&5
8578: fi
8579: else
8580: echo "cannot find nm_test_var in $nlist" >&5
8581: fi
8582: else
8583: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8584: fi
8585: else
8586: echo "$progname: failed program was:" >&5
8587: cat conftest.$ac_ext >&5
8588: fi
8589: rm -rf conftest* conftst*
8590:
8591: # Do not use the global_symbol_pipe unless it works.
8592: if test "$pipe_works" = yes; then
8593: break
8594: else
8595: lt_cv_sys_global_symbol_pipe=
8596: fi
8597: done
8598:
8599: fi
8600:
8601: if test -z "$lt_cv_sys_global_symbol_pipe"; then
8602: lt_cv_sys_global_symbol_to_cdecl=
8603: fi
8604: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8606: $as_echo "failed" >&6; }
8607: else
8608: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8609: $as_echo "ok" >&6; }
8610: fi
8611:
8612: # Response file support.
8613: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8614: nm_file_list_spec='@'
8615: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8616: nm_file_list_spec='@'
8617: fi
8618:
8619:
8620:
8621:
8622:
8623:
8624:
8625:
8626:
8627:
8628:
8629:
8630:
8631:
8632:
8633:
8634:
8635:
8636:
8637:
8638:
8639:
8640:
8641:
8642:
8643:
8644:
8645: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8646: $as_echo_n "checking for sysroot... " >&6; }
8647:
8648: # Check whether --with-sysroot was given.
8649: if test "${with_sysroot+set}" = set; then :
8650: withval=$with_sysroot;
8651: else
8652: with_sysroot=no
8653: fi
8654:
8655:
8656: lt_sysroot=
8657: case ${with_sysroot} in #(
8658: yes)
8659: if test "$GCC" = yes; then
8660: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8661: fi
8662: ;; #(
8663: /*)
8664: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8665: ;; #(
8666: no|'')
8667: ;; #(
8668: *)
8669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8670: $as_echo "${with_sysroot}" >&6; }
8671: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8672: ;;
8673: esac
8674:
8675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8676: $as_echo "${lt_sysroot:-no}" >&6; }
8677:
8678:
8679:
8680:
8681:
8682: # Check whether --enable-libtool-lock was given.
8683: if test "${enable_libtool_lock+set}" = set; then :
8684: enableval=$enable_libtool_lock;
8685: fi
8686:
8687: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8688:
8689: # Some flags need to be propagated to the compiler or linker for good
8690: # libtool support.
8691: case $host in
8692: ia64-*-hpux*)
8693: # Find out which ABI we are using.
8694: echo 'int i;' > conftest.$ac_ext
8695: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8696: (eval $ac_compile) 2>&5
8697: ac_status=$?
8698: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8699: test $ac_status = 0; }; then
8700: case `/usr/bin/file conftest.$ac_objext` in
8701: *ELF-32*)
8702: HPUX_IA64_MODE="32"
8703: ;;
8704: *ELF-64*)
8705: HPUX_IA64_MODE="64"
8706: ;;
8707: esac
8708: fi
8709: rm -rf conftest*
8710: ;;
8711: *-*-irix6*)
8712: # Find out which ABI we are using.
8713: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8714: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8715: (eval $ac_compile) 2>&5
8716: ac_status=$?
8717: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8718: test $ac_status = 0; }; then
8719: if test "$lt_cv_prog_gnu_ld" = yes; then
8720: case `/usr/bin/file conftest.$ac_objext` in
8721: *32-bit*)
8722: LD="${LD-ld} -melf32bsmip"
8723: ;;
8724: *N32*)
8725: LD="${LD-ld} -melf32bmipn32"
8726: ;;
8727: *64-bit*)
8728: LD="${LD-ld} -melf64bmip"
8729: ;;
8730: esac
8731: else
8732: case `/usr/bin/file conftest.$ac_objext` in
8733: *32-bit*)
8734: LD="${LD-ld} -32"
8735: ;;
8736: *N32*)
8737: LD="${LD-ld} -n32"
8738: ;;
8739: *64-bit*)
8740: LD="${LD-ld} -64"
8741: ;;
8742: esac
8743: fi
8744: fi
8745: rm -rf conftest*
8746: ;;
8747:
8748: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8749: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8750: # Find out which ABI we are using.
8751: echo 'int i;' > conftest.$ac_ext
8752: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8753: (eval $ac_compile) 2>&5
8754: ac_status=$?
8755: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8756: test $ac_status = 0; }; then
8757: case `/usr/bin/file conftest.o` in
8758: *32-bit*)
8759: case $host in
8760: x86_64-*kfreebsd*-gnu)
8761: LD="${LD-ld} -m elf_i386_fbsd"
8762: ;;
8763: x86_64-*linux*)
8764: LD="${LD-ld} -m elf_i386"
8765: ;;
8766: ppc64-*linux*|powerpc64-*linux*)
8767: LD="${LD-ld} -m elf32ppclinux"
8768: ;;
8769: s390x-*linux*)
8770: LD="${LD-ld} -m elf_s390"
8771: ;;
8772: sparc64-*linux*)
8773: LD="${LD-ld} -m elf32_sparc"
8774: ;;
8775: esac
8776: ;;
8777: *64-bit*)
8778: case $host in
8779: x86_64-*kfreebsd*-gnu)
8780: LD="${LD-ld} -m elf_x86_64_fbsd"
8781: ;;
8782: x86_64-*linux*)
8783: LD="${LD-ld} -m elf_x86_64"
8784: ;;
8785: ppc*-*linux*|powerpc*-*linux*)
8786: LD="${LD-ld} -m elf64ppc"
8787: ;;
8788: s390*-*linux*|s390*-*tpf*)
8789: LD="${LD-ld} -m elf64_s390"
8790: ;;
8791: sparc*-*linux*)
8792: LD="${LD-ld} -m elf64_sparc"
8793: ;;
8794: esac
8795: ;;
8796: esac
8797: fi
8798: rm -rf conftest*
8799: ;;
8800:
8801: *-*-sco3.2v5*)
8802: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8803: SAVE_CFLAGS="$CFLAGS"
8804: CFLAGS="$CFLAGS -belf"
8805: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8806: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8807: if ${lt_cv_cc_needs_belf+:} false; then :
8808: $as_echo_n "(cached) " >&6
8809: else
8810: ac_ext=c
8811: ac_cpp='$CPP $CPPFLAGS'
8812: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8813: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8814: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8815:
8816: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817: /* end confdefs.h. */
8818:
8819: int
8820: main ()
8821: {
8822:
8823: ;
8824: return 0;
8825: }
8826: _ACEOF
8827: if ac_fn_c_try_link "$LINENO"; then :
8828: lt_cv_cc_needs_belf=yes
8829: else
8830: lt_cv_cc_needs_belf=no
8831: fi
8832: rm -f core conftest.err conftest.$ac_objext \
8833: conftest$ac_exeext conftest.$ac_ext
8834: ac_ext=c
8835: ac_cpp='$CPP $CPPFLAGS'
8836: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8837: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8838: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8839:
8840: fi
8841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8842: $as_echo "$lt_cv_cc_needs_belf" >&6; }
8843: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8844: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8845: CFLAGS="$SAVE_CFLAGS"
8846: fi
8847: ;;
1.1.1.4 ! misho 8848: *-*solaris*)
1.1 misho 8849: # Find out which ABI we are using.
8850: echo 'int i;' > conftest.$ac_ext
8851: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8852: (eval $ac_compile) 2>&5
8853: ac_status=$?
8854: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8855: test $ac_status = 0; }; then
8856: case `/usr/bin/file conftest.o` in
8857: *64-bit*)
8858: case $lt_cv_prog_gnu_ld in
1.1.1.4 ! misho 8859: yes*)
! 8860: case $host in
! 8861: i?86-*-solaris*)
! 8862: LD="${LD-ld} -m elf_x86_64"
! 8863: ;;
! 8864: sparc*-*-solaris*)
! 8865: LD="${LD-ld} -m elf64_sparc"
! 8866: ;;
! 8867: esac
! 8868: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
! 8869: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
! 8870: LD="${LD-ld}_sol2"
! 8871: fi
! 8872: ;;
1.1 misho 8873: *)
8874: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8875: LD="${LD-ld} -64"
8876: fi
8877: ;;
8878: esac
8879: ;;
8880: esac
8881: fi
8882: rm -rf conftest*
8883: ;;
8884: esac
8885:
8886: need_locks="$enable_libtool_lock"
8887:
8888: if test -n "$ac_tool_prefix"; then
8889: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8890: set dummy ${ac_tool_prefix}mt; ac_word=$2
8891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8892: $as_echo_n "checking for $ac_word... " >&6; }
8893: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8894: $as_echo_n "(cached) " >&6
8895: else
8896: if test -n "$MANIFEST_TOOL"; then
8897: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8898: else
8899: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900: for as_dir in $PATH
8901: do
8902: IFS=$as_save_IFS
8903: test -z "$as_dir" && as_dir=.
8904: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 8905: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 8906: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8907: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8908: break 2
8909: fi
8910: done
8911: done
8912: IFS=$as_save_IFS
8913:
8914: fi
8915: fi
8916: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8917: if test -n "$MANIFEST_TOOL"; then
8918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8919: $as_echo "$MANIFEST_TOOL" >&6; }
8920: else
8921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922: $as_echo "no" >&6; }
8923: fi
8924:
8925:
8926: fi
8927: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8928: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8929: # Extract the first word of "mt", so it can be a program name with args.
8930: set dummy mt; ac_word=$2
8931: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8932: $as_echo_n "checking for $ac_word... " >&6; }
8933: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8934: $as_echo_n "(cached) " >&6
8935: else
8936: if test -n "$ac_ct_MANIFEST_TOOL"; then
8937: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8938: else
8939: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940: for as_dir in $PATH
8941: do
8942: IFS=$as_save_IFS
8943: test -z "$as_dir" && as_dir=.
8944: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 8945: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 8946: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8947: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8948: break 2
8949: fi
8950: done
8951: done
8952: IFS=$as_save_IFS
8953:
8954: fi
8955: fi
8956: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8957: if test -n "$ac_ct_MANIFEST_TOOL"; then
8958: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8959: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8960: else
8961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962: $as_echo "no" >&6; }
8963: fi
8964:
8965: if test "x$ac_ct_MANIFEST_TOOL" = x; then
8966: MANIFEST_TOOL=":"
8967: else
8968: case $cross_compiling:$ac_tool_warned in
8969: yes:)
8970: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8971: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8972: ac_tool_warned=yes ;;
8973: esac
8974: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8975: fi
8976: else
8977: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8978: fi
8979:
8980: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8981: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8982: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8983: if ${lt_cv_path_mainfest_tool+:} false; then :
8984: $as_echo_n "(cached) " >&6
8985: else
8986: lt_cv_path_mainfest_tool=no
8987: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8988: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8989: cat conftest.err >&5
8990: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8991: lt_cv_path_mainfest_tool=yes
8992: fi
8993: rm -f conftest*
8994: fi
8995: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8996: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8997: if test "x$lt_cv_path_mainfest_tool" != xyes; then
8998: MANIFEST_TOOL=:
8999: fi
9000:
9001:
9002:
9003:
9004:
9005:
9006: case $host_os in
9007: rhapsody* | darwin*)
9008: if test -n "$ac_tool_prefix"; then
9009: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9010: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9011: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012: $as_echo_n "checking for $ac_word... " >&6; }
9013: if ${ac_cv_prog_DSYMUTIL+:} false; then :
9014: $as_echo_n "(cached) " >&6
9015: else
9016: if test -n "$DSYMUTIL"; then
9017: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9018: else
9019: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020: for as_dir in $PATH
9021: do
9022: IFS=$as_save_IFS
9023: test -z "$as_dir" && as_dir=.
9024: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 9025: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 9026: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9027: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028: break 2
9029: fi
9030: done
9031: done
9032: IFS=$as_save_IFS
9033:
9034: fi
9035: fi
9036: DSYMUTIL=$ac_cv_prog_DSYMUTIL
9037: if test -n "$DSYMUTIL"; then
9038: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9039: $as_echo "$DSYMUTIL" >&6; }
9040: else
9041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042: $as_echo "no" >&6; }
9043: fi
9044:
9045:
9046: fi
9047: if test -z "$ac_cv_prog_DSYMUTIL"; then
9048: ac_ct_DSYMUTIL=$DSYMUTIL
9049: # Extract the first word of "dsymutil", so it can be a program name with args.
9050: set dummy dsymutil; ac_word=$2
9051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9052: $as_echo_n "checking for $ac_word... " >&6; }
9053: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9054: $as_echo_n "(cached) " >&6
9055: else
9056: if test -n "$ac_ct_DSYMUTIL"; then
9057: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9058: else
9059: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060: for as_dir in $PATH
9061: do
9062: IFS=$as_save_IFS
9063: test -z "$as_dir" && as_dir=.
9064: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 9065: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 9066: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9067: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9068: break 2
9069: fi
9070: done
9071: done
9072: IFS=$as_save_IFS
9073:
9074: fi
9075: fi
9076: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9077: if test -n "$ac_ct_DSYMUTIL"; then
9078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9079: $as_echo "$ac_ct_DSYMUTIL" >&6; }
9080: else
9081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082: $as_echo "no" >&6; }
9083: fi
9084:
9085: if test "x$ac_ct_DSYMUTIL" = x; then
9086: DSYMUTIL=":"
9087: else
9088: case $cross_compiling:$ac_tool_warned in
9089: yes:)
9090: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9091: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9092: ac_tool_warned=yes ;;
9093: esac
9094: DSYMUTIL=$ac_ct_DSYMUTIL
9095: fi
9096: else
9097: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9098: fi
9099:
9100: if test -n "$ac_tool_prefix"; then
9101: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9102: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9103: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104: $as_echo_n "checking for $ac_word... " >&6; }
9105: if ${ac_cv_prog_NMEDIT+:} false; then :
9106: $as_echo_n "(cached) " >&6
9107: else
9108: if test -n "$NMEDIT"; then
9109: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9110: else
9111: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112: for as_dir in $PATH
9113: do
9114: IFS=$as_save_IFS
9115: test -z "$as_dir" && as_dir=.
9116: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 9117: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 9118: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9119: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9120: break 2
9121: fi
9122: done
9123: done
9124: IFS=$as_save_IFS
9125:
9126: fi
9127: fi
9128: NMEDIT=$ac_cv_prog_NMEDIT
9129: if test -n "$NMEDIT"; then
9130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9131: $as_echo "$NMEDIT" >&6; }
9132: else
9133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134: $as_echo "no" >&6; }
9135: fi
9136:
9137:
9138: fi
9139: if test -z "$ac_cv_prog_NMEDIT"; then
9140: ac_ct_NMEDIT=$NMEDIT
9141: # Extract the first word of "nmedit", so it can be a program name with args.
9142: set dummy nmedit; ac_word=$2
9143: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144: $as_echo_n "checking for $ac_word... " >&6; }
9145: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9146: $as_echo_n "(cached) " >&6
9147: else
9148: if test -n "$ac_ct_NMEDIT"; then
9149: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9150: else
9151: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152: for as_dir in $PATH
9153: do
9154: IFS=$as_save_IFS
9155: test -z "$as_dir" && as_dir=.
9156: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 9157: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 9158: ac_cv_prog_ac_ct_NMEDIT="nmedit"
9159: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9160: break 2
9161: fi
9162: done
9163: done
9164: IFS=$as_save_IFS
9165:
9166: fi
9167: fi
9168: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9169: if test -n "$ac_ct_NMEDIT"; then
9170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9171: $as_echo "$ac_ct_NMEDIT" >&6; }
9172: else
9173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9174: $as_echo "no" >&6; }
9175: fi
9176:
9177: if test "x$ac_ct_NMEDIT" = x; then
9178: NMEDIT=":"
9179: else
9180: case $cross_compiling:$ac_tool_warned in
9181: yes:)
9182: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9183: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9184: ac_tool_warned=yes ;;
9185: esac
9186: NMEDIT=$ac_ct_NMEDIT
9187: fi
9188: else
9189: NMEDIT="$ac_cv_prog_NMEDIT"
9190: fi
9191:
9192: if test -n "$ac_tool_prefix"; then
9193: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9194: set dummy ${ac_tool_prefix}lipo; ac_word=$2
9195: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9196: $as_echo_n "checking for $ac_word... " >&6; }
9197: if ${ac_cv_prog_LIPO+:} false; then :
9198: $as_echo_n "(cached) " >&6
9199: else
9200: if test -n "$LIPO"; then
9201: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9202: else
9203: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204: for as_dir in $PATH
9205: do
9206: IFS=$as_save_IFS
9207: test -z "$as_dir" && as_dir=.
9208: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 9209: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 9210: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9211: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9212: break 2
9213: fi
9214: done
9215: done
9216: IFS=$as_save_IFS
9217:
9218: fi
9219: fi
9220: LIPO=$ac_cv_prog_LIPO
9221: if test -n "$LIPO"; then
9222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9223: $as_echo "$LIPO" >&6; }
9224: else
9225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226: $as_echo "no" >&6; }
9227: fi
9228:
9229:
9230: fi
9231: if test -z "$ac_cv_prog_LIPO"; then
9232: ac_ct_LIPO=$LIPO
9233: # Extract the first word of "lipo", so it can be a program name with args.
9234: set dummy lipo; ac_word=$2
9235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9236: $as_echo_n "checking for $ac_word... " >&6; }
9237: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9238: $as_echo_n "(cached) " >&6
9239: else
9240: if test -n "$ac_ct_LIPO"; then
9241: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9242: else
9243: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244: for as_dir in $PATH
9245: do
9246: IFS=$as_save_IFS
9247: test -z "$as_dir" && as_dir=.
9248: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 9249: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 9250: ac_cv_prog_ac_ct_LIPO="lipo"
9251: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9252: break 2
9253: fi
9254: done
9255: done
9256: IFS=$as_save_IFS
9257:
9258: fi
9259: fi
9260: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9261: if test -n "$ac_ct_LIPO"; then
9262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9263: $as_echo "$ac_ct_LIPO" >&6; }
9264: else
9265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9266: $as_echo "no" >&6; }
9267: fi
9268:
9269: if test "x$ac_ct_LIPO" = x; then
9270: LIPO=":"
9271: else
9272: case $cross_compiling:$ac_tool_warned in
9273: yes:)
9274: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9275: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9276: ac_tool_warned=yes ;;
9277: esac
9278: LIPO=$ac_ct_LIPO
9279: fi
9280: else
9281: LIPO="$ac_cv_prog_LIPO"
9282: fi
9283:
9284: if test -n "$ac_tool_prefix"; then
9285: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9286: set dummy ${ac_tool_prefix}otool; ac_word=$2
9287: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288: $as_echo_n "checking for $ac_word... " >&6; }
9289: if ${ac_cv_prog_OTOOL+:} false; then :
9290: $as_echo_n "(cached) " >&6
9291: else
9292: if test -n "$OTOOL"; then
9293: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9294: else
9295: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296: for as_dir in $PATH
9297: do
9298: IFS=$as_save_IFS
9299: test -z "$as_dir" && as_dir=.
9300: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 9301: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 9302: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9303: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9304: break 2
9305: fi
9306: done
9307: done
9308: IFS=$as_save_IFS
9309:
9310: fi
9311: fi
9312: OTOOL=$ac_cv_prog_OTOOL
9313: if test -n "$OTOOL"; then
9314: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9315: $as_echo "$OTOOL" >&6; }
9316: else
9317: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318: $as_echo "no" >&6; }
9319: fi
9320:
9321:
9322: fi
9323: if test -z "$ac_cv_prog_OTOOL"; then
9324: ac_ct_OTOOL=$OTOOL
9325: # Extract the first word of "otool", so it can be a program name with args.
9326: set dummy otool; ac_word=$2
9327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9328: $as_echo_n "checking for $ac_word... " >&6; }
9329: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9330: $as_echo_n "(cached) " >&6
9331: else
9332: if test -n "$ac_ct_OTOOL"; then
9333: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9334: else
9335: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336: for as_dir in $PATH
9337: do
9338: IFS=$as_save_IFS
9339: test -z "$as_dir" && as_dir=.
9340: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 9341: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 9342: ac_cv_prog_ac_ct_OTOOL="otool"
9343: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9344: break 2
9345: fi
9346: done
9347: done
9348: IFS=$as_save_IFS
9349:
9350: fi
9351: fi
9352: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9353: if test -n "$ac_ct_OTOOL"; then
9354: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9355: $as_echo "$ac_ct_OTOOL" >&6; }
9356: else
9357: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358: $as_echo "no" >&6; }
9359: fi
9360:
9361: if test "x$ac_ct_OTOOL" = x; then
9362: OTOOL=":"
9363: else
9364: case $cross_compiling:$ac_tool_warned in
9365: yes:)
9366: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9367: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9368: ac_tool_warned=yes ;;
9369: esac
9370: OTOOL=$ac_ct_OTOOL
9371: fi
9372: else
9373: OTOOL="$ac_cv_prog_OTOOL"
9374: fi
9375:
9376: if test -n "$ac_tool_prefix"; then
9377: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9378: set dummy ${ac_tool_prefix}otool64; ac_word=$2
9379: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9380: $as_echo_n "checking for $ac_word... " >&6; }
9381: if ${ac_cv_prog_OTOOL64+:} false; then :
9382: $as_echo_n "(cached) " >&6
9383: else
9384: if test -n "$OTOOL64"; then
9385: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9386: else
9387: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388: for as_dir in $PATH
9389: do
9390: IFS=$as_save_IFS
9391: test -z "$as_dir" && as_dir=.
9392: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 9393: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 9394: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9395: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9396: break 2
9397: fi
9398: done
9399: done
9400: IFS=$as_save_IFS
9401:
9402: fi
9403: fi
9404: OTOOL64=$ac_cv_prog_OTOOL64
9405: if test -n "$OTOOL64"; then
9406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9407: $as_echo "$OTOOL64" >&6; }
9408: else
9409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410: $as_echo "no" >&6; }
9411: fi
9412:
9413:
9414: fi
9415: if test -z "$ac_cv_prog_OTOOL64"; then
9416: ac_ct_OTOOL64=$OTOOL64
9417: # Extract the first word of "otool64", so it can be a program name with args.
9418: set dummy otool64; ac_word=$2
9419: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9420: $as_echo_n "checking for $ac_word... " >&6; }
9421: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9422: $as_echo_n "(cached) " >&6
9423: else
9424: if test -n "$ac_ct_OTOOL64"; then
9425: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9426: else
9427: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428: for as_dir in $PATH
9429: do
9430: IFS=$as_save_IFS
9431: test -z "$as_dir" && as_dir=.
9432: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.4 ! misho 9433: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1 misho 9434: ac_cv_prog_ac_ct_OTOOL64="otool64"
9435: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9436: break 2
9437: fi
9438: done
9439: done
9440: IFS=$as_save_IFS
9441:
9442: fi
9443: fi
9444: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9445: if test -n "$ac_ct_OTOOL64"; then
9446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9447: $as_echo "$ac_ct_OTOOL64" >&6; }
9448: else
9449: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450: $as_echo "no" >&6; }
9451: fi
9452:
9453: if test "x$ac_ct_OTOOL64" = x; then
9454: OTOOL64=":"
9455: else
9456: case $cross_compiling:$ac_tool_warned in
9457: yes:)
9458: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9459: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9460: ac_tool_warned=yes ;;
9461: esac
9462: OTOOL64=$ac_ct_OTOOL64
9463: fi
9464: else
9465: OTOOL64="$ac_cv_prog_OTOOL64"
9466: fi
9467:
9468:
9469:
9470:
9471:
9472:
9473:
9474:
9475:
9476:
9477:
9478:
9479:
9480:
9481:
9482:
9483:
9484:
9485:
9486:
9487:
9488:
9489:
9490:
9491:
9492:
9493:
9494: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9495: $as_echo_n "checking for -single_module linker flag... " >&6; }
9496: if ${lt_cv_apple_cc_single_mod+:} false; then :
9497: $as_echo_n "(cached) " >&6
9498: else
9499: lt_cv_apple_cc_single_mod=no
9500: if test -z "${LT_MULTI_MODULE}"; then
9501: # By default we will add the -single_module flag. You can override
9502: # by either setting the environment variable LT_MULTI_MODULE
9503: # non-empty at configure time, or by adding -multi_module to the
9504: # link flags.
9505: rm -rf libconftest.dylib*
9506: echo "int foo(void){return 1;}" > conftest.c
9507: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9508: -dynamiclib -Wl,-single_module conftest.c" >&5
9509: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9510: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9511: _lt_result=$?
1.1.1.4 ! misho 9512: # If there is a non-empty error log, and "single_module"
! 9513: # appears in it, assume the flag caused a linker warning
! 9514: if test -s conftest.err && $GREP single_module conftest.err; then
! 9515: cat conftest.err >&5
! 9516: # Otherwise, if the output was created with a 0 exit code from
! 9517: # the compiler, it worked.
! 9518: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1.1 misho 9519: lt_cv_apple_cc_single_mod=yes
9520: else
9521: cat conftest.err >&5
9522: fi
9523: rm -rf libconftest.dylib*
9524: rm -f conftest.*
9525: fi
9526: fi
9527: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9528: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.1.1.4 ! misho 9529:
1.1 misho 9530: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9531: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9532: if ${lt_cv_ld_exported_symbols_list+:} false; then :
9533: $as_echo_n "(cached) " >&6
9534: else
9535: lt_cv_ld_exported_symbols_list=no
9536: save_LDFLAGS=$LDFLAGS
9537: echo "_main" > conftest.sym
9538: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9539: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540: /* end confdefs.h. */
9541:
9542: int
9543: main ()
9544: {
9545:
9546: ;
9547: return 0;
9548: }
9549: _ACEOF
9550: if ac_fn_c_try_link "$LINENO"; then :
9551: lt_cv_ld_exported_symbols_list=yes
9552: else
9553: lt_cv_ld_exported_symbols_list=no
9554: fi
9555: rm -f core conftest.err conftest.$ac_objext \
9556: conftest$ac_exeext conftest.$ac_ext
9557: LDFLAGS="$save_LDFLAGS"
9558:
9559: fi
9560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9561: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.1.1.4 ! misho 9562:
1.1 misho 9563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9564: $as_echo_n "checking for -force_load linker flag... " >&6; }
9565: if ${lt_cv_ld_force_load+:} false; then :
9566: $as_echo_n "(cached) " >&6
9567: else
9568: lt_cv_ld_force_load=no
9569: cat > conftest.c << _LT_EOF
9570: int forced_loaded() { return 2;}
9571: _LT_EOF
9572: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9573: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9574: echo "$AR cru libconftest.a conftest.o" >&5
9575: $AR cru libconftest.a conftest.o 2>&5
9576: echo "$RANLIB libconftest.a" >&5
9577: $RANLIB libconftest.a 2>&5
9578: cat > conftest.c << _LT_EOF
9579: int main() { return 0;}
9580: _LT_EOF
9581: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9582: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9583: _lt_result=$?
1.1.1.4 ! misho 9584: if test -s conftest.err && $GREP force_load conftest.err; then
! 9585: cat conftest.err >&5
! 9586: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1.1 misho 9587: lt_cv_ld_force_load=yes
9588: else
9589: cat conftest.err >&5
9590: fi
9591: rm -f conftest.err libconftest.a conftest conftest.c
9592: rm -rf conftest.dSYM
9593:
9594: fi
9595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9596: $as_echo "$lt_cv_ld_force_load" >&6; }
9597: case $host_os in
9598: rhapsody* | darwin1.[012])
9599: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9600: darwin1.*)
9601: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9602: darwin*) # darwin 5.x on
9603: # if running on 10.5 or later, the deployment target defaults
9604: # to the OS version, if on x86, and 10.4, the deployment
9605: # target defaults to 10.4. Don't you love it?
9606: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9607: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9608: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9609: 10.[012]*)
9610: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9611: 10.*)
9612: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9613: esac
9614: ;;
9615: esac
9616: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9617: _lt_dar_single_mod='$single_module'
9618: fi
9619: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9620: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9621: else
9622: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9623: fi
9624: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9625: _lt_dsymutil='~$DSYMUTIL $lib || :'
9626: else
9627: _lt_dsymutil=
9628: fi
9629: ;;
9630: esac
9631:
9632: for ac_header in dlfcn.h
9633: do :
9634: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9635: "
9636: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9637: cat >>confdefs.h <<_ACEOF
9638: #define HAVE_DLFCN_H 1
9639: _ACEOF
9640:
9641: fi
9642:
9643: done
9644:
9645:
9646:
9647: func_stripname_cnf ()
9648: {
9649: case ${2} in
9650: .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9651: *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9652: esac
9653: } # func_stripname_cnf
9654:
9655:
9656:
9657:
9658:
9659: # Set options
9660:
9661:
9662:
9663: enable_dlopen=no
9664:
9665:
9666:
9667: # Check whether --enable-shared was given.
9668: if test "${enable_shared+set}" = set; then :
9669: enableval=$enable_shared; p=${PACKAGE-default}
9670: case $enableval in
9671: yes) enable_shared=yes ;;
9672: no) enable_shared=no ;;
9673: *)
9674: enable_shared=no
9675: # Look at the argument we got. We use all the common list separators.
9676: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9677: for pkg in $enableval; do
9678: IFS="$lt_save_ifs"
9679: if test "X$pkg" = "X$p"; then
9680: enable_shared=yes
9681: fi
9682: done
9683: IFS="$lt_save_ifs"
9684: ;;
9685: esac
9686: else
9687: enable_shared=yes
9688: fi
9689:
9690:
9691:
9692:
9693:
9694:
9695:
9696:
9697:
9698: # Check whether --enable-static was given.
9699: if test "${enable_static+set}" = set; then :
9700: enableval=$enable_static; p=${PACKAGE-default}
9701: case $enableval in
9702: yes) enable_static=yes ;;
9703: no) enable_static=no ;;
9704: *)
9705: enable_static=no
9706: # Look at the argument we got. We use all the common list separators.
9707: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9708: for pkg in $enableval; do
9709: IFS="$lt_save_ifs"
9710: if test "X$pkg" = "X$p"; then
9711: enable_static=yes
9712: fi
9713: done
9714: IFS="$lt_save_ifs"
9715: ;;
9716: esac
9717: else
9718: enable_static=yes
9719: fi
9720:
9721:
9722:
9723:
9724:
9725:
9726:
9727:
9728:
9729:
9730: # Check whether --with-pic was given.
9731: if test "${with_pic+set}" = set; then :
1.1.1.4 ! misho 9732: withval=$with_pic; lt_p=${PACKAGE-default}
! 9733: case $withval in
! 9734: yes|no) pic_mode=$withval ;;
! 9735: *)
! 9736: pic_mode=default
! 9737: # Look at the argument we got. We use all the common list separators.
! 9738: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 9739: for lt_pkg in $withval; do
! 9740: IFS="$lt_save_ifs"
! 9741: if test "X$lt_pkg" = "X$lt_p"; then
! 9742: pic_mode=yes
! 9743: fi
! 9744: done
! 9745: IFS="$lt_save_ifs"
! 9746: ;;
! 9747: esac
1.1 misho 9748: else
9749: pic_mode=default
9750: fi
9751:
9752:
9753: test -z "$pic_mode" && pic_mode=default
9754:
9755:
9756:
9757:
9758:
9759:
9760:
9761: # Check whether --enable-fast-install was given.
9762: if test "${enable_fast_install+set}" = set; then :
9763: enableval=$enable_fast_install; p=${PACKAGE-default}
9764: case $enableval in
9765: yes) enable_fast_install=yes ;;
9766: no) enable_fast_install=no ;;
9767: *)
9768: enable_fast_install=no
9769: # Look at the argument we got. We use all the common list separators.
9770: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9771: for pkg in $enableval; do
9772: IFS="$lt_save_ifs"
9773: if test "X$pkg" = "X$p"; then
9774: enable_fast_install=yes
9775: fi
9776: done
9777: IFS="$lt_save_ifs"
9778: ;;
9779: esac
9780: else
9781: enable_fast_install=yes
9782: fi
9783:
9784:
9785:
9786:
9787:
9788:
9789:
9790:
9791:
9792:
9793:
9794: # This can be used to rebuild libtool when needed
9795: LIBTOOL_DEPS="$ltmain"
9796:
9797: # Always use our own libtool.
9798: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9799:
9800:
9801:
9802:
9803:
9804:
9805:
9806:
9807:
9808:
9809:
9810:
9811:
9812:
9813:
9814:
9815:
9816:
9817:
9818:
9819:
9820:
9821:
9822:
9823:
9824:
1.1.1.4 ! misho 9825:
! 9826:
! 9827:
! 9828:
1.1 misho 9829: test -z "$LN_S" && LN_S="ln -s"
9830:
9831:
9832:
9833:
9834:
9835:
9836:
9837:
9838:
9839:
9840:
9841:
9842:
9843:
9844: if test -n "${ZSH_VERSION+set}" ; then
9845: setopt NO_GLOB_SUBST
9846: fi
9847:
9848: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9849: $as_echo_n "checking for objdir... " >&6; }
9850: if ${lt_cv_objdir+:} false; then :
9851: $as_echo_n "(cached) " >&6
9852: else
9853: rm -f .libs 2>/dev/null
9854: mkdir .libs 2>/dev/null
9855: if test -d .libs; then
9856: lt_cv_objdir=.libs
9857: else
9858: # MS-DOS does not allow filenames that begin with a dot.
9859: lt_cv_objdir=_libs
9860: fi
9861: rmdir .libs 2>/dev/null
9862: fi
9863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9864: $as_echo "$lt_cv_objdir" >&6; }
9865: objdir=$lt_cv_objdir
9866:
9867:
9868:
9869:
9870:
9871: cat >>confdefs.h <<_ACEOF
9872: #define LT_OBJDIR "$lt_cv_objdir/"
9873: _ACEOF
9874:
9875:
9876:
9877:
9878: case $host_os in
9879: aix3*)
9880: # AIX sometimes has problems with the GCC collect2 program. For some
9881: # reason, if we set the COLLECT_NAMES environment variable, the problems
9882: # vanish in a puff of smoke.
9883: if test "X${COLLECT_NAMES+set}" != Xset; then
9884: COLLECT_NAMES=
9885: export COLLECT_NAMES
9886: fi
9887: ;;
9888: esac
9889:
9890: # Global variables:
9891: ofile=libtool
9892: can_build_shared=yes
9893:
9894: # All known linkers require a `.a' archive for static linking (except MSVC,
9895: # which needs '.lib').
9896: libext=a
9897:
9898: with_gnu_ld="$lt_cv_prog_gnu_ld"
9899:
9900: old_CC="$CC"
9901: old_CFLAGS="$CFLAGS"
9902:
9903: # Set sane defaults for various variables
9904: test -z "$CC" && CC=cc
9905: test -z "$LTCC" && LTCC=$CC
9906: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9907: test -z "$LD" && LD=ld
9908: test -z "$ac_objext" && ac_objext=o
9909:
9910: for cc_temp in $compiler""; do
9911: case $cc_temp in
9912: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9913: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9914: \-*) ;;
9915: *) break;;
9916: esac
9917: done
9918: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9919:
9920:
9921: # Only perform the check for file, if the check method requires it
9922: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9923: case $deplibs_check_method in
9924: file_magic*)
9925: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9926: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9927: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9928: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9929: $as_echo_n "(cached) " >&6
9930: else
9931: case $MAGIC_CMD in
9932: [\\/*] | ?:[\\/]*)
9933: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9934: ;;
9935: *)
9936: lt_save_MAGIC_CMD="$MAGIC_CMD"
9937: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9938: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9939: for ac_dir in $ac_dummy; do
9940: IFS="$lt_save_ifs"
9941: test -z "$ac_dir" && ac_dir=.
9942: if test -f $ac_dir/${ac_tool_prefix}file; then
9943: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9944: if test -n "$file_magic_test_file"; then
9945: case $deplibs_check_method in
9946: "file_magic "*)
9947: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9948: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9949: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9950: $EGREP "$file_magic_regex" > /dev/null; then
9951: :
9952: else
9953: cat <<_LT_EOF 1>&2
9954:
9955: *** Warning: the command libtool uses to detect shared libraries,
9956: *** $file_magic_cmd, produces output that libtool cannot recognize.
9957: *** The result is that libtool may fail to recognize shared libraries
9958: *** as such. This will affect the creation of libtool libraries that
9959: *** depend on shared libraries, but programs linked with such libtool
9960: *** libraries will work regardless of this problem. Nevertheless, you
9961: *** may want to report the problem to your system manager and/or to
9962: *** bug-libtool@gnu.org
9963:
9964: _LT_EOF
9965: fi ;;
9966: esac
9967: fi
9968: break
9969: fi
9970: done
9971: IFS="$lt_save_ifs"
9972: MAGIC_CMD="$lt_save_MAGIC_CMD"
9973: ;;
9974: esac
9975: fi
9976:
9977: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9978: if test -n "$MAGIC_CMD"; then
9979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9980: $as_echo "$MAGIC_CMD" >&6; }
9981: else
9982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983: $as_echo "no" >&6; }
9984: fi
9985:
9986:
9987:
9988:
9989:
9990: if test -z "$lt_cv_path_MAGIC_CMD"; then
9991: if test -n "$ac_tool_prefix"; then
9992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9993: $as_echo_n "checking for file... " >&6; }
9994: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9995: $as_echo_n "(cached) " >&6
9996: else
9997: case $MAGIC_CMD in
9998: [\\/*] | ?:[\\/]*)
9999: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10000: ;;
10001: *)
10002: lt_save_MAGIC_CMD="$MAGIC_CMD"
10003: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10004: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10005: for ac_dir in $ac_dummy; do
10006: IFS="$lt_save_ifs"
10007: test -z "$ac_dir" && ac_dir=.
10008: if test -f $ac_dir/file; then
10009: lt_cv_path_MAGIC_CMD="$ac_dir/file"
10010: if test -n "$file_magic_test_file"; then
10011: case $deplibs_check_method in
10012: "file_magic "*)
10013: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10014: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10015: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10016: $EGREP "$file_magic_regex" > /dev/null; then
10017: :
10018: else
10019: cat <<_LT_EOF 1>&2
10020:
10021: *** Warning: the command libtool uses to detect shared libraries,
10022: *** $file_magic_cmd, produces output that libtool cannot recognize.
10023: *** The result is that libtool may fail to recognize shared libraries
10024: *** as such. This will affect the creation of libtool libraries that
10025: *** depend on shared libraries, but programs linked with such libtool
10026: *** libraries will work regardless of this problem. Nevertheless, you
10027: *** may want to report the problem to your system manager and/or to
10028: *** bug-libtool@gnu.org
10029:
10030: _LT_EOF
10031: fi ;;
10032: esac
10033: fi
10034: break
10035: fi
10036: done
10037: IFS="$lt_save_ifs"
10038: MAGIC_CMD="$lt_save_MAGIC_CMD"
10039: ;;
10040: esac
10041: fi
10042:
10043: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10044: if test -n "$MAGIC_CMD"; then
10045: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10046: $as_echo "$MAGIC_CMD" >&6; }
10047: else
10048: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10049: $as_echo "no" >&6; }
10050: fi
10051:
10052:
10053: else
10054: MAGIC_CMD=:
10055: fi
10056: fi
10057:
10058: fi
10059: ;;
10060: esac
10061:
10062: # Use C for the default configuration in the libtool script
10063:
10064: lt_save_CC="$CC"
10065: ac_ext=c
10066: ac_cpp='$CPP $CPPFLAGS'
10067: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10068: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10069: ac_compiler_gnu=$ac_cv_c_compiler_gnu
10070:
10071:
10072: # Source file extension for C test sources.
10073: ac_ext=c
10074:
10075: # Object file extension for compiled C test sources.
10076: objext=o
10077: objext=$objext
10078:
10079: # Code to be used in simple compile tests
10080: lt_simple_compile_test_code="int some_variable = 0;"
10081:
10082: # Code to be used in simple link tests
10083: lt_simple_link_test_code='int main(){return(0);}'
10084:
10085:
10086:
10087:
10088:
10089:
10090:
10091: # If no C compiler was specified, use CC.
10092: LTCC=${LTCC-"$CC"}
10093:
10094: # If no C compiler flags were specified, use CFLAGS.
10095: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10096:
10097: # Allow CC to be a program name with arguments.
10098: compiler=$CC
10099:
10100: # Save the default compiler, since it gets overwritten when the other
10101: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10102: compiler_DEFAULT=$CC
10103:
10104: # save warnings/boilerplate of simple test code
10105: ac_outfile=conftest.$ac_objext
10106: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10107: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10108: _lt_compiler_boilerplate=`cat conftest.err`
10109: $RM conftest*
10110:
10111: ac_outfile=conftest.$ac_objext
10112: echo "$lt_simple_link_test_code" >conftest.$ac_ext
10113: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10114: _lt_linker_boilerplate=`cat conftest.err`
10115: $RM -r conftest*
10116:
10117:
1.1.1.4 ! misho 10118: ## CAVEAT EMPTOR:
! 10119: ## There is no encapsulation within the following macros, do not change
! 10120: ## the running order or otherwise move them around unless you know exactly
! 10121: ## what you are doing...
1.1 misho 10122: if test -n "$compiler"; then
10123:
10124: lt_prog_compiler_no_builtin_flag=
10125:
10126: if test "$GCC" = yes; then
10127: case $cc_basename in
10128: nvcc*)
10129: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10130: *)
10131: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10132: esac
10133:
10134: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10135: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10136: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10137: $as_echo_n "(cached) " >&6
10138: else
10139: lt_cv_prog_compiler_rtti_exceptions=no
10140: ac_outfile=conftest.$ac_objext
10141: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10142: lt_compiler_flag="-fno-rtti -fno-exceptions"
10143: # Insert the option either (1) after the last *FLAGS variable, or
10144: # (2) before a word containing "conftest.", or (3) at the end.
10145: # Note that $ac_compile itself does not contain backslashes and begins
10146: # with a dollar sign (not a hyphen), so the echo should work correctly.
10147: # The option is referenced via a variable to avoid confusing sed.
10148: lt_compile=`echo "$ac_compile" | $SED \
10149: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10150: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10151: -e 's:$: $lt_compiler_flag:'`
10152: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10153: (eval "$lt_compile" 2>conftest.err)
10154: ac_status=$?
10155: cat conftest.err >&5
10156: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157: if (exit $ac_status) && test -s "$ac_outfile"; then
10158: # The compiler can only warn and ignore the option if not recognized
10159: # So say no if there are warnings other than the usual output.
10160: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10161: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10162: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10163: lt_cv_prog_compiler_rtti_exceptions=yes
10164: fi
10165: fi
10166: $RM conftest*
10167:
10168: fi
10169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10170: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10171:
10172: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10173: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10174: else
10175: :
10176: fi
10177:
10178: fi
10179:
10180:
10181:
10182:
10183:
10184:
10185: lt_prog_compiler_wl=
10186: lt_prog_compiler_pic=
10187: lt_prog_compiler_static=
10188:
10189:
10190: if test "$GCC" = yes; then
10191: lt_prog_compiler_wl='-Wl,'
10192: lt_prog_compiler_static='-static'
10193:
10194: case $host_os in
10195: aix*)
10196: # All AIX code is PIC.
10197: if test "$host_cpu" = ia64; then
10198: # AIX 5 now supports IA64 processor
10199: lt_prog_compiler_static='-Bstatic'
10200: fi
10201: ;;
10202:
10203: amigaos*)
10204: case $host_cpu in
10205: powerpc)
10206: # see comment about AmigaOS4 .so support
10207: lt_prog_compiler_pic='-fPIC'
10208: ;;
10209: m68k)
10210: # FIXME: we need at least 68020 code to build shared libraries, but
10211: # adding the `-m68020' flag to GCC prevents building anything better,
10212: # like `-m68040'.
10213: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10214: ;;
10215: esac
10216: ;;
10217:
10218: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10219: # PIC is the default for these OSes.
10220: ;;
10221:
10222: mingw* | cygwin* | pw32* | os2* | cegcc*)
10223: # This hack is so that the source file can tell whether it is being
10224: # built for inclusion in a dll (and should export symbols for example).
10225: # Although the cygwin gcc ignores -fPIC, still need this for old-style
10226: # (--disable-auto-import) libraries
10227: lt_prog_compiler_pic='-DDLL_EXPORT'
10228: ;;
10229:
10230: darwin* | rhapsody*)
10231: # PIC is the default on this platform
10232: # Common symbols not allowed in MH_DYLIB files
10233: lt_prog_compiler_pic='-fno-common'
10234: ;;
10235:
10236: haiku*)
10237: # PIC is the default for Haiku.
10238: # The "-static" flag exists, but is broken.
10239: lt_prog_compiler_static=
10240: ;;
10241:
10242: hpux*)
10243: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10244: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10245: # sets the default TLS model and affects inlining.
10246: case $host_cpu in
10247: hppa*64*)
10248: # +Z the default
10249: ;;
10250: *)
10251: lt_prog_compiler_pic='-fPIC'
10252: ;;
10253: esac
10254: ;;
10255:
10256: interix[3-9]*)
10257: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10258: # Instead, we relocate shared libraries at runtime.
10259: ;;
10260:
10261: msdosdjgpp*)
10262: # Just because we use GCC doesn't mean we suddenly get shared libraries
10263: # on systems that don't support them.
10264: lt_prog_compiler_can_build_shared=no
10265: enable_shared=no
10266: ;;
10267:
10268: *nto* | *qnx*)
10269: # QNX uses GNU C++, but need to define -shared option too, otherwise
10270: # it will coredump.
10271: lt_prog_compiler_pic='-fPIC -shared'
10272: ;;
10273:
10274: sysv4*MP*)
10275: if test -d /usr/nec; then
10276: lt_prog_compiler_pic=-Kconform_pic
10277: fi
10278: ;;
10279:
10280: *)
10281: lt_prog_compiler_pic='-fPIC'
10282: ;;
10283: esac
10284:
10285: case $cc_basename in
10286: nvcc*) # Cuda Compiler Driver 2.2
10287: lt_prog_compiler_wl='-Xlinker '
1.1.1.4 ! misho 10288: if test -n "$lt_prog_compiler_pic"; then
! 10289: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
! 10290: fi
1.1 misho 10291: ;;
10292: esac
10293: else
10294: # PORTME Check for flag to pass linker flags through the system compiler.
10295: case $host_os in
10296: aix*)
10297: lt_prog_compiler_wl='-Wl,'
10298: if test "$host_cpu" = ia64; then
10299: # AIX 5 now supports IA64 processor
10300: lt_prog_compiler_static='-Bstatic'
10301: else
10302: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10303: fi
10304: ;;
10305:
10306: mingw* | cygwin* | pw32* | os2* | cegcc*)
10307: # This hack is so that the source file can tell whether it is being
10308: # built for inclusion in a dll (and should export symbols for example).
10309: lt_prog_compiler_pic='-DDLL_EXPORT'
10310: ;;
10311:
10312: hpux9* | hpux10* | hpux11*)
10313: lt_prog_compiler_wl='-Wl,'
10314: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10315: # not for PA HP-UX.
10316: case $host_cpu in
10317: hppa*64*|ia64*)
10318: # +Z the default
10319: ;;
10320: *)
10321: lt_prog_compiler_pic='+Z'
10322: ;;
10323: esac
10324: # Is there a better lt_prog_compiler_static that works with the bundled CC?
10325: lt_prog_compiler_static='${wl}-a ${wl}archive'
10326: ;;
10327:
10328: irix5* | irix6* | nonstopux*)
10329: lt_prog_compiler_wl='-Wl,'
10330: # PIC (with -KPIC) is the default.
10331: lt_prog_compiler_static='-non_shared'
10332: ;;
10333:
10334: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10335: case $cc_basename in
10336: # old Intel for x86_64 which still supported -KPIC.
10337: ecc*)
10338: lt_prog_compiler_wl='-Wl,'
10339: lt_prog_compiler_pic='-KPIC'
10340: lt_prog_compiler_static='-static'
10341: ;;
10342: # icc used to be incompatible with GCC.
10343: # ICC 10 doesn't accept -KPIC any more.
10344: icc* | ifort*)
10345: lt_prog_compiler_wl='-Wl,'
10346: lt_prog_compiler_pic='-fPIC'
10347: lt_prog_compiler_static='-static'
10348: ;;
10349: # Lahey Fortran 8.1.
10350: lf95*)
10351: lt_prog_compiler_wl='-Wl,'
10352: lt_prog_compiler_pic='--shared'
10353: lt_prog_compiler_static='--static'
10354: ;;
10355: nagfor*)
10356: # NAG Fortran compiler
10357: lt_prog_compiler_wl='-Wl,-Wl,,'
10358: lt_prog_compiler_pic='-PIC'
10359: lt_prog_compiler_static='-Bstatic'
10360: ;;
10361: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10362: # Portland Group compilers (*not* the Pentium gcc compiler,
10363: # which looks to be a dead project)
10364: lt_prog_compiler_wl='-Wl,'
10365: lt_prog_compiler_pic='-fpic'
10366: lt_prog_compiler_static='-Bstatic'
10367: ;;
10368: ccc*)
10369: lt_prog_compiler_wl='-Wl,'
10370: # All Alpha code is PIC.
10371: lt_prog_compiler_static='-non_shared'
10372: ;;
10373: xl* | bgxl* | bgf* | mpixl*)
10374: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10375: lt_prog_compiler_wl='-Wl,'
10376: lt_prog_compiler_pic='-qpic'
10377: lt_prog_compiler_static='-qstaticlink'
10378: ;;
10379: *)
10380: case `$CC -V 2>&1 | sed 5q` in
1.1.1.4 ! misho 10381: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
1.1 misho 10382: # Sun Fortran 8.3 passes all unrecognized flags to the linker
10383: lt_prog_compiler_pic='-KPIC'
10384: lt_prog_compiler_static='-Bstatic'
10385: lt_prog_compiler_wl=''
10386: ;;
1.1.1.4 ! misho 10387: *Sun\ F* | *Sun*Fortran*)
! 10388: lt_prog_compiler_pic='-KPIC'
! 10389: lt_prog_compiler_static='-Bstatic'
! 10390: lt_prog_compiler_wl='-Qoption ld '
! 10391: ;;
1.1 misho 10392: *Sun\ C*)
10393: # Sun C 5.9
10394: lt_prog_compiler_pic='-KPIC'
10395: lt_prog_compiler_static='-Bstatic'
10396: lt_prog_compiler_wl='-Wl,'
10397: ;;
1.1.1.4 ! misho 10398: *Intel*\ [CF]*Compiler*)
! 10399: lt_prog_compiler_wl='-Wl,'
! 10400: lt_prog_compiler_pic='-fPIC'
! 10401: lt_prog_compiler_static='-static'
! 10402: ;;
! 10403: *Portland\ Group*)
! 10404: lt_prog_compiler_wl='-Wl,'
! 10405: lt_prog_compiler_pic='-fpic'
! 10406: lt_prog_compiler_static='-Bstatic'
! 10407: ;;
1.1 misho 10408: esac
10409: ;;
10410: esac
10411: ;;
10412:
10413: newsos6)
10414: lt_prog_compiler_pic='-KPIC'
10415: lt_prog_compiler_static='-Bstatic'
10416: ;;
10417:
10418: *nto* | *qnx*)
10419: # QNX uses GNU C++, but need to define -shared option too, otherwise
10420: # it will coredump.
10421: lt_prog_compiler_pic='-fPIC -shared'
10422: ;;
10423:
10424: osf3* | osf4* | osf5*)
10425: lt_prog_compiler_wl='-Wl,'
10426: # All OSF/1 code is PIC.
10427: lt_prog_compiler_static='-non_shared'
10428: ;;
10429:
10430: rdos*)
10431: lt_prog_compiler_static='-non_shared'
10432: ;;
10433:
10434: solaris*)
10435: lt_prog_compiler_pic='-KPIC'
10436: lt_prog_compiler_static='-Bstatic'
10437: case $cc_basename in
10438: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10439: lt_prog_compiler_wl='-Qoption ld ';;
10440: *)
10441: lt_prog_compiler_wl='-Wl,';;
10442: esac
10443: ;;
10444:
10445: sunos4*)
10446: lt_prog_compiler_wl='-Qoption ld '
10447: lt_prog_compiler_pic='-PIC'
10448: lt_prog_compiler_static='-Bstatic'
10449: ;;
10450:
10451: sysv4 | sysv4.2uw2* | sysv4.3*)
10452: lt_prog_compiler_wl='-Wl,'
10453: lt_prog_compiler_pic='-KPIC'
10454: lt_prog_compiler_static='-Bstatic'
10455: ;;
10456:
10457: sysv4*MP*)
10458: if test -d /usr/nec ;then
10459: lt_prog_compiler_pic='-Kconform_pic'
10460: lt_prog_compiler_static='-Bstatic'
10461: fi
10462: ;;
10463:
10464: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10465: lt_prog_compiler_wl='-Wl,'
10466: lt_prog_compiler_pic='-KPIC'
10467: lt_prog_compiler_static='-Bstatic'
10468: ;;
10469:
10470: unicos*)
10471: lt_prog_compiler_wl='-Wl,'
10472: lt_prog_compiler_can_build_shared=no
10473: ;;
10474:
10475: uts4*)
10476: lt_prog_compiler_pic='-pic'
10477: lt_prog_compiler_static='-Bstatic'
10478: ;;
10479:
10480: *)
10481: lt_prog_compiler_can_build_shared=no
10482: ;;
10483: esac
10484: fi
10485:
10486: case $host_os in
10487: # For platforms which do not support PIC, -DPIC is meaningless:
10488: *djgpp*)
10489: lt_prog_compiler_pic=
10490: ;;
10491: *)
10492: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10493: ;;
10494: esac
10495:
10496: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10497: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10498: if ${lt_cv_prog_compiler_pic+:} false; then :
10499: $as_echo_n "(cached) " >&6
10500: else
10501: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10502: fi
10503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10504: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10505: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10506:
10507: #
10508: # Check to make sure the PIC flag actually works.
10509: #
10510: if test -n "$lt_prog_compiler_pic"; then
10511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10512: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10513: if ${lt_cv_prog_compiler_pic_works+:} false; then :
10514: $as_echo_n "(cached) " >&6
10515: else
10516: lt_cv_prog_compiler_pic_works=no
10517: ac_outfile=conftest.$ac_objext
10518: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10519: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10520: # Insert the option either (1) after the last *FLAGS variable, or
10521: # (2) before a word containing "conftest.", or (3) at the end.
10522: # Note that $ac_compile itself does not contain backslashes and begins
10523: # with a dollar sign (not a hyphen), so the echo should work correctly.
10524: # The option is referenced via a variable to avoid confusing sed.
10525: lt_compile=`echo "$ac_compile" | $SED \
10526: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10527: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10528: -e 's:$: $lt_compiler_flag:'`
10529: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10530: (eval "$lt_compile" 2>conftest.err)
10531: ac_status=$?
10532: cat conftest.err >&5
10533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534: if (exit $ac_status) && test -s "$ac_outfile"; then
10535: # The compiler can only warn and ignore the option if not recognized
10536: # So say no if there are warnings other than the usual output.
10537: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10538: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10539: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10540: lt_cv_prog_compiler_pic_works=yes
10541: fi
10542: fi
10543: $RM conftest*
10544:
10545: fi
10546: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10547: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10548:
10549: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10550: case $lt_prog_compiler_pic in
10551: "" | " "*) ;;
10552: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10553: esac
10554: else
10555: lt_prog_compiler_pic=
10556: lt_prog_compiler_can_build_shared=no
10557: fi
10558:
10559: fi
10560:
10561:
10562:
10563:
10564:
10565:
10566:
10567:
10568:
10569:
10570:
10571: #
10572: # Check to make sure the static flag actually works.
10573: #
10574: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10575: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10576: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10577: if ${lt_cv_prog_compiler_static_works+:} false; then :
10578: $as_echo_n "(cached) " >&6
10579: else
10580: lt_cv_prog_compiler_static_works=no
10581: save_LDFLAGS="$LDFLAGS"
10582: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10583: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10584: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10585: # The linker can only warn and ignore the option if not recognized
10586: # So say no if there are warnings
10587: if test -s conftest.err; then
10588: # Append any errors to the config.log.
10589: cat conftest.err 1>&5
10590: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10591: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10592: if diff conftest.exp conftest.er2 >/dev/null; then
10593: lt_cv_prog_compiler_static_works=yes
10594: fi
10595: else
10596: lt_cv_prog_compiler_static_works=yes
10597: fi
10598: fi
10599: $RM -r conftest*
10600: LDFLAGS="$save_LDFLAGS"
10601:
10602: fi
10603: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10604: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10605:
10606: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10607: :
10608: else
10609: lt_prog_compiler_static=
10610: fi
10611:
10612:
10613:
10614:
10615:
10616:
10617:
10618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10619: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10620: if ${lt_cv_prog_compiler_c_o+:} false; then :
10621: $as_echo_n "(cached) " >&6
10622: else
10623: lt_cv_prog_compiler_c_o=no
10624: $RM -r conftest 2>/dev/null
10625: mkdir conftest
10626: cd conftest
10627: mkdir out
10628: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10629:
10630: lt_compiler_flag="-o out/conftest2.$ac_objext"
10631: # Insert the option either (1) after the last *FLAGS variable, or
10632: # (2) before a word containing "conftest.", or (3) at the end.
10633: # Note that $ac_compile itself does not contain backslashes and begins
10634: # with a dollar sign (not a hyphen), so the echo should work correctly.
10635: lt_compile=`echo "$ac_compile" | $SED \
10636: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10637: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10638: -e 's:$: $lt_compiler_flag:'`
10639: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10640: (eval "$lt_compile" 2>out/conftest.err)
10641: ac_status=$?
10642: cat out/conftest.err >&5
10643: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10645: then
10646: # The compiler can only warn and ignore the option if not recognized
10647: # So say no if there are warnings
10648: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10649: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10650: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10651: lt_cv_prog_compiler_c_o=yes
10652: fi
10653: fi
10654: chmod u+w . 2>&5
10655: $RM conftest*
10656: # SGI C++ compiler will create directory out/ii_files/ for
10657: # template instantiation
10658: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10659: $RM out/* && rmdir out
10660: cd ..
10661: $RM -r conftest
10662: $RM conftest*
10663:
10664: fi
10665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10666: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10667:
10668:
10669:
10670:
10671:
10672:
10673: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10674: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10675: if ${lt_cv_prog_compiler_c_o+:} false; then :
10676: $as_echo_n "(cached) " >&6
10677: else
10678: lt_cv_prog_compiler_c_o=no
10679: $RM -r conftest 2>/dev/null
10680: mkdir conftest
10681: cd conftest
10682: mkdir out
10683: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10684:
10685: lt_compiler_flag="-o out/conftest2.$ac_objext"
10686: # Insert the option either (1) after the last *FLAGS variable, or
10687: # (2) before a word containing "conftest.", or (3) at the end.
10688: # Note that $ac_compile itself does not contain backslashes and begins
10689: # with a dollar sign (not a hyphen), so the echo should work correctly.
10690: lt_compile=`echo "$ac_compile" | $SED \
10691: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10692: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10693: -e 's:$: $lt_compiler_flag:'`
10694: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10695: (eval "$lt_compile" 2>out/conftest.err)
10696: ac_status=$?
10697: cat out/conftest.err >&5
10698: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10700: then
10701: # The compiler can only warn and ignore the option if not recognized
10702: # So say no if there are warnings
10703: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10704: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10705: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10706: lt_cv_prog_compiler_c_o=yes
10707: fi
10708: fi
10709: chmod u+w . 2>&5
10710: $RM conftest*
10711: # SGI C++ compiler will create directory out/ii_files/ for
10712: # template instantiation
10713: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10714: $RM out/* && rmdir out
10715: cd ..
10716: $RM -r conftest
10717: $RM conftest*
10718:
10719: fi
10720: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10721: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10722:
10723:
10724:
10725:
10726: hard_links="nottested"
10727: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10728: # do not overwrite the value of need_locks provided by the user
10729: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10730: $as_echo_n "checking if we can lock with hard links... " >&6; }
10731: hard_links=yes
10732: $RM conftest*
10733: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10734: touch conftest.a
10735: ln conftest.a conftest.b 2>&5 || hard_links=no
10736: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10738: $as_echo "$hard_links" >&6; }
10739: if test "$hard_links" = no; then
10740: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10741: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10742: need_locks=warn
10743: fi
10744: else
10745: need_locks=no
10746: fi
10747:
10748:
10749:
10750:
10751:
10752:
10753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10754: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10755:
10756: runpath_var=
10757: allow_undefined_flag=
10758: always_export_symbols=no
10759: archive_cmds=
10760: archive_expsym_cmds=
10761: compiler_needs_object=no
10762: enable_shared_with_static_runtimes=no
10763: export_dynamic_flag_spec=
10764: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10765: hardcode_automatic=no
10766: hardcode_direct=no
10767: hardcode_direct_absolute=no
10768: hardcode_libdir_flag_spec=
10769: hardcode_libdir_separator=
10770: hardcode_minus_L=no
10771: hardcode_shlibpath_var=unsupported
10772: inherit_rpath=no
10773: link_all_deplibs=unknown
10774: module_cmds=
10775: module_expsym_cmds=
10776: old_archive_from_new_cmds=
10777: old_archive_from_expsyms_cmds=
10778: thread_safe_flag_spec=
10779: whole_archive_flag_spec=
10780: # include_expsyms should be a list of space-separated symbols to be *always*
10781: # included in the symbol list
10782: include_expsyms=
10783: # exclude_expsyms can be an extended regexp of symbols to exclude
10784: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10785: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10786: # as well as any symbol that contains `d'.
10787: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10788: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10789: # platforms (ab)use it in PIC code, but their linkers get confused if
10790: # the symbol is explicitly referenced. Since portable code cannot
10791: # rely on this symbol name, it's probably fine to never include it in
10792: # preloaded symbol tables.
10793: # Exclude shared library initialization/finalization symbols.
10794: extract_expsyms_cmds=
10795:
10796: case $host_os in
10797: cygwin* | mingw* | pw32* | cegcc*)
10798: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10799: # When not using gcc, we currently assume that we are using
10800: # Microsoft Visual C++.
10801: if test "$GCC" != yes; then
10802: with_gnu_ld=no
10803: fi
10804: ;;
10805: interix*)
10806: # we just hope/assume this is gcc and not c89 (= MSVC++)
10807: with_gnu_ld=yes
10808: ;;
10809: openbsd*)
10810: with_gnu_ld=no
10811: ;;
10812: esac
10813:
10814: ld_shlibs=yes
10815:
10816: # On some targets, GNU ld is compatible enough with the native linker
10817: # that we're better off using the native interface for both.
10818: lt_use_gnu_ld_interface=no
10819: if test "$with_gnu_ld" = yes; then
10820: case $host_os in
10821: aix*)
10822: # The AIX port of GNU ld has always aspired to compatibility
10823: # with the native linker. However, as the warning in the GNU ld
10824: # block says, versions before 2.19.5* couldn't really create working
10825: # shared libraries, regardless of the interface used.
10826: case `$LD -v 2>&1` in
10827: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10828: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10829: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10830: *)
10831: lt_use_gnu_ld_interface=yes
10832: ;;
10833: esac
10834: ;;
10835: *)
10836: lt_use_gnu_ld_interface=yes
10837: ;;
10838: esac
10839: fi
10840:
10841: if test "$lt_use_gnu_ld_interface" = yes; then
10842: # If archive_cmds runs LD, not CC, wlarc should be empty
10843: wlarc='${wl}'
10844:
10845: # Set some defaults for GNU ld with shared library support. These
10846: # are reset later if shared libraries are not supported. Putting them
10847: # here allows them to be overridden if necessary.
10848: runpath_var=LD_RUN_PATH
10849: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10850: export_dynamic_flag_spec='${wl}--export-dynamic'
10851: # ancient GNU ld didn't support --whole-archive et. al.
10852: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10853: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10854: else
10855: whole_archive_flag_spec=
10856: fi
10857: supports_anon_versioning=no
10858: case `$LD -v 2>&1` in
10859: *GNU\ gold*) supports_anon_versioning=yes ;;
10860: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10861: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10862: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10863: *\ 2.11.*) ;; # other 2.11 versions
10864: *) supports_anon_versioning=yes ;;
10865: esac
10866:
10867: # See if GNU ld supports shared libraries.
10868: case $host_os in
10869: aix[3-9]*)
10870: # On AIX/PPC, the GNU linker is very broken
10871: if test "$host_cpu" != ia64; then
10872: ld_shlibs=no
10873: cat <<_LT_EOF 1>&2
10874:
10875: *** Warning: the GNU linker, at least up to release 2.19, is reported
10876: *** to be unable to reliably create shared libraries on AIX.
10877: *** Therefore, libtool is disabling shared libraries support. If you
10878: *** really care for shared libraries, you may want to install binutils
10879: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10880: *** You will then need to restart the configuration process.
10881:
10882: _LT_EOF
10883: fi
10884: ;;
10885:
10886: amigaos*)
10887: case $host_cpu in
10888: powerpc)
10889: # see comment about AmigaOS4 .so support
10890: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10891: archive_expsym_cmds=''
10892: ;;
10893: m68k)
10894: 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)'
10895: hardcode_libdir_flag_spec='-L$libdir'
10896: hardcode_minus_L=yes
10897: ;;
10898: esac
10899: ;;
10900:
10901: beos*)
10902: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10903: allow_undefined_flag=unsupported
10904: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10905: # support --undefined. This deserves some investigation. FIXME
10906: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10907: else
10908: ld_shlibs=no
10909: fi
10910: ;;
10911:
10912: cygwin* | mingw* | pw32* | cegcc*)
10913: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10914: # as there is no search path for DLLs.
10915: hardcode_libdir_flag_spec='-L$libdir'
10916: export_dynamic_flag_spec='${wl}--export-all-symbols'
10917: allow_undefined_flag=unsupported
10918: always_export_symbols=no
10919: enable_shared_with_static_runtimes=yes
10920: 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'
10921: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10922:
10923: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10924: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10925: # If the export-symbols file already is a .def file (1st line
10926: # is EXPORTS), use it as is; otherwise, prepend...
10927: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10928: cp $export_symbols $output_objdir/$soname.def;
10929: else
10930: echo EXPORTS > $output_objdir/$soname.def;
10931: cat $export_symbols >> $output_objdir/$soname.def;
10932: fi~
10933: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10934: else
10935: ld_shlibs=no
10936: fi
10937: ;;
10938:
10939: haiku*)
10940: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10941: link_all_deplibs=yes
10942: ;;
10943:
10944: interix[3-9]*)
10945: hardcode_direct=no
10946: hardcode_shlibpath_var=no
10947: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10948: export_dynamic_flag_spec='${wl}-E'
10949: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10950: # Instead, shared libraries are loaded at an image base (0x10000000 by
10951: # default) and relocated if they conflict, which is a slow very memory
10952: # consuming and fragmenting process. To avoid this, we pick a random,
10953: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10954: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10955: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10956: 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'
10957: ;;
10958:
10959: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10960: tmp_diet=no
10961: if test "$host_os" = linux-dietlibc; then
10962: case $cc_basename in
10963: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10964: esac
10965: fi
10966: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10967: && test "$tmp_diet" = no
10968: then
10969: tmp_addflag=' $pic_flag'
10970: tmp_sharedflag='-shared'
10971: case $cc_basename,$host_cpu in
10972: pgcc*) # Portland Group C compiler
10973: 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'
10974: tmp_addflag=' $pic_flag'
10975: ;;
10976: pgf77* | pgf90* | pgf95* | pgfortran*)
10977: # Portland Group f77 and f90 compilers
10978: 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'
10979: tmp_addflag=' $pic_flag -Mnomain' ;;
10980: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10981: tmp_addflag=' -i_dynamic' ;;
10982: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10983: tmp_addflag=' -i_dynamic -nofor_main' ;;
10984: ifc* | ifort*) # Intel Fortran compiler
10985: tmp_addflag=' -nofor_main' ;;
10986: lf95*) # Lahey Fortran 8.1
10987: whole_archive_flag_spec=
10988: tmp_sharedflag='--shared' ;;
10989: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10990: tmp_sharedflag='-qmkshrobj'
10991: tmp_addflag= ;;
10992: nvcc*) # Cuda Compiler Driver 2.2
10993: 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'
10994: compiler_needs_object=yes
10995: ;;
10996: esac
10997: case `$CC -V 2>&1 | sed 5q` in
10998: *Sun\ C*) # Sun C 5.9
10999: 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'
11000: compiler_needs_object=yes
11001: tmp_sharedflag='-G' ;;
11002: *Sun\ F*) # Sun Fortran 8.3
11003: tmp_sharedflag='-G' ;;
11004: esac
11005: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11006:
11007: if test "x$supports_anon_versioning" = xyes; then
11008: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11009: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11010: echo "local: *; };" >> $output_objdir/$libname.ver~
11011: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11012: fi
11013:
11014: case $cc_basename in
11015: xlf* | bgf* | bgxlf* | mpixlf*)
11016: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11017: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
1.1.1.4 ! misho 11018: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1.1 misho 11019: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11020: if test "x$supports_anon_versioning" = xyes; then
11021: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11022: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11023: echo "local: *; };" >> $output_objdir/$libname.ver~
11024: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11025: fi
11026: ;;
11027: esac
11028: else
11029: ld_shlibs=no
11030: fi
11031: ;;
11032:
11033: netbsd*)
11034: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11035: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11036: wlarc=
11037: else
11038: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11039: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11040: fi
11041: ;;
11042:
11043: solaris*)
11044: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11045: ld_shlibs=no
11046: cat <<_LT_EOF 1>&2
11047:
11048: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11049: *** create shared libraries on Solaris systems. Therefore, libtool
11050: *** is disabling shared libraries support. We urge you to upgrade GNU
11051: *** binutils to release 2.9.1 or newer. Another option is to modify
11052: *** your PATH or compiler configuration so that the native linker is
11053: *** used, and then restart.
11054:
11055: _LT_EOF
11056: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11057: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11058: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11059: else
11060: ld_shlibs=no
11061: fi
11062: ;;
11063:
11064: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11065: case `$LD -v 2>&1` in
11066: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11067: ld_shlibs=no
11068: cat <<_LT_EOF 1>&2
11069:
11070: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11071: *** reliably create shared libraries on SCO systems. Therefore, libtool
11072: *** is disabling shared libraries support. We urge you to upgrade GNU
11073: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11074: *** your PATH or compiler configuration so that the native linker is
11075: *** used, and then restart.
11076:
11077: _LT_EOF
11078: ;;
11079: *)
11080: # For security reasons, it is highly recommended that you always
11081: # use absolute paths for naming shared libraries, and exclude the
11082: # DT_RUNPATH tag from executables and libraries. But doing so
11083: # requires that you compile everything twice, which is a pain.
11084: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11085: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11086: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11087: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11088: else
11089: ld_shlibs=no
11090: fi
11091: ;;
11092: esac
11093: ;;
11094:
11095: sunos4*)
11096: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11097: wlarc=
11098: hardcode_direct=yes
11099: hardcode_shlibpath_var=no
11100: ;;
11101:
11102: *)
11103: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11104: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11105: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11106: else
11107: ld_shlibs=no
11108: fi
11109: ;;
11110: esac
11111:
11112: if test "$ld_shlibs" = no; then
11113: runpath_var=
11114: hardcode_libdir_flag_spec=
11115: export_dynamic_flag_spec=
11116: whole_archive_flag_spec=
11117: fi
11118: else
11119: # PORTME fill in a description of your system's linker (not GNU ld)
11120: case $host_os in
11121: aix3*)
11122: allow_undefined_flag=unsupported
11123: always_export_symbols=yes
11124: 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'
11125: # Note: this linker hardcodes the directories in LIBPATH if there
11126: # are no directories specified by -L.
11127: hardcode_minus_L=yes
11128: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11129: # Neither direct hardcoding nor static linking is supported with a
11130: # broken collect2.
11131: hardcode_direct=unsupported
11132: fi
11133: ;;
11134:
11135: aix[4-9]*)
11136: if test "$host_cpu" = ia64; then
11137: # On IA64, the linker does run time linking by default, so we don't
11138: # have to do anything special.
11139: aix_use_runtimelinking=no
11140: exp_sym_flag='-Bexport'
11141: no_entry_flag=""
11142: else
11143: # If we're using GNU nm, then we don't want the "-C" option.
11144: # -C means demangle to AIX nm, but means don't demangle with GNU nm
11145: # Also, AIX nm treats weak defined symbols like other global
11146: # defined symbols, whereas GNU nm marks them as "W".
11147: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11148: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11149: else
11150: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11151: fi
11152: aix_use_runtimelinking=no
11153:
11154: # Test if we are trying to use run time linking or normal
11155: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11156: # need to do runtime linking.
11157: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11158: for ld_flag in $LDFLAGS; do
11159: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11160: aix_use_runtimelinking=yes
11161: break
11162: fi
11163: done
11164: ;;
11165: esac
11166:
11167: exp_sym_flag='-bexport'
11168: no_entry_flag='-bnoentry'
11169: fi
11170:
11171: # When large executables or shared objects are built, AIX ld can
11172: # have problems creating the table of contents. If linking a library
11173: # or program results in "error TOC overflow" add -mminimal-toc to
11174: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11175: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11176:
11177: archive_cmds=''
11178: hardcode_direct=yes
11179: hardcode_direct_absolute=yes
11180: hardcode_libdir_separator=':'
11181: link_all_deplibs=yes
11182: file_list_spec='${wl}-f,'
11183:
11184: if test "$GCC" = yes; then
11185: case $host_os in aix4.[012]|aix4.[012].*)
11186: # We only want to do this on AIX 4.2 and lower, the check
11187: # below for broken collect2 doesn't work under 4.3+
11188: collect2name=`${CC} -print-prog-name=collect2`
11189: if test -f "$collect2name" &&
11190: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11191: then
11192: # We have reworked collect2
11193: :
11194: else
11195: # We have old collect2
11196: hardcode_direct=unsupported
11197: # It fails to find uninstalled libraries when the uninstalled
11198: # path is not listed in the libpath. Setting hardcode_minus_L
11199: # to unsupported forces relinking
11200: hardcode_minus_L=yes
11201: hardcode_libdir_flag_spec='-L$libdir'
11202: hardcode_libdir_separator=
11203: fi
11204: ;;
11205: esac
11206: shared_flag='-shared'
11207: if test "$aix_use_runtimelinking" = yes; then
11208: shared_flag="$shared_flag "'${wl}-G'
11209: fi
11210: else
11211: # not using gcc
11212: if test "$host_cpu" = ia64; then
11213: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11214: # chokes on -Wl,-G. The following line is correct:
11215: shared_flag='-G'
11216: else
11217: if test "$aix_use_runtimelinking" = yes; then
11218: shared_flag='${wl}-G'
11219: else
11220: shared_flag='${wl}-bM:SRE'
11221: fi
11222: fi
11223: fi
11224:
11225: export_dynamic_flag_spec='${wl}-bexpall'
11226: # It seems that -bexpall does not export symbols beginning with
11227: # underscore (_), so it is better to generate a list of symbols to export.
11228: always_export_symbols=yes
11229: if test "$aix_use_runtimelinking" = yes; then
11230: # Warning - without using the other runtime loading flags (-brtl),
11231: # -berok will link without error, but may produce a broken library.
11232: allow_undefined_flag='-berok'
11233: # Determine the default libpath from the value encoded in an
11234: # empty executable.
11235: if test "${lt_cv_aix_libpath+set}" = set; then
11236: aix_libpath=$lt_cv_aix_libpath
11237: else
11238: if ${lt_cv_aix_libpath_+:} false; then :
11239: $as_echo_n "(cached) " >&6
11240: else
11241: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242: /* end confdefs.h. */
11243:
11244: int
11245: main ()
11246: {
11247:
11248: ;
11249: return 0;
11250: }
11251: _ACEOF
11252: if ac_fn_c_try_link "$LINENO"; then :
11253:
11254: lt_aix_libpath_sed='
11255: /Import File Strings/,/^$/ {
11256: /^0/ {
11257: s/^0 *\([^ ]*\) *$/\1/
11258: p
11259: }
11260: }'
11261: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11262: # Check for a 64-bit object if we didn't find anything.
11263: if test -z "$lt_cv_aix_libpath_"; then
11264: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11265: fi
11266: fi
11267: rm -f core conftest.err conftest.$ac_objext \
11268: conftest$ac_exeext conftest.$ac_ext
11269: if test -z "$lt_cv_aix_libpath_"; then
11270: lt_cv_aix_libpath_="/usr/lib:/lib"
11271: fi
11272:
11273: fi
11274:
11275: aix_libpath=$lt_cv_aix_libpath_
11276: fi
11277:
11278: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11279: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11280: else
11281: if test "$host_cpu" = ia64; then
11282: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11283: allow_undefined_flag="-z nodefs"
11284: 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"
11285: else
11286: # Determine the default libpath from the value encoded in an
11287: # empty executable.
11288: if test "${lt_cv_aix_libpath+set}" = set; then
11289: aix_libpath=$lt_cv_aix_libpath
11290: else
11291: if ${lt_cv_aix_libpath_+:} false; then :
11292: $as_echo_n "(cached) " >&6
11293: else
11294: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295: /* end confdefs.h. */
11296:
11297: int
11298: main ()
11299: {
11300:
11301: ;
11302: return 0;
11303: }
11304: _ACEOF
11305: if ac_fn_c_try_link "$LINENO"; then :
11306:
11307: lt_aix_libpath_sed='
11308: /Import File Strings/,/^$/ {
11309: /^0/ {
11310: s/^0 *\([^ ]*\) *$/\1/
11311: p
11312: }
11313: }'
11314: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11315: # Check for a 64-bit object if we didn't find anything.
11316: if test -z "$lt_cv_aix_libpath_"; then
11317: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11318: fi
11319: fi
11320: rm -f core conftest.err conftest.$ac_objext \
11321: conftest$ac_exeext conftest.$ac_ext
11322: if test -z "$lt_cv_aix_libpath_"; then
11323: lt_cv_aix_libpath_="/usr/lib:/lib"
11324: fi
11325:
11326: fi
11327:
11328: aix_libpath=$lt_cv_aix_libpath_
11329: fi
11330:
11331: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11332: # Warning - without using the other run time loading flags,
11333: # -berok will link without error, but may produce a broken library.
11334: no_undefined_flag=' ${wl}-bernotok'
11335: allow_undefined_flag=' ${wl}-berok'
11336: if test "$with_gnu_ld" = yes; then
11337: # We only use this code for GNU lds that support --whole-archive.
11338: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11339: else
11340: # Exported symbols can be pulled into shared objects from archives
11341: whole_archive_flag_spec='$convenience'
11342: fi
11343: archive_cmds_need_lc=yes
11344: # This is similar to how AIX traditionally builds its shared libraries.
11345: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11346: fi
11347: fi
11348: ;;
11349:
11350: amigaos*)
11351: case $host_cpu in
11352: powerpc)
11353: # see comment about AmigaOS4 .so support
11354: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11355: archive_expsym_cmds=''
11356: ;;
11357: m68k)
11358: 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)'
11359: hardcode_libdir_flag_spec='-L$libdir'
11360: hardcode_minus_L=yes
11361: ;;
11362: esac
11363: ;;
11364:
11365: bsdi[45]*)
11366: export_dynamic_flag_spec=-rdynamic
11367: ;;
11368:
11369: cygwin* | mingw* | pw32* | cegcc*)
11370: # When not using gcc, we currently assume that we are using
11371: # Microsoft Visual C++.
11372: # hardcode_libdir_flag_spec is actually meaningless, as there is
11373: # no search path for DLLs.
11374: case $cc_basename in
11375: cl*)
11376: # Native MSVC
11377: hardcode_libdir_flag_spec=' '
11378: allow_undefined_flag=unsupported
11379: always_export_symbols=yes
11380: file_list_spec='@'
11381: # Tell ltmain to make .lib files, not .a files.
11382: libext=lib
11383: # Tell ltmain to make .dll files, not .so files.
11384: shrext_cmds=".dll"
11385: # FIXME: Setting linknames here is a bad hack.
11386: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11387: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11388: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11389: else
11390: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11391: fi~
11392: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11393: linknames='
11394: # The linker will not automatically build a static lib if we build a DLL.
11395: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11396: enable_shared_with_static_runtimes=yes
1.1.1.4 ! misho 11397: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
1.1 misho 11398: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11399: # Don't use ranlib
11400: old_postinstall_cmds='chmod 644 $oldlib'
11401: postlink_cmds='lt_outputfile="@OUTPUT@"~
11402: lt_tool_outputfile="@TOOL_OUTPUT@"~
11403: case $lt_outputfile in
11404: *.exe|*.EXE) ;;
11405: *)
11406: lt_outputfile="$lt_outputfile.exe"
11407: lt_tool_outputfile="$lt_tool_outputfile.exe"
11408: ;;
11409: esac~
11410: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11411: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11412: $RM "$lt_outputfile.manifest";
11413: fi'
11414: ;;
11415: *)
11416: # Assume MSVC wrapper
11417: hardcode_libdir_flag_spec=' '
11418: allow_undefined_flag=unsupported
11419: # Tell ltmain to make .lib files, not .a files.
11420: libext=lib
11421: # Tell ltmain to make .dll files, not .so files.
11422: shrext_cmds=".dll"
11423: # FIXME: Setting linknames here is a bad hack.
11424: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11425: # The linker will automatically build a .lib file if we build a DLL.
11426: old_archive_from_new_cmds='true'
11427: # FIXME: Should let the user specify the lib program.
11428: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11429: enable_shared_with_static_runtimes=yes
11430: ;;
11431: esac
11432: ;;
11433:
11434: darwin* | rhapsody*)
11435:
11436:
11437: archive_cmds_need_lc=no
11438: hardcode_direct=no
11439: hardcode_automatic=yes
11440: hardcode_shlibpath_var=unsupported
11441: if test "$lt_cv_ld_force_load" = "yes"; then
11442: 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\"`'
1.1.1.4 ! misho 11443:
1.1 misho 11444: else
11445: whole_archive_flag_spec=''
11446: fi
11447: link_all_deplibs=yes
11448: allow_undefined_flag="$_lt_dar_allow_undefined"
11449: case $cc_basename in
11450: ifort*) _lt_dar_can_shared=yes ;;
11451: *) _lt_dar_can_shared=$GCC ;;
11452: esac
11453: if test "$_lt_dar_can_shared" = "yes"; then
11454: output_verbose_link_cmd=func_echo_all
11455: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11456: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11457: 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}"
11458: 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}"
11459:
11460: else
11461: ld_shlibs=no
11462: fi
11463:
11464: ;;
11465:
11466: dgux*)
11467: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11468: hardcode_libdir_flag_spec='-L$libdir'
11469: hardcode_shlibpath_var=no
11470: ;;
11471:
11472: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11473: # support. Future versions do this automatically, but an explicit c++rt0.o
11474: # does not break anything, and helps significantly (at the cost of a little
11475: # extra space).
11476: freebsd2.2*)
11477: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11478: hardcode_libdir_flag_spec='-R$libdir'
11479: hardcode_direct=yes
11480: hardcode_shlibpath_var=no
11481: ;;
11482:
11483: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1.1.1.4 ! misho 11484: freebsd2.*)
1.1 misho 11485: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11486: hardcode_direct=yes
11487: hardcode_minus_L=yes
11488: hardcode_shlibpath_var=no
11489: ;;
11490:
11491: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11492: freebsd* | dragonfly*)
11493: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11494: hardcode_libdir_flag_spec='-R$libdir'
11495: hardcode_direct=yes
11496: hardcode_shlibpath_var=no
11497: ;;
11498:
11499: hpux9*)
11500: if test "$GCC" = yes; then
11501: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11502: else
11503: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11504: fi
11505: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11506: hardcode_libdir_separator=:
11507: hardcode_direct=yes
11508:
11509: # hardcode_minus_L: Not really in the search PATH,
11510: # but as the default location of the library.
11511: hardcode_minus_L=yes
11512: export_dynamic_flag_spec='${wl}-E'
11513: ;;
11514:
11515: hpux10*)
11516: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11517: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11518: else
11519: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11520: fi
11521: if test "$with_gnu_ld" = no; then
11522: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11523: hardcode_libdir_separator=:
11524: hardcode_direct=yes
11525: hardcode_direct_absolute=yes
11526: export_dynamic_flag_spec='${wl}-E'
11527: # hardcode_minus_L: Not really in the search PATH,
11528: # but as the default location of the library.
11529: hardcode_minus_L=yes
11530: fi
11531: ;;
11532:
11533: hpux11*)
11534: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11535: case $host_cpu in
11536: hppa*64*)
11537: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11538: ;;
11539: ia64*)
11540: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11541: ;;
11542: *)
11543: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11544: ;;
11545: esac
11546: else
11547: case $host_cpu in
11548: hppa*64*)
11549: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11550: ;;
11551: ia64*)
11552: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11553: ;;
11554: *)
11555:
11556: # Older versions of the 11.00 compiler do not understand -b yet
11557: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11559: $as_echo_n "checking if $CC understands -b... " >&6; }
11560: if ${lt_cv_prog_compiler__b+:} false; then :
11561: $as_echo_n "(cached) " >&6
11562: else
11563: lt_cv_prog_compiler__b=no
11564: save_LDFLAGS="$LDFLAGS"
11565: LDFLAGS="$LDFLAGS -b"
11566: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11567: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11568: # The linker can only warn and ignore the option if not recognized
11569: # So say no if there are warnings
11570: if test -s conftest.err; then
11571: # Append any errors to the config.log.
11572: cat conftest.err 1>&5
11573: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11574: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11575: if diff conftest.exp conftest.er2 >/dev/null; then
11576: lt_cv_prog_compiler__b=yes
11577: fi
11578: else
11579: lt_cv_prog_compiler__b=yes
11580: fi
11581: fi
11582: $RM -r conftest*
11583: LDFLAGS="$save_LDFLAGS"
11584:
11585: fi
11586: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11587: $as_echo "$lt_cv_prog_compiler__b" >&6; }
11588:
11589: if test x"$lt_cv_prog_compiler__b" = xyes; then
11590: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11591: else
11592: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11593: fi
11594:
11595: ;;
11596: esac
11597: fi
11598: if test "$with_gnu_ld" = no; then
11599: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11600: hardcode_libdir_separator=:
11601:
11602: case $host_cpu in
11603: hppa*64*|ia64*)
11604: hardcode_direct=no
11605: hardcode_shlibpath_var=no
11606: ;;
11607: *)
11608: hardcode_direct=yes
11609: hardcode_direct_absolute=yes
11610: export_dynamic_flag_spec='${wl}-E'
11611:
11612: # hardcode_minus_L: Not really in the search PATH,
11613: # but as the default location of the library.
11614: hardcode_minus_L=yes
11615: ;;
11616: esac
11617: fi
11618: ;;
11619:
11620: irix5* | irix6* | nonstopux*)
11621: if test "$GCC" = yes; then
11622: 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'
11623: # Try to use the -exported_symbol ld option, if it does not
11624: # work, assume that -exports_file does not work either and
11625: # implicitly export all symbols.
11626: # This should be the same for all languages, so no per-tag cache variable.
11627: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11628: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11629: if ${lt_cv_irix_exported_symbol+:} false; then :
11630: $as_echo_n "(cached) " >&6
11631: else
11632: save_LDFLAGS="$LDFLAGS"
11633: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11634: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635: /* end confdefs.h. */
11636: int foo (void) { return 0; }
11637: _ACEOF
11638: if ac_fn_c_try_link "$LINENO"; then :
11639: lt_cv_irix_exported_symbol=yes
11640: else
11641: lt_cv_irix_exported_symbol=no
11642: fi
11643: rm -f core conftest.err conftest.$ac_objext \
11644: conftest$ac_exeext conftest.$ac_ext
11645: LDFLAGS="$save_LDFLAGS"
11646: fi
11647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11648: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11649: if test "$lt_cv_irix_exported_symbol" = yes; then
11650: 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'
11651: fi
11652: else
11653: 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'
11654: 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'
11655: fi
11656: archive_cmds_need_lc='no'
11657: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11658: hardcode_libdir_separator=:
11659: inherit_rpath=yes
11660: link_all_deplibs=yes
11661: ;;
11662:
11663: netbsd*)
11664: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11665: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11666: else
11667: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11668: fi
11669: hardcode_libdir_flag_spec='-R$libdir'
11670: hardcode_direct=yes
11671: hardcode_shlibpath_var=no
11672: ;;
11673:
11674: newsos6)
11675: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11676: hardcode_direct=yes
11677: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11678: hardcode_libdir_separator=:
11679: hardcode_shlibpath_var=no
11680: ;;
11681:
11682: *nto* | *qnx*)
11683: ;;
11684:
11685: openbsd*)
11686: if test -f /usr/libexec/ld.so; then
11687: hardcode_direct=yes
11688: hardcode_shlibpath_var=no
11689: hardcode_direct_absolute=yes
11690: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11691: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11692: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11693: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11694: export_dynamic_flag_spec='${wl}-E'
11695: else
11696: case $host_os in
11697: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11698: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11699: hardcode_libdir_flag_spec='-R$libdir'
11700: ;;
11701: *)
11702: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11703: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11704: ;;
11705: esac
11706: fi
11707: else
11708: ld_shlibs=no
11709: fi
11710: ;;
11711:
11712: os2*)
11713: hardcode_libdir_flag_spec='-L$libdir'
11714: hardcode_minus_L=yes
11715: allow_undefined_flag=unsupported
11716: archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11717: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11718: ;;
11719:
11720: osf3*)
11721: if test "$GCC" = yes; then
11722: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11723: 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'
11724: else
11725: allow_undefined_flag=' -expect_unresolved \*'
11726: 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'
11727: fi
11728: archive_cmds_need_lc='no'
11729: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11730: hardcode_libdir_separator=:
11731: ;;
11732:
11733: osf4* | osf5*) # as osf3* with the addition of -msym flag
11734: if test "$GCC" = yes; then
11735: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11736: 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'
11737: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11738: else
11739: allow_undefined_flag=' -expect_unresolved \*'
11740: 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'
11741: 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~
11742: $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'
11743:
11744: # Both c and cxx compiler support -rpath directly
11745: hardcode_libdir_flag_spec='-rpath $libdir'
11746: fi
11747: archive_cmds_need_lc='no'
11748: hardcode_libdir_separator=:
11749: ;;
11750:
11751: solaris*)
11752: no_undefined_flag=' -z defs'
11753: if test "$GCC" = yes; then
11754: wlarc='${wl}'
11755: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11756: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11757: $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'
11758: else
11759: case `$CC -V 2>&1` in
11760: *"Compilers 5.0"*)
11761: wlarc=''
11762: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11763: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11764: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11765: ;;
11766: *)
11767: wlarc='${wl}'
11768: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11769: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11770: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11771: ;;
11772: esac
11773: fi
11774: hardcode_libdir_flag_spec='-R$libdir'
11775: hardcode_shlibpath_var=no
11776: case $host_os in
11777: solaris2.[0-5] | solaris2.[0-5].*) ;;
11778: *)
11779: # The compiler driver will combine and reorder linker options,
11780: # but understands `-z linker_flag'. GCC discards it without `$wl',
11781: # but is careful enough not to reorder.
11782: # Supported since Solaris 2.6 (maybe 2.5.1?)
11783: if test "$GCC" = yes; then
11784: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11785: else
11786: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11787: fi
11788: ;;
11789: esac
11790: link_all_deplibs=yes
11791: ;;
11792:
11793: sunos4*)
11794: if test "x$host_vendor" = xsequent; then
11795: # Use $CC to link under sequent, because it throws in some extra .o
11796: # files that make .init and .fini sections work.
11797: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11798: else
11799: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11800: fi
11801: hardcode_libdir_flag_spec='-L$libdir'
11802: hardcode_direct=yes
11803: hardcode_minus_L=yes
11804: hardcode_shlibpath_var=no
11805: ;;
11806:
11807: sysv4)
11808: case $host_vendor in
11809: sni)
11810: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11811: hardcode_direct=yes # is this really true???
11812: ;;
11813: siemens)
11814: ## LD is ld it makes a PLAMLIB
11815: ## CC just makes a GrossModule.
11816: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11817: reload_cmds='$CC -r -o $output$reload_objs'
11818: hardcode_direct=no
11819: ;;
11820: motorola)
11821: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11822: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11823: ;;
11824: esac
11825: runpath_var='LD_RUN_PATH'
11826: hardcode_shlibpath_var=no
11827: ;;
11828:
11829: sysv4.3*)
11830: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11831: hardcode_shlibpath_var=no
11832: export_dynamic_flag_spec='-Bexport'
11833: ;;
11834:
11835: sysv4*MP*)
11836: if test -d /usr/nec; then
11837: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11838: hardcode_shlibpath_var=no
11839: runpath_var=LD_RUN_PATH
11840: hardcode_runpath_var=yes
11841: ld_shlibs=yes
11842: fi
11843: ;;
11844:
11845: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11846: no_undefined_flag='${wl}-z,text'
11847: archive_cmds_need_lc=no
11848: hardcode_shlibpath_var=no
11849: runpath_var='LD_RUN_PATH'
11850:
11851: if test "$GCC" = yes; then
11852: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11853: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11854: else
11855: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11856: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11857: fi
11858: ;;
11859:
11860: sysv5* | sco3.2v5* | sco5v6*)
11861: # Note: We can NOT use -z defs as we might desire, because we do not
11862: # link with -lc, and that would cause any symbols used from libc to
11863: # always be unresolved, which means just about no library would
11864: # ever link correctly. If we're not using GNU ld we use -z text
11865: # though, which does catch some bad symbols but isn't as heavy-handed
11866: # as -z defs.
11867: no_undefined_flag='${wl}-z,text'
11868: allow_undefined_flag='${wl}-z,nodefs'
11869: archive_cmds_need_lc=no
11870: hardcode_shlibpath_var=no
11871: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11872: hardcode_libdir_separator=':'
11873: link_all_deplibs=yes
11874: export_dynamic_flag_spec='${wl}-Bexport'
11875: runpath_var='LD_RUN_PATH'
11876:
11877: if test "$GCC" = yes; then
11878: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11879: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11880: else
11881: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11882: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11883: fi
11884: ;;
11885:
11886: uts4*)
11887: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11888: hardcode_libdir_flag_spec='-L$libdir'
11889: hardcode_shlibpath_var=no
11890: ;;
11891:
11892: *)
11893: ld_shlibs=no
11894: ;;
11895: esac
11896:
11897: if test x$host_vendor = xsni; then
11898: case $host in
11899: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11900: export_dynamic_flag_spec='${wl}-Blargedynsym'
11901: ;;
11902: esac
11903: fi
11904: fi
11905:
11906: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11907: $as_echo "$ld_shlibs" >&6; }
11908: test "$ld_shlibs" = no && can_build_shared=no
11909:
11910: with_gnu_ld=$with_gnu_ld
11911:
11912:
11913:
11914:
11915:
11916:
11917:
11918:
11919:
11920:
11921:
11922:
11923:
11924:
11925:
11926: #
11927: # Do we need to explicitly link libc?
11928: #
11929: case "x$archive_cmds_need_lc" in
11930: x|xyes)
11931: # Assume -lc should be added
11932: archive_cmds_need_lc=yes
11933:
11934: if test "$enable_shared" = yes && test "$GCC" = yes; then
11935: case $archive_cmds in
11936: *'~'*)
11937: # FIXME: we may have to deal with multi-command sequences.
11938: ;;
11939: '$CC '*)
11940: # Test whether the compiler implicitly links with -lc since on some
11941: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11942: # to ld, don't add -lc before -lgcc.
11943: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11944: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11945: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11946: $as_echo_n "(cached) " >&6
11947: else
11948: $RM conftest*
11949: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11950:
11951: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11952: (eval $ac_compile) 2>&5
11953: ac_status=$?
11954: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11955: test $ac_status = 0; } 2>conftest.err; then
11956: soname=conftest
11957: lib=conftest
11958: libobjs=conftest.$ac_objext
11959: deplibs=
11960: wl=$lt_prog_compiler_wl
11961: pic_flag=$lt_prog_compiler_pic
11962: compiler_flags=-v
11963: linker_flags=-v
11964: verstring=
11965: output_objdir=.
11966: libname=conftest
11967: lt_save_allow_undefined_flag=$allow_undefined_flag
11968: allow_undefined_flag=
11969: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11970: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11971: ac_status=$?
11972: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11973: test $ac_status = 0; }
11974: then
11975: lt_cv_archive_cmds_need_lc=no
11976: else
11977: lt_cv_archive_cmds_need_lc=yes
11978: fi
11979: allow_undefined_flag=$lt_save_allow_undefined_flag
11980: else
11981: cat conftest.err 1>&5
11982: fi
11983: $RM conftest*
11984:
11985: fi
11986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11987: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11988: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11989: ;;
11990: esac
11991: fi
11992: ;;
11993: esac
11994:
11995:
11996:
11997:
11998:
11999:
12000:
12001:
12002:
12003:
12004:
12005:
12006:
12007:
12008:
12009:
12010:
12011:
12012:
12013:
12014:
12015:
12016:
12017:
12018:
12019:
12020:
12021:
12022:
12023:
12024:
12025:
12026:
12027:
12028:
12029:
12030:
12031:
12032:
12033:
12034:
12035:
12036:
12037:
12038:
12039:
12040:
12041:
12042:
12043:
12044:
12045:
12046:
12047:
12048:
12049:
12050:
12051:
12052:
12053:
12054:
12055:
12056:
12057:
12058:
12059:
12060:
12061:
12062:
12063:
12064:
12065:
12066:
12067:
12068:
12069:
12070:
12071:
12072:
12073:
12074:
12075:
12076:
12077:
12078:
12079:
12080:
12081:
12082:
12083:
12084:
12085:
12086:
12087:
12088:
12089:
12090:
12091:
12092:
12093:
12094:
12095:
12096:
12097:
12098:
12099:
12100:
12101:
12102:
12103:
12104:
12105:
12106:
12107:
12108:
12109:
12110:
12111:
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: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12147: $as_echo_n "checking dynamic linker characteristics... " >&6; }
12148:
12149: if test "$GCC" = yes; then
12150: case $host_os in
12151: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12152: *) lt_awk_arg="/^libraries:/" ;;
12153: esac
12154: case $host_os in
12155: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12156: *) lt_sed_strip_eq="s,=/,/,g" ;;
12157: esac
12158: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12159: case $lt_search_path_spec in
12160: *\;*)
12161: # if the path contains ";" then we assume it to be the separator
12162: # otherwise default to the standard path separator (i.e. ":") - it is
12163: # assumed that no part of a normal pathname contains ";" but that should
12164: # okay in the real world where ";" in dirpaths is itself problematic.
12165: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12166: ;;
12167: *)
12168: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12169: ;;
12170: esac
12171: # Ok, now we have the path, separated by spaces, we can step through it
12172: # and add multilib dir if necessary.
12173: lt_tmp_lt_search_path_spec=
12174: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12175: for lt_sys_path in $lt_search_path_spec; do
12176: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12177: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12178: else
12179: test -d "$lt_sys_path" && \
12180: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12181: fi
12182: done
12183: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12184: BEGIN {RS=" "; FS="/|\n";} {
12185: lt_foo="";
12186: lt_count=0;
12187: for (lt_i = NF; lt_i > 0; lt_i--) {
12188: if ($lt_i != "" && $lt_i != ".") {
12189: if ($lt_i == "..") {
12190: lt_count++;
12191: } else {
12192: if (lt_count == 0) {
12193: lt_foo="/" $lt_i lt_foo;
12194: } else {
12195: lt_count--;
12196: }
12197: }
12198: }
12199: }
12200: if (lt_foo != "") { lt_freq[lt_foo]++; }
12201: if (lt_freq[lt_foo] == 1) { print lt_foo; }
12202: }'`
12203: # AWK program above erroneously prepends '/' to C:/dos/paths
12204: # for these hosts.
12205: case $host_os in
12206: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12207: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12208: esac
12209: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12210: else
12211: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12212: fi
12213: library_names_spec=
12214: libname_spec='lib$name'
12215: soname_spec=
12216: shrext_cmds=".so"
12217: postinstall_cmds=
12218: postuninstall_cmds=
12219: finish_cmds=
12220: finish_eval=
12221: shlibpath_var=
12222: shlibpath_overrides_runpath=unknown
12223: version_type=none
12224: dynamic_linker="$host_os ld.so"
12225: sys_lib_dlsearch_path_spec="/lib /usr/lib"
12226: need_lib_prefix=unknown
12227: hardcode_into_libs=no
12228:
12229: # when you set need_version to no, make sure it does not cause -set_version
12230: # flags to be left without arguments
12231: need_version=unknown
12232:
12233: case $host_os in
12234: aix3*)
1.1.1.4 ! misho 12235: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12236: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12237: shlibpath_var=LIBPATH
12238:
12239: # AIX 3 has no versioning support, so we append a major version to the name.
12240: soname_spec='${libname}${release}${shared_ext}$major'
12241: ;;
12242:
12243: aix[4-9]*)
1.1.1.4 ! misho 12244: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12245: need_lib_prefix=no
12246: need_version=no
12247: hardcode_into_libs=yes
12248: if test "$host_cpu" = ia64; then
12249: # AIX 5 supports IA64
12250: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12251: shlibpath_var=LD_LIBRARY_PATH
12252: else
12253: # With GCC up to 2.95.x, collect2 would create an import file
12254: # for dependence libraries. The import file would start with
12255: # the line `#! .'. This would cause the generated library to
12256: # depend on `.', always an invalid library. This was fixed in
12257: # development snapshots of GCC prior to 3.0.
12258: case $host_os in
12259: aix4 | aix4.[01] | aix4.[01].*)
12260: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12261: echo ' yes '
12262: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12263: :
12264: else
12265: can_build_shared=no
12266: fi
12267: ;;
12268: esac
12269: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12270: # soname into executable. Probably we can add versioning support to
12271: # collect2, so additional links can be useful in future.
12272: if test "$aix_use_runtimelinking" = yes; then
12273: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12274: # instead of lib<name>.a to let people know that these are not
12275: # typical AIX shared libraries.
12276: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12277: else
12278: # We preserve .a as extension for shared libraries through AIX4.2
12279: # and later when we are not doing run time linking.
12280: library_names_spec='${libname}${release}.a $libname.a'
12281: soname_spec='${libname}${release}${shared_ext}$major'
12282: fi
12283: shlibpath_var=LIBPATH
12284: fi
12285: ;;
12286:
12287: amigaos*)
12288: case $host_cpu in
12289: powerpc)
12290: # Since July 2007 AmigaOS4 officially supports .so libraries.
12291: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12292: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12293: ;;
12294: m68k)
12295: library_names_spec='$libname.ixlibrary $libname.a'
12296: # Create ${libname}_ixlibrary.a entries in /sys/libs.
12297: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12298: ;;
12299: esac
12300: ;;
12301:
12302: beos*)
12303: library_names_spec='${libname}${shared_ext}'
12304: dynamic_linker="$host_os ld.so"
12305: shlibpath_var=LIBRARY_PATH
12306: ;;
12307:
12308: bsdi[45]*)
1.1.1.4 ! misho 12309: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12310: need_version=no
12311: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12312: soname_spec='${libname}${release}${shared_ext}$major'
12313: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12314: shlibpath_var=LD_LIBRARY_PATH
12315: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12316: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12317: # the default ld.so.conf also contains /usr/contrib/lib and
12318: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12319: # libtool to hard-code these into programs
12320: ;;
12321:
12322: cygwin* | mingw* | pw32* | cegcc*)
12323: version_type=windows
12324: shrext_cmds=".dll"
12325: need_version=no
12326: need_lib_prefix=no
12327:
12328: case $GCC,$cc_basename in
12329: yes,*)
12330: # gcc
12331: library_names_spec='$libname.dll.a'
12332: # DLL is installed to $(libdir)/../bin by postinstall_cmds
12333: postinstall_cmds='base_file=`basename \${file}`~
12334: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12335: dldir=$destdir/`dirname \$dlpath`~
12336: test -d \$dldir || mkdir -p \$dldir~
12337: $install_prog $dir/$dlname \$dldir/$dlname~
12338: chmod a+x \$dldir/$dlname~
12339: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12340: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12341: fi'
12342: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12343: dlpath=$dir/\$dldll~
12344: $RM \$dlpath'
12345: shlibpath_overrides_runpath=yes
12346:
12347: case $host_os in
12348: cygwin*)
12349: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12350: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12351:
12352: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12353: ;;
12354: mingw* | cegcc*)
12355: # MinGW DLLs use traditional 'lib' prefix
12356: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12357: ;;
12358: pw32*)
12359: # pw32 DLLs use 'pw' prefix rather than 'lib'
12360: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12361: ;;
12362: esac
12363: dynamic_linker='Win32 ld.exe'
12364: ;;
12365:
12366: *,cl*)
12367: # Native MSVC
12368: libname_spec='$name'
12369: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12370: library_names_spec='${libname}.dll.lib'
12371:
12372: case $build_os in
12373: mingw*)
12374: sys_lib_search_path_spec=
12375: lt_save_ifs=$IFS
12376: IFS=';'
12377: for lt_path in $LIB
12378: do
12379: IFS=$lt_save_ifs
12380: # Let DOS variable expansion print the short 8.3 style file name.
12381: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12382: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12383: done
12384: IFS=$lt_save_ifs
12385: # Convert to MSYS style.
12386: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12387: ;;
12388: cygwin*)
12389: # Convert to unix form, then to dos form, then back to unix form
12390: # but this time dos style (no spaces!) so that the unix form looks
12391: # like /cygdrive/c/PROGRA~1:/cygdr...
12392: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12393: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12394: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12395: ;;
12396: *)
12397: sys_lib_search_path_spec="$LIB"
12398: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12399: # It is most probably a Windows format PATH.
12400: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12401: else
12402: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12403: fi
12404: # FIXME: find the short name or the path components, as spaces are
12405: # common. (e.g. "Program Files" -> "PROGRA~1")
12406: ;;
12407: esac
12408:
12409: # DLL is installed to $(libdir)/../bin by postinstall_cmds
12410: postinstall_cmds='base_file=`basename \${file}`~
12411: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12412: dldir=$destdir/`dirname \$dlpath`~
12413: test -d \$dldir || mkdir -p \$dldir~
12414: $install_prog $dir/$dlname \$dldir/$dlname'
12415: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12416: dlpath=$dir/\$dldll~
12417: $RM \$dlpath'
12418: shlibpath_overrides_runpath=yes
12419: dynamic_linker='Win32 link.exe'
12420: ;;
12421:
12422: *)
12423: # Assume MSVC wrapper
12424: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12425: dynamic_linker='Win32 ld.exe'
12426: ;;
12427: esac
12428: # FIXME: first we should search . and the directory the executable is in
12429: shlibpath_var=PATH
12430: ;;
12431:
12432: darwin* | rhapsody*)
12433: dynamic_linker="$host_os dyld"
12434: version_type=darwin
12435: need_lib_prefix=no
12436: need_version=no
12437: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12438: soname_spec='${libname}${release}${major}$shared_ext'
12439: shlibpath_overrides_runpath=yes
12440: shlibpath_var=DYLD_LIBRARY_PATH
12441: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12442:
12443: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12444: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12445: ;;
12446:
12447: dgux*)
1.1.1.4 ! misho 12448: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12449: need_lib_prefix=no
12450: need_version=no
12451: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12452: soname_spec='${libname}${release}${shared_ext}$major'
12453: shlibpath_var=LD_LIBRARY_PATH
12454: ;;
12455:
12456: freebsd* | dragonfly*)
12457: # DragonFly does not have aout. When/if they implement a new
12458: # versioning mechanism, adjust this.
12459: if test -x /usr/bin/objformat; then
12460: objformat=`/usr/bin/objformat`
12461: else
12462: case $host_os in
1.1.1.4 ! misho 12463: freebsd[23].*) objformat=aout ;;
1.1 misho 12464: *) objformat=elf ;;
12465: esac
12466: fi
1.1.1.4 ! misho 12467: version_type=freebsd-$objformat
1.1 misho 12468: case $version_type in
12469: freebsd-elf*)
12470: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12471: need_version=no
12472: need_lib_prefix=no
12473: ;;
12474: freebsd-*)
12475: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12476: need_version=yes
12477: ;;
12478: esac
12479: shlibpath_var=LD_LIBRARY_PATH
12480: case $host_os in
1.1.1.4 ! misho 12481: freebsd2.*)
1.1 misho 12482: shlibpath_overrides_runpath=yes
12483: ;;
12484: freebsd3.[01]* | freebsdelf3.[01]*)
12485: shlibpath_overrides_runpath=yes
12486: hardcode_into_libs=yes
12487: ;;
12488: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12489: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12490: shlibpath_overrides_runpath=no
12491: hardcode_into_libs=yes
12492: ;;
12493: *) # from 4.6 on, and DragonFly
12494: shlibpath_overrides_runpath=yes
12495: hardcode_into_libs=yes
12496: ;;
12497: esac
12498: ;;
12499:
12500: gnu*)
1.1.1.4 ! misho 12501: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12502: need_lib_prefix=no
12503: need_version=no
12504: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12505: soname_spec='${libname}${release}${shared_ext}$major'
12506: shlibpath_var=LD_LIBRARY_PATH
1.1.1.4 ! misho 12507: shlibpath_overrides_runpath=no
1.1 misho 12508: hardcode_into_libs=yes
12509: ;;
12510:
12511: haiku*)
1.1.1.4 ! misho 12512: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12513: need_lib_prefix=no
12514: need_version=no
12515: dynamic_linker="$host_os runtime_loader"
12516: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12517: soname_spec='${libname}${release}${shared_ext}$major'
12518: shlibpath_var=LIBRARY_PATH
12519: shlibpath_overrides_runpath=yes
12520: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12521: hardcode_into_libs=yes
12522: ;;
12523:
12524: hpux9* | hpux10* | hpux11*)
12525: # Give a soname corresponding to the major version so that dld.sl refuses to
12526: # link against other versions.
12527: version_type=sunos
12528: need_lib_prefix=no
12529: need_version=no
12530: case $host_cpu in
12531: ia64*)
12532: shrext_cmds='.so'
12533: hardcode_into_libs=yes
12534: dynamic_linker="$host_os dld.so"
12535: shlibpath_var=LD_LIBRARY_PATH
12536: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12537: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12538: soname_spec='${libname}${release}${shared_ext}$major'
12539: if test "X$HPUX_IA64_MODE" = X32; then
12540: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12541: else
12542: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12543: fi
12544: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12545: ;;
12546: hppa*64*)
12547: shrext_cmds='.sl'
12548: hardcode_into_libs=yes
12549: dynamic_linker="$host_os dld.sl"
12550: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12551: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12552: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12553: soname_spec='${libname}${release}${shared_ext}$major'
12554: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12555: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12556: ;;
12557: *)
12558: shrext_cmds='.sl'
12559: dynamic_linker="$host_os dld.sl"
12560: shlibpath_var=SHLIB_PATH
12561: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12562: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12563: soname_spec='${libname}${release}${shared_ext}$major'
12564: ;;
12565: esac
12566: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12567: postinstall_cmds='chmod 555 $lib'
12568: # or fails outright, so override atomically:
12569: install_override_mode=555
12570: ;;
12571:
12572: interix[3-9]*)
1.1.1.4 ! misho 12573: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12574: need_lib_prefix=no
12575: need_version=no
12576: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12577: soname_spec='${libname}${release}${shared_ext}$major'
12578: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12579: shlibpath_var=LD_LIBRARY_PATH
12580: shlibpath_overrides_runpath=no
12581: hardcode_into_libs=yes
12582: ;;
12583:
12584: irix5* | irix6* | nonstopux*)
12585: case $host_os in
12586: nonstopux*) version_type=nonstopux ;;
12587: *)
12588: if test "$lt_cv_prog_gnu_ld" = yes; then
1.1.1.4 ! misho 12589: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12590: else
12591: version_type=irix
12592: fi ;;
12593: esac
12594: need_lib_prefix=no
12595: need_version=no
12596: soname_spec='${libname}${release}${shared_ext}$major'
12597: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12598: case $host_os in
12599: irix5* | nonstopux*)
12600: libsuff= shlibsuff=
12601: ;;
12602: *)
12603: case $LD in # libtool.m4 will add one of these switches to LD
12604: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12605: libsuff= shlibsuff= libmagic=32-bit;;
12606: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12607: libsuff=32 shlibsuff=N32 libmagic=N32;;
12608: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12609: libsuff=64 shlibsuff=64 libmagic=64-bit;;
12610: *) libsuff= shlibsuff= libmagic=never-match;;
12611: esac
12612: ;;
12613: esac
12614: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12615: shlibpath_overrides_runpath=no
12616: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12617: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12618: hardcode_into_libs=yes
12619: ;;
12620:
12621: # No shared lib support for Linux oldld, aout, or coff.
12622: linux*oldld* | linux*aout* | linux*coff*)
12623: dynamic_linker=no
12624: ;;
12625:
1.1.1.4 ! misho 12626: # This must be glibc/ELF.
1.1 misho 12627: linux* | k*bsd*-gnu | kopensolaris*-gnu)
1.1.1.4 ! misho 12628: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12629: need_lib_prefix=no
12630: need_version=no
12631: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12632: soname_spec='${libname}${release}${shared_ext}$major'
12633: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12634: shlibpath_var=LD_LIBRARY_PATH
12635: shlibpath_overrides_runpath=no
12636:
12637: # Some binutils ld are patched to set DT_RUNPATH
12638: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12639: $as_echo_n "(cached) " >&6
12640: else
12641: lt_cv_shlibpath_overrides_runpath=no
12642: save_LDFLAGS=$LDFLAGS
12643: save_libdir=$libdir
12644: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12645: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12646: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647: /* end confdefs.h. */
12648:
12649: int
12650: main ()
12651: {
12652:
12653: ;
12654: return 0;
12655: }
12656: _ACEOF
12657: if ac_fn_c_try_link "$LINENO"; then :
12658: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12659: lt_cv_shlibpath_overrides_runpath=yes
12660: fi
12661: fi
12662: rm -f core conftest.err conftest.$ac_objext \
12663: conftest$ac_exeext conftest.$ac_ext
12664: LDFLAGS=$save_LDFLAGS
12665: libdir=$save_libdir
12666:
12667: fi
12668:
12669: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12670:
12671: # This implies no fast_install, which is unacceptable.
12672: # Some rework will be needed to allow for fast_install
12673: # before this can be enabled.
12674: hardcode_into_libs=yes
12675:
12676: # Append ld.so.conf contents to the search path
12677: if test -f /etc/ld.so.conf; then
12678: 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' ' '`
12679: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12680: fi
12681:
12682: # We used to test for /lib/ld.so.1 and disable shared libraries on
12683: # powerpc, because MkLinux only supported shared libraries with the
12684: # GNU dynamic linker. Since this was broken with cross compilers,
12685: # most powerpc-linux boxes support dynamic linking these days and
12686: # people can always --disable-shared, the test was removed, and we
12687: # assume the GNU/Linux dynamic linker is in use.
12688: dynamic_linker='GNU/Linux ld.so'
12689: ;;
12690:
12691: netbsd*)
12692: version_type=sunos
12693: need_lib_prefix=no
12694: need_version=no
12695: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12696: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12697: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12698: dynamic_linker='NetBSD (a.out) ld.so'
12699: else
12700: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12701: soname_spec='${libname}${release}${shared_ext}$major'
12702: dynamic_linker='NetBSD ld.elf_so'
12703: fi
12704: shlibpath_var=LD_LIBRARY_PATH
12705: shlibpath_overrides_runpath=yes
12706: hardcode_into_libs=yes
12707: ;;
12708:
12709: newsos6)
1.1.1.4 ! misho 12710: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12711: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12712: shlibpath_var=LD_LIBRARY_PATH
12713: shlibpath_overrides_runpath=yes
12714: ;;
12715:
12716: *nto* | *qnx*)
12717: version_type=qnx
12718: need_lib_prefix=no
12719: need_version=no
12720: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12721: soname_spec='${libname}${release}${shared_ext}$major'
12722: shlibpath_var=LD_LIBRARY_PATH
12723: shlibpath_overrides_runpath=no
12724: hardcode_into_libs=yes
12725: dynamic_linker='ldqnx.so'
12726: ;;
12727:
12728: openbsd*)
12729: version_type=sunos
12730: sys_lib_dlsearch_path_spec="/usr/lib"
12731: need_lib_prefix=no
12732: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12733: case $host_os in
12734: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12735: *) need_version=no ;;
12736: esac
12737: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12738: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12739: shlibpath_var=LD_LIBRARY_PATH
12740: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12741: case $host_os in
12742: openbsd2.[89] | openbsd2.[89].*)
12743: shlibpath_overrides_runpath=no
12744: ;;
12745: *)
12746: shlibpath_overrides_runpath=yes
12747: ;;
12748: esac
12749: else
12750: shlibpath_overrides_runpath=yes
12751: fi
12752: ;;
12753:
12754: os2*)
12755: libname_spec='$name'
12756: shrext_cmds=".dll"
12757: need_lib_prefix=no
12758: library_names_spec='$libname${shared_ext} $libname.a'
12759: dynamic_linker='OS/2 ld.exe'
12760: shlibpath_var=LIBPATH
12761: ;;
12762:
12763: osf3* | osf4* | osf5*)
12764: version_type=osf
12765: need_lib_prefix=no
12766: need_version=no
12767: soname_spec='${libname}${release}${shared_ext}$major'
12768: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12769: shlibpath_var=LD_LIBRARY_PATH
12770: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12771: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12772: ;;
12773:
12774: rdos*)
12775: dynamic_linker=no
12776: ;;
12777:
12778: solaris*)
1.1.1.4 ! misho 12779: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12780: need_lib_prefix=no
12781: need_version=no
12782: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12783: soname_spec='${libname}${release}${shared_ext}$major'
12784: shlibpath_var=LD_LIBRARY_PATH
12785: shlibpath_overrides_runpath=yes
12786: hardcode_into_libs=yes
12787: # ldd complains unless libraries are executable
12788: postinstall_cmds='chmod +x $lib'
12789: ;;
12790:
12791: sunos4*)
12792: version_type=sunos
12793: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12794: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12795: shlibpath_var=LD_LIBRARY_PATH
12796: shlibpath_overrides_runpath=yes
12797: if test "$with_gnu_ld" = yes; then
12798: need_lib_prefix=no
12799: fi
12800: need_version=yes
12801: ;;
12802:
12803: sysv4 | sysv4.3*)
1.1.1.4 ! misho 12804: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12805: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12806: soname_spec='${libname}${release}${shared_ext}$major'
12807: shlibpath_var=LD_LIBRARY_PATH
12808: case $host_vendor in
12809: sni)
12810: shlibpath_overrides_runpath=no
12811: need_lib_prefix=no
12812: runpath_var=LD_RUN_PATH
12813: ;;
12814: siemens)
12815: need_lib_prefix=no
12816: ;;
12817: motorola)
12818: need_lib_prefix=no
12819: need_version=no
12820: shlibpath_overrides_runpath=no
12821: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12822: ;;
12823: esac
12824: ;;
12825:
12826: sysv4*MP*)
12827: if test -d /usr/nec ;then
1.1.1.4 ! misho 12828: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12829: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12830: soname_spec='$libname${shared_ext}.$major'
12831: shlibpath_var=LD_LIBRARY_PATH
12832: fi
12833: ;;
12834:
12835: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12836: version_type=freebsd-elf
12837: need_lib_prefix=no
12838: need_version=no
12839: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12840: soname_spec='${libname}${release}${shared_ext}$major'
12841: shlibpath_var=LD_LIBRARY_PATH
12842: shlibpath_overrides_runpath=yes
12843: hardcode_into_libs=yes
12844: if test "$with_gnu_ld" = yes; then
12845: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12846: else
12847: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12848: case $host_os in
12849: sco3.2v5*)
12850: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12851: ;;
12852: esac
12853: fi
12854: sys_lib_dlsearch_path_spec='/usr/lib'
12855: ;;
12856:
12857: tpf*)
12858: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
1.1.1.4 ! misho 12859: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12860: need_lib_prefix=no
12861: need_version=no
12862: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12863: shlibpath_var=LD_LIBRARY_PATH
12864: shlibpath_overrides_runpath=no
12865: hardcode_into_libs=yes
12866: ;;
12867:
12868: uts4*)
1.1.1.4 ! misho 12869: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12870: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12871: soname_spec='${libname}${release}${shared_ext}$major'
12872: shlibpath_var=LD_LIBRARY_PATH
12873: ;;
12874:
12875: *)
12876: dynamic_linker=no
12877: ;;
12878: esac
12879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12880: $as_echo "$dynamic_linker" >&6; }
12881: test "$dynamic_linker" = no && can_build_shared=no
12882:
12883: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12884: if test "$GCC" = yes; then
12885: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12886: fi
12887:
12888: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12889: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12890: fi
12891: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12892: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12893: fi
12894:
12895:
12896:
12897:
12898:
12899:
12900:
12901:
12902:
12903:
12904:
12905:
12906:
12907:
12908:
12909:
12910:
12911:
12912:
12913:
12914:
12915:
12916:
12917:
12918:
12919:
12920:
12921:
12922:
12923:
12924:
12925:
12926:
12927:
12928:
12929:
12930:
12931:
12932:
12933:
12934:
12935:
12936:
12937:
12938:
12939:
12940:
12941:
12942:
12943:
12944:
12945:
12946:
12947:
12948:
12949:
12950:
12951:
12952:
12953:
12954:
12955:
12956:
12957:
12958:
12959:
12960:
12961:
12962:
12963:
12964:
12965:
12966:
12967:
12968:
12969:
12970:
12971:
12972:
12973:
12974:
12975:
12976:
12977:
12978:
12979:
12980:
12981:
12982:
12983:
12984:
12985:
12986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12987: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12988: hardcode_action=
12989: if test -n "$hardcode_libdir_flag_spec" ||
12990: test -n "$runpath_var" ||
12991: test "X$hardcode_automatic" = "Xyes" ; then
12992:
12993: # We can hardcode non-existent directories.
12994: if test "$hardcode_direct" != no &&
12995: # If the only mechanism to avoid hardcoding is shlibpath_var, we
12996: # have to relink, otherwise we might link with an installed library
12997: # when we should be linking with a yet-to-be-installed one
12998: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12999: test "$hardcode_minus_L" != no; then
13000: # Linking always hardcodes the temporary library directory.
13001: hardcode_action=relink
13002: else
13003: # We can link without hardcoding, and we can hardcode nonexisting dirs.
13004: hardcode_action=immediate
13005: fi
13006: else
13007: # We cannot hardcode anything, or else we can only hardcode existing
13008: # directories.
13009: hardcode_action=unsupported
13010: fi
13011: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13012: $as_echo "$hardcode_action" >&6; }
13013:
13014: if test "$hardcode_action" = relink ||
13015: test "$inherit_rpath" = yes; then
13016: # Fast installation is not supported
13017: enable_fast_install=no
13018: elif test "$shlibpath_overrides_runpath" = yes ||
13019: test "$enable_shared" = no; then
13020: # Fast installation is not necessary
13021: enable_fast_install=needless
13022: fi
13023:
13024:
13025:
13026:
13027:
13028:
13029: if test "x$enable_dlopen" != xyes; then
13030: enable_dlopen=unknown
13031: enable_dlopen_self=unknown
13032: enable_dlopen_self_static=unknown
13033: else
13034: lt_cv_dlopen=no
13035: lt_cv_dlopen_libs=
13036:
13037: case $host_os in
13038: beos*)
13039: lt_cv_dlopen="load_add_on"
13040: lt_cv_dlopen_libs=
13041: lt_cv_dlopen_self=yes
13042: ;;
13043:
13044: mingw* | pw32* | cegcc*)
13045: lt_cv_dlopen="LoadLibrary"
13046: lt_cv_dlopen_libs=
13047: ;;
13048:
13049: cygwin*)
13050: lt_cv_dlopen="dlopen"
13051: lt_cv_dlopen_libs=
13052: ;;
13053:
13054: darwin*)
13055: # if libdl is installed we need to link against it
13056: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13057: $as_echo_n "checking for dlopen in -ldl... " >&6; }
13058: if ${ac_cv_lib_dl_dlopen+:} false; then :
13059: $as_echo_n "(cached) " >&6
13060: else
13061: ac_check_lib_save_LIBS=$LIBS
13062: LIBS="-ldl $LIBS"
13063: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064: /* end confdefs.h. */
13065:
13066: /* Override any GCC internal prototype to avoid an error.
13067: Use char because int might match the return type of a GCC
13068: builtin and then its argument prototype would still apply. */
13069: #ifdef __cplusplus
13070: extern "C"
13071: #endif
13072: char dlopen ();
13073: int
13074: main ()
13075: {
13076: return dlopen ();
13077: ;
13078: return 0;
13079: }
13080: _ACEOF
13081: if ac_fn_c_try_link "$LINENO"; then :
13082: ac_cv_lib_dl_dlopen=yes
13083: else
13084: ac_cv_lib_dl_dlopen=no
13085: fi
13086: rm -f core conftest.err conftest.$ac_objext \
13087: conftest$ac_exeext conftest.$ac_ext
13088: LIBS=$ac_check_lib_save_LIBS
13089: fi
13090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13091: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13092: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13093: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13094: else
13095:
13096: lt_cv_dlopen="dyld"
13097: lt_cv_dlopen_libs=
13098: lt_cv_dlopen_self=yes
13099:
13100: fi
13101:
13102: ;;
13103:
13104: *)
13105: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13106: if test "x$ac_cv_func_shl_load" = xyes; then :
13107: lt_cv_dlopen="shl_load"
13108: else
13109: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13110: $as_echo_n "checking for shl_load in -ldld... " >&6; }
13111: if ${ac_cv_lib_dld_shl_load+:} false; then :
13112: $as_echo_n "(cached) " >&6
13113: else
13114: ac_check_lib_save_LIBS=$LIBS
13115: LIBS="-ldld $LIBS"
13116: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117: /* end confdefs.h. */
13118:
13119: /* Override any GCC internal prototype to avoid an error.
13120: Use char because int might match the return type of a GCC
13121: builtin and then its argument prototype would still apply. */
13122: #ifdef __cplusplus
13123: extern "C"
13124: #endif
13125: char shl_load ();
13126: int
13127: main ()
13128: {
13129: return shl_load ();
13130: ;
13131: return 0;
13132: }
13133: _ACEOF
13134: if ac_fn_c_try_link "$LINENO"; then :
13135: ac_cv_lib_dld_shl_load=yes
13136: else
13137: ac_cv_lib_dld_shl_load=no
13138: fi
13139: rm -f core conftest.err conftest.$ac_objext \
13140: conftest$ac_exeext conftest.$ac_ext
13141: LIBS=$ac_check_lib_save_LIBS
13142: fi
13143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13144: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13145: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13146: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13147: else
13148: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13149: if test "x$ac_cv_func_dlopen" = xyes; then :
13150: lt_cv_dlopen="dlopen"
13151: else
13152: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13153: $as_echo_n "checking for dlopen in -ldl... " >&6; }
13154: if ${ac_cv_lib_dl_dlopen+:} false; then :
13155: $as_echo_n "(cached) " >&6
13156: else
13157: ac_check_lib_save_LIBS=$LIBS
13158: LIBS="-ldl $LIBS"
13159: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160: /* end confdefs.h. */
13161:
13162: /* Override any GCC internal prototype to avoid an error.
13163: Use char because int might match the return type of a GCC
13164: builtin and then its argument prototype would still apply. */
13165: #ifdef __cplusplus
13166: extern "C"
13167: #endif
13168: char dlopen ();
13169: int
13170: main ()
13171: {
13172: return dlopen ();
13173: ;
13174: return 0;
13175: }
13176: _ACEOF
13177: if ac_fn_c_try_link "$LINENO"; then :
13178: ac_cv_lib_dl_dlopen=yes
13179: else
13180: ac_cv_lib_dl_dlopen=no
13181: fi
13182: rm -f core conftest.err conftest.$ac_objext \
13183: conftest$ac_exeext conftest.$ac_ext
13184: LIBS=$ac_check_lib_save_LIBS
13185: fi
13186: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13187: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13188: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13189: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13190: else
13191: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13192: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13193: if ${ac_cv_lib_svld_dlopen+:} false; then :
13194: $as_echo_n "(cached) " >&6
13195: else
13196: ac_check_lib_save_LIBS=$LIBS
13197: LIBS="-lsvld $LIBS"
13198: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199: /* end confdefs.h. */
13200:
13201: /* Override any GCC internal prototype to avoid an error.
13202: Use char because int might match the return type of a GCC
13203: builtin and then its argument prototype would still apply. */
13204: #ifdef __cplusplus
13205: extern "C"
13206: #endif
13207: char dlopen ();
13208: int
13209: main ()
13210: {
13211: return dlopen ();
13212: ;
13213: return 0;
13214: }
13215: _ACEOF
13216: if ac_fn_c_try_link "$LINENO"; then :
13217: ac_cv_lib_svld_dlopen=yes
13218: else
13219: ac_cv_lib_svld_dlopen=no
13220: fi
13221: rm -f core conftest.err conftest.$ac_objext \
13222: conftest$ac_exeext conftest.$ac_ext
13223: LIBS=$ac_check_lib_save_LIBS
13224: fi
13225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13226: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13227: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13228: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13229: else
13230: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13231: $as_echo_n "checking for dld_link in -ldld... " >&6; }
13232: if ${ac_cv_lib_dld_dld_link+:} false; then :
13233: $as_echo_n "(cached) " >&6
13234: else
13235: ac_check_lib_save_LIBS=$LIBS
13236: LIBS="-ldld $LIBS"
13237: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238: /* end confdefs.h. */
13239:
13240: /* Override any GCC internal prototype to avoid an error.
13241: Use char because int might match the return type of a GCC
13242: builtin and then its argument prototype would still apply. */
13243: #ifdef __cplusplus
13244: extern "C"
13245: #endif
13246: char dld_link ();
13247: int
13248: main ()
13249: {
13250: return dld_link ();
13251: ;
13252: return 0;
13253: }
13254: _ACEOF
13255: if ac_fn_c_try_link "$LINENO"; then :
13256: ac_cv_lib_dld_dld_link=yes
13257: else
13258: ac_cv_lib_dld_dld_link=no
13259: fi
13260: rm -f core conftest.err conftest.$ac_objext \
13261: conftest$ac_exeext conftest.$ac_ext
13262: LIBS=$ac_check_lib_save_LIBS
13263: fi
13264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13265: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13266: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13267: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13268: fi
13269:
13270:
13271: fi
13272:
13273:
13274: fi
13275:
13276:
13277: fi
13278:
13279:
13280: fi
13281:
13282:
13283: fi
13284:
13285: ;;
13286: esac
13287:
13288: if test "x$lt_cv_dlopen" != xno; then
13289: enable_dlopen=yes
13290: else
13291: enable_dlopen=no
13292: fi
13293:
13294: case $lt_cv_dlopen in
13295: dlopen)
13296: save_CPPFLAGS="$CPPFLAGS"
13297: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13298:
13299: save_LDFLAGS="$LDFLAGS"
13300: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13301:
13302: save_LIBS="$LIBS"
13303: LIBS="$lt_cv_dlopen_libs $LIBS"
13304:
13305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13306: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13307: if ${lt_cv_dlopen_self+:} false; then :
13308: $as_echo_n "(cached) " >&6
13309: else
13310: if test "$cross_compiling" = yes; then :
13311: lt_cv_dlopen_self=cross
13312: else
13313: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13314: lt_status=$lt_dlunknown
13315: cat > conftest.$ac_ext <<_LT_EOF
13316: #line $LINENO "configure"
13317: #include "confdefs.h"
13318:
13319: #if HAVE_DLFCN_H
13320: #include <dlfcn.h>
13321: #endif
13322:
13323: #include <stdio.h>
13324:
13325: #ifdef RTLD_GLOBAL
13326: # define LT_DLGLOBAL RTLD_GLOBAL
13327: #else
13328: # ifdef DL_GLOBAL
13329: # define LT_DLGLOBAL DL_GLOBAL
13330: # else
13331: # define LT_DLGLOBAL 0
13332: # endif
13333: #endif
13334:
13335: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13336: find out it does not work in some platform. */
13337: #ifndef LT_DLLAZY_OR_NOW
13338: # ifdef RTLD_LAZY
13339: # define LT_DLLAZY_OR_NOW RTLD_LAZY
13340: # else
13341: # ifdef DL_LAZY
13342: # define LT_DLLAZY_OR_NOW DL_LAZY
13343: # else
13344: # ifdef RTLD_NOW
13345: # define LT_DLLAZY_OR_NOW RTLD_NOW
13346: # else
13347: # ifdef DL_NOW
13348: # define LT_DLLAZY_OR_NOW DL_NOW
13349: # else
13350: # define LT_DLLAZY_OR_NOW 0
13351: # endif
13352: # endif
13353: # endif
13354: # endif
13355: #endif
13356:
13357: /* When -fvisbility=hidden is used, assume the code has been annotated
13358: correspondingly for the symbols needed. */
13359: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13360: int fnord () __attribute__((visibility("default")));
13361: #endif
13362:
13363: int fnord () { return 42; }
13364: int main ()
13365: {
13366: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13367: int status = $lt_dlunknown;
13368:
13369: if (self)
13370: {
13371: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13372: else
13373: {
13374: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13375: else puts (dlerror ());
13376: }
13377: /* dlclose (self); */
13378: }
13379: else
13380: puts (dlerror ());
13381:
13382: return status;
13383: }
13384: _LT_EOF
13385: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13386: (eval $ac_link) 2>&5
13387: ac_status=$?
13388: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13389: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13390: (./conftest; exit; ) >&5 2>/dev/null
13391: lt_status=$?
13392: case x$lt_status in
13393: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13394: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13395: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13396: esac
13397: else :
13398: # compilation failed
13399: lt_cv_dlopen_self=no
13400: fi
13401: fi
13402: rm -fr conftest*
13403:
13404:
13405: fi
13406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13407: $as_echo "$lt_cv_dlopen_self" >&6; }
13408:
13409: if test "x$lt_cv_dlopen_self" = xyes; then
13410: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13411: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13412: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13413: if ${lt_cv_dlopen_self_static+:} false; then :
13414: $as_echo_n "(cached) " >&6
13415: else
13416: if test "$cross_compiling" = yes; then :
13417: lt_cv_dlopen_self_static=cross
13418: else
13419: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13420: lt_status=$lt_dlunknown
13421: cat > conftest.$ac_ext <<_LT_EOF
13422: #line $LINENO "configure"
13423: #include "confdefs.h"
13424:
13425: #if HAVE_DLFCN_H
13426: #include <dlfcn.h>
13427: #endif
13428:
13429: #include <stdio.h>
13430:
13431: #ifdef RTLD_GLOBAL
13432: # define LT_DLGLOBAL RTLD_GLOBAL
13433: #else
13434: # ifdef DL_GLOBAL
13435: # define LT_DLGLOBAL DL_GLOBAL
13436: # else
13437: # define LT_DLGLOBAL 0
13438: # endif
13439: #endif
13440:
13441: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13442: find out it does not work in some platform. */
13443: #ifndef LT_DLLAZY_OR_NOW
13444: # ifdef RTLD_LAZY
13445: # define LT_DLLAZY_OR_NOW RTLD_LAZY
13446: # else
13447: # ifdef DL_LAZY
13448: # define LT_DLLAZY_OR_NOW DL_LAZY
13449: # else
13450: # ifdef RTLD_NOW
13451: # define LT_DLLAZY_OR_NOW RTLD_NOW
13452: # else
13453: # ifdef DL_NOW
13454: # define LT_DLLAZY_OR_NOW DL_NOW
13455: # else
13456: # define LT_DLLAZY_OR_NOW 0
13457: # endif
13458: # endif
13459: # endif
13460: # endif
13461: #endif
13462:
13463: /* When -fvisbility=hidden is used, assume the code has been annotated
13464: correspondingly for the symbols needed. */
13465: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13466: int fnord () __attribute__((visibility("default")));
13467: #endif
13468:
13469: int fnord () { return 42; }
13470: int main ()
13471: {
13472: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13473: int status = $lt_dlunknown;
13474:
13475: if (self)
13476: {
13477: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13478: else
13479: {
13480: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13481: else puts (dlerror ());
13482: }
13483: /* dlclose (self); */
13484: }
13485: else
13486: puts (dlerror ());
13487:
13488: return status;
13489: }
13490: _LT_EOF
13491: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13492: (eval $ac_link) 2>&5
13493: ac_status=$?
13494: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13495: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13496: (./conftest; exit; ) >&5 2>/dev/null
13497: lt_status=$?
13498: case x$lt_status in
13499: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13500: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13501: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13502: esac
13503: else :
13504: # compilation failed
13505: lt_cv_dlopen_self_static=no
13506: fi
13507: fi
13508: rm -fr conftest*
13509:
13510:
13511: fi
13512: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13513: $as_echo "$lt_cv_dlopen_self_static" >&6; }
13514: fi
13515:
13516: CPPFLAGS="$save_CPPFLAGS"
13517: LDFLAGS="$save_LDFLAGS"
13518: LIBS="$save_LIBS"
13519: ;;
13520: esac
13521:
13522: case $lt_cv_dlopen_self in
13523: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13524: *) enable_dlopen_self=unknown ;;
13525: esac
13526:
13527: case $lt_cv_dlopen_self_static in
13528: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13529: *) enable_dlopen_self_static=unknown ;;
13530: esac
13531: fi
13532:
13533:
13534:
13535:
13536:
13537:
13538:
13539:
13540:
13541:
13542:
13543:
13544:
13545:
13546:
13547:
13548:
13549: striplib=
13550: old_striplib=
13551: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13552: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13553: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13554: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13555: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13557: $as_echo "yes" >&6; }
13558: else
13559: # FIXME - insert some real tests, host_os isn't really good enough
13560: case $host_os in
13561: darwin*)
13562: if test -n "$STRIP" ; then
13563: striplib="$STRIP -x"
13564: old_striplib="$STRIP -S"
13565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13566: $as_echo "yes" >&6; }
13567: else
13568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569: $as_echo "no" >&6; }
13570: fi
13571: ;;
13572: *)
13573: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13574: $as_echo "no" >&6; }
13575: ;;
13576: esac
13577: fi
13578:
13579:
13580:
13581:
13582:
13583:
13584:
13585:
13586:
13587:
13588:
13589:
13590: # Report which library types will actually be built
13591: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13592: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13594: $as_echo "$can_build_shared" >&6; }
13595:
13596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13597: $as_echo_n "checking whether to build shared libraries... " >&6; }
13598: test "$can_build_shared" = "no" && enable_shared=no
13599:
13600: # On AIX, shared libraries and static libraries use the same namespace, and
13601: # are all built from PIC.
13602: case $host_os in
13603: aix3*)
13604: test "$enable_shared" = yes && enable_static=no
13605: if test -n "$RANLIB"; then
13606: archive_cmds="$archive_cmds~\$RANLIB \$lib"
13607: postinstall_cmds='$RANLIB $lib'
13608: fi
13609: ;;
13610:
13611: aix[4-9]*)
13612: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13613: test "$enable_shared" = yes && enable_static=no
13614: fi
13615: ;;
13616: esac
13617: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13618: $as_echo "$enable_shared" >&6; }
13619:
13620: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13621: $as_echo_n "checking whether to build static libraries... " >&6; }
13622: # Make sure either enable_shared or enable_static is yes.
13623: test "$enable_shared" = yes || enable_static=yes
13624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13625: $as_echo "$enable_static" >&6; }
13626:
13627:
13628:
13629:
13630: fi
13631: ac_ext=c
13632: ac_cpp='$CPP $CPPFLAGS'
13633: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13634: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13635: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13636:
13637: CC="$lt_save_CC"
13638:
13639: if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13640: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13641: (test "X$CXX" != "Xg++"))) ; then
13642: ac_ext=cpp
13643: ac_cpp='$CXXCPP $CPPFLAGS'
13644: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13645: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13646: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13647: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13648: $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13649: if test -z "$CXXCPP"; then
13650: if ${ac_cv_prog_CXXCPP+:} false; then :
13651: $as_echo_n "(cached) " >&6
13652: else
13653: # Double quotes because CXXCPP needs to be expanded
13654: for CXXCPP in "$CXX -E" "/lib/cpp"
13655: do
13656: ac_preproc_ok=false
13657: for ac_cxx_preproc_warn_flag in '' yes
13658: do
13659: # Use a header file that comes with gcc, so configuring glibc
13660: # with a fresh cross-compiler works.
13661: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13662: # <limits.h> exists even on freestanding compilers.
13663: # On the NeXT, cc -E runs the code through the compiler's parser,
13664: # not just through cpp. "Syntax error" is here to catch this case.
13665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666: /* end confdefs.h. */
13667: #ifdef __STDC__
13668: # include <limits.h>
13669: #else
13670: # include <assert.h>
13671: #endif
13672: Syntax error
13673: _ACEOF
13674: if ac_fn_cxx_try_cpp "$LINENO"; then :
13675:
13676: else
13677: # Broken: fails on valid input.
13678: continue
13679: fi
13680: rm -f conftest.err conftest.i conftest.$ac_ext
13681:
13682: # OK, works on sane cases. Now check whether nonexistent headers
13683: # can be detected and how.
13684: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685: /* end confdefs.h. */
13686: #include <ac_nonexistent.h>
13687: _ACEOF
13688: if ac_fn_cxx_try_cpp "$LINENO"; then :
13689: # Broken: success on invalid input.
13690: continue
13691: else
13692: # Passes both tests.
13693: ac_preproc_ok=:
13694: break
13695: fi
13696: rm -f conftest.err conftest.i conftest.$ac_ext
13697:
13698: done
13699: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13700: rm -f conftest.i conftest.err conftest.$ac_ext
13701: if $ac_preproc_ok; then :
13702: break
13703: fi
13704:
13705: done
13706: ac_cv_prog_CXXCPP=$CXXCPP
13707:
13708: fi
13709: CXXCPP=$ac_cv_prog_CXXCPP
13710: else
13711: ac_cv_prog_CXXCPP=$CXXCPP
13712: fi
13713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13714: $as_echo "$CXXCPP" >&6; }
13715: ac_preproc_ok=false
13716: for ac_cxx_preproc_warn_flag in '' yes
13717: do
13718: # Use a header file that comes with gcc, so configuring glibc
13719: # with a fresh cross-compiler works.
13720: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13721: # <limits.h> exists even on freestanding compilers.
13722: # On the NeXT, cc -E runs the code through the compiler's parser,
13723: # not just through cpp. "Syntax error" is here to catch this case.
13724: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725: /* end confdefs.h. */
13726: #ifdef __STDC__
13727: # include <limits.h>
13728: #else
13729: # include <assert.h>
13730: #endif
13731: Syntax error
13732: _ACEOF
13733: if ac_fn_cxx_try_cpp "$LINENO"; then :
13734:
13735: else
13736: # Broken: fails on valid input.
13737: continue
13738: fi
13739: rm -f conftest.err conftest.i conftest.$ac_ext
13740:
13741: # OK, works on sane cases. Now check whether nonexistent headers
13742: # can be detected and how.
13743: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744: /* end confdefs.h. */
13745: #include <ac_nonexistent.h>
13746: _ACEOF
13747: if ac_fn_cxx_try_cpp "$LINENO"; then :
13748: # Broken: success on invalid input.
13749: continue
13750: else
13751: # Passes both tests.
13752: ac_preproc_ok=:
13753: break
13754: fi
13755: rm -f conftest.err conftest.i conftest.$ac_ext
13756:
13757: done
13758: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13759: rm -f conftest.i conftest.err conftest.$ac_ext
13760: if $ac_preproc_ok; then :
13761:
13762: else
13763: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13764: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13765: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13766: See \`config.log' for more details" "$LINENO" 5; }
13767: fi
13768:
13769: ac_ext=c
13770: ac_cpp='$CPP $CPPFLAGS'
13771: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13772: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13773: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13774:
13775: else
13776: _lt_caught_CXX_error=yes
13777: fi
13778:
13779: ac_ext=cpp
13780: ac_cpp='$CXXCPP $CPPFLAGS'
13781: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13782: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13783: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13784:
13785: archive_cmds_need_lc_CXX=no
13786: allow_undefined_flag_CXX=
13787: always_export_symbols_CXX=no
13788: archive_expsym_cmds_CXX=
13789: compiler_needs_object_CXX=no
13790: export_dynamic_flag_spec_CXX=
13791: hardcode_direct_CXX=no
13792: hardcode_direct_absolute_CXX=no
13793: hardcode_libdir_flag_spec_CXX=
13794: hardcode_libdir_separator_CXX=
13795: hardcode_minus_L_CXX=no
13796: hardcode_shlibpath_var_CXX=unsupported
13797: hardcode_automatic_CXX=no
13798: inherit_rpath_CXX=no
13799: module_cmds_CXX=
13800: module_expsym_cmds_CXX=
13801: link_all_deplibs_CXX=unknown
13802: old_archive_cmds_CXX=$old_archive_cmds
13803: reload_flag_CXX=$reload_flag
13804: reload_cmds_CXX=$reload_cmds
13805: no_undefined_flag_CXX=
13806: whole_archive_flag_spec_CXX=
13807: enable_shared_with_static_runtimes_CXX=no
13808:
13809: # Source file extension for C++ test sources.
13810: ac_ext=cpp
13811:
13812: # Object file extension for compiled C++ test sources.
13813: objext=o
13814: objext_CXX=$objext
13815:
13816: # No sense in running all these tests if we already determined that
13817: # the CXX compiler isn't working. Some variables (like enable_shared)
13818: # are currently assumed to apply to all compilers on this platform,
13819: # and will be corrupted by setting them based on a non-working compiler.
13820: if test "$_lt_caught_CXX_error" != yes; then
13821: # Code to be used in simple compile tests
13822: lt_simple_compile_test_code="int some_variable = 0;"
13823:
13824: # Code to be used in simple link tests
13825: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13826:
13827: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13828:
13829:
13830:
13831:
13832:
13833:
13834: # If no C compiler was specified, use CC.
13835: LTCC=${LTCC-"$CC"}
13836:
13837: # If no C compiler flags were specified, use CFLAGS.
13838: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13839:
13840: # Allow CC to be a program name with arguments.
13841: compiler=$CC
13842:
13843:
13844: # save warnings/boilerplate of simple test code
13845: ac_outfile=conftest.$ac_objext
13846: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13847: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13848: _lt_compiler_boilerplate=`cat conftest.err`
13849: $RM conftest*
13850:
13851: ac_outfile=conftest.$ac_objext
13852: echo "$lt_simple_link_test_code" >conftest.$ac_ext
13853: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13854: _lt_linker_boilerplate=`cat conftest.err`
13855: $RM -r conftest*
13856:
13857:
13858: # Allow CC to be a program name with arguments.
13859: lt_save_CC=$CC
13860: lt_save_CFLAGS=$CFLAGS
13861: lt_save_LD=$LD
13862: lt_save_GCC=$GCC
13863: GCC=$GXX
13864: lt_save_with_gnu_ld=$with_gnu_ld
13865: lt_save_path_LD=$lt_cv_path_LD
13866: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13867: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13868: else
13869: $as_unset lt_cv_prog_gnu_ld
13870: fi
13871: if test -n "${lt_cv_path_LDCXX+set}"; then
13872: lt_cv_path_LD=$lt_cv_path_LDCXX
13873: else
13874: $as_unset lt_cv_path_LD
13875: fi
13876: test -z "${LDCXX+set}" || LD=$LDCXX
13877: CC=${CXX-"c++"}
13878: CFLAGS=$CXXFLAGS
13879: compiler=$CC
13880: compiler_CXX=$CC
13881: for cc_temp in $compiler""; do
13882: case $cc_temp in
13883: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13884: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13885: \-*) ;;
13886: *) break;;
13887: esac
13888: done
13889: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13890:
13891:
13892: if test -n "$compiler"; then
13893: # We don't want -fno-exception when compiling C++ code, so set the
13894: # no_builtin_flag separately
13895: if test "$GXX" = yes; then
13896: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13897: else
13898: lt_prog_compiler_no_builtin_flag_CXX=
13899: fi
13900:
13901: if test "$GXX" = yes; then
13902: # Set up default GNU C++ configuration
13903:
13904:
13905:
13906: # Check whether --with-gnu-ld was given.
13907: if test "${with_gnu_ld+set}" = set; then :
13908: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13909: else
13910: with_gnu_ld=no
13911: fi
13912:
13913: ac_prog=ld
13914: if test "$GCC" = yes; then
13915: # Check if gcc -print-prog-name=ld gives a path.
13916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13917: $as_echo_n "checking for ld used by $CC... " >&6; }
13918: case $host in
13919: *-*-mingw*)
13920: # gcc leaves a trailing carriage return which upsets mingw
13921: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13922: *)
13923: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13924: esac
13925: case $ac_prog in
13926: # Accept absolute paths.
13927: [\\/]* | ?:[\\/]*)
13928: re_direlt='/[^/][^/]*/\.\./'
13929: # Canonicalize the pathname of ld
13930: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13931: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13932: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13933: done
13934: test -z "$LD" && LD="$ac_prog"
13935: ;;
13936: "")
13937: # If it fails, then pretend we aren't using GCC.
13938: ac_prog=ld
13939: ;;
13940: *)
13941: # If it is relative, then search for the first ld in PATH.
13942: with_gnu_ld=unknown
13943: ;;
13944: esac
13945: elif test "$with_gnu_ld" = yes; then
13946: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13947: $as_echo_n "checking for GNU ld... " >&6; }
13948: else
13949: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13950: $as_echo_n "checking for non-GNU ld... " >&6; }
13951: fi
13952: if ${lt_cv_path_LD+:} false; then :
13953: $as_echo_n "(cached) " >&6
13954: else
13955: if test -z "$LD"; then
13956: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13957: for ac_dir in $PATH; do
13958: IFS="$lt_save_ifs"
13959: test -z "$ac_dir" && ac_dir=.
13960: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13961: lt_cv_path_LD="$ac_dir/$ac_prog"
13962: # Check to see if the program is GNU ld. I'd rather use --version,
13963: # but apparently some variants of GNU ld only accept -v.
13964: # Break only if it was the GNU/non-GNU ld that we prefer.
13965: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13966: *GNU* | *'with BFD'*)
13967: test "$with_gnu_ld" != no && break
13968: ;;
13969: *)
13970: test "$with_gnu_ld" != yes && break
13971: ;;
13972: esac
13973: fi
13974: done
13975: IFS="$lt_save_ifs"
13976: else
13977: lt_cv_path_LD="$LD" # Let the user override the test with a path.
13978: fi
13979: fi
13980:
13981: LD="$lt_cv_path_LD"
13982: if test -n "$LD"; then
13983: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13984: $as_echo "$LD" >&6; }
13985: else
13986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13987: $as_echo "no" >&6; }
13988: fi
13989: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13991: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13992: if ${lt_cv_prog_gnu_ld+:} false; then :
13993: $as_echo_n "(cached) " >&6
13994: else
13995: # I'd rather use --version here, but apparently some GNU lds only accept -v.
13996: case `$LD -v 2>&1 </dev/null` in
13997: *GNU* | *'with BFD'*)
13998: lt_cv_prog_gnu_ld=yes
13999: ;;
14000: *)
14001: lt_cv_prog_gnu_ld=no
14002: ;;
14003: esac
14004: fi
14005: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14006: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14007: with_gnu_ld=$lt_cv_prog_gnu_ld
14008:
14009:
14010:
14011:
14012:
14013:
14014:
14015: # Check if GNU C++ uses GNU ld as the underlying linker, since the
14016: # archiving commands below assume that GNU ld is being used.
14017: if test "$with_gnu_ld" = yes; then
14018: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14019: archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14020:
14021: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14022: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14023:
14024: # If archive_cmds runs LD, not CC, wlarc should be empty
14025: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14026: # investigate it a little bit more. (MM)
14027: wlarc='${wl}'
14028:
14029: # ancient GNU ld didn't support --whole-archive et. al.
14030: if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14031: $GREP 'no-whole-archive' > /dev/null; then
14032: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14033: else
14034: whole_archive_flag_spec_CXX=
14035: fi
14036: else
14037: with_gnu_ld=no
14038: wlarc=
14039:
14040: # A generic and very simple default shared library creation
14041: # command for GNU C++ for the case where it uses the native
14042: # linker, instead of GNU ld. If possible, this setting should
14043: # overridden to take advantage of the native linker features on
14044: # the platform it is being used on.
14045: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14046: fi
14047:
14048: # Commands to make compiler produce verbose output that lists
14049: # what "hidden" libraries, object files and flags are used when
14050: # linking a shared library.
14051: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14052:
14053: else
14054: GXX=no
14055: with_gnu_ld=no
14056: wlarc=
14057: fi
14058:
14059: # PORTME: fill in a description of your system's C++ link characteristics
14060: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14061: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14062: ld_shlibs_CXX=yes
14063: case $host_os in
14064: aix3*)
14065: # FIXME: insert proper C++ library support
14066: ld_shlibs_CXX=no
14067: ;;
14068: aix[4-9]*)
14069: if test "$host_cpu" = ia64; then
14070: # On IA64, the linker does run time linking by default, so we don't
14071: # have to do anything special.
14072: aix_use_runtimelinking=no
14073: exp_sym_flag='-Bexport'
14074: no_entry_flag=""
14075: else
14076: aix_use_runtimelinking=no
14077:
14078: # Test if we are trying to use run time linking or normal
14079: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14080: # need to do runtime linking.
14081: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14082: for ld_flag in $LDFLAGS; do
14083: case $ld_flag in
14084: *-brtl*)
14085: aix_use_runtimelinking=yes
14086: break
14087: ;;
14088: esac
14089: done
14090: ;;
14091: esac
14092:
14093: exp_sym_flag='-bexport'
14094: no_entry_flag='-bnoentry'
14095: fi
14096:
14097: # When large executables or shared objects are built, AIX ld can
14098: # have problems creating the table of contents. If linking a library
14099: # or program results in "error TOC overflow" add -mminimal-toc to
14100: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14101: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14102:
14103: archive_cmds_CXX=''
14104: hardcode_direct_CXX=yes
14105: hardcode_direct_absolute_CXX=yes
14106: hardcode_libdir_separator_CXX=':'
14107: link_all_deplibs_CXX=yes
14108: file_list_spec_CXX='${wl}-f,'
14109:
14110: if test "$GXX" = yes; then
14111: case $host_os in aix4.[012]|aix4.[012].*)
14112: # We only want to do this on AIX 4.2 and lower, the check
14113: # below for broken collect2 doesn't work under 4.3+
14114: collect2name=`${CC} -print-prog-name=collect2`
14115: if test -f "$collect2name" &&
14116: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14117: then
14118: # We have reworked collect2
14119: :
14120: else
14121: # We have old collect2
14122: hardcode_direct_CXX=unsupported
14123: # It fails to find uninstalled libraries when the uninstalled
14124: # path is not listed in the libpath. Setting hardcode_minus_L
14125: # to unsupported forces relinking
14126: hardcode_minus_L_CXX=yes
14127: hardcode_libdir_flag_spec_CXX='-L$libdir'
14128: hardcode_libdir_separator_CXX=
14129: fi
14130: esac
14131: shared_flag='-shared'
14132: if test "$aix_use_runtimelinking" = yes; then
14133: shared_flag="$shared_flag "'${wl}-G'
14134: fi
14135: else
14136: # not using gcc
14137: if test "$host_cpu" = ia64; then
14138: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14139: # chokes on -Wl,-G. The following line is correct:
14140: shared_flag='-G'
14141: else
14142: if test "$aix_use_runtimelinking" = yes; then
14143: shared_flag='${wl}-G'
14144: else
14145: shared_flag='${wl}-bM:SRE'
14146: fi
14147: fi
14148: fi
14149:
14150: export_dynamic_flag_spec_CXX='${wl}-bexpall'
14151: # It seems that -bexpall does not export symbols beginning with
14152: # underscore (_), so it is better to generate a list of symbols to
14153: # export.
14154: always_export_symbols_CXX=yes
14155: if test "$aix_use_runtimelinking" = yes; then
14156: # Warning - without using the other runtime loading flags (-brtl),
14157: # -berok will link without error, but may produce a broken library.
14158: allow_undefined_flag_CXX='-berok'
14159: # Determine the default libpath from the value encoded in an empty
14160: # executable.
14161: if test "${lt_cv_aix_libpath+set}" = set; then
14162: aix_libpath=$lt_cv_aix_libpath
14163: else
14164: if ${lt_cv_aix_libpath__CXX+:} false; then :
14165: $as_echo_n "(cached) " >&6
14166: else
14167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168: /* end confdefs.h. */
14169:
14170: int
14171: main ()
14172: {
14173:
14174: ;
14175: return 0;
14176: }
14177: _ACEOF
14178: if ac_fn_cxx_try_link "$LINENO"; then :
14179:
14180: lt_aix_libpath_sed='
14181: /Import File Strings/,/^$/ {
14182: /^0/ {
14183: s/^0 *\([^ ]*\) *$/\1/
14184: p
14185: }
14186: }'
14187: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14188: # Check for a 64-bit object if we didn't find anything.
14189: if test -z "$lt_cv_aix_libpath__CXX"; then
14190: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14191: fi
14192: fi
14193: rm -f core conftest.err conftest.$ac_objext \
14194: conftest$ac_exeext conftest.$ac_ext
14195: if test -z "$lt_cv_aix_libpath__CXX"; then
14196: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14197: fi
14198:
14199: fi
14200:
14201: aix_libpath=$lt_cv_aix_libpath__CXX
14202: fi
14203:
14204: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14205:
14206: archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14207: else
14208: if test "$host_cpu" = ia64; then
14209: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14210: allow_undefined_flag_CXX="-z nodefs"
14211: archive_expsym_cmds_CXX="\$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"
14212: else
14213: # Determine the default libpath from the value encoded in an
14214: # empty executable.
14215: if test "${lt_cv_aix_libpath+set}" = set; then
14216: aix_libpath=$lt_cv_aix_libpath
14217: else
14218: if ${lt_cv_aix_libpath__CXX+:} false; then :
14219: $as_echo_n "(cached) " >&6
14220: else
14221: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222: /* end confdefs.h. */
14223:
14224: int
14225: main ()
14226: {
14227:
14228: ;
14229: return 0;
14230: }
14231: _ACEOF
14232: if ac_fn_cxx_try_link "$LINENO"; then :
14233:
14234: lt_aix_libpath_sed='
14235: /Import File Strings/,/^$/ {
14236: /^0/ {
14237: s/^0 *\([^ ]*\) *$/\1/
14238: p
14239: }
14240: }'
14241: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14242: # Check for a 64-bit object if we didn't find anything.
14243: if test -z "$lt_cv_aix_libpath__CXX"; then
14244: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14245: fi
14246: fi
14247: rm -f core conftest.err conftest.$ac_objext \
14248: conftest$ac_exeext conftest.$ac_ext
14249: if test -z "$lt_cv_aix_libpath__CXX"; then
14250: lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14251: fi
14252:
14253: fi
14254:
14255: aix_libpath=$lt_cv_aix_libpath__CXX
14256: fi
14257:
14258: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14259: # Warning - without using the other run time loading flags,
14260: # -berok will link without error, but may produce a broken library.
14261: no_undefined_flag_CXX=' ${wl}-bernotok'
14262: allow_undefined_flag_CXX=' ${wl}-berok'
14263: if test "$with_gnu_ld" = yes; then
14264: # We only use this code for GNU lds that support --whole-archive.
14265: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14266: else
14267: # Exported symbols can be pulled into shared objects from archives
14268: whole_archive_flag_spec_CXX='$convenience'
14269: fi
14270: archive_cmds_need_lc_CXX=yes
14271: # This is similar to how AIX traditionally builds its shared
14272: # libraries.
14273: archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14274: fi
14275: fi
14276: ;;
14277:
14278: beos*)
14279: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14280: allow_undefined_flag_CXX=unsupported
14281: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14282: # support --undefined. This deserves some investigation. FIXME
14283: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14284: else
14285: ld_shlibs_CXX=no
14286: fi
14287: ;;
14288:
14289: chorus*)
14290: case $cc_basename in
14291: *)
14292: # FIXME: insert proper C++ library support
14293: ld_shlibs_CXX=no
14294: ;;
14295: esac
14296: ;;
14297:
14298: cygwin* | mingw* | pw32* | cegcc*)
14299: case $GXX,$cc_basename in
14300: ,cl* | no,cl*)
14301: # Native MSVC
14302: # hardcode_libdir_flag_spec is actually meaningless, as there is
14303: # no search path for DLLs.
14304: hardcode_libdir_flag_spec_CXX=' '
14305: allow_undefined_flag_CXX=unsupported
14306: always_export_symbols_CXX=yes
14307: file_list_spec_CXX='@'
14308: # Tell ltmain to make .lib files, not .a files.
14309: libext=lib
14310: # Tell ltmain to make .dll files, not .so files.
14311: shrext_cmds=".dll"
14312: # FIXME: Setting linknames here is a bad hack.
14313: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14314: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14315: $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14316: else
14317: $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14318: fi~
14319: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14320: linknames='
14321: # The linker will not automatically build a static lib if we build a DLL.
14322: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14323: enable_shared_with_static_runtimes_CXX=yes
14324: # Don't use ranlib
14325: old_postinstall_cmds_CXX='chmod 644 $oldlib'
14326: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14327: lt_tool_outputfile="@TOOL_OUTPUT@"~
14328: case $lt_outputfile in
14329: *.exe|*.EXE) ;;
14330: *)
14331: lt_outputfile="$lt_outputfile.exe"
14332: lt_tool_outputfile="$lt_tool_outputfile.exe"
14333: ;;
14334: esac~
14335: func_to_tool_file "$lt_outputfile"~
14336: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14337: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14338: $RM "$lt_outputfile.manifest";
14339: fi'
14340: ;;
14341: *)
14342: # g++
14343: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14344: # as there is no search path for DLLs.
14345: hardcode_libdir_flag_spec_CXX='-L$libdir'
14346: export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14347: allow_undefined_flag_CXX=unsupported
14348: always_export_symbols_CXX=no
14349: enable_shared_with_static_runtimes_CXX=yes
14350:
14351: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14352: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14353: # If the export-symbols file already is a .def file (1st line
14354: # is EXPORTS), use it as is; otherwise, prepend...
14355: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14356: cp $export_symbols $output_objdir/$soname.def;
14357: else
14358: echo EXPORTS > $output_objdir/$soname.def;
14359: cat $export_symbols >> $output_objdir/$soname.def;
14360: fi~
14361: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14362: else
14363: ld_shlibs_CXX=no
14364: fi
14365: ;;
14366: esac
14367: ;;
14368: darwin* | rhapsody*)
14369:
14370:
14371: archive_cmds_need_lc_CXX=no
14372: hardcode_direct_CXX=no
14373: hardcode_automatic_CXX=yes
14374: hardcode_shlibpath_var_CXX=unsupported
14375: if test "$lt_cv_ld_force_load" = "yes"; then
14376: whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1.1.1.4 ! misho 14377:
1.1 misho 14378: else
14379: whole_archive_flag_spec_CXX=''
14380: fi
14381: link_all_deplibs_CXX=yes
14382: allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14383: case $cc_basename in
14384: ifort*) _lt_dar_can_shared=yes ;;
14385: *) _lt_dar_can_shared=$GCC ;;
14386: esac
14387: if test "$_lt_dar_can_shared" = "yes"; then
14388: output_verbose_link_cmd=func_echo_all
14389: archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14390: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14391: archive_expsym_cmds_CXX="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}"
14392: module_expsym_cmds_CXX="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}"
14393: if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14394: archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14395: archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14396: fi
14397:
14398: else
14399: ld_shlibs_CXX=no
14400: fi
14401:
14402: ;;
14403:
14404: dgux*)
14405: case $cc_basename in
14406: ec++*)
14407: # FIXME: insert proper C++ library support
14408: ld_shlibs_CXX=no
14409: ;;
14410: ghcx*)
14411: # Green Hills C++ Compiler
14412: # FIXME: insert proper C++ library support
14413: ld_shlibs_CXX=no
14414: ;;
14415: *)
14416: # FIXME: insert proper C++ library support
14417: ld_shlibs_CXX=no
14418: ;;
14419: esac
14420: ;;
14421:
1.1.1.4 ! misho 14422: freebsd2.*)
1.1 misho 14423: # C++ shared libraries reported to be fairly broken before
14424: # switch to ELF
14425: ld_shlibs_CXX=no
14426: ;;
14427:
14428: freebsd-elf*)
14429: archive_cmds_need_lc_CXX=no
14430: ;;
14431:
14432: freebsd* | dragonfly*)
14433: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14434: # conventions
14435: ld_shlibs_CXX=yes
14436: ;;
14437:
14438: gnu*)
14439: ;;
14440:
14441: haiku*)
14442: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14443: link_all_deplibs_CXX=yes
14444: ;;
14445:
14446: hpux9*)
14447: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14448: hardcode_libdir_separator_CXX=:
14449: export_dynamic_flag_spec_CXX='${wl}-E'
14450: hardcode_direct_CXX=yes
14451: hardcode_minus_L_CXX=yes # Not in the search PATH,
14452: # but as the default
14453: # location of the library.
14454:
14455: case $cc_basename in
14456: CC*)
14457: # FIXME: insert proper C++ library support
14458: ld_shlibs_CXX=no
14459: ;;
14460: aCC*)
14461: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14462: # Commands to make compiler produce verbose output that lists
14463: # what "hidden" libraries, object files and flags are used when
14464: # linking a shared library.
14465: #
14466: # There doesn't appear to be a way to prevent this compiler from
14467: # explicitly linking system object files so we need to strip them
14468: # from the output so that they don't get included in the library
14469: # dependencies.
14470: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14471: ;;
14472: *)
14473: if test "$GXX" = yes; then
14474: archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14475: else
14476: # FIXME: insert proper C++ library support
14477: ld_shlibs_CXX=no
14478: fi
14479: ;;
14480: esac
14481: ;;
14482:
14483: hpux10*|hpux11*)
14484: if test $with_gnu_ld = no; then
14485: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14486: hardcode_libdir_separator_CXX=:
14487:
14488: case $host_cpu in
14489: hppa*64*|ia64*)
14490: ;;
14491: *)
14492: export_dynamic_flag_spec_CXX='${wl}-E'
14493: ;;
14494: esac
14495: fi
14496: case $host_cpu in
14497: hppa*64*|ia64*)
14498: hardcode_direct_CXX=no
14499: hardcode_shlibpath_var_CXX=no
14500: ;;
14501: *)
14502: hardcode_direct_CXX=yes
14503: hardcode_direct_absolute_CXX=yes
14504: hardcode_minus_L_CXX=yes # Not in the search PATH,
14505: # but as the default
14506: # location of the library.
14507: ;;
14508: esac
14509:
14510: case $cc_basename in
14511: CC*)
14512: # FIXME: insert proper C++ library support
14513: ld_shlibs_CXX=no
14514: ;;
14515: aCC*)
14516: case $host_cpu in
14517: hppa*64*)
14518: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14519: ;;
14520: ia64*)
14521: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14522: ;;
14523: *)
14524: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14525: ;;
14526: esac
14527: # Commands to make compiler produce verbose output that lists
14528: # what "hidden" libraries, object files and flags are used when
14529: # linking a shared library.
14530: #
14531: # There doesn't appear to be a way to prevent this compiler from
14532: # explicitly linking system object files so we need to strip them
14533: # from the output so that they don't get included in the library
14534: # dependencies.
14535: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14536: ;;
14537: *)
14538: if test "$GXX" = yes; then
14539: if test $with_gnu_ld = no; then
14540: case $host_cpu in
14541: hppa*64*)
14542: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14543: ;;
14544: ia64*)
14545: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14546: ;;
14547: *)
14548: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14549: ;;
14550: esac
14551: fi
14552: else
14553: # FIXME: insert proper C++ library support
14554: ld_shlibs_CXX=no
14555: fi
14556: ;;
14557: esac
14558: ;;
14559:
14560: interix[3-9]*)
14561: hardcode_direct_CXX=no
14562: hardcode_shlibpath_var_CXX=no
14563: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14564: export_dynamic_flag_spec_CXX='${wl}-E'
14565: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14566: # Instead, shared libraries are loaded at an image base (0x10000000 by
14567: # default) and relocated if they conflict, which is a slow very memory
14568: # consuming and fragmenting process. To avoid this, we pick a random,
14569: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14570: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14571: archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14572: archive_expsym_cmds_CXX='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'
14573: ;;
14574: irix5* | irix6*)
14575: case $cc_basename in
14576: CC*)
14577: # SGI C++
14578: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14579:
14580: # Archives containing C++ object files must be created using
14581: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14582: # necessary to make sure instantiated templates are included
14583: # in the archive.
14584: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14585: ;;
14586: *)
14587: if test "$GXX" = yes; then
14588: if test "$with_gnu_ld" = no; then
14589: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14590: else
14591: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14592: fi
14593: fi
14594: link_all_deplibs_CXX=yes
14595: ;;
14596: esac
14597: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14598: hardcode_libdir_separator_CXX=:
14599: inherit_rpath_CXX=yes
14600: ;;
14601:
14602: linux* | k*bsd*-gnu | kopensolaris*-gnu)
14603: case $cc_basename in
14604: KCC*)
14605: # Kuck and Associates, Inc. (KAI) C++ Compiler
14606:
14607: # KCC will only create a shared library if the output file
14608: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14609: # to its proper name (with version) after linking.
14610: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14611: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14612: # Commands to make compiler produce verbose output that lists
14613: # what "hidden" libraries, object files and flags are used when
14614: # linking a shared library.
14615: #
14616: # There doesn't appear to be a way to prevent this compiler from
14617: # explicitly linking system object files so we need to strip them
14618: # from the output so that they don't get included in the library
14619: # dependencies.
14620: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14621:
14622: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14623: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14624:
14625: # Archives containing C++ object files must be created using
14626: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14627: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14628: ;;
14629: icpc* | ecpc* )
14630: # Intel C++
14631: with_gnu_ld=yes
14632: # version 8.0 and above of icpc choke on multiply defined symbols
14633: # if we add $predep_objects and $postdep_objects, however 7.1 and
14634: # earlier do not add the objects themselves.
14635: case `$CC -V 2>&1` in
14636: *"Version 7."*)
14637: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14638: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14639: ;;
14640: *) # Version 8.0 or newer
14641: tmp_idyn=
14642: case $host_cpu in
14643: ia64*) tmp_idyn=' -i_dynamic';;
14644: esac
14645: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14646: archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14647: ;;
14648: esac
14649: archive_cmds_need_lc_CXX=no
14650: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14651: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14652: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14653: ;;
14654: pgCC* | pgcpp*)
14655: # Portland Group C++ compiler
14656: case `$CC -V` in
14657: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14658: prelink_cmds_CXX='tpldir=Template.dir~
14659: rm -rf $tpldir~
14660: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14661: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14662: old_archive_cmds_CXX='tpldir=Template.dir~
14663: rm -rf $tpldir~
14664: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14665: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14666: $RANLIB $oldlib'
14667: archive_cmds_CXX='tpldir=Template.dir~
14668: rm -rf $tpldir~
14669: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14670: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14671: archive_expsym_cmds_CXX='tpldir=Template.dir~
14672: rm -rf $tpldir~
14673: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14674: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14675: ;;
14676: *) # Version 6 and above use weak symbols
14677: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14678: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14679: ;;
14680: esac
14681:
14682: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14683: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14684: whole_archive_flag_spec_CXX='${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'
14685: ;;
14686: cxx*)
14687: # Compaq C++
14688: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14689: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14690:
14691: runpath_var=LD_RUN_PATH
14692: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14693: hardcode_libdir_separator_CXX=:
14694:
14695: # Commands to make compiler produce verbose output that lists
14696: # what "hidden" libraries, object files and flags are used when
14697: # linking a shared library.
14698: #
14699: # There doesn't appear to be a way to prevent this compiler from
14700: # explicitly linking system object files so we need to strip them
14701: # from the output so that they don't get included in the library
14702: # dependencies.
14703: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14704: ;;
14705: xl* | mpixl* | bgxl*)
14706: # IBM XL 8.0 on PPC, with GNU ld
14707: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14708: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14709: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14710: if test "x$supports_anon_versioning" = xyes; then
14711: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14712: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14713: echo "local: *; };" >> $output_objdir/$libname.ver~
14714: $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14715: fi
14716: ;;
14717: *)
14718: case `$CC -V 2>&1 | sed 5q` in
14719: *Sun\ C*)
14720: # Sun C++ 5.9
14721: no_undefined_flag_CXX=' -zdefs'
14722: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14723: archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14724: hardcode_libdir_flag_spec_CXX='-R$libdir'
14725: whole_archive_flag_spec_CXX='${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'
14726: compiler_needs_object_CXX=yes
14727:
14728: # Not sure whether something based on
14729: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14730: # would be better.
14731: output_verbose_link_cmd='func_echo_all'
14732:
14733: # Archives containing C++ object files must be created using
14734: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14735: # necessary to make sure instantiated templates are included
14736: # in the archive.
14737: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14738: ;;
14739: esac
14740: ;;
14741: esac
14742: ;;
14743:
14744: lynxos*)
14745: # FIXME: insert proper C++ library support
14746: ld_shlibs_CXX=no
14747: ;;
14748:
14749: m88k*)
14750: # FIXME: insert proper C++ library support
14751: ld_shlibs_CXX=no
14752: ;;
14753:
14754: mvs*)
14755: case $cc_basename in
14756: cxx*)
14757: # FIXME: insert proper C++ library support
14758: ld_shlibs_CXX=no
14759: ;;
14760: *)
14761: # FIXME: insert proper C++ library support
14762: ld_shlibs_CXX=no
14763: ;;
14764: esac
14765: ;;
14766:
14767: netbsd*)
14768: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14769: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14770: wlarc=
14771: hardcode_libdir_flag_spec_CXX='-R$libdir'
14772: hardcode_direct_CXX=yes
14773: hardcode_shlibpath_var_CXX=no
14774: fi
14775: # Workaround some broken pre-1.5 toolchains
14776: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14777: ;;
14778:
14779: *nto* | *qnx*)
14780: ld_shlibs_CXX=yes
14781: ;;
14782:
14783: openbsd2*)
14784: # C++ shared libraries are fairly broken
14785: ld_shlibs_CXX=no
14786: ;;
14787:
14788: openbsd*)
14789: if test -f /usr/libexec/ld.so; then
14790: hardcode_direct_CXX=yes
14791: hardcode_shlibpath_var_CXX=no
14792: hardcode_direct_absolute_CXX=yes
14793: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14794: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14795: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14796: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14797: export_dynamic_flag_spec_CXX='${wl}-E'
14798: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14799: fi
14800: output_verbose_link_cmd=func_echo_all
14801: else
14802: ld_shlibs_CXX=no
14803: fi
14804: ;;
14805:
14806: osf3* | osf4* | osf5*)
14807: case $cc_basename in
14808: KCC*)
14809: # Kuck and Associates, Inc. (KAI) C++ Compiler
14810:
14811: # KCC will only create a shared library if the output file
14812: # ends with ".so" (or ".sl" for HP-UX), so rename the library
14813: # to its proper name (with version) after linking.
14814: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14815:
14816: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14817: hardcode_libdir_separator_CXX=:
14818:
14819: # Archives containing C++ object files must be created using
14820: # the KAI C++ compiler.
14821: case $host in
14822: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14823: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14824: esac
14825: ;;
14826: RCC*)
14827: # Rational C++ 2.4.1
14828: # FIXME: insert proper C++ library support
14829: ld_shlibs_CXX=no
14830: ;;
14831: cxx*)
14832: case $host in
14833: osf3*)
14834: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14835: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14836: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14837: ;;
14838: *)
14839: allow_undefined_flag_CXX=' -expect_unresolved \*'
14840: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14841: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14842: echo "-hidden">> $lib.exp~
14843: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14844: $RM $lib.exp'
14845: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14846: ;;
14847: esac
14848:
14849: hardcode_libdir_separator_CXX=:
14850:
14851: # Commands to make compiler produce verbose output that lists
14852: # what "hidden" libraries, object files and flags are used when
14853: # linking a shared library.
14854: #
14855: # There doesn't appear to be a way to prevent this compiler from
14856: # explicitly linking system object files so we need to strip them
14857: # from the output so that they don't get included in the library
14858: # dependencies.
14859: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14860: ;;
14861: *)
14862: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14863: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14864: case $host in
14865: osf3*)
14866: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14867: ;;
14868: *)
14869: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14870: ;;
14871: esac
14872:
14873: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14874: hardcode_libdir_separator_CXX=:
14875:
14876: # Commands to make compiler produce verbose output that lists
14877: # what "hidden" libraries, object files and flags are used when
14878: # linking a shared library.
14879: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14880:
14881: else
14882: # FIXME: insert proper C++ library support
14883: ld_shlibs_CXX=no
14884: fi
14885: ;;
14886: esac
14887: ;;
14888:
14889: psos*)
14890: # FIXME: insert proper C++ library support
14891: ld_shlibs_CXX=no
14892: ;;
14893:
14894: sunos4*)
14895: case $cc_basename in
14896: CC*)
14897: # Sun C++ 4.x
14898: # FIXME: insert proper C++ library support
14899: ld_shlibs_CXX=no
14900: ;;
14901: lcc*)
14902: # Lucid
14903: # FIXME: insert proper C++ library support
14904: ld_shlibs_CXX=no
14905: ;;
14906: *)
14907: # FIXME: insert proper C++ library support
14908: ld_shlibs_CXX=no
14909: ;;
14910: esac
14911: ;;
14912:
14913: solaris*)
14914: case $cc_basename in
14915: CC* | sunCC*)
14916: # Sun C++ 4.2, 5.x and Centerline C++
14917: archive_cmds_need_lc_CXX=yes
14918: no_undefined_flag_CXX=' -zdefs'
14919: archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14920: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14921: $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14922:
14923: hardcode_libdir_flag_spec_CXX='-R$libdir'
14924: hardcode_shlibpath_var_CXX=no
14925: case $host_os in
14926: solaris2.[0-5] | solaris2.[0-5].*) ;;
14927: *)
14928: # The compiler driver will combine and reorder linker options,
14929: # but understands `-z linker_flag'.
14930: # Supported since Solaris 2.6 (maybe 2.5.1?)
14931: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14932: ;;
14933: esac
14934: link_all_deplibs_CXX=yes
14935:
14936: output_verbose_link_cmd='func_echo_all'
14937:
14938: # Archives containing C++ object files must be created using
14939: # "CC -xar", where "CC" is the Sun C++ compiler. This is
14940: # necessary to make sure instantiated templates are included
14941: # in the archive.
14942: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14943: ;;
14944: gcx*)
14945: # Green Hills C++ Compiler
14946: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14947:
14948: # The C++ compiler must be used to create the archive.
14949: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14950: ;;
14951: *)
14952: # GNU C++ compiler with Solaris linker
14953: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14954: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14955: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14956: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14957: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14958: $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14959:
14960: # Commands to make compiler produce verbose output that lists
14961: # what "hidden" libraries, object files and flags are used when
14962: # linking a shared library.
14963: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14964: else
14965: # g++ 2.7 appears to require `-G' NOT `-shared' on this
14966: # platform.
14967: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14968: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14969: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14970:
14971: # Commands to make compiler produce verbose output that lists
14972: # what "hidden" libraries, object files and flags are used when
14973: # linking a shared library.
14974: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14975: fi
14976:
14977: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14978: case $host_os in
14979: solaris2.[0-5] | solaris2.[0-5].*) ;;
14980: *)
14981: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14982: ;;
14983: esac
14984: fi
14985: ;;
14986: esac
14987: ;;
14988:
14989: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14990: no_undefined_flag_CXX='${wl}-z,text'
14991: archive_cmds_need_lc_CXX=no
14992: hardcode_shlibpath_var_CXX=no
14993: runpath_var='LD_RUN_PATH'
14994:
14995: case $cc_basename in
14996: CC*)
14997: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14998: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14999: ;;
15000: *)
15001: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15002: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15003: ;;
15004: esac
15005: ;;
15006:
15007: sysv5* | sco3.2v5* | sco5v6*)
15008: # Note: We can NOT use -z defs as we might desire, because we do not
15009: # link with -lc, and that would cause any symbols used from libc to
15010: # always be unresolved, which means just about no library would
15011: # ever link correctly. If we're not using GNU ld we use -z text
15012: # though, which does catch some bad symbols but isn't as heavy-handed
15013: # as -z defs.
15014: no_undefined_flag_CXX='${wl}-z,text'
15015: allow_undefined_flag_CXX='${wl}-z,nodefs'
15016: archive_cmds_need_lc_CXX=no
15017: hardcode_shlibpath_var_CXX=no
15018: hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15019: hardcode_libdir_separator_CXX=':'
15020: link_all_deplibs_CXX=yes
15021: export_dynamic_flag_spec_CXX='${wl}-Bexport'
15022: runpath_var='LD_RUN_PATH'
15023:
15024: case $cc_basename in
15025: CC*)
15026: archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15027: archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15028: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15029: '"$old_archive_cmds_CXX"
15030: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15031: '"$reload_cmds_CXX"
15032: ;;
15033: *)
15034: archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15035: archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15036: ;;
15037: esac
15038: ;;
15039:
15040: tandem*)
15041: case $cc_basename in
15042: NCC*)
15043: # NonStop-UX NCC 3.20
15044: # FIXME: insert proper C++ library support
15045: ld_shlibs_CXX=no
15046: ;;
15047: *)
15048: # FIXME: insert proper C++ library support
15049: ld_shlibs_CXX=no
15050: ;;
15051: esac
15052: ;;
15053:
15054: vxworks*)
15055: # FIXME: insert proper C++ library support
15056: ld_shlibs_CXX=no
15057: ;;
15058:
15059: *)
15060: # FIXME: insert proper C++ library support
15061: ld_shlibs_CXX=no
15062: ;;
15063: esac
15064:
15065: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15066: $as_echo "$ld_shlibs_CXX" >&6; }
15067: test "$ld_shlibs_CXX" = no && can_build_shared=no
15068:
15069: GCC_CXX="$GXX"
15070: LD_CXX="$LD"
15071:
15072: ## CAVEAT EMPTOR:
15073: ## There is no encapsulation within the following macros, do not change
15074: ## the running order or otherwise move them around unless you know exactly
15075: ## what you are doing...
15076: # Dependencies to place before and after the object being linked:
15077: predep_objects_CXX=
15078: postdep_objects_CXX=
15079: predeps_CXX=
15080: postdeps_CXX=
15081: compiler_lib_search_path_CXX=
15082:
15083: cat > conftest.$ac_ext <<_LT_EOF
15084: class Foo
15085: {
15086: public:
15087: Foo (void) { a = 0; }
15088: private:
15089: int a;
15090: };
15091: _LT_EOF
15092:
15093:
15094: _lt_libdeps_save_CFLAGS=$CFLAGS
15095: case "$CC $CFLAGS " in #(
15096: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15097: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
1.1.1.4 ! misho 15098: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
1.1 misho 15099: esac
15100:
15101: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15102: (eval $ac_compile) 2>&5
15103: ac_status=$?
15104: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15105: test $ac_status = 0; }; then
15106: # Parse the compiler output and extract the necessary
15107: # objects, libraries and library flags.
15108:
15109: # Sentinel used to keep track of whether or not we are before
15110: # the conftest object file.
15111: pre_test_object_deps_done=no
15112:
15113: for p in `eval "$output_verbose_link_cmd"`; do
15114: case ${prev}${p} in
15115:
15116: -L* | -R* | -l*)
15117: # Some compilers place space between "-{L,R}" and the path.
15118: # Remove the space.
15119: if test $p = "-L" ||
15120: test $p = "-R"; then
15121: prev=$p
15122: continue
15123: fi
15124:
15125: # Expand the sysroot to ease extracting the directories later.
15126: if test -z "$prev"; then
15127: case $p in
15128: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15129: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15130: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15131: esac
15132: fi
15133: case $p in
15134: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15135: esac
15136: if test "$pre_test_object_deps_done" = no; then
15137: case ${prev} in
15138: -L | -R)
15139: # Internal compiler library paths should come after those
15140: # provided the user. The postdeps already come after the
15141: # user supplied libs so there is no need to process them.
15142: if test -z "$compiler_lib_search_path_CXX"; then
15143: compiler_lib_search_path_CXX="${prev}${p}"
15144: else
15145: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15146: fi
15147: ;;
15148: # The "-l" case would never come before the object being
15149: # linked, so don't bother handling this case.
15150: esac
15151: else
15152: if test -z "$postdeps_CXX"; then
15153: postdeps_CXX="${prev}${p}"
15154: else
15155: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15156: fi
15157: fi
15158: prev=
15159: ;;
15160:
15161: *.lto.$objext) ;; # Ignore GCC LTO objects
15162: *.$objext)
15163: # This assumes that the test object file only shows up
15164: # once in the compiler output.
15165: if test "$p" = "conftest.$objext"; then
15166: pre_test_object_deps_done=yes
15167: continue
15168: fi
15169:
15170: if test "$pre_test_object_deps_done" = no; then
15171: if test -z "$predep_objects_CXX"; then
15172: predep_objects_CXX="$p"
15173: else
15174: predep_objects_CXX="$predep_objects_CXX $p"
15175: fi
15176: else
15177: if test -z "$postdep_objects_CXX"; then
15178: postdep_objects_CXX="$p"
15179: else
15180: postdep_objects_CXX="$postdep_objects_CXX $p"
15181: fi
15182: fi
15183: ;;
15184:
15185: *) ;; # Ignore the rest.
15186:
15187: esac
15188: done
15189:
15190: # Clean up.
15191: rm -f a.out a.exe
15192: else
15193: echo "libtool.m4: error: problem compiling CXX test program"
15194: fi
15195:
15196: $RM -f confest.$objext
15197: CFLAGS=$_lt_libdeps_save_CFLAGS
15198:
15199: # PORTME: override above test on systems where it is broken
15200: case $host_os in
15201: interix[3-9]*)
15202: # Interix 3.5 installs completely hosed .la files for C++, so rather than
15203: # hack all around it, let's just trust "g++" to DTRT.
15204: predep_objects_CXX=
15205: postdep_objects_CXX=
15206: postdeps_CXX=
15207: ;;
15208:
15209: linux*)
15210: case `$CC -V 2>&1 | sed 5q` in
15211: *Sun\ C*)
15212: # Sun C++ 5.9
15213:
15214: # The more standards-conforming stlport4 library is
15215: # incompatible with the Cstd library. Avoid specifying
15216: # it if it's in CXXFLAGS. Ignore libCrun as
15217: # -library=stlport4 depends on it.
15218: case " $CXX $CXXFLAGS " in
15219: *" -library=stlport4 "*)
15220: solaris_use_stlport4=yes
15221: ;;
15222: esac
15223:
15224: if test "$solaris_use_stlport4" != yes; then
15225: postdeps_CXX='-library=Cstd -library=Crun'
15226: fi
15227: ;;
15228: esac
15229: ;;
15230:
15231: solaris*)
15232: case $cc_basename in
15233: CC* | sunCC*)
15234: # The more standards-conforming stlport4 library is
15235: # incompatible with the Cstd library. Avoid specifying
15236: # it if it's in CXXFLAGS. Ignore libCrun as
15237: # -library=stlport4 depends on it.
15238: case " $CXX $CXXFLAGS " in
15239: *" -library=stlport4 "*)
15240: solaris_use_stlport4=yes
15241: ;;
15242: esac
15243:
15244: # Adding this requires a known-good setup of shared libraries for
15245: # Sun compiler versions before 5.6, else PIC objects from an old
15246: # archive will be linked into the output, leading to subtle bugs.
15247: if test "$solaris_use_stlport4" != yes; then
15248: postdeps_CXX='-library=Cstd -library=Crun'
15249: fi
15250: ;;
15251: esac
15252: ;;
15253: esac
15254:
15255:
15256: case " $postdeps_CXX " in
15257: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15258: esac
15259: compiler_lib_search_dirs_CXX=
15260: if test -n "${compiler_lib_search_path_CXX}"; then
15261: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15262: fi
15263:
15264:
15265:
15266:
15267:
15268:
15269:
15270:
15271:
15272:
15273:
15274:
15275:
15276:
15277:
15278:
15279:
15280:
15281:
15282:
15283:
15284:
15285:
15286:
15287:
15288:
15289:
15290:
15291:
15292:
15293:
15294: lt_prog_compiler_wl_CXX=
15295: lt_prog_compiler_pic_CXX=
15296: lt_prog_compiler_static_CXX=
15297:
15298:
15299: # C++ specific cases for pic, static, wl, etc.
15300: if test "$GXX" = yes; then
15301: lt_prog_compiler_wl_CXX='-Wl,'
15302: lt_prog_compiler_static_CXX='-static'
15303:
15304: case $host_os in
15305: aix*)
15306: # All AIX code is PIC.
15307: if test "$host_cpu" = ia64; then
15308: # AIX 5 now supports IA64 processor
15309: lt_prog_compiler_static_CXX='-Bstatic'
15310: fi
15311: ;;
15312:
15313: amigaos*)
15314: case $host_cpu in
15315: powerpc)
15316: # see comment about AmigaOS4 .so support
15317: lt_prog_compiler_pic_CXX='-fPIC'
15318: ;;
15319: m68k)
15320: # FIXME: we need at least 68020 code to build shared libraries, but
15321: # adding the `-m68020' flag to GCC prevents building anything better,
15322: # like `-m68040'.
15323: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15324: ;;
15325: esac
15326: ;;
15327:
15328: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15329: # PIC is the default for these OSes.
15330: ;;
15331: mingw* | cygwin* | os2* | pw32* | cegcc*)
15332: # This hack is so that the source file can tell whether it is being
15333: # built for inclusion in a dll (and should export symbols for example).
15334: # Although the cygwin gcc ignores -fPIC, still need this for old-style
15335: # (--disable-auto-import) libraries
15336: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15337: ;;
15338: darwin* | rhapsody*)
15339: # PIC is the default on this platform
15340: # Common symbols not allowed in MH_DYLIB files
15341: lt_prog_compiler_pic_CXX='-fno-common'
15342: ;;
15343: *djgpp*)
15344: # DJGPP does not support shared libraries at all
15345: lt_prog_compiler_pic_CXX=
15346: ;;
15347: haiku*)
15348: # PIC is the default for Haiku.
15349: # The "-static" flag exists, but is broken.
15350: lt_prog_compiler_static_CXX=
15351: ;;
15352: interix[3-9]*)
15353: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15354: # Instead, we relocate shared libraries at runtime.
15355: ;;
15356: sysv4*MP*)
15357: if test -d /usr/nec; then
15358: lt_prog_compiler_pic_CXX=-Kconform_pic
15359: fi
15360: ;;
15361: hpux*)
15362: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15363: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15364: # sets the default TLS model and affects inlining.
15365: case $host_cpu in
15366: hppa*64*)
15367: ;;
15368: *)
15369: lt_prog_compiler_pic_CXX='-fPIC'
15370: ;;
15371: esac
15372: ;;
15373: *qnx* | *nto*)
15374: # QNX uses GNU C++, but need to define -shared option too, otherwise
15375: # it will coredump.
15376: lt_prog_compiler_pic_CXX='-fPIC -shared'
15377: ;;
15378: *)
15379: lt_prog_compiler_pic_CXX='-fPIC'
15380: ;;
15381: esac
15382: else
15383: case $host_os in
15384: aix[4-9]*)
15385: # All AIX code is PIC.
15386: if test "$host_cpu" = ia64; then
15387: # AIX 5 now supports IA64 processor
15388: lt_prog_compiler_static_CXX='-Bstatic'
15389: else
15390: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15391: fi
15392: ;;
15393: chorus*)
15394: case $cc_basename in
15395: cxch68*)
15396: # Green Hills C++ Compiler
15397: # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15398: ;;
15399: esac
15400: ;;
15401: mingw* | cygwin* | os2* | pw32* | cegcc*)
15402: # This hack is so that the source file can tell whether it is being
15403: # built for inclusion in a dll (and should export symbols for example).
15404: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15405: ;;
15406: dgux*)
15407: case $cc_basename in
15408: ec++*)
15409: lt_prog_compiler_pic_CXX='-KPIC'
15410: ;;
15411: ghcx*)
15412: # Green Hills C++ Compiler
15413: lt_prog_compiler_pic_CXX='-pic'
15414: ;;
15415: *)
15416: ;;
15417: esac
15418: ;;
15419: freebsd* | dragonfly*)
15420: # FreeBSD uses GNU C++
15421: ;;
15422: hpux9* | hpux10* | hpux11*)
15423: case $cc_basename in
15424: CC*)
15425: lt_prog_compiler_wl_CXX='-Wl,'
15426: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15427: if test "$host_cpu" != ia64; then
15428: lt_prog_compiler_pic_CXX='+Z'
15429: fi
15430: ;;
15431: aCC*)
15432: lt_prog_compiler_wl_CXX='-Wl,'
15433: lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15434: case $host_cpu in
15435: hppa*64*|ia64*)
15436: # +Z the default
15437: ;;
15438: *)
15439: lt_prog_compiler_pic_CXX='+Z'
15440: ;;
15441: esac
15442: ;;
15443: *)
15444: ;;
15445: esac
15446: ;;
15447: interix*)
15448: # This is c89, which is MS Visual C++ (no shared libs)
15449: # Anyone wants to do a port?
15450: ;;
15451: irix5* | irix6* | nonstopux*)
15452: case $cc_basename in
15453: CC*)
15454: lt_prog_compiler_wl_CXX='-Wl,'
15455: lt_prog_compiler_static_CXX='-non_shared'
15456: # CC pic flag -KPIC is the default.
15457: ;;
15458: *)
15459: ;;
15460: esac
15461: ;;
15462: linux* | k*bsd*-gnu | kopensolaris*-gnu)
15463: case $cc_basename in
15464: KCC*)
15465: # KAI C++ Compiler
15466: lt_prog_compiler_wl_CXX='--backend -Wl,'
15467: lt_prog_compiler_pic_CXX='-fPIC'
15468: ;;
15469: ecpc* )
15470: # old Intel C++ for x86_64 which still supported -KPIC.
15471: lt_prog_compiler_wl_CXX='-Wl,'
15472: lt_prog_compiler_pic_CXX='-KPIC'
15473: lt_prog_compiler_static_CXX='-static'
15474: ;;
15475: icpc* )
15476: # Intel C++, used to be incompatible with GCC.
15477: # ICC 10 doesn't accept -KPIC any more.
15478: lt_prog_compiler_wl_CXX='-Wl,'
15479: lt_prog_compiler_pic_CXX='-fPIC'
15480: lt_prog_compiler_static_CXX='-static'
15481: ;;
15482: pgCC* | pgcpp*)
15483: # Portland Group C++ compiler
15484: lt_prog_compiler_wl_CXX='-Wl,'
15485: lt_prog_compiler_pic_CXX='-fpic'
15486: lt_prog_compiler_static_CXX='-Bstatic'
15487: ;;
15488: cxx*)
15489: # Compaq C++
15490: # Make sure the PIC flag is empty. It appears that all Alpha
15491: # Linux and Compaq Tru64 Unix objects are PIC.
15492: lt_prog_compiler_pic_CXX=
15493: lt_prog_compiler_static_CXX='-non_shared'
15494: ;;
15495: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15496: # IBM XL 8.0, 9.0 on PPC and BlueGene
15497: lt_prog_compiler_wl_CXX='-Wl,'
15498: lt_prog_compiler_pic_CXX='-qpic'
15499: lt_prog_compiler_static_CXX='-qstaticlink'
15500: ;;
15501: *)
15502: case `$CC -V 2>&1 | sed 5q` in
15503: *Sun\ C*)
15504: # Sun C++ 5.9
15505: lt_prog_compiler_pic_CXX='-KPIC'
15506: lt_prog_compiler_static_CXX='-Bstatic'
15507: lt_prog_compiler_wl_CXX='-Qoption ld '
15508: ;;
15509: esac
15510: ;;
15511: esac
15512: ;;
15513: lynxos*)
15514: ;;
15515: m88k*)
15516: ;;
15517: mvs*)
15518: case $cc_basename in
15519: cxx*)
15520: lt_prog_compiler_pic_CXX='-W c,exportall'
15521: ;;
15522: *)
15523: ;;
15524: esac
15525: ;;
15526: netbsd*)
15527: ;;
15528: *qnx* | *nto*)
15529: # QNX uses GNU C++, but need to define -shared option too, otherwise
15530: # it will coredump.
15531: lt_prog_compiler_pic_CXX='-fPIC -shared'
15532: ;;
15533: osf3* | osf4* | osf5*)
15534: case $cc_basename in
15535: KCC*)
15536: lt_prog_compiler_wl_CXX='--backend -Wl,'
15537: ;;
15538: RCC*)
15539: # Rational C++ 2.4.1
15540: lt_prog_compiler_pic_CXX='-pic'
15541: ;;
15542: cxx*)
15543: # Digital/Compaq C++
15544: lt_prog_compiler_wl_CXX='-Wl,'
15545: # Make sure the PIC flag is empty. It appears that all Alpha
15546: # Linux and Compaq Tru64 Unix objects are PIC.
15547: lt_prog_compiler_pic_CXX=
15548: lt_prog_compiler_static_CXX='-non_shared'
15549: ;;
15550: *)
15551: ;;
15552: esac
15553: ;;
15554: psos*)
15555: ;;
15556: solaris*)
15557: case $cc_basename in
15558: CC* | sunCC*)
15559: # Sun C++ 4.2, 5.x and Centerline C++
15560: lt_prog_compiler_pic_CXX='-KPIC'
15561: lt_prog_compiler_static_CXX='-Bstatic'
15562: lt_prog_compiler_wl_CXX='-Qoption ld '
15563: ;;
15564: gcx*)
15565: # Green Hills C++ Compiler
15566: lt_prog_compiler_pic_CXX='-PIC'
15567: ;;
15568: *)
15569: ;;
15570: esac
15571: ;;
15572: sunos4*)
15573: case $cc_basename in
15574: CC*)
15575: # Sun C++ 4.x
15576: lt_prog_compiler_pic_CXX='-pic'
15577: lt_prog_compiler_static_CXX='-Bstatic'
15578: ;;
15579: lcc*)
15580: # Lucid
15581: lt_prog_compiler_pic_CXX='-pic'
15582: ;;
15583: *)
15584: ;;
15585: esac
15586: ;;
15587: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15588: case $cc_basename in
15589: CC*)
15590: lt_prog_compiler_wl_CXX='-Wl,'
15591: lt_prog_compiler_pic_CXX='-KPIC'
15592: lt_prog_compiler_static_CXX='-Bstatic'
15593: ;;
15594: esac
15595: ;;
15596: tandem*)
15597: case $cc_basename in
15598: NCC*)
15599: # NonStop-UX NCC 3.20
15600: lt_prog_compiler_pic_CXX='-KPIC'
15601: ;;
15602: *)
15603: ;;
15604: esac
15605: ;;
15606: vxworks*)
15607: ;;
15608: *)
15609: lt_prog_compiler_can_build_shared_CXX=no
15610: ;;
15611: esac
15612: fi
15613:
15614: case $host_os in
15615: # For platforms which do not support PIC, -DPIC is meaningless:
15616: *djgpp*)
15617: lt_prog_compiler_pic_CXX=
15618: ;;
15619: *)
15620: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15621: ;;
15622: esac
15623:
15624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15625: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15626: if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15627: $as_echo_n "(cached) " >&6
15628: else
15629: lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15630: fi
15631: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15632: $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15633: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15634:
15635: #
15636: # Check to make sure the PIC flag actually works.
15637: #
15638: if test -n "$lt_prog_compiler_pic_CXX"; then
15639: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15640: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15641: if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15642: $as_echo_n "(cached) " >&6
15643: else
15644: lt_cv_prog_compiler_pic_works_CXX=no
15645: ac_outfile=conftest.$ac_objext
15646: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15647: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15648: # Insert the option either (1) after the last *FLAGS variable, or
15649: # (2) before a word containing "conftest.", or (3) at the end.
15650: # Note that $ac_compile itself does not contain backslashes and begins
15651: # with a dollar sign (not a hyphen), so the echo should work correctly.
15652: # The option is referenced via a variable to avoid confusing sed.
15653: lt_compile=`echo "$ac_compile" | $SED \
15654: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15655: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15656: -e 's:$: $lt_compiler_flag:'`
15657: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15658: (eval "$lt_compile" 2>conftest.err)
15659: ac_status=$?
15660: cat conftest.err >&5
15661: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662: if (exit $ac_status) && test -s "$ac_outfile"; then
15663: # The compiler can only warn and ignore the option if not recognized
15664: # So say no if there are warnings other than the usual output.
15665: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15666: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15667: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15668: lt_cv_prog_compiler_pic_works_CXX=yes
15669: fi
15670: fi
15671: $RM conftest*
15672:
15673: fi
15674: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15675: $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15676:
15677: if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15678: case $lt_prog_compiler_pic_CXX in
15679: "" | " "*) ;;
15680: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15681: esac
15682: else
15683: lt_prog_compiler_pic_CXX=
15684: lt_prog_compiler_can_build_shared_CXX=no
15685: fi
15686:
15687: fi
15688:
15689:
15690:
15691:
15692:
15693: #
15694: # Check to make sure the static flag actually works.
15695: #
15696: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15698: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15699: if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15700: $as_echo_n "(cached) " >&6
15701: else
15702: lt_cv_prog_compiler_static_works_CXX=no
15703: save_LDFLAGS="$LDFLAGS"
15704: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15705: echo "$lt_simple_link_test_code" > conftest.$ac_ext
15706: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15707: # The linker can only warn and ignore the option if not recognized
15708: # So say no if there are warnings
15709: if test -s conftest.err; then
15710: # Append any errors to the config.log.
15711: cat conftest.err 1>&5
15712: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15713: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15714: if diff conftest.exp conftest.er2 >/dev/null; then
15715: lt_cv_prog_compiler_static_works_CXX=yes
15716: fi
15717: else
15718: lt_cv_prog_compiler_static_works_CXX=yes
15719: fi
15720: fi
15721: $RM -r conftest*
15722: LDFLAGS="$save_LDFLAGS"
15723:
15724: fi
15725: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15726: $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15727:
15728: if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15729: :
15730: else
15731: lt_prog_compiler_static_CXX=
15732: fi
15733:
15734:
15735:
15736:
15737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15738: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15739: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15740: $as_echo_n "(cached) " >&6
15741: else
15742: lt_cv_prog_compiler_c_o_CXX=no
15743: $RM -r conftest 2>/dev/null
15744: mkdir conftest
15745: cd conftest
15746: mkdir out
15747: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15748:
15749: lt_compiler_flag="-o out/conftest2.$ac_objext"
15750: # Insert the option either (1) after the last *FLAGS variable, or
15751: # (2) before a word containing "conftest.", or (3) at the end.
15752: # Note that $ac_compile itself does not contain backslashes and begins
15753: # with a dollar sign (not a hyphen), so the echo should work correctly.
15754: lt_compile=`echo "$ac_compile" | $SED \
15755: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15756: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15757: -e 's:$: $lt_compiler_flag:'`
15758: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15759: (eval "$lt_compile" 2>out/conftest.err)
15760: ac_status=$?
15761: cat out/conftest.err >&5
15762: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15764: then
15765: # The compiler can only warn and ignore the option if not recognized
15766: # So say no if there are warnings
15767: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15768: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15769: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15770: lt_cv_prog_compiler_c_o_CXX=yes
15771: fi
15772: fi
15773: chmod u+w . 2>&5
15774: $RM conftest*
15775: # SGI C++ compiler will create directory out/ii_files/ for
15776: # template instantiation
15777: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15778: $RM out/* && rmdir out
15779: cd ..
15780: $RM -r conftest
15781: $RM conftest*
15782:
15783: fi
15784: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15785: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15786:
15787:
15788:
15789: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15790: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15791: if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15792: $as_echo_n "(cached) " >&6
15793: else
15794: lt_cv_prog_compiler_c_o_CXX=no
15795: $RM -r conftest 2>/dev/null
15796: mkdir conftest
15797: cd conftest
15798: mkdir out
15799: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15800:
15801: lt_compiler_flag="-o out/conftest2.$ac_objext"
15802: # Insert the option either (1) after the last *FLAGS variable, or
15803: # (2) before a word containing "conftest.", or (3) at the end.
15804: # Note that $ac_compile itself does not contain backslashes and begins
15805: # with a dollar sign (not a hyphen), so the echo should work correctly.
15806: lt_compile=`echo "$ac_compile" | $SED \
15807: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15808: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15809: -e 's:$: $lt_compiler_flag:'`
15810: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15811: (eval "$lt_compile" 2>out/conftest.err)
15812: ac_status=$?
15813: cat out/conftest.err >&5
15814: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815: if (exit $ac_status) && test -s out/conftest2.$ac_objext
15816: then
15817: # The compiler can only warn and ignore the option if not recognized
15818: # So say no if there are warnings
15819: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15820: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15821: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15822: lt_cv_prog_compiler_c_o_CXX=yes
15823: fi
15824: fi
15825: chmod u+w . 2>&5
15826: $RM conftest*
15827: # SGI C++ compiler will create directory out/ii_files/ for
15828: # template instantiation
15829: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15830: $RM out/* && rmdir out
15831: cd ..
15832: $RM -r conftest
15833: $RM conftest*
15834:
15835: fi
15836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15837: $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15838:
15839:
15840:
15841:
15842: hard_links="nottested"
15843: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15844: # do not overwrite the value of need_locks provided by the user
15845: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15846: $as_echo_n "checking if we can lock with hard links... " >&6; }
15847: hard_links=yes
15848: $RM conftest*
15849: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15850: touch conftest.a
15851: ln conftest.a conftest.b 2>&5 || hard_links=no
15852: ln conftest.a conftest.b 2>/dev/null && hard_links=no
15853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15854: $as_echo "$hard_links" >&6; }
15855: if test "$hard_links" = no; then
15856: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15857: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15858: need_locks=warn
15859: fi
15860: else
15861: need_locks=no
15862: fi
15863:
15864:
15865:
15866: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15867: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15868:
15869: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15870: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15871: case $host_os in
15872: aix[4-9]*)
15873: # If we're using GNU nm, then we don't want the "-C" option.
15874: # -C means demangle to AIX nm, but means don't demangle with GNU nm
15875: # Also, AIX nm treats weak defined symbols like other global defined
15876: # symbols, whereas GNU nm marks them as "W".
15877: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15878: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15879: else
15880: export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15881: fi
15882: ;;
15883: pw32*)
15884: export_symbols_cmds_CXX="$ltdll_cmds"
15885: ;;
15886: cygwin* | mingw* | cegcc*)
15887: case $cc_basename in
1.1.1.4 ! misho 15888: cl*)
! 15889: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
! 15890: ;;
1.1 misho 15891: *)
15892: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15893: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15894: ;;
15895: esac
15896: ;;
15897: *)
15898: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15899: ;;
15900: esac
15901:
15902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15903: $as_echo "$ld_shlibs_CXX" >&6; }
15904: test "$ld_shlibs_CXX" = no && can_build_shared=no
15905:
15906: with_gnu_ld_CXX=$with_gnu_ld
15907:
15908:
15909:
15910:
15911:
15912:
15913: #
15914: # Do we need to explicitly link libc?
15915: #
15916: case "x$archive_cmds_need_lc_CXX" in
15917: x|xyes)
15918: # Assume -lc should be added
15919: archive_cmds_need_lc_CXX=yes
15920:
15921: if test "$enable_shared" = yes && test "$GCC" = yes; then
15922: case $archive_cmds_CXX in
15923: *'~'*)
15924: # FIXME: we may have to deal with multi-command sequences.
15925: ;;
15926: '$CC '*)
15927: # Test whether the compiler implicitly links with -lc since on some
15928: # systems, -lgcc has to come before -lc. If gcc already passes -lc
15929: # to ld, don't add -lc before -lgcc.
15930: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15931: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15932: if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15933: $as_echo_n "(cached) " >&6
15934: else
15935: $RM conftest*
15936: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15937:
15938: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15939: (eval $ac_compile) 2>&5
15940: ac_status=$?
15941: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15942: test $ac_status = 0; } 2>conftest.err; then
15943: soname=conftest
15944: lib=conftest
15945: libobjs=conftest.$ac_objext
15946: deplibs=
15947: wl=$lt_prog_compiler_wl_CXX
15948: pic_flag=$lt_prog_compiler_pic_CXX
15949: compiler_flags=-v
15950: linker_flags=-v
15951: verstring=
15952: output_objdir=.
15953: libname=conftest
15954: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15955: allow_undefined_flag_CXX=
15956: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15957: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15958: ac_status=$?
15959: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15960: test $ac_status = 0; }
15961: then
15962: lt_cv_archive_cmds_need_lc_CXX=no
15963: else
15964: lt_cv_archive_cmds_need_lc_CXX=yes
15965: fi
15966: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15967: else
15968: cat conftest.err 1>&5
15969: fi
15970: $RM conftest*
15971:
15972: fi
15973: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15974: $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15975: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15976: ;;
15977: esac
15978: fi
15979: ;;
15980: esac
15981:
15982:
15983:
15984:
15985:
15986:
15987:
15988:
15989:
15990:
15991:
15992:
15993:
15994:
15995:
15996:
15997:
15998:
15999:
16000:
16001:
16002:
16003:
16004:
16005:
16006:
16007:
16008:
16009:
16010:
16011:
16012:
16013:
16014:
16015:
16016:
16017:
16018:
16019:
16020:
16021:
16022:
16023:
16024:
16025:
16026:
16027:
16028:
16029:
16030:
16031:
16032:
16033:
16034:
16035:
16036:
16037:
16038:
16039:
16040:
16041:
16042:
16043: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16044: $as_echo_n "checking dynamic linker characteristics... " >&6; }
16045:
16046: library_names_spec=
16047: libname_spec='lib$name'
16048: soname_spec=
16049: shrext_cmds=".so"
16050: postinstall_cmds=
16051: postuninstall_cmds=
16052: finish_cmds=
16053: finish_eval=
16054: shlibpath_var=
16055: shlibpath_overrides_runpath=unknown
16056: version_type=none
16057: dynamic_linker="$host_os ld.so"
16058: sys_lib_dlsearch_path_spec="/lib /usr/lib"
16059: need_lib_prefix=unknown
16060: hardcode_into_libs=no
16061:
16062: # when you set need_version to no, make sure it does not cause -set_version
16063: # flags to be left without arguments
16064: need_version=unknown
16065:
16066: case $host_os in
16067: aix3*)
1.1.1.4 ! misho 16068: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16069: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16070: shlibpath_var=LIBPATH
16071:
16072: # AIX 3 has no versioning support, so we append a major version to the name.
16073: soname_spec='${libname}${release}${shared_ext}$major'
16074: ;;
16075:
16076: aix[4-9]*)
1.1.1.4 ! misho 16077: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16078: need_lib_prefix=no
16079: need_version=no
16080: hardcode_into_libs=yes
16081: if test "$host_cpu" = ia64; then
16082: # AIX 5 supports IA64
16083: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16084: shlibpath_var=LD_LIBRARY_PATH
16085: else
16086: # With GCC up to 2.95.x, collect2 would create an import file
16087: # for dependence libraries. The import file would start with
16088: # the line `#! .'. This would cause the generated library to
16089: # depend on `.', always an invalid library. This was fixed in
16090: # development snapshots of GCC prior to 3.0.
16091: case $host_os in
16092: aix4 | aix4.[01] | aix4.[01].*)
16093: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16094: echo ' yes '
16095: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16096: :
16097: else
16098: can_build_shared=no
16099: fi
16100: ;;
16101: esac
16102: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16103: # soname into executable. Probably we can add versioning support to
16104: # collect2, so additional links can be useful in future.
16105: if test "$aix_use_runtimelinking" = yes; then
16106: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16107: # instead of lib<name>.a to let people know that these are not
16108: # typical AIX shared libraries.
16109: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16110: else
16111: # We preserve .a as extension for shared libraries through AIX4.2
16112: # and later when we are not doing run time linking.
16113: library_names_spec='${libname}${release}.a $libname.a'
16114: soname_spec='${libname}${release}${shared_ext}$major'
16115: fi
16116: shlibpath_var=LIBPATH
16117: fi
16118: ;;
16119:
16120: amigaos*)
16121: case $host_cpu in
16122: powerpc)
16123: # Since July 2007 AmigaOS4 officially supports .so libraries.
16124: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16125: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16126: ;;
16127: m68k)
16128: library_names_spec='$libname.ixlibrary $libname.a'
16129: # Create ${libname}_ixlibrary.a entries in /sys/libs.
16130: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16131: ;;
16132: esac
16133: ;;
16134:
16135: beos*)
16136: library_names_spec='${libname}${shared_ext}'
16137: dynamic_linker="$host_os ld.so"
16138: shlibpath_var=LIBRARY_PATH
16139: ;;
16140:
16141: bsdi[45]*)
1.1.1.4 ! misho 16142: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16143: need_version=no
16144: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16145: soname_spec='${libname}${release}${shared_ext}$major'
16146: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16147: shlibpath_var=LD_LIBRARY_PATH
16148: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16149: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16150: # the default ld.so.conf also contains /usr/contrib/lib and
16151: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16152: # libtool to hard-code these into programs
16153: ;;
16154:
16155: cygwin* | mingw* | pw32* | cegcc*)
16156: version_type=windows
16157: shrext_cmds=".dll"
16158: need_version=no
16159: need_lib_prefix=no
16160:
16161: case $GCC,$cc_basename in
16162: yes,*)
16163: # gcc
16164: library_names_spec='$libname.dll.a'
16165: # DLL is installed to $(libdir)/../bin by postinstall_cmds
16166: postinstall_cmds='base_file=`basename \${file}`~
16167: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16168: dldir=$destdir/`dirname \$dlpath`~
16169: test -d \$dldir || mkdir -p \$dldir~
16170: $install_prog $dir/$dlname \$dldir/$dlname~
16171: chmod a+x \$dldir/$dlname~
16172: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16173: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16174: fi'
16175: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16176: dlpath=$dir/\$dldll~
16177: $RM \$dlpath'
16178: shlibpath_overrides_runpath=yes
16179:
16180: case $host_os in
16181: cygwin*)
16182: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16183: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16184:
16185: ;;
16186: mingw* | cegcc*)
16187: # MinGW DLLs use traditional 'lib' prefix
16188: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16189: ;;
16190: pw32*)
16191: # pw32 DLLs use 'pw' prefix rather than 'lib'
16192: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16193: ;;
16194: esac
16195: dynamic_linker='Win32 ld.exe'
16196: ;;
16197:
16198: *,cl*)
16199: # Native MSVC
16200: libname_spec='$name'
16201: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16202: library_names_spec='${libname}.dll.lib'
16203:
16204: case $build_os in
16205: mingw*)
16206: sys_lib_search_path_spec=
16207: lt_save_ifs=$IFS
16208: IFS=';'
16209: for lt_path in $LIB
16210: do
16211: IFS=$lt_save_ifs
16212: # Let DOS variable expansion print the short 8.3 style file name.
16213: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16214: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16215: done
16216: IFS=$lt_save_ifs
16217: # Convert to MSYS style.
16218: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16219: ;;
16220: cygwin*)
16221: # Convert to unix form, then to dos form, then back to unix form
16222: # but this time dos style (no spaces!) so that the unix form looks
16223: # like /cygdrive/c/PROGRA~1:/cygdr...
16224: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16225: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16226: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16227: ;;
16228: *)
16229: sys_lib_search_path_spec="$LIB"
16230: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16231: # It is most probably a Windows format PATH.
16232: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16233: else
16234: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16235: fi
16236: # FIXME: find the short name or the path components, as spaces are
16237: # common. (e.g. "Program Files" -> "PROGRA~1")
16238: ;;
16239: esac
16240:
16241: # DLL is installed to $(libdir)/../bin by postinstall_cmds
16242: postinstall_cmds='base_file=`basename \${file}`~
16243: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16244: dldir=$destdir/`dirname \$dlpath`~
16245: test -d \$dldir || mkdir -p \$dldir~
16246: $install_prog $dir/$dlname \$dldir/$dlname'
16247: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16248: dlpath=$dir/\$dldll~
16249: $RM \$dlpath'
16250: shlibpath_overrides_runpath=yes
16251: dynamic_linker='Win32 link.exe'
16252: ;;
16253:
16254: *)
16255: # Assume MSVC wrapper
16256: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16257: dynamic_linker='Win32 ld.exe'
16258: ;;
16259: esac
16260: # FIXME: first we should search . and the directory the executable is in
16261: shlibpath_var=PATH
16262: ;;
16263:
16264: darwin* | rhapsody*)
16265: dynamic_linker="$host_os dyld"
16266: version_type=darwin
16267: need_lib_prefix=no
16268: need_version=no
16269: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16270: soname_spec='${libname}${release}${major}$shared_ext'
16271: shlibpath_overrides_runpath=yes
16272: shlibpath_var=DYLD_LIBRARY_PATH
16273: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16274:
16275: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16276: ;;
16277:
16278: dgux*)
1.1.1.4 ! misho 16279: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16280: need_lib_prefix=no
16281: need_version=no
16282: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16283: soname_spec='${libname}${release}${shared_ext}$major'
16284: shlibpath_var=LD_LIBRARY_PATH
16285: ;;
16286:
16287: freebsd* | dragonfly*)
16288: # DragonFly does not have aout. When/if they implement a new
16289: # versioning mechanism, adjust this.
16290: if test -x /usr/bin/objformat; then
16291: objformat=`/usr/bin/objformat`
16292: else
16293: case $host_os in
1.1.1.4 ! misho 16294: freebsd[23].*) objformat=aout ;;
1.1 misho 16295: *) objformat=elf ;;
16296: esac
16297: fi
1.1.1.4 ! misho 16298: version_type=freebsd-$objformat
1.1 misho 16299: case $version_type in
16300: freebsd-elf*)
16301: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16302: need_version=no
16303: need_lib_prefix=no
16304: ;;
16305: freebsd-*)
16306: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16307: need_version=yes
16308: ;;
16309: esac
16310: shlibpath_var=LD_LIBRARY_PATH
16311: case $host_os in
1.1.1.4 ! misho 16312: freebsd2.*)
1.1 misho 16313: shlibpath_overrides_runpath=yes
16314: ;;
16315: freebsd3.[01]* | freebsdelf3.[01]*)
16316: shlibpath_overrides_runpath=yes
16317: hardcode_into_libs=yes
16318: ;;
16319: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16320: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16321: shlibpath_overrides_runpath=no
16322: hardcode_into_libs=yes
16323: ;;
16324: *) # from 4.6 on, and DragonFly
16325: shlibpath_overrides_runpath=yes
16326: hardcode_into_libs=yes
16327: ;;
16328: esac
16329: ;;
16330:
16331: gnu*)
1.1.1.4 ! misho 16332: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16333: need_lib_prefix=no
16334: need_version=no
16335: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16336: soname_spec='${libname}${release}${shared_ext}$major'
16337: shlibpath_var=LD_LIBRARY_PATH
1.1.1.4 ! misho 16338: shlibpath_overrides_runpath=no
1.1 misho 16339: hardcode_into_libs=yes
16340: ;;
16341:
16342: haiku*)
1.1.1.4 ! misho 16343: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16344: need_lib_prefix=no
16345: need_version=no
16346: dynamic_linker="$host_os runtime_loader"
16347: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16348: soname_spec='${libname}${release}${shared_ext}$major'
16349: shlibpath_var=LIBRARY_PATH
16350: shlibpath_overrides_runpath=yes
16351: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16352: hardcode_into_libs=yes
16353: ;;
16354:
16355: hpux9* | hpux10* | hpux11*)
16356: # Give a soname corresponding to the major version so that dld.sl refuses to
16357: # link against other versions.
16358: version_type=sunos
16359: need_lib_prefix=no
16360: need_version=no
16361: case $host_cpu in
16362: ia64*)
16363: shrext_cmds='.so'
16364: hardcode_into_libs=yes
16365: dynamic_linker="$host_os dld.so"
16366: shlibpath_var=LD_LIBRARY_PATH
16367: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16368: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16369: soname_spec='${libname}${release}${shared_ext}$major'
16370: if test "X$HPUX_IA64_MODE" = X32; then
16371: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16372: else
16373: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16374: fi
16375: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16376: ;;
16377: hppa*64*)
16378: shrext_cmds='.sl'
16379: hardcode_into_libs=yes
16380: dynamic_linker="$host_os dld.sl"
16381: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16382: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16383: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384: soname_spec='${libname}${release}${shared_ext}$major'
16385: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16386: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16387: ;;
16388: *)
16389: shrext_cmds='.sl'
16390: dynamic_linker="$host_os dld.sl"
16391: shlibpath_var=SHLIB_PATH
16392: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16393: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16394: soname_spec='${libname}${release}${shared_ext}$major'
16395: ;;
16396: esac
16397: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16398: postinstall_cmds='chmod 555 $lib'
16399: # or fails outright, so override atomically:
16400: install_override_mode=555
16401: ;;
16402:
16403: interix[3-9]*)
1.1.1.4 ! misho 16404: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16405: need_lib_prefix=no
16406: need_version=no
16407: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16408: soname_spec='${libname}${release}${shared_ext}$major'
16409: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16410: shlibpath_var=LD_LIBRARY_PATH
16411: shlibpath_overrides_runpath=no
16412: hardcode_into_libs=yes
16413: ;;
16414:
16415: irix5* | irix6* | nonstopux*)
16416: case $host_os in
16417: nonstopux*) version_type=nonstopux ;;
16418: *)
16419: if test "$lt_cv_prog_gnu_ld" = yes; then
1.1.1.4 ! misho 16420: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16421: else
16422: version_type=irix
16423: fi ;;
16424: esac
16425: need_lib_prefix=no
16426: need_version=no
16427: soname_spec='${libname}${release}${shared_ext}$major'
16428: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16429: case $host_os in
16430: irix5* | nonstopux*)
16431: libsuff= shlibsuff=
16432: ;;
16433: *)
16434: case $LD in # libtool.m4 will add one of these switches to LD
16435: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16436: libsuff= shlibsuff= libmagic=32-bit;;
16437: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16438: libsuff=32 shlibsuff=N32 libmagic=N32;;
16439: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16440: libsuff=64 shlibsuff=64 libmagic=64-bit;;
16441: *) libsuff= shlibsuff= libmagic=never-match;;
16442: esac
16443: ;;
16444: esac
16445: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16446: shlibpath_overrides_runpath=no
16447: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16448: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16449: hardcode_into_libs=yes
16450: ;;
16451:
16452: # No shared lib support for Linux oldld, aout, or coff.
16453: linux*oldld* | linux*aout* | linux*coff*)
16454: dynamic_linker=no
16455: ;;
16456:
1.1.1.4 ! misho 16457: # This must be glibc/ELF.
1.1 misho 16458: linux* | k*bsd*-gnu | kopensolaris*-gnu)
1.1.1.4 ! misho 16459: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16460: need_lib_prefix=no
16461: need_version=no
16462: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16463: soname_spec='${libname}${release}${shared_ext}$major'
16464: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16465: shlibpath_var=LD_LIBRARY_PATH
16466: shlibpath_overrides_runpath=no
16467:
16468: # Some binutils ld are patched to set DT_RUNPATH
16469: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16470: $as_echo_n "(cached) " >&6
16471: else
16472: lt_cv_shlibpath_overrides_runpath=no
16473: save_LDFLAGS=$LDFLAGS
16474: save_libdir=$libdir
16475: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16476: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16477: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478: /* end confdefs.h. */
16479:
16480: int
16481: main ()
16482: {
16483:
16484: ;
16485: return 0;
16486: }
16487: _ACEOF
16488: if ac_fn_cxx_try_link "$LINENO"; then :
16489: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16490: lt_cv_shlibpath_overrides_runpath=yes
16491: fi
16492: fi
16493: rm -f core conftest.err conftest.$ac_objext \
16494: conftest$ac_exeext conftest.$ac_ext
16495: LDFLAGS=$save_LDFLAGS
16496: libdir=$save_libdir
16497:
16498: fi
16499:
16500: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16501:
16502: # This implies no fast_install, which is unacceptable.
16503: # Some rework will be needed to allow for fast_install
16504: # before this can be enabled.
16505: hardcode_into_libs=yes
16506:
16507: # Append ld.so.conf contents to the search path
16508: if test -f /etc/ld.so.conf; then
16509: 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' ' '`
16510: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16511: fi
16512:
16513: # We used to test for /lib/ld.so.1 and disable shared libraries on
16514: # powerpc, because MkLinux only supported shared libraries with the
16515: # GNU dynamic linker. Since this was broken with cross compilers,
16516: # most powerpc-linux boxes support dynamic linking these days and
16517: # people can always --disable-shared, the test was removed, and we
16518: # assume the GNU/Linux dynamic linker is in use.
16519: dynamic_linker='GNU/Linux ld.so'
16520: ;;
16521:
16522: netbsd*)
16523: version_type=sunos
16524: need_lib_prefix=no
16525: need_version=no
16526: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16527: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16528: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16529: dynamic_linker='NetBSD (a.out) ld.so'
16530: else
16531: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16532: soname_spec='${libname}${release}${shared_ext}$major'
16533: dynamic_linker='NetBSD ld.elf_so'
16534: fi
16535: shlibpath_var=LD_LIBRARY_PATH
16536: shlibpath_overrides_runpath=yes
16537: hardcode_into_libs=yes
16538: ;;
16539:
16540: newsos6)
1.1.1.4 ! misho 16541: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16542: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16543: shlibpath_var=LD_LIBRARY_PATH
16544: shlibpath_overrides_runpath=yes
16545: ;;
16546:
16547: *nto* | *qnx*)
16548: version_type=qnx
16549: need_lib_prefix=no
16550: need_version=no
16551: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552: soname_spec='${libname}${release}${shared_ext}$major'
16553: shlibpath_var=LD_LIBRARY_PATH
16554: shlibpath_overrides_runpath=no
16555: hardcode_into_libs=yes
16556: dynamic_linker='ldqnx.so'
16557: ;;
16558:
16559: openbsd*)
16560: version_type=sunos
16561: sys_lib_dlsearch_path_spec="/usr/lib"
16562: need_lib_prefix=no
16563: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16564: case $host_os in
16565: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16566: *) need_version=no ;;
16567: esac
16568: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16569: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16570: shlibpath_var=LD_LIBRARY_PATH
16571: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16572: case $host_os in
16573: openbsd2.[89] | openbsd2.[89].*)
16574: shlibpath_overrides_runpath=no
16575: ;;
16576: *)
16577: shlibpath_overrides_runpath=yes
16578: ;;
16579: esac
16580: else
16581: shlibpath_overrides_runpath=yes
16582: fi
16583: ;;
16584:
16585: os2*)
16586: libname_spec='$name'
16587: shrext_cmds=".dll"
16588: need_lib_prefix=no
16589: library_names_spec='$libname${shared_ext} $libname.a'
16590: dynamic_linker='OS/2 ld.exe'
16591: shlibpath_var=LIBPATH
16592: ;;
16593:
16594: osf3* | osf4* | osf5*)
16595: version_type=osf
16596: need_lib_prefix=no
16597: need_version=no
16598: soname_spec='${libname}${release}${shared_ext}$major'
16599: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600: shlibpath_var=LD_LIBRARY_PATH
16601: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16602: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16603: ;;
16604:
16605: rdos*)
16606: dynamic_linker=no
16607: ;;
16608:
16609: solaris*)
1.1.1.4 ! misho 16610: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16611: need_lib_prefix=no
16612: need_version=no
16613: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16614: soname_spec='${libname}${release}${shared_ext}$major'
16615: shlibpath_var=LD_LIBRARY_PATH
16616: shlibpath_overrides_runpath=yes
16617: hardcode_into_libs=yes
16618: # ldd complains unless libraries are executable
16619: postinstall_cmds='chmod +x $lib'
16620: ;;
16621:
16622: sunos4*)
16623: version_type=sunos
16624: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16625: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16626: shlibpath_var=LD_LIBRARY_PATH
16627: shlibpath_overrides_runpath=yes
16628: if test "$with_gnu_ld" = yes; then
16629: need_lib_prefix=no
16630: fi
16631: need_version=yes
16632: ;;
16633:
16634: sysv4 | sysv4.3*)
1.1.1.4 ! misho 16635: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16636: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16637: soname_spec='${libname}${release}${shared_ext}$major'
16638: shlibpath_var=LD_LIBRARY_PATH
16639: case $host_vendor in
16640: sni)
16641: shlibpath_overrides_runpath=no
16642: need_lib_prefix=no
16643: runpath_var=LD_RUN_PATH
16644: ;;
16645: siemens)
16646: need_lib_prefix=no
16647: ;;
16648: motorola)
16649: need_lib_prefix=no
16650: need_version=no
16651: shlibpath_overrides_runpath=no
16652: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16653: ;;
16654: esac
16655: ;;
16656:
16657: sysv4*MP*)
16658: if test -d /usr/nec ;then
1.1.1.4 ! misho 16659: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16660: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16661: soname_spec='$libname${shared_ext}.$major'
16662: shlibpath_var=LD_LIBRARY_PATH
16663: fi
16664: ;;
16665:
16666: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16667: version_type=freebsd-elf
16668: need_lib_prefix=no
16669: need_version=no
16670: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16671: soname_spec='${libname}${release}${shared_ext}$major'
16672: shlibpath_var=LD_LIBRARY_PATH
16673: shlibpath_overrides_runpath=yes
16674: hardcode_into_libs=yes
16675: if test "$with_gnu_ld" = yes; then
16676: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16677: else
16678: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16679: case $host_os in
16680: sco3.2v5*)
16681: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16682: ;;
16683: esac
16684: fi
16685: sys_lib_dlsearch_path_spec='/usr/lib'
16686: ;;
16687:
16688: tpf*)
16689: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
1.1.1.4 ! misho 16690: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16691: need_lib_prefix=no
16692: need_version=no
16693: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16694: shlibpath_var=LD_LIBRARY_PATH
16695: shlibpath_overrides_runpath=no
16696: hardcode_into_libs=yes
16697: ;;
16698:
16699: uts4*)
1.1.1.4 ! misho 16700: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 16701: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16702: soname_spec='${libname}${release}${shared_ext}$major'
16703: shlibpath_var=LD_LIBRARY_PATH
16704: ;;
16705:
16706: *)
16707: dynamic_linker=no
16708: ;;
16709: esac
16710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16711: $as_echo "$dynamic_linker" >&6; }
16712: test "$dynamic_linker" = no && can_build_shared=no
16713:
16714: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16715: if test "$GCC" = yes; then
16716: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16717: fi
16718:
16719: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16720: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16721: fi
16722: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16723: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16724: fi
16725:
16726:
16727:
16728:
16729:
16730:
16731:
16732:
16733:
16734:
16735:
16736:
16737:
16738:
16739:
16740:
16741:
16742:
16743:
16744:
16745:
16746:
16747:
16748:
16749:
16750:
16751:
16752:
16753:
16754:
16755:
16756:
16757:
16758:
16759:
16760:
16761:
16762:
16763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16764: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16765: hardcode_action_CXX=
16766: if test -n "$hardcode_libdir_flag_spec_CXX" ||
16767: test -n "$runpath_var_CXX" ||
16768: test "X$hardcode_automatic_CXX" = "Xyes" ; then
16769:
16770: # We can hardcode non-existent directories.
16771: if test "$hardcode_direct_CXX" != no &&
16772: # If the only mechanism to avoid hardcoding is shlibpath_var, we
16773: # have to relink, otherwise we might link with an installed library
16774: # when we should be linking with a yet-to-be-installed one
16775: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16776: test "$hardcode_minus_L_CXX" != no; then
16777: # Linking always hardcodes the temporary library directory.
16778: hardcode_action_CXX=relink
16779: else
16780: # We can link without hardcoding, and we can hardcode nonexisting dirs.
16781: hardcode_action_CXX=immediate
16782: fi
16783: else
16784: # We cannot hardcode anything, or else we can only hardcode existing
16785: # directories.
16786: hardcode_action_CXX=unsupported
16787: fi
16788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16789: $as_echo "$hardcode_action_CXX" >&6; }
16790:
16791: if test "$hardcode_action_CXX" = relink ||
16792: test "$inherit_rpath_CXX" = yes; then
16793: # Fast installation is not supported
16794: enable_fast_install=no
16795: elif test "$shlibpath_overrides_runpath" = yes ||
16796: test "$enable_shared" = no; then
16797: # Fast installation is not necessary
16798: enable_fast_install=needless
16799: fi
16800:
16801:
16802:
16803:
16804:
16805:
16806:
16807: fi # test -n "$compiler"
16808:
16809: CC=$lt_save_CC
16810: CFLAGS=$lt_save_CFLAGS
16811: LDCXX=$LD
16812: LD=$lt_save_LD
16813: GCC=$lt_save_GCC
16814: with_gnu_ld=$lt_save_with_gnu_ld
16815: lt_cv_path_LDCXX=$lt_cv_path_LD
16816: lt_cv_path_LD=$lt_save_path_LD
16817: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16818: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16819: fi # test "$_lt_caught_CXX_error" != yes
16820:
16821: ac_ext=c
16822: ac_cpp='$CPP $CPPFLAGS'
16823: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16824: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16825: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16826:
16827:
16828:
16829:
16830:
16831:
16832:
16833:
16834:
16835:
16836:
16837:
16838:
1.1.1.4 ! misho 16839:
! 16840:
1.1 misho 16841: ac_config_commands="$ac_config_commands libtool"
16842:
16843:
16844:
16845:
16846: # Only expand once:
16847:
16848:
16849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16850: $as_echo_n "checking whether ln -s works... " >&6; }
16851: LN_S=$as_ln_s
16852: if test "$LN_S" = "ln -s"; then
16853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16854: $as_echo "yes" >&6; }
16855: else
16856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16857: $as_echo "no, using $LN_S" >&6; }
16858: fi
16859:
16860:
1.1.1.4 ! misho 16861: # Check for GCC visibility feature
! 16862:
! 16863:
! 16864:
! 16865: VISIBILITY_CFLAGS=
! 16866: VISIBILITY_CXXFLAGS=
! 16867: HAVE_VISIBILITY=0
! 16868: if test -n "$GCC"; then
! 16869: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
! 16870: $as_echo_n "checking whether the -Werror option is usable... " >&6; }
! 16871: if ${pcre_cv_cc_vis_werror+:} false; then :
! 16872: $as_echo_n "(cached) " >&6
! 16873: else
! 16874:
! 16875: pcre_save_CFLAGS="$CFLAGS"
! 16876: CFLAGS="$CFLAGS -Werror"
! 16877: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 16878: /* end confdefs.h. */
! 16879:
! 16880: int
! 16881: main ()
! 16882: {
! 16883:
! 16884: ;
! 16885: return 0;
! 16886: }
! 16887: _ACEOF
! 16888: if ac_fn_c_try_compile "$LINENO"; then :
! 16889: pcre_cv_cc_vis_werror=yes
! 16890: else
! 16891: pcre_cv_cc_vis_werror=no
! 16892: fi
! 16893: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 16894: CFLAGS="$pcre_save_CFLAGS"
! 16895: fi
! 16896:
! 16897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_vis_werror" >&5
! 16898: $as_echo "$pcre_cv_cc_vis_werror" >&6; }
! 16899: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
! 16900: $as_echo_n "checking for simple visibility declarations... " >&6; }
! 16901: if ${pcre_cv_cc_visibility+:} false; then :
! 16902: $as_echo_n "(cached) " >&6
! 16903: else
! 16904:
! 16905: pcre_save_CFLAGS="$CFLAGS"
! 16906: CFLAGS="$CFLAGS -fvisibility=hidden"
! 16907: if test $pcre_cv_cc_vis_werror = yes; then
! 16908: CFLAGS="$CFLAGS -Werror"
! 16909: fi
! 16910: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 16911: /* end confdefs.h. */
! 16912: extern __attribute__((__visibility__("hidden"))) int hiddenvar;
! 16913: extern __attribute__((__visibility__("default"))) int exportedvar;
! 16914: extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
! 16915: extern __attribute__((__visibility__("default"))) int exportedfunc (void);
! 16916: void dummyfunc (void) {}
! 16917:
! 16918: int
! 16919: main ()
! 16920: {
! 16921:
! 16922: ;
! 16923: return 0;
! 16924: }
! 16925: _ACEOF
! 16926: if ac_fn_c_try_compile "$LINENO"; then :
! 16927: pcre_cv_cc_visibility=yes
! 16928: else
! 16929: pcre_cv_cc_visibility=no
! 16930: fi
! 16931: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 16932: CFLAGS="$pcre_save_CFLAGS"
! 16933: fi
! 16934:
! 16935: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcre_cv_cc_visibility" >&5
! 16936: $as_echo "$pcre_cv_cc_visibility" >&6; }
! 16937: if test $pcre_cv_cc_visibility = yes; then
! 16938: VISIBILITY_CFLAGS="-fvisibility=hidden"
! 16939: VISIBILITY_CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden"
! 16940: HAVE_VISIBILITY=1
! 16941:
! 16942: $as_echo "#define PCRE_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
! 16943:
! 16944:
! 16945: $as_echo "#define PCRE_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
! 16946:
! 16947:
! 16948: $as_echo "#define PCRE_EXP_DATA_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
! 16949:
! 16950:
! 16951: $as_echo "#define PCREPOSIX_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
! 16952:
! 16953:
! 16954: $as_echo "#define PCREPOSIX_EXP_DEFN extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
! 16955:
! 16956:
! 16957: $as_echo "#define PCRECPP_EXP_DECL extern __attribute__ ((visibility (\"default\")))" >>confdefs.h
! 16958:
! 16959:
! 16960: $as_echo "#define PCRECPP_EXP_DEFN __attribute__ ((visibility (\"default\")))" >>confdefs.h
! 16961:
! 16962: fi
! 16963: fi
! 16964:
! 16965:
! 16966:
! 16967:
! 16968: cat >>confdefs.h <<_ACEOF
! 16969: #define HAVE_VISIBILITY $HAVE_VISIBILITY
! 16970: _ACEOF
! 16971:
! 16972:
! 16973:
! 16974: # Versioning
! 16975:
1.1 misho 16976: PCRE_MAJOR="8"
1.1.1.4 ! misho 16977: PCRE_MINOR="33"
1.1 misho 16978: PCRE_PRERELEASE=""
1.1.1.4 ! misho 16979: PCRE_DATE="2013-05-28"
1.1 misho 16980:
16981: if test "$PCRE_MINOR" = "08" -o "$PCRE_MINOR" = "09"
16982: then
16983: echo "***"
16984: echo "*** Minor version number $PCRE_MINOR must not be used. ***"
16985: echo "*** Use only 01 to 07 or 10 onwards, to avoid octal issues. ***"
16986: echo "***"
16987: exit 1
16988: fi
16989:
16990:
16991:
16992:
16993:
16994:
16995: # Set a more sensible default value for $(htmldir).
16996: if test "x$htmldir" = 'x${docdir}'
16997: then
16998: htmldir='${docdir}/html'
16999: fi
17000:
1.1.1.2 misho 17001: # Handle --disable-pcre8 (enabled by default)
17002: # Check whether --enable-pcre8 was given.
17003: if test "${enable_pcre8+set}" = set; then :
17004: enableval=$enable_pcre8;
17005: else
17006: enable_pcre8=unset
17007: fi
17008:
17009:
17010:
17011: # Handle --enable-pcre16 (disabled by default)
17012: # Check whether --enable-pcre16 was given.
17013: if test "${enable_pcre16+set}" = set; then :
17014: enableval=$enable_pcre16;
17015: else
17016: enable_pcre16=unset
17017: fi
17018:
17019:
17020:
1.1.1.4 ! misho 17021: # Handle --enable-pcre32 (disabled by default)
! 17022: # Check whether --enable-pcre32 was given.
! 17023: if test "${enable_pcre32+set}" = set; then :
! 17024: enableval=$enable_pcre32;
! 17025: else
! 17026: enable_pcre32=unset
! 17027: fi
! 17028:
! 17029:
! 17030:
1.1 misho 17031: # Handle --disable-cpp. The substitution of enable_cpp is needed for use in
17032: # pcre-config.
17033: # Check whether --enable-cpp was given.
17034: if test "${enable_cpp+set}" = set; then :
17035: enableval=$enable_cpp;
17036: else
1.1.1.2 misho 17037: enable_cpp=unset
1.1 misho 17038: fi
17039:
17040:
17041:
17042: # Handle --enable-jit (disabled by default)
17043: # Check whether --enable-jit was given.
17044: if test "${enable_jit+set}" = set; then :
17045: enableval=$enable_jit;
17046: else
17047: enable_jit=no
17048: fi
17049:
17050:
17051: # Handle --disable-pcregrep-jit (enabled by default)
17052: # Check whether --enable-pcregrep-jit was given.
17053: if test "${enable_pcregrep_jit+set}" = set; then :
17054: enableval=$enable_pcregrep_jit;
17055: else
17056: enable_pcregrep_jit=yes
17057: fi
17058:
17059:
17060: # Handle --enable-rebuild-chartables
17061: # Check whether --enable-rebuild-chartables was given.
17062: if test "${enable_rebuild_chartables+set}" = set; then :
17063: enableval=$enable_rebuild_chartables;
17064: else
17065: enable_rebuild_chartables=no
17066: fi
17067:
17068:
17069: # Handle --enable-utf8 (disabled by default)
17070: # Check whether --enable-utf8 was given.
17071: if test "${enable_utf8+set}" = set; then :
17072: enableval=$enable_utf8;
17073: else
17074: enable_utf8=unset
17075: fi
17076:
17077:
1.1.1.2 misho 17078: # Handle --enable-utf (disabled by default)
17079: # Check whether --enable-utf was given.
17080: if test "${enable_utf+set}" = set; then :
17081: enableval=$enable_utf;
17082: else
17083: enable_utf=unset
17084: fi
17085:
17086:
1.1 misho 17087: # Handle --enable-unicode-properties
17088: # Check whether --enable-unicode-properties was given.
17089: if test "${enable_unicode_properties+set}" = set; then :
17090: enableval=$enable_unicode_properties;
17091: else
17092: enable_unicode_properties=no
17093: fi
17094:
17095:
1.1.1.4 ! misho 17096: # Handle newline options
1.1 misho 17097: ac_pcre_newline=lf
17098: # Check whether --enable-newline-is-cr was given.
17099: if test "${enable_newline_is_cr+set}" = set; then :
17100: enableval=$enable_newline_is_cr; ac_pcre_newline=cr
17101: fi
17102:
17103: # Check whether --enable-newline-is-lf was given.
17104: if test "${enable_newline_is_lf+set}" = set; then :
17105: enableval=$enable_newline_is_lf; ac_pcre_newline=lf
17106: fi
17107:
17108: # Check whether --enable-newline-is-crlf was given.
17109: if test "${enable_newline_is_crlf+set}" = set; then :
17110: enableval=$enable_newline_is_crlf; ac_pcre_newline=crlf
17111: fi
17112:
17113: # Check whether --enable-newline-is-anycrlf was given.
17114: if test "${enable_newline_is_anycrlf+set}" = set; then :
17115: enableval=$enable_newline_is_anycrlf; ac_pcre_newline=anycrlf
17116: fi
17117:
17118: # Check whether --enable-newline-is-any was given.
17119: if test "${enable_newline_is_any+set}" = set; then :
17120: enableval=$enable_newline_is_any; ac_pcre_newline=any
17121: fi
17122:
17123: enable_newline="$ac_pcre_newline"
17124:
17125: # Handle --enable-bsr-anycrlf
17126: # Check whether --enable-bsr-anycrlf was given.
17127: if test "${enable_bsr_anycrlf+set}" = set; then :
17128: enableval=$enable_bsr_anycrlf;
17129: else
17130: enable_bsr_anycrlf=no
17131: fi
17132:
17133:
17134: # Handle --enable-ebcdic
17135: # Check whether --enable-ebcdic was given.
17136: if test "${enable_ebcdic+set}" = set; then :
17137: enableval=$enable_ebcdic;
17138: else
17139: enable_ebcdic=no
17140: fi
17141:
17142:
1.1.1.4 ! misho 17143: # Handle --enable-ebcdic-nl25
! 17144: # Check whether --enable-ebcdic-nl25 was given.
! 17145: if test "${enable_ebcdic_nl25+set}" = set; then :
! 17146: enableval=$enable_ebcdic_nl25;
! 17147: else
! 17148: enable_ebcdic_nl25=no
! 17149: fi
! 17150:
! 17151:
1.1 misho 17152: # Handle --disable-stack-for-recursion
17153: # Check whether --enable-stack-for-recursion was given.
17154: if test "${enable_stack_for_recursion+set}" = set; then :
17155: enableval=$enable_stack_for_recursion;
17156: else
17157: enable_stack_for_recursion=yes
17158: fi
17159:
17160:
17161: # Handle --enable-pcregrep-libz
17162: # Check whether --enable-pcregrep-libz was given.
17163: if test "${enable_pcregrep_libz+set}" = set; then :
17164: enableval=$enable_pcregrep_libz;
17165: else
17166: enable_pcregrep_libz=no
17167: fi
17168:
17169:
17170: # Handle --enable-pcregrep-libbz2
17171: # Check whether --enable-pcregrep-libbz2 was given.
17172: if test "${enable_pcregrep_libbz2+set}" = set; then :
17173: enableval=$enable_pcregrep_libbz2;
17174: else
17175: enable_pcregrep_libbz2=no
17176: fi
17177:
17178:
17179: # Handle --with-pcregrep-bufsize=N
17180:
17181: # Check whether --with-pcregrep-bufsize was given.
17182: if test "${with_pcregrep_bufsize+set}" = set; then :
17183: withval=$with_pcregrep_bufsize;
17184: else
17185: with_pcregrep_bufsize=20480
17186: fi
17187:
17188:
1.1.1.3 misho 17189: # Handle --enable-pcretest-libedit
17190: # Check whether --enable-pcretest-libedit was given.
17191: if test "${enable_pcretest_libedit+set}" = set; then :
17192: enableval=$enable_pcretest_libedit;
17193: else
17194: enable_pcretest_libedit=no
17195: fi
17196:
17197:
1.1 misho 17198: # Handle --enable-pcretest-libreadline
17199: # Check whether --enable-pcretest-libreadline was given.
17200: if test "${enable_pcretest_libreadline+set}" = set; then :
17201: enableval=$enable_pcretest_libreadline;
17202: else
17203: enable_pcretest_libreadline=no
17204: fi
17205:
17206:
17207: # Handle --with-posix-malloc-threshold=NBYTES
17208:
17209: # Check whether --with-posix-malloc-threshold was given.
17210: if test "${with_posix_malloc_threshold+set}" = set; then :
17211: withval=$with_posix_malloc_threshold;
17212: else
17213: with_posix_malloc_threshold=10
17214: fi
17215:
17216:
17217: # Handle --with-link-size=N
17218:
17219: # Check whether --with-link-size was given.
17220: if test "${with_link_size+set}" = set; then :
17221: withval=$with_link_size;
17222: else
17223: with_link_size=2
17224: fi
17225:
17226:
17227: # Handle --with-match-limit=N
17228:
17229: # Check whether --with-match-limit was given.
17230: if test "${with_match_limit+set}" = set; then :
17231: withval=$with_match_limit;
17232: else
17233: with_match_limit=10000000
17234: fi
17235:
17236:
17237: # Handle --with-match-limit_recursion=N
17238: #
17239: # Note: In config.h, the default is to define MATCH_LIMIT_RECURSION
17240: # symbolically as MATCH_LIMIT, which in turn is defined to be some numeric
17241: # value (e.g. 10000000). MATCH_LIMIT_RECURSION can otherwise be set to some
17242: # different numeric value (or even the same numeric value as MATCH_LIMIT,
17243: # though no longer defined in terms of the latter).
17244: #
17245:
17246: # Check whether --with-match-limit-recursion was given.
17247: if test "${with_match_limit_recursion+set}" = set; then :
17248: withval=$with_match_limit_recursion;
17249: else
17250: with_match_limit_recursion=MATCH_LIMIT
17251: fi
17252:
17253:
1.1.1.4 ! misho 17254: # Handle --enable-valgrind
! 17255: # Check whether --enable-valgrind was given.
! 17256: if test "${enable_valgrind+set}" = set; then :
! 17257: enableval=$enable_valgrind;
! 17258: else
! 17259: enable_valgrind=no
! 17260: fi
! 17261:
! 17262:
! 17263: # Enable code coverage reports using gcov
! 17264: # Check whether --enable-coverage was given.
! 17265: if test "${enable_coverage+set}" = set; then :
! 17266: enableval=$enable_coverage;
! 17267: else
! 17268: enable_coverage=no
! 17269: fi
! 17270:
! 17271:
1.1.1.2 misho 17272: # Copy enable_utf8 value to enable_utf for compatibility reasons
17273: if test "x$enable_utf8" != "xunset"
17274: then
17275: if test "x$enable_utf" != "xunset"
17276: then
17277: as_fn_error $? "--enable/disable-utf8 is kept only for compatibility reasons and its value is copied to --enable/disable-utf. Newer code must use --enable/disable-utf alone." "$LINENO" 5
17278: fi
17279: enable_utf=$enable_utf8
17280: fi
17281:
17282: # Set the default value for pcre8
17283: if test "x$enable_pcre8" = "xunset"
17284: then
17285: enable_pcre8=yes
17286: fi
17287:
17288: # Set the default value for pcre16
17289: if test "x$enable_pcre16" = "xunset"
17290: then
17291: enable_pcre16=no
17292: fi
17293:
1.1.1.4 ! misho 17294: # Set the default value for pcre32
! 17295: if test "x$enable_pcre32" = "xunset"
! 17296: then
! 17297: enable_pcre32=no
! 17298: fi
! 17299:
1.1.1.2 misho 17300: # Make sure enable_pcre8 or enable_pcre16 was set
1.1.1.4 ! misho 17301: if test "x$enable_pcre8$enable_pcre16$enable_pcre32" = "xnonono"
1.1.1.2 misho 17302: then
1.1.1.4 ! misho 17303: as_fn_error $? "At least one of 8, 16 or 32 bit pcre library must be enabled" "$LINENO" 5
1.1.1.2 misho 17304: fi
17305:
17306: # Make sure that if enable_unicode_properties was set, that UTF support is enabled.
1.1 misho 17307: if test "x$enable_unicode_properties" = "xyes"
17308: then
1.1.1.2 misho 17309: if test "x$enable_utf" = "xno"
1.1 misho 17310: then
1.1.1.4 ! misho 17311: as_fn_error $? "support for Unicode properties requires UTF-8/16/32 support" "$LINENO" 5
1.1 misho 17312: fi
1.1.1.2 misho 17313: enable_utf=yes
17314: fi
17315:
17316: # enable_utf is disabled by default.
17317: if test "x$enable_utf" = "xunset"
17318: then
17319: enable_utf=no
1.1 misho 17320: fi
17321:
1.1.1.2 misho 17322: # enable_cpp copies the value of enable_pcre8 by default
17323: if test "x$enable_cpp" = "xunset"
1.1 misho 17324: then
1.1.1.2 misho 17325: enable_cpp=$enable_pcre8
17326: fi
17327:
17328: # Make sure that if enable_cpp was set, that enable_pcre8 support is enabled
17329: if test "x$enable_cpp" = "xyes"
17330: then
17331: if test "x$enable_pcre8" = "xno"
17332: then
17333: as_fn_error $? "C++ library requires pcre library with 8 bit characters" "$LINENO" 5
17334: fi
1.1 misho 17335: fi
17336:
1.1.1.4 ! misho 17337: # Convert the newline identifier into the appropriate integer value. The first
! 17338: # three are ASCII values 0x0a, 0x0d, and 0x0d0a, but if EBCDIC is enabled, they
! 17339: # are changed below.
1.1 misho 17340:
17341: case "$enable_newline" in
17342: lf) ac_pcre_newline_value=10 ;;
17343: cr) ac_pcre_newline_value=13 ;;
17344: crlf) ac_pcre_newline_value=3338 ;;
17345: anycrlf) ac_pcre_newline_value=-2 ;;
17346: any) ac_pcre_newline_value=-1 ;;
17347: *)
17348: as_fn_error $? "invalid argument \"$enable_newline\" to --enable-newline option" "$LINENO" 5
17349: ;;
17350: esac
17351:
1.1.1.4 ! misho 17352: # --enable-ebcdic-nl25 implies --enable-ebcdic
! 17353: if test "x$enable_ebcdic_nl25" = "xyes"; then
! 17354: enable_ebcdic=yes
! 17355: fi
! 17356:
! 17357: # Make sure that if enable_ebcdic is set, rebuild_chartables is also enabled,
! 17358: # and the newline value is adjusted appropriately (CR is still 13, but LF is
! 17359: # 21 or 37). Also check that UTF support is not requested, because PCRE cannot
! 17360: # handle EBCDIC and UTF in the same build. To do so it would need to use
! 17361: # different character constants depending on the mode.
! 17362: #
! 17363: if test "x$enable_ebcdic" = "xyes"; then
! 17364: enable_rebuild_chartables=yes
! 17365:
! 17366: if test "x$enable_utf" = "xyes"; then
! 17367: as_fn_error $? "support for EBCDIC and UTF-8/16/32 cannot be enabled at the same time" "$LINENO" 5
! 17368: fi
! 17369:
! 17370: if test "x$enable_ebcdic_nl25" = "xno"; then
! 17371: case "$ac_pcre_newline_value" in
! 17372: 10) ac_pcre_newline_value=21 ;;
! 17373: 3338) ac_pcre_newline_value=3349 ;;
! 17374: esac
! 17375: else
! 17376: case "$ac_pcre_newline_value" in
! 17377: 10) ac_pcre_newline_value=37 ;;
! 17378: 3338) ac_pcre_newline_value=3365 ;;
! 17379: esac
! 17380: fi
! 17381: fi
! 17382:
1.1 misho 17383: # Check argument to --with-link-size
17384: case "$with_link_size" in
17385: 2|3|4) ;;
17386: *)
17387: as_fn_error $? "invalid argument \"$with_link_size\" to --with-link-size option" "$LINENO" 5
17388: ;;
17389: esac
17390:
17391:
17392:
17393: # Checks for header files.
17394: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17395: $as_echo_n "checking for ANSI C header files... " >&6; }
17396: if ${ac_cv_header_stdc+:} false; then :
17397: $as_echo_n "(cached) " >&6
17398: else
17399: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400: /* end confdefs.h. */
17401: #include <stdlib.h>
17402: #include <stdarg.h>
17403: #include <string.h>
17404: #include <float.h>
17405:
17406: int
17407: main ()
17408: {
17409:
17410: ;
17411: return 0;
17412: }
17413: _ACEOF
17414: if ac_fn_c_try_compile "$LINENO"; then :
17415: ac_cv_header_stdc=yes
17416: else
17417: ac_cv_header_stdc=no
17418: fi
17419: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17420:
17421: if test $ac_cv_header_stdc = yes; then
17422: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17423: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17424: /* end confdefs.h. */
17425: #include <string.h>
17426:
17427: _ACEOF
17428: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17429: $EGREP "memchr" >/dev/null 2>&1; then :
17430:
17431: else
17432: ac_cv_header_stdc=no
17433: fi
17434: rm -f conftest*
17435:
17436: fi
17437:
17438: if test $ac_cv_header_stdc = yes; then
17439: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17440: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441: /* end confdefs.h. */
17442: #include <stdlib.h>
17443:
17444: _ACEOF
17445: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17446: $EGREP "free" >/dev/null 2>&1; then :
17447:
17448: else
17449: ac_cv_header_stdc=no
17450: fi
17451: rm -f conftest*
17452:
17453: fi
17454:
17455: if test $ac_cv_header_stdc = yes; then
17456: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17457: if test "$cross_compiling" = yes; then :
17458: :
17459: else
17460: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461: /* end confdefs.h. */
17462: #include <ctype.h>
17463: #include <stdlib.h>
17464: #if ((' ' & 0x0FF) == 0x020)
17465: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17466: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17467: #else
17468: # define ISLOWER(c) \
17469: (('a' <= (c) && (c) <= 'i') \
17470: || ('j' <= (c) && (c) <= 'r') \
17471: || ('s' <= (c) && (c) <= 'z'))
17472: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17473: #endif
17474:
17475: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17476: int
17477: main ()
17478: {
17479: int i;
17480: for (i = 0; i < 256; i++)
17481: if (XOR (islower (i), ISLOWER (i))
17482: || toupper (i) != TOUPPER (i))
17483: return 2;
17484: return 0;
17485: }
17486: _ACEOF
17487: if ac_fn_c_try_run "$LINENO"; then :
17488:
17489: else
17490: ac_cv_header_stdc=no
17491: fi
17492: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17493: conftest.$ac_objext conftest.beam conftest.$ac_ext
17494: fi
17495:
17496: fi
17497: fi
17498: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17499: $as_echo "$ac_cv_header_stdc" >&6; }
17500: if test $ac_cv_header_stdc = yes; then
17501:
17502: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17503:
17504: fi
17505:
17506: for ac_header in limits.h sys/types.h sys/stat.h dirent.h windows.h
17507: do :
17508: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17509: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17510: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17511: cat >>confdefs.h <<_ACEOF
17512: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17513: _ACEOF
17514:
17515: fi
17516:
17517: done
17518:
17519:
17520: # The files below are C++ header files.
17521: pcre_have_type_traits="0"
17522: pcre_have_bits_type_traits="0"
1.1.1.4 ! misho 17523:
! 17524: if test "x$enable_cpp" = "xyes" -a -z "$CXX"; then
! 17525: as_fn_error $? "You need a C++ compiler for C++ support." "$LINENO" 5
! 17526: fi
! 17527:
1.1 misho 17528: if test "x$enable_cpp" = "xyes" -a -n "$CXX"
17529: then
17530: ac_ext=cpp
17531: ac_cpp='$CXXCPP $CPPFLAGS'
17532: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17533: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17534: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17535:
17536:
17537: # Older versions of pcre defined pcrecpp::no_arg, but in new versions
17538: # it's called pcrecpp::RE::no_arg. For backwards ABI compatibility,
17539: # we want to make one an alias for the other. Different systems do
17540: # this in different ways. Some systems, for instance, can do it via
17541: # a linker flag: -alias (for os x 10.5) or -i (for os x <=10.4).
17542: OLD_LDFLAGS="$LDFLAGS"
17543: for flag in "-alias,__ZN7pcrecpp2RE6no_argE,__ZN7pcrecpp6no_argE" \
17544: "-i__ZN7pcrecpp6no_argE:__ZN7pcrecpp2RE6no_argE"; do
17545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alias support in the linker" >&5
17546: $as_echo_n "checking for alias support in the linker... " >&6; }
17547: LDFLAGS="$OLD_LDFLAGS -Wl,$flag"
17548: # We try to run the linker with this new ld flag. If the link fails,
17549: # we give up and remove the new flag from LDFLAGS.
17550: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551: /* end confdefs.h. */
17552: namespace pcrecpp {
17553: class RE { static int no_arg; };
17554: int RE::no_arg;
17555: }
17556: int
17557: main ()
17558: {
17559:
17560: ;
17561: return 0;
17562: }
17563: _ACEOF
17564: if ac_fn_cxx_try_link "$LINENO"; then :
17565: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17566: $as_echo "yes" >&6; };
17567: EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS -Wl,$flag";
17568: break;
17569: else
17570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17571: $as_echo "no" >&6; }
17572: fi
17573: rm -f core conftest.err conftest.$ac_objext \
17574: conftest$ac_exeext conftest.$ac_ext
17575: done
17576: LDFLAGS="$OLD_LDFLAGS"
17577:
17578: # We could be more clever here, given we're doing AC_SUBST with this
17579: # (eg set a var to be the name of the include file we want). But we're not
17580: # so it's easy to change back to 'regular' autoconf vars if we needed to.
17581:
17582: for ac_header in string
17583: do :
17584: ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
17585: if test "x$ac_cv_header_string" = xyes; then :
17586: cat >>confdefs.h <<_ACEOF
17587: #define HAVE_STRING 1
17588: _ACEOF
17589: pcre_have_cpp_headers="1"
17590: else
17591: pcre_have_cpp_headers="0"
17592: fi
17593:
17594: done
17595:
17596: for ac_header in bits/type_traits.h
17597: do :
17598: ac_fn_cxx_check_header_mongrel "$LINENO" "bits/type_traits.h" "ac_cv_header_bits_type_traits_h" "$ac_includes_default"
17599: if test "x$ac_cv_header_bits_type_traits_h" = xyes; then :
17600: cat >>confdefs.h <<_ACEOF
17601: #define HAVE_BITS_TYPE_TRAITS_H 1
17602: _ACEOF
17603: pcre_have_bits_type_traits="1"
17604: else
17605: pcre_have_bits_type_traits="0"
17606: fi
17607:
17608: done
17609:
17610: for ac_header in type_traits.h
17611: do :
17612: ac_fn_cxx_check_header_mongrel "$LINENO" "type_traits.h" "ac_cv_header_type_traits_h" "$ac_includes_default"
17613: if test "x$ac_cv_header_type_traits_h" = xyes; then :
17614: cat >>confdefs.h <<_ACEOF
17615: #define HAVE_TYPE_TRAITS_H 1
17616: _ACEOF
17617: pcre_have_type_traits="1"
17618: else
17619: pcre_have_type_traits="0"
17620: fi
17621:
17622: done
17623:
17624:
17625: # (This isn't c++-specific, but is only used in pcrecpp.cc, so try this
17626: # in a c++ context. This matters becuase strtoimax is C99 and may not
17627: # be supported by the C++ compiler.)
17628: # Figure out how to create a longlong from a string: strtoll and
17629: # equiv. It's not enough to call AC_CHECK_FUNCS: hpux has a
17630: # strtoll, for instance, but it only takes 2 args instead of 3!
17631: # We have to call AH_TEMPLATE since AC_DEFINE_UNQUOTED below is complex.
17632:
17633:
17634:
17635:
17636: have_strto_fn=0
17637: for fn in strtoq strtoll _strtoi64 strtoimax; do
17638: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fn" >&5
17639: $as_echo_n "checking for $fn... " >&6; }
17640: if test "$fn" = strtoimax; then
17641: include=stdint.h
17642: else
17643: include=stdlib.h
17644: fi
17645: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17646: /* end confdefs.h. */
17647: #include <$include>
17648: int
17649: main ()
17650: {
17651: char* e; return $fn("100", &e, 10)
17652: ;
17653: return 0;
17654: }
17655: _ACEOF
17656: if ac_fn_cxx_try_compile "$LINENO"; then :
17657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17658: $as_echo "yes" >&6; }
17659:
17660: cat >>confdefs.h <<_ACEOF
17661: #define HAVE_`echo $fn | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
17662: _ACEOF
17663:
17664: have_strto_fn=1
17665: break
17666: else
17667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17668: $as_echo "no" >&6; }
17669: fi
17670: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17671: done
17672:
17673: if test "$have_strto_fn" = 1; then
17674: ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
17675: if test "x$ac_cv_type_long_long" = xyes; then :
17676:
17677: cat >>confdefs.h <<_ACEOF
17678: #define HAVE_LONG_LONG 1
17679: _ACEOF
17680:
17681: pcre_have_long_long="1"
17682: else
17683: pcre_have_long_long="0"
17684: fi
17685:
17686: ac_fn_cxx_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
17687: if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
17688:
17689: cat >>confdefs.h <<_ACEOF
17690: #define HAVE_UNSIGNED_LONG_LONG 1
17691: _ACEOF
17692:
17693: pcre_have_ulong_long="1"
17694: else
17695: pcre_have_ulong_long="0"
17696: fi
17697:
17698: else
17699: pcre_have_long_long="0"
17700: pcre_have_ulong_long="0"
17701: fi
17702:
17703:
17704:
17705: ac_ext=c
17706: ac_cpp='$CPP $CPPFLAGS'
17707: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17708: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17709: ac_compiler_gnu=$ac_cv_c_compiler_gnu
17710:
17711: fi
17712: # Using AC_SUBST eliminates the need to include config.h in a public .h file
17713:
17714:
17715:
17716: # Conditional compilation
1.1.1.2 misho 17717: if test "x$enable_pcre8" = "xyes"; then
17718: WITH_PCRE8_TRUE=
17719: WITH_PCRE8_FALSE='#'
17720: else
17721: WITH_PCRE8_TRUE='#'
17722: WITH_PCRE8_FALSE=
17723: fi
17724:
17725: if test "x$enable_pcre16" = "xyes"; then
17726: WITH_PCRE16_TRUE=
17727: WITH_PCRE16_FALSE='#'
17728: else
17729: WITH_PCRE16_TRUE='#'
17730: WITH_PCRE16_FALSE=
17731: fi
17732:
1.1.1.4 ! misho 17733: if test "x$enable_pcre32" = "xyes"; then
! 17734: WITH_PCRE32_TRUE=
! 17735: WITH_PCRE32_FALSE='#'
! 17736: else
! 17737: WITH_PCRE32_TRUE='#'
! 17738: WITH_PCRE32_FALSE=
! 17739: fi
! 17740:
1.1 misho 17741: if test "x$enable_cpp" = "xyes"; then
17742: WITH_PCRE_CPP_TRUE=
17743: WITH_PCRE_CPP_FALSE='#'
17744: else
17745: WITH_PCRE_CPP_TRUE='#'
17746: WITH_PCRE_CPP_FALSE=
17747: fi
17748:
17749: if test "x$enable_rebuild_chartables" = "xyes"; then
17750: WITH_REBUILD_CHARTABLES_TRUE=
17751: WITH_REBUILD_CHARTABLES_FALSE='#'
17752: else
17753: WITH_REBUILD_CHARTABLES_TRUE='#'
17754: WITH_REBUILD_CHARTABLES_FALSE=
17755: fi
17756:
17757: if test "x$enable_jit" = "xyes"; then
17758: WITH_JIT_TRUE=
17759: WITH_JIT_FALSE='#'
17760: else
17761: WITH_JIT_TRUE='#'
17762: WITH_JIT_FALSE=
17763: fi
17764:
1.1.1.2 misho 17765: if test "x$enable_utf" = "xyes"; then
17766: WITH_UTF_TRUE=
17767: WITH_UTF_FALSE='#'
1.1 misho 17768: else
1.1.1.2 misho 17769: WITH_UTF_TRUE='#'
17770: WITH_UTF_FALSE=
1.1 misho 17771: fi
17772:
1.1.1.4 ! misho 17773: if test "x$enable_valgrind" = "xyes"; then
! 17774: WITH_VALGRIND_TRUE=
! 17775: WITH_VALGRIND_FALSE='#'
! 17776: else
! 17777: WITH_VALGRIND_TRUE='#'
! 17778: WITH_VALGRIND_FALSE=
! 17779: fi
! 17780:
1.1 misho 17781:
17782: # Checks for typedefs, structures, and compiler characteristics.
17783:
17784: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17785: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17786: if ${ac_cv_c_const+:} false; then :
17787: $as_echo_n "(cached) " >&6
17788: else
17789: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17790: /* end confdefs.h. */
17791:
17792: int
17793: main ()
17794: {
1.1.1.4 ! misho 17795:
1.1 misho 17796: #ifndef __cplusplus
1.1.1.4 ! misho 17797: /* Ultrix mips cc rejects this sort of thing. */
1.1 misho 17798: typedef int charset[2];
1.1.1.4 ! misho 17799: const charset cs = { 0, 0 };
1.1 misho 17800: /* SunOS 4.1.1 cc rejects this. */
17801: char const *const *pcpcc;
17802: char **ppc;
17803: /* NEC SVR4.0.2 mips cc rejects this. */
17804: struct point {int x, y;};
17805: static struct point const zero = {0,0};
17806: /* AIX XL C 1.02.0.0 rejects this.
17807: It does not let you subtract one const X* pointer from another in
17808: an arm of an if-expression whose if-part is not a constant
17809: expression */
17810: const char *g = "string";
17811: pcpcc = &g + (g ? g-g : 0);
17812: /* HPUX 7.0 cc rejects these. */
17813: ++pcpcc;
17814: ppc = (char**) pcpcc;
17815: pcpcc = (char const *const *) ppc;
1.1.1.4 ! misho 17816: { /* SCO 3.2v4 cc rejects this sort of thing. */
! 17817: char tx;
! 17818: char *t = &tx;
1.1 misho 17819: char const *s = 0 ? (char *) 0 : (char const *) 0;
17820:
17821: *t++ = 0;
17822: if (s) return 0;
17823: }
17824: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17825: int x[] = {25, 17};
17826: const int *foo = &x[0];
17827: ++foo;
17828: }
17829: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17830: typedef const int *iptr;
17831: iptr p = 0;
17832: ++p;
17833: }
1.1.1.4 ! misho 17834: { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
1.1 misho 17835: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1.1.1.4 ! misho 17836: struct s { int j; const int *ap[3]; } bx;
! 17837: struct s *b = &bx; b->j = 5;
1.1 misho 17838: }
17839: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17840: const int foo = 10;
17841: if (!foo) return 0;
17842: }
17843: return !cs[0] && !zero.x;
17844: #endif
17845:
17846: ;
17847: return 0;
17848: }
17849: _ACEOF
17850: if ac_fn_c_try_compile "$LINENO"; then :
17851: ac_cv_c_const=yes
17852: else
17853: ac_cv_c_const=no
17854: fi
17855: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17856: fi
17857: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17858: $as_echo "$ac_cv_c_const" >&6; }
17859: if test $ac_cv_c_const = no; then
17860:
17861: $as_echo "#define const /**/" >>confdefs.h
17862:
17863: fi
17864:
17865: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17866: if test "x$ac_cv_type_size_t" = xyes; then :
17867:
17868: else
17869:
17870: cat >>confdefs.h <<_ACEOF
17871: #define size_t unsigned int
17872: _ACEOF
17873:
17874: fi
17875:
17876:
17877: # Checks for library functions.
17878:
17879: for ac_func in bcopy memmove strerror
17880: do :
17881: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17882: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17883: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17884: cat >>confdefs.h <<_ACEOF
17885: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17886: _ACEOF
17887:
17888: fi
17889: done
17890:
17891:
17892: # Check for the availability of libz (aka zlib)
17893:
17894: for ac_header in zlib.h
17895: do :
17896: ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17897: if test "x$ac_cv_header_zlib_h" = xyes; then :
17898: cat >>confdefs.h <<_ACEOF
17899: #define HAVE_ZLIB_H 1
17900: _ACEOF
17901: HAVE_ZLIB_H=1
17902: fi
17903:
17904: done
17905:
17906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
17907: $as_echo_n "checking for gzopen in -lz... " >&6; }
17908: if ${ac_cv_lib_z_gzopen+:} false; then :
17909: $as_echo_n "(cached) " >&6
17910: else
17911: ac_check_lib_save_LIBS=$LIBS
17912: LIBS="-lz $LIBS"
17913: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17914: /* end confdefs.h. */
17915:
17916: /* Override any GCC internal prototype to avoid an error.
17917: Use char because int might match the return type of a GCC
17918: builtin and then its argument prototype would still apply. */
17919: #ifdef __cplusplus
17920: extern "C"
17921: #endif
17922: char gzopen ();
17923: int
17924: main ()
17925: {
17926: return gzopen ();
17927: ;
17928: return 0;
17929: }
17930: _ACEOF
17931: if ac_fn_c_try_link "$LINENO"; then :
17932: ac_cv_lib_z_gzopen=yes
17933: else
17934: ac_cv_lib_z_gzopen=no
17935: fi
17936: rm -f core conftest.err conftest.$ac_objext \
17937: conftest$ac_exeext conftest.$ac_ext
17938: LIBS=$ac_check_lib_save_LIBS
17939: fi
17940: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
17941: $as_echo "$ac_cv_lib_z_gzopen" >&6; }
17942: if test "x$ac_cv_lib_z_gzopen" = xyes; then :
17943: HAVE_LIBZ=1
17944: fi
17945:
17946:
17947: # Check for the availability of libbz2. Originally we just used AC_CHECK_LIB,
17948: # as for libz. However, this had the following problem, diagnosed and fixed by
17949: # a user:
17950: #
17951: # - libbz2 uses the Pascal calling convention (WINAPI) for the functions
17952: # under Win32.
17953: # - The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
17954: # therefore missing the function definition.
17955: # - The compiler thus generates a "C" signature for the test function.
17956: # - The linker fails to find the "C" function.
17957: # - PCRE fails to configure if asked to do so against libbz2.
17958: #
17959: # Solution:
17960: #
17961: # - Replace the AC_CHECK_LIB test with a custom test.
17962:
17963: for ac_header in bzlib.h
17964: do :
17965: ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
17966: if test "x$ac_cv_header_bzlib_h" = xyes; then :
17967: cat >>confdefs.h <<_ACEOF
17968: #define HAVE_BZLIB_H 1
17969: _ACEOF
17970: HAVE_BZLIB_H=1
17971: fi
17972:
17973: done
17974:
17975: # Original test
17976: # AC_CHECK_LIB([bz2], [BZ2_bzopen], [HAVE_LIBBZ2=1])
17977: #
17978: # Custom test follows
17979:
17980: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbz2" >&5
17981: $as_echo_n "checking for libbz2... " >&6; }
17982: OLD_LIBS="$LIBS"
17983: LIBS="$LIBS -lbz2"
17984: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17985: /* end confdefs.h. */
17986:
17987: #ifdef HAVE_BZLIB_H
17988: #include <bzlib.h>
17989: #endif
17990: int
17991: main ()
17992: {
17993: return (int)BZ2_bzopen("conftest", "rb");
17994: ;
17995: return 0;
17996: }
17997: _ACEOF
17998: if ac_fn_c_try_link "$LINENO"; then :
17999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18000: $as_echo "yes" >&6; };HAVE_LIBBZ2=1; break;
18001: else
18002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18003: $as_echo "no" >&6; }
18004: fi
18005: rm -f core conftest.err conftest.$ac_objext \
18006: conftest$ac_exeext conftest.$ac_ext
18007: LIBS="$OLD_LIBS"
18008:
18009: # Check for the availabiity of libreadline
18010:
1.1.1.3 misho 18011: if test "$enable_pcretest_libreadline" = "yes"; then
18012: for ac_header in readline/readline.h
1.1 misho 18013: do :
18014: ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18015: if test "x$ac_cv_header_readline_readline_h" = xyes; then :
18016: cat >>confdefs.h <<_ACEOF
18017: #define HAVE_READLINE_READLINE_H 1
18018: _ACEOF
18019: HAVE_READLINE_H=1
18020: fi
18021:
18022: done
18023:
1.1.1.3 misho 18024: for ac_header in readline/history.h
1.1 misho 18025: do :
18026: ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
18027: if test "x$ac_cv_header_readline_history_h" = xyes; then :
18028: cat >>confdefs.h <<_ACEOF
18029: #define HAVE_READLINE_HISTORY_H 1
18030: _ACEOF
18031: HAVE_HISTORY_H=1
18032: fi
18033:
18034: done
18035:
1.1.1.3 misho 18036: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
1.1 misho 18037: $as_echo_n "checking for readline in -lreadline... " >&6; }
18038: if ${ac_cv_lib_readline_readline+:} false; then :
18039: $as_echo_n "(cached) " >&6
18040: else
18041: ac_check_lib_save_LIBS=$LIBS
18042: LIBS="-lreadline $LIBS"
18043: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18044: /* end confdefs.h. */
18045:
18046: /* Override any GCC internal prototype to avoid an error.
18047: Use char because int might match the return type of a GCC
18048: builtin and then its argument prototype would still apply. */
18049: #ifdef __cplusplus
18050: extern "C"
18051: #endif
18052: char readline ();
18053: int
18054: main ()
18055: {
18056: return readline ();
18057: ;
18058: return 0;
18059: }
18060: _ACEOF
18061: if ac_fn_c_try_link "$LINENO"; then :
18062: ac_cv_lib_readline_readline=yes
18063: else
18064: ac_cv_lib_readline_readline=no
18065: fi
18066: rm -f core conftest.err conftest.$ac_objext \
18067: conftest$ac_exeext conftest.$ac_ext
18068: LIBS=$ac_check_lib_save_LIBS
18069: fi
18070: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18071: $as_echo "$ac_cv_lib_readline_readline" >&6; }
18072: if test "x$ac_cv_lib_readline_readline" = xyes; then :
1.1.1.2 misho 18073: LIBREADLINE="-lreadline"
18074: else
18075: unset ac_cv_lib_readline_readline;
1.1.1.3 misho 18076: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
1.1.1.2 misho 18077: $as_echo_n "checking for readline in -lreadline... " >&6; }
18078: if ${ac_cv_lib_readline_readline+:} false; then :
18079: $as_echo_n "(cached) " >&6
18080: else
18081: ac_check_lib_save_LIBS=$LIBS
18082: LIBS="-lreadline -ltinfo $LIBS"
18083: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18084: /* end confdefs.h. */
18085:
18086: /* Override any GCC internal prototype to avoid an error.
18087: Use char because int might match the return type of a GCC
18088: builtin and then its argument prototype would still apply. */
18089: #ifdef __cplusplus
18090: extern "C"
18091: #endif
18092: char readline ();
18093: int
18094: main ()
18095: {
18096: return readline ();
18097: ;
18098: return 0;
18099: }
18100: _ACEOF
18101: if ac_fn_c_try_link "$LINENO"; then :
18102: ac_cv_lib_readline_readline=yes
18103: else
18104: ac_cv_lib_readline_readline=no
18105: fi
18106: rm -f core conftest.err conftest.$ac_objext \
18107: conftest$ac_exeext conftest.$ac_ext
18108: LIBS=$ac_check_lib_save_LIBS
18109: fi
18110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18111: $as_echo "$ac_cv_lib_readline_readline" >&6; }
18112: if test "x$ac_cv_lib_readline_readline" = xyes; then :
18113: LIBREADLINE="-ltinfo"
18114: else
18115: unset ac_cv_lib_readline_readline;
1.1.1.3 misho 18116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
1.1.1.2 misho 18117: $as_echo_n "checking for readline in -lreadline... " >&6; }
18118: if ${ac_cv_lib_readline_readline+:} false; then :
18119: $as_echo_n "(cached) " >&6
18120: else
18121: ac_check_lib_save_LIBS=$LIBS
18122: LIBS="-lreadline -lcurses $LIBS"
18123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124: /* end confdefs.h. */
18125:
18126: /* Override any GCC internal prototype to avoid an error.
18127: Use char because int might match the return type of a GCC
18128: builtin and then its argument prototype would still apply. */
18129: #ifdef __cplusplus
18130: extern "C"
18131: #endif
18132: char readline ();
18133: int
18134: main ()
18135: {
18136: return readline ();
18137: ;
18138: return 0;
18139: }
18140: _ACEOF
18141: if ac_fn_c_try_link "$LINENO"; then :
18142: ac_cv_lib_readline_readline=yes
18143: else
18144: ac_cv_lib_readline_readline=no
18145: fi
18146: rm -f core conftest.err conftest.$ac_objext \
18147: conftest$ac_exeext conftest.$ac_ext
18148: LIBS=$ac_check_lib_save_LIBS
18149: fi
18150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18151: $as_echo "$ac_cv_lib_readline_readline" >&6; }
18152: if test "x$ac_cv_lib_readline_readline" = xyes; then :
18153: LIBREADLINE="-lcurses"
18154: else
18155: unset ac_cv_lib_readline_readline;
1.1.1.3 misho 18156: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
1.1.1.2 misho 18157: $as_echo_n "checking for readline in -lreadline... " >&6; }
18158: if ${ac_cv_lib_readline_readline+:} false; then :
18159: $as_echo_n "(cached) " >&6
18160: else
18161: ac_check_lib_save_LIBS=$LIBS
18162: LIBS="-lreadline -lncurses $LIBS"
18163: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164: /* end confdefs.h. */
18165:
18166: /* Override any GCC internal prototype to avoid an error.
18167: Use char because int might match the return type of a GCC
18168: builtin and then its argument prototype would still apply. */
18169: #ifdef __cplusplus
18170: extern "C"
18171: #endif
18172: char readline ();
18173: int
18174: main ()
18175: {
18176: return readline ();
18177: ;
18178: return 0;
18179: }
18180: _ACEOF
18181: if ac_fn_c_try_link "$LINENO"; then :
18182: ac_cv_lib_readline_readline=yes
18183: else
18184: ac_cv_lib_readline_readline=no
18185: fi
18186: rm -f core conftest.err conftest.$ac_objext \
18187: conftest$ac_exeext conftest.$ac_ext
18188: LIBS=$ac_check_lib_save_LIBS
18189: fi
18190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18191: $as_echo "$ac_cv_lib_readline_readline" >&6; }
18192: if test "x$ac_cv_lib_readline_readline" = xyes; then :
18193: LIBREADLINE="-lncurses"
18194: else
18195: unset ac_cv_lib_readline_readline;
1.1.1.3 misho 18196: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
1.1.1.2 misho 18197: $as_echo_n "checking for readline in -lreadline... " >&6; }
18198: if ${ac_cv_lib_readline_readline+:} false; then :
18199: $as_echo_n "(cached) " >&6
18200: else
18201: ac_check_lib_save_LIBS=$LIBS
18202: LIBS="-lreadline -lncursesw $LIBS"
18203: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204: /* end confdefs.h. */
18205:
18206: /* Override any GCC internal prototype to avoid an error.
18207: Use char because int might match the return type of a GCC
18208: builtin and then its argument prototype would still apply. */
18209: #ifdef __cplusplus
18210: extern "C"
18211: #endif
18212: char readline ();
18213: int
18214: main ()
18215: {
18216: return readline ();
18217: ;
18218: return 0;
18219: }
18220: _ACEOF
18221: if ac_fn_c_try_link "$LINENO"; then :
18222: ac_cv_lib_readline_readline=yes
18223: else
18224: ac_cv_lib_readline_readline=no
18225: fi
18226: rm -f core conftest.err conftest.$ac_objext \
18227: conftest$ac_exeext conftest.$ac_ext
18228: LIBS=$ac_check_lib_save_LIBS
1.1 misho 18229: fi
1.1.1.2 misho 18230: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18231: $as_echo "$ac_cv_lib_readline_readline" >&6; }
18232: if test "x$ac_cv_lib_readline_readline" = xyes; then :
18233: LIBREADLINE="-lncursesw"
18234: else
18235: unset ac_cv_lib_readline_readline;
1.1.1.3 misho 18236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
1.1.1.2 misho 18237: $as_echo_n "checking for readline in -lreadline... " >&6; }
18238: if ${ac_cv_lib_readline_readline+:} false; then :
18239: $as_echo_n "(cached) " >&6
18240: else
18241: ac_check_lib_save_LIBS=$LIBS
18242: LIBS="-lreadline -ltermcap $LIBS"
18243: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244: /* end confdefs.h. */
1.1 misho 18245:
1.1.1.2 misho 18246: /* Override any GCC internal prototype to avoid an error.
18247: Use char because int might match the return type of a GCC
18248: builtin and then its argument prototype would still apply. */
18249: #ifdef __cplusplus
18250: extern "C"
18251: #endif
18252: char readline ();
18253: int
18254: main ()
18255: {
18256: return readline ();
18257: ;
18258: return 0;
18259: }
18260: _ACEOF
18261: if ac_fn_c_try_link "$LINENO"; then :
18262: ac_cv_lib_readline_readline=yes
18263: else
18264: ac_cv_lib_readline_readline=no
18265: fi
18266: rm -f core conftest.err conftest.$ac_objext \
18267: conftest$ac_exeext conftest.$ac_ext
18268: LIBS=$ac_check_lib_save_LIBS
18269: fi
18270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
18271: $as_echo "$ac_cv_lib_readline_readline" >&6; }
18272: if test "x$ac_cv_lib_readline_readline" = xyes; then :
18273: LIBREADLINE="-ltermcap"
18274: else
18275: LIBREADLINE=""
18276: fi
18277:
18278: fi
18279:
18280: fi
18281:
18282: fi
18283:
18284: fi
18285:
18286: fi
18287:
18288:
1.1.1.3 misho 18289: if test -n "$LIBREADLINE"; then
18290: if test "$LIBREADLINE" != "-lreadline"; then
18291: echo "-lreadline needs $LIBREADLINE"
18292: LIBREADLINE="-lreadline $LIBREADLINE"
18293: fi
18294: fi
18295: fi
18296:
18297:
18298: # Check for the availability of libedit. Different distributions put its
18299: # headers in different places. Try to cover the most common ones.
18300:
18301: if test "$enable_pcretest_libedit" = "yes"; then
18302: for ac_header in editline/readline.h
18303: do :
18304: ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
18305: if test "x$ac_cv_header_editline_readline_h" = xyes; then :
18306: cat >>confdefs.h <<_ACEOF
18307: #define HAVE_EDITLINE_READLINE_H 1
18308: _ACEOF
18309: HAVE_EDITLINE_READLINE_H=1
18310: else
18311: for ac_header in edit/readline/readline.h
18312: do :
18313: ac_fn_c_check_header_mongrel "$LINENO" "edit/readline/readline.h" "ac_cv_header_edit_readline_readline_h" "$ac_includes_default"
18314: if test "x$ac_cv_header_edit_readline_readline_h" = xyes; then :
18315: cat >>confdefs.h <<_ACEOF
18316: #define HAVE_EDIT_READLINE_READLINE_H 1
18317: _ACEOF
18318: HAVE_READLINE_READLINE_H=1
18319: else
18320: for ac_header in readline/readline.h
18321: do :
18322: ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
18323: if test "x$ac_cv_header_readline_readline_h" = xyes; then :
18324: cat >>confdefs.h <<_ACEOF
18325: #define HAVE_READLINE_READLINE_H 1
18326: _ACEOF
18327: HAVE_READLINE_READLINE_H=1
18328: fi
18329:
18330: done
18331:
18332: fi
18333:
18334: done
18335:
18336: fi
18337:
18338: done
18339:
18340: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
18341: $as_echo_n "checking for readline in -ledit... " >&6; }
18342: if ${ac_cv_lib_edit_readline+:} false; then :
18343: $as_echo_n "(cached) " >&6
18344: else
18345: ac_check_lib_save_LIBS=$LIBS
18346: LIBS="-ledit $LIBS"
18347: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348: /* end confdefs.h. */
18349:
18350: /* Override any GCC internal prototype to avoid an error.
18351: Use char because int might match the return type of a GCC
18352: builtin and then its argument prototype would still apply. */
18353: #ifdef __cplusplus
18354: extern "C"
18355: #endif
18356: char readline ();
18357: int
18358: main ()
18359: {
18360: return readline ();
18361: ;
18362: return 0;
18363: }
18364: _ACEOF
18365: if ac_fn_c_try_link "$LINENO"; then :
18366: ac_cv_lib_edit_readline=yes
18367: else
18368: ac_cv_lib_edit_readline=no
18369: fi
18370: rm -f core conftest.err conftest.$ac_objext \
18371: conftest$ac_exeext conftest.$ac_ext
18372: LIBS=$ac_check_lib_save_LIBS
18373: fi
18374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
18375: $as_echo "$ac_cv_lib_edit_readline" >&6; }
18376: if test "x$ac_cv_lib_edit_readline" = xyes; then :
18377: LIBEDIT="-ledit"
18378: fi
18379:
1.1.1.2 misho 18380: fi
1.1 misho 18381:
18382: # This facilitates -ansi builds under Linux
18383:
18384: PCRE_STATIC_CFLAG=""
18385: if test "x$enable_shared" = "xno" ; then
18386:
18387: $as_echo "#define PCRE_STATIC 1" >>confdefs.h
18388:
18389: PCRE_STATIC_CFLAG="-DPCRE_STATIC"
18390: fi
18391:
18392:
18393: # Here is where pcre specific defines are handled
18394:
1.1.1.2 misho 18395: if test "$enable_pcre8" = "yes"; then
18396:
18397: $as_echo "#define SUPPORT_PCRE8 /**/" >>confdefs.h
18398:
18399: fi
18400:
18401: if test "$enable_pcre16" = "yes"; then
18402:
18403: $as_echo "#define SUPPORT_PCRE16 /**/" >>confdefs.h
18404:
18405: fi
18406:
1.1.1.4 ! misho 18407: if test "$enable_pcre32" = "yes"; then
! 18408:
! 18409: $as_echo "#define SUPPORT_PCRE32 /**/" >>confdefs.h
! 18410:
! 18411: fi
! 18412:
1.1 misho 18413: if test "$enable_jit" = "yes"; then
18414:
1.1.1.4 ! misho 18415:
! 18416: ac_ext=c
! 18417: ac_cpp='$CPP $CPPFLAGS'
! 18418: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 18419: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 18420: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 18421:
! 18422: ax_pthread_ok=no
! 18423:
! 18424: # We used to check for pthread.h first, but this fails if pthread.h
! 18425: # requires special compiler flags (e.g. on True64 or Sequent).
! 18426: # It gets checked for in the link test anyway.
! 18427:
! 18428: # First of all, check if the user has set any of the PTHREAD_LIBS,
! 18429: # etcetera environment variables, and if threads linking works using
! 18430: # them:
! 18431: if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
! 18432: save_CFLAGS="$CFLAGS"
! 18433: CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
! 18434: save_LIBS="$LIBS"
! 18435: LIBS="$PTHREAD_LIBS $LIBS"
! 18436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
! 18437: $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
! 18438: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 18439: /* end confdefs.h. */
! 18440:
! 18441: /* Override any GCC internal prototype to avoid an error.
! 18442: Use char because int might match the return type of a GCC
! 18443: builtin and then its argument prototype would still apply. */
! 18444: #ifdef __cplusplus
! 18445: extern "C"
! 18446: #endif
! 18447: char pthread_join ();
! 18448: int
! 18449: main ()
! 18450: {
! 18451: return pthread_join ();
! 18452: ;
! 18453: return 0;
! 18454: }
! 18455: _ACEOF
! 18456: if ac_fn_c_try_link "$LINENO"; then :
! 18457: ax_pthread_ok=yes
! 18458: fi
! 18459: rm -f core conftest.err conftest.$ac_objext \
! 18460: conftest$ac_exeext conftest.$ac_ext
! 18461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
! 18462: $as_echo "$ax_pthread_ok" >&6; }
! 18463: if test x"$ax_pthread_ok" = xno; then
! 18464: PTHREAD_LIBS=""
! 18465: PTHREAD_CFLAGS=""
! 18466: fi
! 18467: LIBS="$save_LIBS"
! 18468: CFLAGS="$save_CFLAGS"
! 18469: fi
! 18470:
! 18471: # We must check for the threads library under a number of different
! 18472: # names; the ordering is very important because some systems
! 18473: # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
! 18474: # libraries is broken (non-POSIX).
! 18475:
! 18476: # Create a list of thread flags to try. Items starting with a "-" are
! 18477: # C compiler flags, and other items are library names, except for "none"
! 18478: # which indicates that we try without any flags at all, and "pthread-config"
! 18479: # which is a program returning the flags for the Pth emulation library.
! 18480:
! 18481: ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
! 18482:
! 18483: # The ordering *is* (sometimes) important. Some notes on the
! 18484: # individual items follow:
! 18485:
! 18486: # pthreads: AIX (must check this before -lpthread)
! 18487: # none: in case threads are in libc; should be tried before -Kthread and
! 18488: # other compiler flags to prevent continual compiler warnings
! 18489: # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
! 18490: # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
! 18491: # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
! 18492: # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
! 18493: # -pthreads: Solaris/gcc
! 18494: # -mthreads: Mingw32/gcc, Lynx/gcc
! 18495: # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
! 18496: # doesn't hurt to check since this sometimes defines pthreads too;
! 18497: # also defines -D_REENTRANT)
! 18498: # ... -mt is also the pthreads flag for HP/aCC
! 18499: # pthread: Linux, etcetera
! 18500: # --thread-safe: KAI C++
! 18501: # pthread-config: use pthread-config program (for GNU Pth library)
! 18502:
! 18503: case ${host_os} in
! 18504: solaris*)
! 18505:
! 18506: # On Solaris (at least, for some versions), libc contains stubbed
! 18507: # (non-functional) versions of the pthreads routines, so link-based
! 18508: # tests will erroneously succeed. (We need to link with -pthreads/-mt/
! 18509: # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
! 18510: # a function called by this macro, so we could check for that, but
! 18511: # who knows whether they'll stub that too in a future libc.) So,
! 18512: # we'll just look for -pthreads and -lpthread first:
! 18513:
! 18514: ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
! 18515: ;;
! 18516:
! 18517: darwin*)
! 18518: ax_pthread_flags="-pthread $ax_pthread_flags"
! 18519: ;;
! 18520: esac
! 18521:
! 18522: if test x"$ax_pthread_ok" = xno; then
! 18523: for flag in $ax_pthread_flags; do
! 18524:
! 18525: case $flag in
! 18526: none)
! 18527: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
! 18528: $as_echo_n "checking whether pthreads work without any flags... " >&6; }
! 18529: ;;
! 18530:
! 18531: -*)
! 18532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
! 18533: $as_echo_n "checking whether pthreads work with $flag... " >&6; }
! 18534: PTHREAD_CFLAGS="$flag"
! 18535: ;;
! 18536:
! 18537: pthread-config)
! 18538: # Extract the first word of "pthread-config", so it can be a program name with args.
! 18539: set dummy pthread-config; ac_word=$2
! 18540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 18541: $as_echo_n "checking for $ac_word... " >&6; }
! 18542: if ${ac_cv_prog_ax_pthread_config+:} false; then :
! 18543: $as_echo_n "(cached) " >&6
! 18544: else
! 18545: if test -n "$ax_pthread_config"; then
! 18546: ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
! 18547: else
! 18548: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 18549: for as_dir in $PATH
! 18550: do
! 18551: IFS=$as_save_IFS
! 18552: test -z "$as_dir" && as_dir=.
! 18553: for ac_exec_ext in '' $ac_executable_extensions; do
! 18554: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 18555: ac_cv_prog_ax_pthread_config="yes"
! 18556: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 18557: break 2
! 18558: fi
! 18559: done
! 18560: done
! 18561: IFS=$as_save_IFS
! 18562:
! 18563: test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
! 18564: fi
! 18565: fi
! 18566: ax_pthread_config=$ac_cv_prog_ax_pthread_config
! 18567: if test -n "$ax_pthread_config"; then
! 18568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
! 18569: $as_echo "$ax_pthread_config" >&6; }
! 18570: else
! 18571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 18572: $as_echo "no" >&6; }
! 18573: fi
! 18574:
! 18575:
! 18576: if test x"$ax_pthread_config" = xno; then continue; fi
! 18577: PTHREAD_CFLAGS="`pthread-config --cflags`"
! 18578: PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
! 18579: ;;
! 18580:
! 18581: *)
! 18582: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
! 18583: $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
! 18584: PTHREAD_LIBS="-l$flag"
! 18585: ;;
! 18586: esac
! 18587:
! 18588: save_LIBS="$LIBS"
! 18589: save_CFLAGS="$CFLAGS"
! 18590: LIBS="$PTHREAD_LIBS $LIBS"
! 18591: CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
! 18592:
! 18593: # Check for various functions. We must include pthread.h,
! 18594: # since some functions may be macros. (On the Sequent, we
! 18595: # need a special flag -Kthread to make this header compile.)
! 18596: # We check for pthread_join because it is in -lpthread on IRIX
! 18597: # while pthread_create is in libc. We check for pthread_attr_init
! 18598: # due to DEC craziness with -lpthreads. We check for
! 18599: # pthread_cleanup_push because it is one of the few pthread
! 18600: # functions on Solaris that doesn't have a non-functional libc stub.
! 18601: # We try pthread_create on general principles.
! 18602: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 18603: /* end confdefs.h. */
! 18604: #include <pthread.h>
! 18605: static void routine(void *a) { a = 0; }
! 18606: static void *start_routine(void *a) { return a; }
! 18607: int
! 18608: main ()
! 18609: {
! 18610: pthread_t th; pthread_attr_t attr;
! 18611: pthread_create(&th, 0, start_routine, 0);
! 18612: pthread_join(th, 0);
! 18613: pthread_attr_init(&attr);
! 18614: pthread_cleanup_push(routine, 0);
! 18615: pthread_cleanup_pop(0) /* ; */
! 18616: ;
! 18617: return 0;
! 18618: }
! 18619: _ACEOF
! 18620: if ac_fn_c_try_link "$LINENO"; then :
! 18621: ax_pthread_ok=yes
! 18622: fi
! 18623: rm -f core conftest.err conftest.$ac_objext \
! 18624: conftest$ac_exeext conftest.$ac_ext
! 18625:
! 18626: LIBS="$save_LIBS"
! 18627: CFLAGS="$save_CFLAGS"
! 18628:
! 18629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
! 18630: $as_echo "$ax_pthread_ok" >&6; }
! 18631: if test "x$ax_pthread_ok" = xyes; then
! 18632: break;
! 18633: fi
! 18634:
! 18635: PTHREAD_LIBS=""
! 18636: PTHREAD_CFLAGS=""
! 18637: done
! 18638: fi
! 18639:
! 18640: # Various other checks:
! 18641: if test "x$ax_pthread_ok" = xyes; then
! 18642: save_LIBS="$LIBS"
! 18643: LIBS="$PTHREAD_LIBS $LIBS"
! 18644: save_CFLAGS="$CFLAGS"
! 18645: CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
! 18646:
! 18647: # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
! 18648: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
! 18649: $as_echo_n "checking for joinable pthread attribute... " >&6; }
! 18650: attr_name=unknown
! 18651: for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
! 18652: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 18653: /* end confdefs.h. */
! 18654: #include <pthread.h>
! 18655: int
! 18656: main ()
! 18657: {
! 18658: int attr = $attr; return attr /* ; */
! 18659: ;
! 18660: return 0;
! 18661: }
! 18662: _ACEOF
! 18663: if ac_fn_c_try_link "$LINENO"; then :
! 18664: attr_name=$attr; break
! 18665: fi
! 18666: rm -f core conftest.err conftest.$ac_objext \
! 18667: conftest$ac_exeext conftest.$ac_ext
! 18668: done
! 18669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
! 18670: $as_echo "$attr_name" >&6; }
! 18671: if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
! 18672:
! 18673: cat >>confdefs.h <<_ACEOF
! 18674: #define PTHREAD_CREATE_JOINABLE $attr_name
! 18675: _ACEOF
! 18676:
! 18677: fi
! 18678:
! 18679: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
! 18680: $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
! 18681: flag=no
! 18682: case ${host_os} in
! 18683: aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
! 18684: osf* | hpux*) flag="-D_REENTRANT";;
! 18685: solaris*)
! 18686: if test "$GCC" = "yes"; then
! 18687: flag="-D_REENTRANT"
! 18688: else
! 18689: flag="-mt -D_REENTRANT"
! 18690: fi
! 18691: ;;
! 18692: esac
! 18693: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
! 18694: $as_echo "${flag}" >&6; }
! 18695: if test "x$flag" != xno; then
! 18696: PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
! 18697: fi
! 18698:
! 18699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
! 18700: $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
! 18701: if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
! 18702: $as_echo_n "(cached) " >&6
! 18703: else
! 18704:
! 18705: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 18706: /* end confdefs.h. */
! 18707:
! 18708: #include <pthread.h>
! 18709: int
! 18710: main ()
! 18711: {
! 18712: int i = PTHREAD_PRIO_INHERIT;
! 18713: ;
! 18714: return 0;
! 18715: }
! 18716: _ACEOF
! 18717: if ac_fn_c_try_link "$LINENO"; then :
! 18718: ax_cv_PTHREAD_PRIO_INHERIT=yes
! 18719: else
! 18720: ax_cv_PTHREAD_PRIO_INHERIT=no
! 18721: fi
! 18722: rm -f core conftest.err conftest.$ac_objext \
! 18723: conftest$ac_exeext conftest.$ac_ext
! 18724:
! 18725: fi
! 18726: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
! 18727: $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
! 18728: if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
! 18729:
! 18730: $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
! 18731:
! 18732: fi
! 18733:
! 18734: LIBS="$save_LIBS"
! 18735: CFLAGS="$save_CFLAGS"
! 18736:
! 18737: # More AIX lossage: must compile with xlc_r or cc_r
! 18738: if test x"$GCC" != xyes; then
! 18739: for ac_prog in xlc_r cc_r
! 18740: do
! 18741: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 18742: set dummy $ac_prog; ac_word=$2
! 18743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 18744: $as_echo_n "checking for $ac_word... " >&6; }
! 18745: if ${ac_cv_prog_PTHREAD_CC+:} false; then :
! 18746: $as_echo_n "(cached) " >&6
! 18747: else
! 18748: if test -n "$PTHREAD_CC"; then
! 18749: ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
! 18750: else
! 18751: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 18752: for as_dir in $PATH
! 18753: do
! 18754: IFS=$as_save_IFS
! 18755: test -z "$as_dir" && as_dir=.
! 18756: for ac_exec_ext in '' $ac_executable_extensions; do
! 18757: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 18758: ac_cv_prog_PTHREAD_CC="$ac_prog"
! 18759: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 18760: break 2
! 18761: fi
! 18762: done
! 18763: done
! 18764: IFS=$as_save_IFS
! 18765:
! 18766: fi
! 18767: fi
! 18768: PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
! 18769: if test -n "$PTHREAD_CC"; then
! 18770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
! 18771: $as_echo "$PTHREAD_CC" >&6; }
! 18772: else
! 18773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 18774: $as_echo "no" >&6; }
! 18775: fi
! 18776:
! 18777:
! 18778: test -n "$PTHREAD_CC" && break
! 18779: done
! 18780: test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
! 18781:
! 18782: else
! 18783: PTHREAD_CC=$CC
! 18784: fi
! 18785: else
! 18786: PTHREAD_CC="$CC"
! 18787: fi
! 18788:
! 18789:
! 18790:
! 18791:
! 18792:
! 18793: # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
! 18794: if test x"$ax_pthread_ok" = xyes; then
! 18795:
! 18796: $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
! 18797:
! 18798: :
! 18799: else
! 18800: ax_pthread_ok=no
! 18801: as_fn_error $? "JIT support requires pthreads" "$LINENO" 5
! 18802: fi
! 18803: ac_ext=c
! 18804: ac_cpp='$CPP $CPPFLAGS'
! 18805: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 18806: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 18807: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 18808:
! 18809:
! 18810: CC="$PTHREAD_CC"
! 18811: CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
! 18812: LIBS="$PTHREAD_LIBS $LIBS"
! 18813:
1.1 misho 18814: $as_echo "#define SUPPORT_JIT /**/" >>confdefs.h
18815:
18816: else
18817: enable_pcregrep_jit="no"
18818: fi
18819:
18820: if test "$enable_pcregrep_jit" = "yes"; then
18821:
18822: $as_echo "#define SUPPORT_PCREGREP_JIT /**/" >>confdefs.h
18823:
18824: fi
18825:
1.1.1.2 misho 18826: if test "$enable_utf" = "yes"; then
1.1 misho 18827:
1.1.1.2 misho 18828: $as_echo "#define SUPPORT_UTF /**/" >>confdefs.h
1.1 misho 18829:
18830: fi
18831:
18832: if test "$enable_unicode_properties" = "yes"; then
18833:
18834: $as_echo "#define SUPPORT_UCP /**/" >>confdefs.h
18835:
18836: fi
18837:
18838: if test "$enable_stack_for_recursion" = "no"; then
18839:
18840: $as_echo "#define NO_RECURSE /**/" >>confdefs.h
18841:
18842: fi
18843:
18844: if test "$enable_pcregrep_libz" = "yes"; then
18845:
18846: $as_echo "#define SUPPORT_LIBZ /**/" >>confdefs.h
18847:
18848: fi
18849:
18850: if test "$enable_pcregrep_libbz2" = "yes"; then
18851:
18852: $as_echo "#define SUPPORT_LIBBZ2 /**/" >>confdefs.h
18853:
18854: fi
18855:
18856: if test $with_pcregrep_bufsize -lt 8192 ; then
18857: with_pcregrep_bufsize="8192"
18858: fi
18859:
18860:
18861: cat >>confdefs.h <<_ACEOF
18862: #define PCREGREP_BUFSIZE $with_pcregrep_bufsize
18863: _ACEOF
18864:
18865:
1.1.1.3 misho 18866: if test "$enable_pcretest_libedit" = "yes"; then
18867:
18868: $as_echo "#define SUPPORT_LIBEDIT /**/" >>confdefs.h
18869:
18870: LIBREADLINE="$LIBEDIT"
18871: elif test "$enable_pcretest_libreadline" = "yes"; then
1.1 misho 18872:
18873: $as_echo "#define SUPPORT_LIBREADLINE /**/" >>confdefs.h
18874:
18875: fi
18876:
18877:
18878: cat >>confdefs.h <<_ACEOF
18879: #define NEWLINE $ac_pcre_newline_value
18880: _ACEOF
18881:
18882:
18883: if test "$enable_bsr_anycrlf" = "yes"; then
18884:
18885: $as_echo "#define BSR_ANYCRLF /**/" >>confdefs.h
18886:
18887: fi
18888:
18889:
18890: cat >>confdefs.h <<_ACEOF
18891: #define LINK_SIZE $with_link_size
18892: _ACEOF
18893:
18894:
18895:
18896: cat >>confdefs.h <<_ACEOF
18897: #define POSIX_MALLOC_THRESHOLD $with_posix_malloc_threshold
18898: _ACEOF
18899:
18900:
18901:
18902: cat >>confdefs.h <<_ACEOF
18903: #define MATCH_LIMIT $with_match_limit
18904: _ACEOF
18905:
18906:
18907:
18908: cat >>confdefs.h <<_ACEOF
18909: #define MATCH_LIMIT_RECURSION $with_match_limit_recursion
18910: _ACEOF
18911:
18912:
18913:
18914: $as_echo "#define MAX_NAME_SIZE 32" >>confdefs.h
18915:
18916:
18917:
18918: $as_echo "#define MAX_NAME_COUNT 10000" >>confdefs.h
18919:
18920:
18921:
18922:
1.1.1.4 ! misho 18923: if test "$enable_ebcdic" = "yes"; then
! 18924:
! 18925: cat >>confdefs.h <<_ACEOF
! 18926: #define EBCDIC /**/
! 18927: _ACEOF
! 18928:
! 18929: fi
! 18930:
! 18931: if test "$enable_ebcdic_nl25" = "yes"; then
! 18932:
! 18933: cat >>confdefs.h <<_ACEOF
! 18934: #define EBCDIC_NL25 /**/
! 18935: _ACEOF
! 18936:
! 18937: fi
! 18938:
! 18939: if test "$enable_valgrind" = "yes"; then
1.1 misho 18940:
18941: cat >>confdefs.h <<_ACEOF
1.1.1.4 ! misho 18942: #define SUPPORT_VALGRIND /**/
1.1 misho 18943: _ACEOF
18944:
18945: fi
18946:
18947: # Platform specific issues
18948: NO_UNDEFINED=
18949: EXPORT_ALL_SYMBOLS=
18950: case $host_os in
18951: cygwin* | mingw* )
18952: if test X"$enable_shared" = Xyes; then
18953: NO_UNDEFINED="-no-undefined"
18954: EXPORT_ALL_SYMBOLS="-Wl,--export-all-symbols"
18955: fi
18956: ;;
18957: esac
18958:
18959: # The extra LDFLAGS for each particular library
18960: # (Note: The libpcre*_version bits are m4 variables, assigned above)
18961:
18962: EXTRA_LIBPCRE_LDFLAGS="$EXTRA_LIBPCRE_LDFLAGS \
1.1.1.4 ! misho 18963: $NO_UNDEFINED -version-info 3:1:2"
1.1.1.2 misho 18964:
18965: EXTRA_LIBPCRE16_LDFLAGS="$EXTRA_LIBPCRE16_LDFLAGS \
1.1.1.4 ! misho 18966: $NO_UNDEFINED -version-info 2:1:2"
! 18967:
! 18968: EXTRA_LIBPCRE32_LDFLAGS="$EXTRA_LIBPCRE32_LDFLAGS \
1.1.1.3 misho 18969: $NO_UNDEFINED -version-info 0:1:0"
1.1 misho 18970:
18971: EXTRA_LIBPCREPOSIX_LDFLAGS="$EXTRA_LIBPCREPOSIX_LDFLAGS \
1.1.1.4 ! misho 18972: $NO_UNDEFINED -version-info 0:2:0"
1.1 misho 18973:
18974: EXTRA_LIBPCRECPP_LDFLAGS="$EXTRA_LIBPCRECPP_LDFLAGS \
18975: $NO_UNDEFINED -version-info 0:0:0 \
18976: $EXPORT_ALL_SYMBOLS"
18977:
18978:
18979:
18980:
18981:
1.1.1.2 misho 18982:
1.1.1.4 ! misho 18983:
1.1.1.2 misho 18984: # When we run 'make distcheck', use these arguments. Turning off compiler
18985: # optimization makes it run faster.
1.1.1.4 ! misho 18986: DISTCHECK_CONFIGURE_FLAGS="CFLAGS='' CXXFLAGS='' --enable-pcre16 --enable-pcre32 --enable-jit --enable-cpp --enable-unicode-properties"
1.1 misho 18987:
18988:
18989: # Check that, if --enable-pcregrep-libz or --enable-pcregrep-libbz2 is
18990: # specified, the relevant library is available.
18991:
18992: if test "$enable_pcregrep_libz" = "yes"; then
18993: if test "$HAVE_ZLIB_H" != "1"; then
18994: echo "** Cannot --enable-pcregrep-libz because zlib.h was not found"
18995: exit 1
18996: fi
18997: if test "$HAVE_LIBZ" != "1"; then
18998: echo "** Cannot --enable-pcregrep-libz because libz was not found"
18999: exit 1
19000: fi
19001: LIBZ="-lz"
19002: fi
19003:
19004:
19005: if test "$enable_pcregrep_libbz2" = "yes"; then
19006: if test "$HAVE_BZLIB_H" != "1"; then
19007: echo "** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found"
19008: exit 1
19009: fi
19010: if test "$HAVE_LIBBZ2" != "1"; then
19011: echo "** Cannot --enable-pcregrep-libbz2 because libbz2 was not found"
19012: exit 1
19013: fi
19014: LIBBZ2="-lbz2"
19015: fi
19016:
19017:
19018: # Similarly for --enable-pcretest-readline
19019:
1.1.1.3 misho 19020: if test "$enable_pcretest_libedit" = "yes"; then
19021: if test "$enable_pcretest_libreadline" = "yes"; then
19022: echo "** Cannot use both --enable-pcretest-libedit and --enable-pcretest-readline"
19023: exit 1
19024: fi
19025: if test "$HAVE_EDITLINE_READLINE_H" != "1" -a \
19026: "$HAVE_READLINE_READLINE_H" != "1"; then
19027: echo "** Cannot --enable-pcretest-libedit because neither editline/readline.h"
19028: echo "** nor readline/readline.h was found."
19029: exit 1
19030: fi
19031: if test -z "$LIBEDIT"; then
19032: echo "** Cannot --enable-pcretest-libedit because libedit library was not found."
19033: exit 1
19034: fi
19035: fi
19036:
1.1 misho 19037: if test "$enable_pcretest_libreadline" = "yes"; then
19038: if test "$HAVE_READLINE_H" != "1"; then
19039: echo "** Cannot --enable-pcretest-readline because readline/readline.h was not found."
19040: exit 1
19041: fi
19042: if test "$HAVE_HISTORY_H" != "1"; then
19043: echo "** Cannot --enable-pcretest-readline because readline/history.h was not found."
19044: exit 1
19045: fi
1.1.1.2 misho 19046: if test -z "$LIBREADLINE"; then
19047: echo "** Cannot --enable-pcretest-readline because readline library was not found."
19048: exit 1
19049: fi
1.1 misho 19050: fi
19051:
1.1.1.4 ! misho 19052: # Check for valgrind
! 19053:
! 19054: if test "$enable_valgrind" = "yes"; then
! 19055:
! 19056:
! 19057:
! 19058:
! 19059:
! 19060:
! 19061:
! 19062: if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
! 19063: if test -n "$ac_tool_prefix"; then
! 19064: # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
! 19065: set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
! 19066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 19067: $as_echo_n "checking for $ac_word... " >&6; }
! 19068: if ${ac_cv_path_PKG_CONFIG+:} false; then :
! 19069: $as_echo_n "(cached) " >&6
! 19070: else
! 19071: case $PKG_CONFIG in
! 19072: [\\/]* | ?:[\\/]*)
! 19073: ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
! 19074: ;;
! 19075: *)
! 19076: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 19077: for as_dir in $PATH
! 19078: do
! 19079: IFS=$as_save_IFS
! 19080: test -z "$as_dir" && as_dir=.
! 19081: for ac_exec_ext in '' $ac_executable_extensions; do
! 19082: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 19083: ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
! 19084: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 19085: break 2
! 19086: fi
! 19087: done
! 19088: done
! 19089: IFS=$as_save_IFS
! 19090:
! 19091: ;;
! 19092: esac
! 19093: fi
! 19094: PKG_CONFIG=$ac_cv_path_PKG_CONFIG
! 19095: if test -n "$PKG_CONFIG"; then
! 19096: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
! 19097: $as_echo "$PKG_CONFIG" >&6; }
! 19098: else
! 19099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 19100: $as_echo "no" >&6; }
! 19101: fi
! 19102:
! 19103:
! 19104: fi
! 19105: if test -z "$ac_cv_path_PKG_CONFIG"; then
! 19106: ac_pt_PKG_CONFIG=$PKG_CONFIG
! 19107: # Extract the first word of "pkg-config", so it can be a program name with args.
! 19108: set dummy pkg-config; ac_word=$2
! 19109: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 19110: $as_echo_n "checking for $ac_word... " >&6; }
! 19111: if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
! 19112: $as_echo_n "(cached) " >&6
! 19113: else
! 19114: case $ac_pt_PKG_CONFIG in
! 19115: [\\/]* | ?:[\\/]*)
! 19116: ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
! 19117: ;;
! 19118: *)
! 19119: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 19120: for as_dir in $PATH
! 19121: do
! 19122: IFS=$as_save_IFS
! 19123: test -z "$as_dir" && as_dir=.
! 19124: for ac_exec_ext in '' $ac_executable_extensions; do
! 19125: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 19126: ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
! 19127: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 19128: break 2
! 19129: fi
! 19130: done
! 19131: done
! 19132: IFS=$as_save_IFS
! 19133:
! 19134: ;;
! 19135: esac
! 19136: fi
! 19137: ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
! 19138: if test -n "$ac_pt_PKG_CONFIG"; then
! 19139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
! 19140: $as_echo "$ac_pt_PKG_CONFIG" >&6; }
! 19141: else
! 19142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 19143: $as_echo "no" >&6; }
! 19144: fi
! 19145:
! 19146: if test "x$ac_pt_PKG_CONFIG" = x; then
! 19147: PKG_CONFIG=""
! 19148: else
! 19149: case $cross_compiling:$ac_tool_warned in
! 19150: yes:)
! 19151: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 19152: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 19153: ac_tool_warned=yes ;;
! 19154: esac
! 19155: PKG_CONFIG=$ac_pt_PKG_CONFIG
! 19156: fi
! 19157: else
! 19158: PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
! 19159: fi
! 19160:
! 19161: fi
! 19162: if test -n "$PKG_CONFIG"; then
! 19163: _pkg_min_version=0.9.0
! 19164: { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
! 19165: $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
! 19166: if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
! 19167: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 19168: $as_echo "yes" >&6; }
! 19169: else
! 19170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 19171: $as_echo "no" >&6; }
! 19172: PKG_CONFIG=""
! 19173: fi
! 19174: fi
! 19175:
! 19176: pkg_failed=no
! 19177: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
! 19178: $as_echo_n "checking for VALGRIND... " >&6; }
! 19179:
! 19180: if test -n "$VALGRIND_CFLAGS"; then
! 19181: pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
! 19182: elif test -n "$PKG_CONFIG"; then
! 19183: if test -n "$PKG_CONFIG" && \
! 19184: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
! 19185: ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
! 19186: ac_status=$?
! 19187: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 19188: test $ac_status = 0; }; then
! 19189: pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
! 19190: test "x$?" != "x0" && pkg_failed=yes
! 19191: else
! 19192: pkg_failed=yes
! 19193: fi
! 19194: else
! 19195: pkg_failed=untried
! 19196: fi
! 19197: if test -n "$VALGRIND_LIBS"; then
! 19198: pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
! 19199: elif test -n "$PKG_CONFIG"; then
! 19200: if test -n "$PKG_CONFIG" && \
! 19201: { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
! 19202: ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
! 19203: ac_status=$?
! 19204: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 19205: test $ac_status = 0; }; then
! 19206: pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
! 19207: test "x$?" != "x0" && pkg_failed=yes
! 19208: else
! 19209: pkg_failed=yes
! 19210: fi
! 19211: else
! 19212: pkg_failed=untried
! 19213: fi
! 19214:
! 19215:
! 19216:
! 19217: if test $pkg_failed = yes; then
! 19218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 19219: $as_echo "no" >&6; }
! 19220:
! 19221: if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
! 19222: _pkg_short_errors_supported=yes
! 19223: else
! 19224: _pkg_short_errors_supported=no
! 19225: fi
! 19226: if test $_pkg_short_errors_supported = yes; then
! 19227: VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
! 19228: else
! 19229: VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
! 19230: fi
! 19231: # Put the nasty error message in config.log where it belongs
! 19232: echo "$VALGRIND_PKG_ERRORS" >&5
! 19233:
! 19234: as_fn_error $? "Package requirements (valgrind) were not met:
! 19235:
! 19236: $VALGRIND_PKG_ERRORS
! 19237:
! 19238: Consider adjusting the PKG_CONFIG_PATH environment variable if you
! 19239: installed software in a non-standard prefix.
! 19240:
! 19241: Alternatively, you may set the environment variables VALGRIND_CFLAGS
! 19242: and VALGRIND_LIBS to avoid the need to call pkg-config.
! 19243: See the pkg-config man page for more details." "$LINENO" 5
! 19244: elif test $pkg_failed = untried; then
! 19245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 19246: $as_echo "no" >&6; }
! 19247: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
! 19248: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
! 19249: as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
! 19250: is in your PATH or set the PKG_CONFIG environment variable to the full
! 19251: path to pkg-config.
! 19252:
! 19253: Alternatively, you may set the environment variables VALGRIND_CFLAGS
! 19254: and VALGRIND_LIBS to avoid the need to call pkg-config.
! 19255: See the pkg-config man page for more details.
! 19256:
! 19257: To get pkg-config, see <http://pkg-config.freedesktop.org/>.
! 19258: See \`config.log' for more details" "$LINENO" 5; }
! 19259: else
! 19260: VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
! 19261: VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
! 19262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 19263: $as_echo "yes" >&6; }
! 19264:
! 19265: fi
! 19266: fi
! 19267:
! 19268: # test code coverage reporting
! 19269: if test "$enable_coverage" = "yes"; then
! 19270: if test "x$GCC" != "xyes"; then
! 19271: as_fn_error $? "Code coverage reports can only be generated when using GCC" "$LINENO" 5
! 19272: fi
! 19273:
! 19274: # ccache is incompatible with gcov
! 19275: # Extract the first word of "shtool", so it can be a program name with args.
! 19276: set dummy shtool; ac_word=$2
! 19277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 19278: $as_echo_n "checking for $ac_word... " >&6; }
! 19279: if ${ac_cv_path_SHTOOL+:} false; then :
! 19280: $as_echo_n "(cached) " >&6
! 19281: else
! 19282: case $SHTOOL in
! 19283: [\\/]* | ?:[\\/]*)
! 19284: ac_cv_path_SHTOOL="$SHTOOL" # Let the user override the test with a path.
! 19285: ;;
! 19286: *)
! 19287: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 19288: for as_dir in $PATH
! 19289: do
! 19290: IFS=$as_save_IFS
! 19291: test -z "$as_dir" && as_dir=.
! 19292: for ac_exec_ext in '' $ac_executable_extensions; do
! 19293: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 19294: ac_cv_path_SHTOOL="$as_dir/$ac_word$ac_exec_ext"
! 19295: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 19296: break 2
! 19297: fi
! 19298: done
! 19299: done
! 19300: IFS=$as_save_IFS
! 19301:
! 19302: test -z "$ac_cv_path_SHTOOL" && ac_cv_path_SHTOOL="false"
! 19303: ;;
! 19304: esac
! 19305: fi
! 19306: SHTOOL=$ac_cv_path_SHTOOL
! 19307: if test -n "$SHTOOL"; then
! 19308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
! 19309: $as_echo "$SHTOOL" >&6; }
! 19310: else
! 19311: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 19312: $as_echo "no" >&6; }
! 19313: fi
! 19314:
! 19315:
! 19316: case `$SHTOOL path $CC` in
! 19317: *ccache*) cc_ccache=yes;;
! 19318: *) cc_ccache=no;;
! 19319: esac
! 19320:
! 19321: if test "$cc_ccache" = "yes"; then
! 19322: if test -z "$CCACHE_DISABLE" -o "$CCACHE_DISABLE" != "1"; then
! 19323: as_fn_error $? "must export CCACHE_DISABLE=1 to disable ccache for code coverage" "$LINENO" 5
! 19324: fi
! 19325: fi
! 19326:
! 19327:
! 19328: # Extract the first word of "lcov", so it can be a program name with args.
! 19329: set dummy lcov; ac_word=$2
! 19330: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 19331: $as_echo_n "checking for $ac_word... " >&6; }
! 19332: if ${ac_cv_path_LCOV+:} false; then :
! 19333: $as_echo_n "(cached) " >&6
! 19334: else
! 19335: case $LCOV in
! 19336: [\\/]* | ?:[\\/]*)
! 19337: ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
! 19338: ;;
! 19339: *)
! 19340: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 19341: for as_dir in $PATH
! 19342: do
! 19343: IFS=$as_save_IFS
! 19344: test -z "$as_dir" && as_dir=.
! 19345: for ac_exec_ext in '' $ac_executable_extensions; do
! 19346: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 19347: ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
! 19348: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 19349: break 2
! 19350: fi
! 19351: done
! 19352: done
! 19353: IFS=$as_save_IFS
! 19354:
! 19355: test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="false"
! 19356: ;;
! 19357: esac
! 19358: fi
! 19359: LCOV=$ac_cv_path_LCOV
! 19360: if test -n "$LCOV"; then
! 19361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
! 19362: $as_echo "$LCOV" >&6; }
! 19363: else
! 19364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 19365: $as_echo "no" >&6; }
! 19366: fi
! 19367:
! 19368:
! 19369: if test "x$LCOV" = "xfalse"; then
! 19370: as_fn_error $? "lcov not found" "$LINENO" 5
! 19371: fi
! 19372:
! 19373:
! 19374: # Extract the first word of "genhtml", so it can be a program name with args.
! 19375: set dummy genhtml; ac_word=$2
! 19376: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 19377: $as_echo_n "checking for $ac_word... " >&6; }
! 19378: if ${ac_cv_path_GENHTML+:} false; then :
! 19379: $as_echo_n "(cached) " >&6
! 19380: else
! 19381: case $GENHTML in
! 19382: [\\/]* | ?:[\\/]*)
! 19383: ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
! 19384: ;;
! 19385: *)
! 19386: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 19387: for as_dir in $PATH
! 19388: do
! 19389: IFS=$as_save_IFS
! 19390: test -z "$as_dir" && as_dir=.
! 19391: for ac_exec_ext in '' $ac_executable_extensions; do
! 19392: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 19393: ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
! 19394: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 19395: break 2
! 19396: fi
! 19397: done
! 19398: done
! 19399: IFS=$as_save_IFS
! 19400:
! 19401: test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="false"
! 19402: ;;
! 19403: esac
! 19404: fi
! 19405: GENHTML=$ac_cv_path_GENHTML
! 19406: if test -n "$GENHTML"; then
! 19407: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
! 19408: $as_echo "$GENHTML" >&6; }
! 19409: else
! 19410: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 19411: $as_echo "no" >&6; }
! 19412: fi
! 19413:
! 19414:
! 19415: if test "x$GENHTML" = "xfalse"; then
! 19416: as_fn_error $? "genhtml not found" "$LINENO" 5
! 19417: fi
! 19418:
! 19419:
! 19420: $as_echo "#define SUPPORT_GCOV 1" >>confdefs.h
! 19421:
! 19422:
! 19423: # And add flags needed for gcov
! 19424: GCOV_CFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
! 19425: GCOV_CXXFLAGS="-O0 -ggdb3 -fprofile-arcs -ftest-coverage"
! 19426: GCOV_LIBS="-lgcov"
! 19427:
! 19428:
! 19429:
! 19430: fi # enable_coverage
! 19431:
! 19432: if test "x$enable_coverage" = "xyes"; then
! 19433: WITH_GCOV_TRUE=
! 19434: WITH_GCOV_FALSE='#'
! 19435: else
! 19436: WITH_GCOV_TRUE='#'
! 19437: WITH_GCOV_FALSE=
! 19438: fi
! 19439:
! 19440:
1.1 misho 19441: # Produce these files, in addition to config.h.
1.1.1.4 ! misho 19442: ac_config_files="$ac_config_files Makefile libpcre.pc libpcre16.pc libpcre32.pc libpcreposix.pc libpcrecpp.pc pcre-config pcre.h pcre_stringpiece.h pcrecpparg.h"
1.1 misho 19443:
19444:
19445: # Make the generated script files executable.
19446: ac_config_commands="$ac_config_commands script-chmod"
19447:
19448:
19449: # Make sure that pcre_chartables.c is removed in case the method for
19450: # creating it was changed by reconfiguration.
19451: ac_config_commands="$ac_config_commands delete-old-chartables"
19452:
19453:
19454: cat >confcache <<\_ACEOF
19455: # This file is a shell script that caches the results of configure
19456: # tests run on this system so they can be shared between configure
19457: # scripts and configure runs, see configure's option --config-cache.
19458: # It is not useful on other systems. If it contains results you don't
19459: # want to keep, you may remove or edit it.
19460: #
19461: # config.status only pays attention to the cache file if you give it
19462: # the --recheck option to rerun configure.
19463: #
19464: # `ac_cv_env_foo' variables (set or unset) will be overridden when
19465: # loading this file, other *unset* `ac_cv_foo' will be assigned the
19466: # following values.
19467:
19468: _ACEOF
19469:
19470: # The following way of writing the cache mishandles newlines in values,
19471: # but we know of no workaround that is simple, portable, and efficient.
19472: # So, we kill variables containing newlines.
19473: # Ultrix sh set writes to stderr and can't be redirected directly,
19474: # and sets the high bit in the cache file unless we assign to the vars.
19475: (
19476: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19477: eval ac_val=\$$ac_var
19478: case $ac_val in #(
19479: *${as_nl}*)
19480: case $ac_var in #(
19481: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19482: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19483: esac
19484: case $ac_var in #(
19485: _ | IFS | as_nl) ;; #(
19486: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19487: *) { eval $ac_var=; unset $ac_var;} ;;
19488: esac ;;
19489: esac
19490: done
19491:
19492: (set) 2>&1 |
19493: case $as_nl`(ac_space=' '; set) 2>&1` in #(
19494: *${as_nl}ac_space=\ *)
19495: # `set' does not quote correctly, so add quotes: double-quote
19496: # substitution turns \\\\ into \\, and sed turns \\ into \.
19497: sed -n \
19498: "s/'/'\\\\''/g;
19499: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19500: ;; #(
19501: *)
19502: # `set' quotes correctly as required by POSIX, so do not add quotes.
19503: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19504: ;;
19505: esac |
19506: sort
19507: ) |
19508: sed '
19509: /^ac_cv_env_/b end
19510: t clear
19511: :clear
19512: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19513: t end
19514: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19515: :end' >>confcache
19516: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19517: if test -w "$cache_file"; then
19518: if test "x$cache_file" != "x/dev/null"; then
19519: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19520: $as_echo "$as_me: updating cache $cache_file" >&6;}
19521: if test ! -f "$cache_file" || test -h "$cache_file"; then
19522: cat confcache >"$cache_file"
19523: else
19524: case $cache_file in #(
19525: */* | ?:*)
19526: mv -f confcache "$cache_file"$$ &&
19527: mv -f "$cache_file"$$ "$cache_file" ;; #(
19528: *)
19529: mv -f confcache "$cache_file" ;;
19530: esac
19531: fi
19532: fi
19533: else
19534: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19535: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19536: fi
19537: fi
19538: rm -f confcache
19539:
19540: test "x$prefix" = xNONE && prefix=$ac_default_prefix
19541: # Let make expand exec_prefix.
19542: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19543:
19544: DEFS=-DHAVE_CONFIG_H
19545:
19546: ac_libobjs=
19547: ac_ltlibobjs=
19548: U=
19549: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19550: # 1. Remove the extension, and $U if already installed.
19551: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19552: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19553: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19554: # will be set to the directory where LIBOBJS objects are built.
19555: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19556: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19557: done
19558: LIBOBJS=$ac_libobjs
19559:
19560: LTLIBOBJS=$ac_ltlibobjs
19561:
19562:
1.1.1.4 ! misho 19563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
! 19564: $as_echo_n "checking that generated files are newer than configure... " >&6; }
! 19565: if test -n "$am_sleep_pid"; then
! 19566: # Hide warnings about reused PIDs.
! 19567: wait $am_sleep_pid 2>/dev/null
! 19568: fi
! 19569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
! 19570: $as_echo "done" >&6; }
1.1 misho 19571: if test -n "$EXEEXT"; then
19572: am__EXEEXT_TRUE=
19573: am__EXEEXT_FALSE='#'
19574: else
19575: am__EXEEXT_TRUE='#'
19576: am__EXEEXT_FALSE=
19577: fi
19578:
19579: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19580: as_fn_error $? "conditional \"AMDEP\" was never defined.
19581: Usually this means the macro was only invoked conditionally." "$LINENO" 5
19582: fi
19583: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19584: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19585: Usually this means the macro was only invoked conditionally." "$LINENO" 5
19586: fi
1.1.1.4 ! misho 19587: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
! 19588: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
! 19589: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 19590: fi
1.1 misho 19591: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19592: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19593: Usually this means the macro was only invoked conditionally." "$LINENO" 5
19594: fi
1.1.1.2 misho 19595: if test -z "${WITH_PCRE8_TRUE}" && test -z "${WITH_PCRE8_FALSE}"; then
19596: as_fn_error $? "conditional \"WITH_PCRE8\" was never defined.
19597: Usually this means the macro was only invoked conditionally." "$LINENO" 5
19598: fi
19599: if test -z "${WITH_PCRE16_TRUE}" && test -z "${WITH_PCRE16_FALSE}"; then
19600: as_fn_error $? "conditional \"WITH_PCRE16\" was never defined.
19601: Usually this means the macro was only invoked conditionally." "$LINENO" 5
19602: fi
1.1.1.4 ! misho 19603: if test -z "${WITH_PCRE32_TRUE}" && test -z "${WITH_PCRE32_FALSE}"; then
! 19604: as_fn_error $? "conditional \"WITH_PCRE32\" was never defined.
! 19605: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 19606: fi
1.1 misho 19607: if test -z "${WITH_PCRE_CPP_TRUE}" && test -z "${WITH_PCRE_CPP_FALSE}"; then
19608: as_fn_error $? "conditional \"WITH_PCRE_CPP\" was never defined.
19609: Usually this means the macro was only invoked conditionally." "$LINENO" 5
19610: fi
19611: if test -z "${WITH_REBUILD_CHARTABLES_TRUE}" && test -z "${WITH_REBUILD_CHARTABLES_FALSE}"; then
19612: as_fn_error $? "conditional \"WITH_REBUILD_CHARTABLES\" was never defined.
19613: Usually this means the macro was only invoked conditionally." "$LINENO" 5
19614: fi
19615: if test -z "${WITH_JIT_TRUE}" && test -z "${WITH_JIT_FALSE}"; then
19616: as_fn_error $? "conditional \"WITH_JIT\" was never defined.
19617: Usually this means the macro was only invoked conditionally." "$LINENO" 5
19618: fi
1.1.1.2 misho 19619: if test -z "${WITH_UTF_TRUE}" && test -z "${WITH_UTF_FALSE}"; then
19620: as_fn_error $? "conditional \"WITH_UTF\" was never defined.
1.1 misho 19621: Usually this means the macro was only invoked conditionally." "$LINENO" 5
19622: fi
1.1.1.4 ! misho 19623: if test -z "${WITH_VALGRIND_TRUE}" && test -z "${WITH_VALGRIND_FALSE}"; then
! 19624: as_fn_error $? "conditional \"WITH_VALGRIND\" was never defined.
! 19625: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 19626: fi
! 19627: if test -z "${WITH_GCOV_TRUE}" && test -z "${WITH_GCOV_FALSE}"; then
! 19628: as_fn_error $? "conditional \"WITH_GCOV\" was never defined.
! 19629: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 19630: fi
1.1 misho 19631:
19632: : "${CONFIG_STATUS=./config.status}"
19633: ac_write_fail=0
19634: ac_clean_files_save=$ac_clean_files
19635: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19636: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19637: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19638: as_write_fail=0
19639: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19640: #! $SHELL
19641: # Generated by $as_me.
19642: # Run this file to recreate the current configuration.
19643: # Compiler output produced by configure, useful for debugging
19644: # configure, is in config.log if it exists.
19645:
19646: debug=false
19647: ac_cs_recheck=false
19648: ac_cs_silent=false
19649:
19650: SHELL=\${CONFIG_SHELL-$SHELL}
19651: export SHELL
19652: _ASEOF
19653: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19654: ## -------------------- ##
19655: ## M4sh Initialization. ##
19656: ## -------------------- ##
19657:
19658: # Be more Bourne compatible
19659: DUALCASE=1; export DUALCASE # for MKS sh
19660: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19661: emulate sh
19662: NULLCMD=:
19663: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19664: # is contrary to our usage. Disable this feature.
19665: alias -g '${1+"$@"}'='"$@"'
19666: setopt NO_GLOB_SUBST
19667: else
19668: case `(set -o) 2>/dev/null` in #(
19669: *posix*) :
19670: set -o posix ;; #(
19671: *) :
19672: ;;
19673: esac
19674: fi
19675:
19676:
19677: as_nl='
19678: '
19679: export as_nl
19680: # Printing a long string crashes Solaris 7 /usr/bin/printf.
19681: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19682: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19683: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19684: # Prefer a ksh shell builtin over an external printf program on Solaris,
19685: # but without wasting forks for bash or zsh.
19686: if test -z "$BASH_VERSION$ZSH_VERSION" \
19687: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19688: as_echo='print -r --'
19689: as_echo_n='print -rn --'
19690: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19691: as_echo='printf %s\n'
19692: as_echo_n='printf %s'
19693: else
19694: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19695: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19696: as_echo_n='/usr/ucb/echo -n'
19697: else
19698: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19699: as_echo_n_body='eval
19700: arg=$1;
19701: case $arg in #(
19702: *"$as_nl"*)
19703: expr "X$arg" : "X\\(.*\\)$as_nl";
19704: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19705: esac;
19706: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19707: '
19708: export as_echo_n_body
19709: as_echo_n='sh -c $as_echo_n_body as_echo'
19710: fi
19711: export as_echo_body
19712: as_echo='sh -c $as_echo_body as_echo'
19713: fi
19714:
19715: # The user is always right.
19716: if test "${PATH_SEPARATOR+set}" != set; then
19717: PATH_SEPARATOR=:
19718: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19719: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19720: PATH_SEPARATOR=';'
19721: }
19722: fi
19723:
19724:
19725: # IFS
19726: # We need space, tab and new line, in precisely that order. Quoting is
19727: # there to prevent editors from complaining about space-tab.
19728: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19729: # splitting by setting IFS to empty value.)
19730: IFS=" "" $as_nl"
19731:
19732: # Find who we are. Look in the path if we contain no directory separator.
19733: as_myself=
19734: case $0 in #((
19735: *[\\/]* ) as_myself=$0 ;;
19736: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19737: for as_dir in $PATH
19738: do
19739: IFS=$as_save_IFS
19740: test -z "$as_dir" && as_dir=.
19741: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19742: done
19743: IFS=$as_save_IFS
19744:
19745: ;;
19746: esac
19747: # We did not find ourselves, most probably we were run as `sh COMMAND'
19748: # in which case we are not to be found in the path.
19749: if test "x$as_myself" = x; then
19750: as_myself=$0
19751: fi
19752: if test ! -f "$as_myself"; then
19753: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19754: exit 1
19755: fi
19756:
19757: # Unset variables that we do not need and which cause bugs (e.g. in
19758: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19759: # suppresses any "Segmentation fault" message there. '((' could
19760: # trigger a bug in pdksh 5.2.14.
19761: for as_var in BASH_ENV ENV MAIL MAILPATH
19762: do eval test x\${$as_var+set} = xset \
19763: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19764: done
19765: PS1='$ '
19766: PS2='> '
19767: PS4='+ '
19768:
19769: # NLS nuisances.
19770: LC_ALL=C
19771: export LC_ALL
19772: LANGUAGE=C
19773: export LANGUAGE
19774:
19775: # CDPATH.
19776: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19777:
19778:
19779: # as_fn_error STATUS ERROR [LINENO LOG_FD]
19780: # ----------------------------------------
19781: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19782: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19783: # script with STATUS, using 1 if that was 0.
19784: as_fn_error ()
19785: {
19786: as_status=$1; test $as_status -eq 0 && as_status=1
19787: if test "$4"; then
19788: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19789: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19790: fi
19791: $as_echo "$as_me: error: $2" >&2
19792: as_fn_exit $as_status
19793: } # as_fn_error
19794:
19795:
19796: # as_fn_set_status STATUS
19797: # -----------------------
19798: # Set $? to STATUS, without forking.
19799: as_fn_set_status ()
19800: {
19801: return $1
19802: } # as_fn_set_status
19803:
19804: # as_fn_exit STATUS
19805: # -----------------
19806: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19807: as_fn_exit ()
19808: {
19809: set +e
19810: as_fn_set_status $1
19811: exit $1
19812: } # as_fn_exit
19813:
19814: # as_fn_unset VAR
19815: # ---------------
19816: # Portably unset VAR.
19817: as_fn_unset ()
19818: {
19819: { eval $1=; unset $1;}
19820: }
19821: as_unset=as_fn_unset
19822: # as_fn_append VAR VALUE
19823: # ----------------------
19824: # Append the text in VALUE to the end of the definition contained in VAR. Take
19825: # advantage of any shell optimizations that allow amortized linear growth over
19826: # repeated appends, instead of the typical quadratic growth present in naive
19827: # implementations.
19828: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19829: eval 'as_fn_append ()
19830: {
19831: eval $1+=\$2
19832: }'
19833: else
19834: as_fn_append ()
19835: {
19836: eval $1=\$$1\$2
19837: }
19838: fi # as_fn_append
19839:
19840: # as_fn_arith ARG...
19841: # ------------------
19842: # Perform arithmetic evaluation on the ARGs, and store the result in the
19843: # global $as_val. Take advantage of shells that can avoid forks. The arguments
19844: # must be portable across $(()) and expr.
19845: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19846: eval 'as_fn_arith ()
19847: {
19848: as_val=$(( $* ))
19849: }'
19850: else
19851: as_fn_arith ()
19852: {
19853: as_val=`expr "$@" || test $? -eq 1`
19854: }
19855: fi # as_fn_arith
19856:
19857:
19858: if expr a : '\(a\)' >/dev/null 2>&1 &&
19859: test "X`expr 00001 : '.*\(...\)'`" = X001; then
19860: as_expr=expr
19861: else
19862: as_expr=false
19863: fi
19864:
19865: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19866: as_basename=basename
19867: else
19868: as_basename=false
19869: fi
19870:
19871: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19872: as_dirname=dirname
19873: else
19874: as_dirname=false
19875: fi
19876:
19877: as_me=`$as_basename -- "$0" ||
19878: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19879: X"$0" : 'X\(//\)$' \| \
19880: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19881: $as_echo X/"$0" |
19882: sed '/^.*\/\([^/][^/]*\)\/*$/{
19883: s//\1/
19884: q
19885: }
19886: /^X\/\(\/\/\)$/{
19887: s//\1/
19888: q
19889: }
19890: /^X\/\(\/\).*/{
19891: s//\1/
19892: q
19893: }
19894: s/.*/./; q'`
19895:
19896: # Avoid depending upon Character Ranges.
19897: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19898: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19899: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19900: as_cr_digits='0123456789'
19901: as_cr_alnum=$as_cr_Letters$as_cr_digits
19902:
19903: ECHO_C= ECHO_N= ECHO_T=
19904: case `echo -n x` in #(((((
19905: -n*)
19906: case `echo 'xy\c'` in
19907: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19908: xy) ECHO_C='\c';;
19909: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19910: ECHO_T=' ';;
19911: esac;;
19912: *)
19913: ECHO_N='-n';;
19914: esac
19915:
19916: rm -f conf$$ conf$$.exe conf$$.file
19917: if test -d conf$$.dir; then
19918: rm -f conf$$.dir/conf$$.file
19919: else
19920: rm -f conf$$.dir
19921: mkdir conf$$.dir 2>/dev/null
19922: fi
19923: if (echo >conf$$.file) 2>/dev/null; then
19924: if ln -s conf$$.file conf$$ 2>/dev/null; then
19925: as_ln_s='ln -s'
19926: # ... but there are two gotchas:
19927: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19928: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
1.1.1.4 ! misho 19929: # In both cases, we have to default to `cp -pR'.
1.1 misho 19930: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.1.1.4 ! misho 19931: as_ln_s='cp -pR'
1.1 misho 19932: elif ln conf$$.file conf$$ 2>/dev/null; then
19933: as_ln_s=ln
19934: else
1.1.1.4 ! misho 19935: as_ln_s='cp -pR'
1.1 misho 19936: fi
19937: else
1.1.1.4 ! misho 19938: as_ln_s='cp -pR'
1.1 misho 19939: fi
19940: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19941: rmdir conf$$.dir 2>/dev/null
19942:
19943:
19944: # as_fn_mkdir_p
19945: # -------------
19946: # Create "$as_dir" as a directory, including parents if necessary.
19947: as_fn_mkdir_p ()
19948: {
19949:
19950: case $as_dir in #(
19951: -*) as_dir=./$as_dir;;
19952: esac
19953: test -d "$as_dir" || eval $as_mkdir_p || {
19954: as_dirs=
19955: while :; do
19956: case $as_dir in #(
19957: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19958: *) as_qdir=$as_dir;;
19959: esac
19960: as_dirs="'$as_qdir' $as_dirs"
19961: as_dir=`$as_dirname -- "$as_dir" ||
19962: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19963: X"$as_dir" : 'X\(//\)[^/]' \| \
19964: X"$as_dir" : 'X\(//\)$' \| \
19965: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19966: $as_echo X"$as_dir" |
19967: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19968: s//\1/
19969: q
19970: }
19971: /^X\(\/\/\)[^/].*/{
19972: s//\1/
19973: q
19974: }
19975: /^X\(\/\/\)$/{
19976: s//\1/
19977: q
19978: }
19979: /^X\(\/\).*/{
19980: s//\1/
19981: q
19982: }
19983: s/.*/./; q'`
19984: test -d "$as_dir" && break
19985: done
19986: test -z "$as_dirs" || eval "mkdir $as_dirs"
19987: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19988:
19989:
19990: } # as_fn_mkdir_p
19991: if mkdir -p . 2>/dev/null; then
19992: as_mkdir_p='mkdir -p "$as_dir"'
19993: else
19994: test -d ./-p && rmdir ./-p
19995: as_mkdir_p=false
19996: fi
19997:
1.1.1.4 ! misho 19998:
! 19999: # as_fn_executable_p FILE
! 20000: # -----------------------
! 20001: # Test if FILE is an executable regular file.
! 20002: as_fn_executable_p ()
! 20003: {
! 20004: test -f "$1" && test -x "$1"
! 20005: } # as_fn_executable_p
! 20006: as_test_x='test -x'
! 20007: as_executable_p=as_fn_executable_p
1.1 misho 20008:
20009: # Sed expression to map a string onto a valid CPP name.
20010: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20011:
20012: # Sed expression to map a string onto a valid variable name.
20013: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20014:
20015:
20016: exec 6>&1
20017: ## ----------------------------------- ##
20018: ## Main body of $CONFIG_STATUS script. ##
20019: ## ----------------------------------- ##
20020: _ASEOF
20021: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20022:
20023: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20024: # Save the log message, to keep $0 and so on meaningful, and to
20025: # report actual input values of CONFIG_FILES etc. instead of their
20026: # values after options handling.
20027: ac_log="
1.1.1.4 ! misho 20028: This file was extended by PCRE $as_me 8.33, which was
! 20029: generated by GNU Autoconf 2.69. Invocation command line was
1.1 misho 20030:
20031: CONFIG_FILES = $CONFIG_FILES
20032: CONFIG_HEADERS = $CONFIG_HEADERS
20033: CONFIG_LINKS = $CONFIG_LINKS
20034: CONFIG_COMMANDS = $CONFIG_COMMANDS
20035: $ $0 $@
20036:
20037: on `(hostname || uname -n) 2>/dev/null | sed 1q`
20038: "
20039:
20040: _ACEOF
20041:
20042: case $ac_config_files in *"
20043: "*) set x $ac_config_files; shift; ac_config_files=$*;;
20044: esac
20045:
20046: case $ac_config_headers in *"
20047: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20048: esac
20049:
20050:
20051: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20052: # Files that config.status was made for.
20053: config_files="$ac_config_files"
20054: config_headers="$ac_config_headers"
20055: config_commands="$ac_config_commands"
20056:
20057: _ACEOF
20058:
20059: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20060: ac_cs_usage="\
20061: \`$as_me' instantiates files and other configuration actions
20062: from templates according to the current configuration. Unless the files
20063: and actions are specified as TAGs, all are instantiated by default.
20064:
20065: Usage: $0 [OPTION]... [TAG]...
20066:
20067: -h, --help print this help, then exit
20068: -V, --version print version number and configuration settings, then exit
20069: --config print configuration, then exit
20070: -q, --quiet, --silent
20071: do not print progress messages
20072: -d, --debug don't remove temporary files
20073: --recheck update $as_me by reconfiguring in the same conditions
20074: --file=FILE[:TEMPLATE]
20075: instantiate the configuration file FILE
20076: --header=FILE[:TEMPLATE]
20077: instantiate the configuration header FILE
20078:
20079: Configuration files:
20080: $config_files
20081:
20082: Configuration headers:
20083: $config_headers
20084:
20085: Configuration commands:
20086: $config_commands
20087:
20088: Report bugs to the package provider."
20089:
20090: _ACEOF
20091: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20092: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20093: ac_cs_version="\\
1.1.1.4 ! misho 20094: PCRE config.status 8.33
! 20095: configured by $0, generated by GNU Autoconf 2.69,
1.1 misho 20096: with options \\"\$ac_cs_config\\"
20097:
1.1.1.4 ! misho 20098: Copyright (C) 2012 Free Software Foundation, Inc.
1.1 misho 20099: This config.status script is free software; the Free Software Foundation
20100: gives unlimited permission to copy, distribute and modify it."
20101:
20102: ac_pwd='$ac_pwd'
20103: srcdir='$srcdir'
20104: INSTALL='$INSTALL'
20105: MKDIR_P='$MKDIR_P'
20106: AWK='$AWK'
20107: test -n "\$AWK" || AWK=awk
20108: _ACEOF
20109:
20110: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20111: # The default lists apply if the user does not specify any file.
20112: ac_need_defaults=:
20113: while test $# != 0
20114: do
20115: case $1 in
20116: --*=?*)
20117: ac_option=`expr "X$1" : 'X\([^=]*\)='`
20118: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20119: ac_shift=:
20120: ;;
20121: --*=)
20122: ac_option=`expr "X$1" : 'X\([^=]*\)='`
20123: ac_optarg=
20124: ac_shift=:
20125: ;;
20126: *)
20127: ac_option=$1
20128: ac_optarg=$2
20129: ac_shift=shift
20130: ;;
20131: esac
20132:
20133: case $ac_option in
20134: # Handling of the options.
20135: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20136: ac_cs_recheck=: ;;
20137: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20138: $as_echo "$ac_cs_version"; exit ;;
20139: --config | --confi | --conf | --con | --co | --c )
20140: $as_echo "$ac_cs_config"; exit ;;
20141: --debug | --debu | --deb | --de | --d | -d )
20142: debug=: ;;
20143: --file | --fil | --fi | --f )
20144: $ac_shift
20145: case $ac_optarg in
20146: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20147: '') as_fn_error $? "missing file argument" ;;
20148: esac
20149: as_fn_append CONFIG_FILES " '$ac_optarg'"
20150: ac_need_defaults=false;;
20151: --header | --heade | --head | --hea )
20152: $ac_shift
20153: case $ac_optarg in
20154: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20155: esac
20156: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20157: ac_need_defaults=false;;
20158: --he | --h)
20159: # Conflict between --help and --header
20160: as_fn_error $? "ambiguous option: \`$1'
20161: Try \`$0 --help' for more information.";;
20162: --help | --hel | -h )
20163: $as_echo "$ac_cs_usage"; exit ;;
20164: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20165: | -silent | --silent | --silen | --sile | --sil | --si | --s)
20166: ac_cs_silent=: ;;
20167:
20168: # This is an error.
20169: -*) as_fn_error $? "unrecognized option: \`$1'
20170: Try \`$0 --help' for more information." ;;
20171:
20172: *) as_fn_append ac_config_targets " $1"
20173: ac_need_defaults=false ;;
20174:
20175: esac
20176: shift
20177: done
20178:
20179: ac_configure_extra_args=
20180:
20181: if $ac_cs_silent; then
20182: exec 6>/dev/null
20183: ac_configure_extra_args="$ac_configure_extra_args --silent"
20184: fi
20185:
20186: _ACEOF
20187: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20188: if \$ac_cs_recheck; then
1.1.1.4 ! misho 20189: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.1 misho 20190: shift
20191: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20192: CONFIG_SHELL='$SHELL'
20193: export CONFIG_SHELL
20194: exec "\$@"
20195: fi
20196:
20197: _ACEOF
20198: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20199: exec 5>>config.log
20200: {
20201: echo
20202: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20203: ## Running $as_me. ##
20204: _ASBOX
20205: $as_echo "$ac_log"
20206: } >&5
20207:
20208: _ACEOF
20209: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20210: #
20211: # INIT-COMMANDS
20212: #
20213: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20214:
20215:
20216: # The HP-UX ksh and POSIX shell print the target directory to stdout
20217: # if CDPATH is set.
20218: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20219:
20220: sed_quote_subst='$sed_quote_subst'
20221: double_quote_subst='$double_quote_subst'
20222: delay_variable_subst='$delay_variable_subst'
20223: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20224: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20225: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20226: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20227: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20228: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20229: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20230: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20231: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20232: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20233: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1.1.1.4 ! misho 20234: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1.1 misho 20235: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20236: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20237: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20238: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20239: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20240: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20241: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20242: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20243: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20244: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20245: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20246: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20247: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20248: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20249: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20250: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20251: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20252: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20253: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20254: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20255: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20256: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20257: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20258: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20259: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20260: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20261: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20262: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20263: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20264: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20265: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20266: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20267: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20268: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20269: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20270: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20271: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20272: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20273: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20274: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20275: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20276: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20277: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20278: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20279: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20280: 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"`'
20281: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20282: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20283: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20284: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20285: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20286: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20287: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20288: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20289: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20290: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20291: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20292: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20293: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20294: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20295: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20296: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20297: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20298: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20299: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20300: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20301: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20302: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20303: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20304: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20305: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20306: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20307: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20308: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20309: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20310: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20311: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20312: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20313: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20314: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20315: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20316: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20317: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20318: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20319: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20320: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20321: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20322: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20323: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20324: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20325: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20326: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20327: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20328: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20329: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20330: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20331: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20332: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20333: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20334: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20335: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20336: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20337: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20338: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20339: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20340: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20341: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20342: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20343: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20344: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20345: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20346: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20347: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20348: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20349: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20350: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20351: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20352: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20353: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20354: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20355: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20356: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20357: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20358: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20359: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20360: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20361: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20362: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20363: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20364: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20365: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20366: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20367: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20368: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20369: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20370: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20371: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20372: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20373: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20374: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20375: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20376: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20377: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20378: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20379: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20380: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20381: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20382: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20383: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20384: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20385: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20386: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20387: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20388: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20389: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20390: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20391: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20392: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20393: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20394: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20395: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20396: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20397: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20398: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20399: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20400: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20401: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20402: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20403: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20404: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20405: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20406: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20407: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20408:
20409: LTCC='$LTCC'
20410: LTCFLAGS='$LTCFLAGS'
20411: compiler='$compiler_DEFAULT'
20412:
20413: # A function that is used when there is no print builtin or printf.
20414: func_fallback_echo ()
20415: {
20416: eval 'cat <<_LTECHO_EOF
20417: \$1
20418: _LTECHO_EOF'
20419: }
20420:
20421: # Quote evaled strings.
20422: for var in AS \
20423: DLLTOOL \
20424: OBJDUMP \
20425: SHELL \
20426: ECHO \
1.1.1.4 ! misho 20427: PATH_SEPARATOR \
1.1 misho 20428: SED \
20429: GREP \
20430: EGREP \
20431: FGREP \
20432: LD \
20433: NM \
20434: LN_S \
20435: lt_SP2NL \
20436: lt_NL2SP \
20437: reload_flag \
20438: deplibs_check_method \
20439: file_magic_cmd \
20440: file_magic_glob \
20441: want_nocaseglob \
20442: sharedlib_from_linklib_cmd \
20443: AR \
20444: AR_FLAGS \
20445: archiver_list_spec \
20446: STRIP \
20447: RANLIB \
20448: CC \
20449: CFLAGS \
20450: compiler \
20451: lt_cv_sys_global_symbol_pipe \
20452: lt_cv_sys_global_symbol_to_cdecl \
20453: lt_cv_sys_global_symbol_to_c_name_address \
20454: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20455: nm_file_list_spec \
20456: lt_prog_compiler_no_builtin_flag \
20457: lt_prog_compiler_pic \
20458: lt_prog_compiler_wl \
20459: lt_prog_compiler_static \
20460: lt_cv_prog_compiler_c_o \
20461: need_locks \
20462: MANIFEST_TOOL \
20463: DSYMUTIL \
20464: NMEDIT \
20465: LIPO \
20466: OTOOL \
20467: OTOOL64 \
20468: shrext_cmds \
20469: export_dynamic_flag_spec \
20470: whole_archive_flag_spec \
20471: compiler_needs_object \
20472: with_gnu_ld \
20473: allow_undefined_flag \
20474: no_undefined_flag \
20475: hardcode_libdir_flag_spec \
20476: hardcode_libdir_separator \
20477: exclude_expsyms \
20478: include_expsyms \
20479: file_list_spec \
20480: variables_saved_for_relink \
20481: libname_spec \
20482: library_names_spec \
20483: soname_spec \
20484: install_override_mode \
20485: finish_eval \
20486: old_striplib \
20487: striplib \
20488: compiler_lib_search_dirs \
20489: predep_objects \
20490: postdep_objects \
20491: predeps \
20492: postdeps \
20493: compiler_lib_search_path \
20494: LD_CXX \
20495: reload_flag_CXX \
20496: compiler_CXX \
20497: lt_prog_compiler_no_builtin_flag_CXX \
20498: lt_prog_compiler_pic_CXX \
20499: lt_prog_compiler_wl_CXX \
20500: lt_prog_compiler_static_CXX \
20501: lt_cv_prog_compiler_c_o_CXX \
20502: export_dynamic_flag_spec_CXX \
20503: whole_archive_flag_spec_CXX \
20504: compiler_needs_object_CXX \
20505: with_gnu_ld_CXX \
20506: allow_undefined_flag_CXX \
20507: no_undefined_flag_CXX \
20508: hardcode_libdir_flag_spec_CXX \
20509: hardcode_libdir_separator_CXX \
20510: exclude_expsyms_CXX \
20511: include_expsyms_CXX \
20512: file_list_spec_CXX \
20513: compiler_lib_search_dirs_CXX \
20514: predep_objects_CXX \
20515: postdep_objects_CXX \
20516: predeps_CXX \
20517: postdeps_CXX \
20518: compiler_lib_search_path_CXX; do
20519: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20520: *[\\\\\\\`\\"\\\$]*)
20521: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20522: ;;
20523: *)
20524: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20525: ;;
20526: esac
20527: done
20528:
20529: # Double-quote double-evaled strings.
20530: for var in reload_cmds \
20531: old_postinstall_cmds \
20532: old_postuninstall_cmds \
20533: old_archive_cmds \
20534: extract_expsyms_cmds \
20535: old_archive_from_new_cmds \
20536: old_archive_from_expsyms_cmds \
20537: archive_cmds \
20538: archive_expsym_cmds \
20539: module_cmds \
20540: module_expsym_cmds \
20541: export_symbols_cmds \
20542: prelink_cmds \
20543: postlink_cmds \
20544: postinstall_cmds \
20545: postuninstall_cmds \
20546: finish_cmds \
20547: sys_lib_search_path_spec \
20548: sys_lib_dlsearch_path_spec \
20549: reload_cmds_CXX \
20550: old_archive_cmds_CXX \
20551: old_archive_from_new_cmds_CXX \
20552: old_archive_from_expsyms_cmds_CXX \
20553: archive_cmds_CXX \
20554: archive_expsym_cmds_CXX \
20555: module_cmds_CXX \
20556: module_expsym_cmds_CXX \
20557: export_symbols_cmds_CXX \
20558: prelink_cmds_CXX \
20559: postlink_cmds_CXX; do
20560: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20561: *[\\\\\\\`\\"\\\$]*)
20562: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20563: ;;
20564: *)
20565: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20566: ;;
20567: esac
20568: done
20569:
20570: ac_aux_dir='$ac_aux_dir'
20571: xsi_shell='$xsi_shell'
20572: lt_shell_append='$lt_shell_append'
20573:
20574: # See if we are running on zsh, and set the options which allow our
20575: # commands through without removal of \ escapes INIT.
20576: if test -n "\${ZSH_VERSION+set}" ; then
20577: setopt NO_GLOB_SUBST
20578: fi
20579:
20580:
20581: PACKAGE='$PACKAGE'
20582: VERSION='$VERSION'
20583: TIMESTAMP='$TIMESTAMP'
20584: RM='$RM'
20585: ofile='$ofile'
20586:
20587:
20588:
20589:
20590:
20591:
20592: _ACEOF
20593:
20594: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20595:
20596: # Handling of arguments.
20597: for ac_config_target in $ac_config_targets
20598: do
20599: case $ac_config_target in
20600: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20601: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20602: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20603: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20604: "libpcre.pc") CONFIG_FILES="$CONFIG_FILES libpcre.pc" ;;
1.1.1.2 misho 20605: "libpcre16.pc") CONFIG_FILES="$CONFIG_FILES libpcre16.pc" ;;
1.1.1.4 ! misho 20606: "libpcre32.pc") CONFIG_FILES="$CONFIG_FILES libpcre32.pc" ;;
1.1 misho 20607: "libpcreposix.pc") CONFIG_FILES="$CONFIG_FILES libpcreposix.pc" ;;
20608: "libpcrecpp.pc") CONFIG_FILES="$CONFIG_FILES libpcrecpp.pc" ;;
20609: "pcre-config") CONFIG_FILES="$CONFIG_FILES pcre-config" ;;
20610: "pcre.h") CONFIG_FILES="$CONFIG_FILES pcre.h" ;;
20611: "pcre_stringpiece.h") CONFIG_FILES="$CONFIG_FILES pcre_stringpiece.h" ;;
20612: "pcrecpparg.h") CONFIG_FILES="$CONFIG_FILES pcrecpparg.h" ;;
20613: "script-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS script-chmod" ;;
20614: "delete-old-chartables") CONFIG_COMMANDS="$CONFIG_COMMANDS delete-old-chartables" ;;
20615:
20616: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20617: esac
20618: done
20619:
20620:
20621: # If the user did not use the arguments to specify the items to instantiate,
20622: # then the envvar interface is used. Set only those that are not.
20623: # We use the long form for the default assignment because of an extremely
20624: # bizarre bug on SunOS 4.1.3.
20625: if $ac_need_defaults; then
20626: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20627: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20628: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20629: fi
20630:
20631: # Have a temporary directory for convenience. Make it in the build tree
20632: # simply because there is no reason against having it here, and in addition,
20633: # creating and moving files from /tmp can sometimes cause problems.
20634: # Hook for its removal unless debugging.
20635: # Note that there is a small window in which the directory will not be cleaned:
20636: # after its creation but before its name has been assigned to `$tmp'.
20637: $debug ||
20638: {
20639: tmp= ac_tmp=
20640: trap 'exit_status=$?
20641: : "${ac_tmp:=$tmp}"
20642: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20643: ' 0
20644: trap 'as_fn_exit 1' 1 2 13 15
20645: }
20646: # Create a (secure) tmp directory for tmp files.
20647:
20648: {
20649: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20650: test -d "$tmp"
20651: } ||
20652: {
20653: tmp=./conf$$-$RANDOM
20654: (umask 077 && mkdir "$tmp")
20655: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20656: ac_tmp=$tmp
20657:
20658: # Set up the scripts for CONFIG_FILES section.
20659: # No need to generate them if there are no CONFIG_FILES.
20660: # This happens for instance with `./config.status config.h'.
20661: if test -n "$CONFIG_FILES"; then
20662:
20663:
20664: ac_cr=`echo X | tr X '\015'`
20665: # On cygwin, bash can eat \r inside `` if the user requested igncr.
20666: # But we know of no other shell where ac_cr would be empty at this
20667: # point, so we can use a bashism as a fallback.
20668: if test "x$ac_cr" = x; then
20669: eval ac_cr=\$\'\\r\'
20670: fi
20671: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20672: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20673: ac_cs_awk_cr='\\r'
20674: else
20675: ac_cs_awk_cr=$ac_cr
20676: fi
20677:
20678: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20679: _ACEOF
20680:
20681:
20682: {
20683: echo "cat >conf$$subs.awk <<_ACEOF" &&
20684: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20685: echo "_ACEOF"
20686: } >conf$$subs.sh ||
20687: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20688: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20689: ac_delim='%!_!# '
20690: for ac_last_try in false false false false false :; do
20691: . ./conf$$subs.sh ||
20692: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20693:
20694: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20695: if test $ac_delim_n = $ac_delim_num; then
20696: break
20697: elif $ac_last_try; then
20698: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20699: else
20700: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20701: fi
20702: done
20703: rm -f conf$$subs.sh
20704:
20705: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20706: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20707: _ACEOF
20708: sed -n '
20709: h
20710: s/^/S["/; s/!.*/"]=/
20711: p
20712: g
20713: s/^[^!]*!//
20714: :repl
20715: t repl
20716: s/'"$ac_delim"'$//
20717: t delim
20718: :nl
20719: h
20720: s/\(.\{148\}\)..*/\1/
20721: t more1
20722: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20723: p
20724: n
20725: b repl
20726: :more1
20727: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20728: p
20729: g
20730: s/.\{148\}//
20731: t nl
20732: :delim
20733: h
20734: s/\(.\{148\}\)..*/\1/
20735: t more2
20736: s/["\\]/\\&/g; s/^/"/; s/$/"/
20737: p
20738: b
20739: :more2
20740: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20741: p
20742: g
20743: s/.\{148\}//
20744: t delim
20745: ' <conf$$subs.awk | sed '
20746: /^[^""]/{
20747: N
20748: s/\n//
20749: }
20750: ' >>$CONFIG_STATUS || ac_write_fail=1
20751: rm -f conf$$subs.awk
20752: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20753: _ACAWK
20754: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20755: for (key in S) S_is_set[key] = 1
20756: FS = ""
20757:
20758: }
20759: {
20760: line = $ 0
20761: nfields = split(line, field, "@")
20762: substed = 0
20763: len = length(field[1])
20764: for (i = 2; i < nfields; i++) {
20765: key = field[i]
20766: keylen = length(key)
20767: if (S_is_set[key]) {
20768: value = S[key]
20769: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20770: len += length(value) + length(field[++i])
20771: substed = 1
20772: } else
20773: len += 1 + keylen
20774: }
20775:
20776: print line
20777: }
20778:
20779: _ACAWK
20780: _ACEOF
20781: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20782: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20783: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20784: else
20785: cat
20786: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20787: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20788: _ACEOF
20789:
20790: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20791: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20792: # trailing colons and then remove the whole line if VPATH becomes empty
20793: # (actually we leave an empty line to preserve line numbers).
20794: if test "x$srcdir" = x.; then
20795: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20796: h
20797: s///
20798: s/^/:/
20799: s/[ ]*$/:/
20800: s/:\$(srcdir):/:/g
20801: s/:\${srcdir}:/:/g
20802: s/:@srcdir@:/:/g
20803: s/^:*//
20804: s/:*$//
20805: x
20806: s/\(=[ ]*\).*/\1/
20807: G
20808: s/\n//
20809: s/^[^=]*=[ ]*$//
20810: }'
20811: fi
20812:
20813: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20814: fi # test -n "$CONFIG_FILES"
20815:
20816: # Set up the scripts for CONFIG_HEADERS section.
20817: # No need to generate them if there are no CONFIG_HEADERS.
20818: # This happens for instance with `./config.status Makefile'.
20819: if test -n "$CONFIG_HEADERS"; then
20820: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20821: BEGIN {
20822: _ACEOF
20823:
20824: # Transform confdefs.h into an awk script `defines.awk', embedded as
20825: # here-document in config.status, that substitutes the proper values into
20826: # config.h.in to produce config.h.
20827:
20828: # Create a delimiter string that does not exist in confdefs.h, to ease
20829: # handling of long lines.
20830: ac_delim='%!_!# '
20831: for ac_last_try in false false :; do
20832: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20833: if test -z "$ac_tt"; then
20834: break
20835: elif $ac_last_try; then
20836: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20837: else
20838: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20839: fi
20840: done
20841:
20842: # For the awk script, D is an array of macro values keyed by name,
20843: # likewise P contains macro parameters if any. Preserve backslash
20844: # newline sequences.
20845:
20846: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20847: sed -n '
20848: s/.\{148\}/&'"$ac_delim"'/g
20849: t rset
20850: :rset
20851: s/^[ ]*#[ ]*define[ ][ ]*/ /
20852: t def
20853: d
20854: :def
20855: s/\\$//
20856: t bsnl
20857: s/["\\]/\\&/g
20858: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20859: D["\1"]=" \3"/p
20860: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20861: d
20862: :bsnl
20863: s/["\\]/\\&/g
20864: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20865: D["\1"]=" \3\\\\\\n"\\/p
20866: t cont
20867: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20868: t cont
20869: d
20870: :cont
20871: n
20872: s/.\{148\}/&'"$ac_delim"'/g
20873: t clear
20874: :clear
20875: s/\\$//
20876: t bsnlc
20877: s/["\\]/\\&/g; s/^/"/; s/$/"/p
20878: d
20879: :bsnlc
20880: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20881: b cont
20882: ' <confdefs.h | sed '
20883: s/'"$ac_delim"'/"\\\
20884: "/g' >>$CONFIG_STATUS || ac_write_fail=1
20885:
20886: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20887: for (key in D) D_is_set[key] = 1
20888: FS = ""
20889: }
20890: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20891: line = \$ 0
20892: split(line, arg, " ")
20893: if (arg[1] == "#") {
20894: defundef = arg[2]
20895: mac1 = arg[3]
20896: } else {
20897: defundef = substr(arg[1], 2)
20898: mac1 = arg[2]
20899: }
20900: split(mac1, mac2, "(") #)
20901: macro = mac2[1]
20902: prefix = substr(line, 1, index(line, defundef) - 1)
20903: if (D_is_set[macro]) {
20904: # Preserve the white space surrounding the "#".
20905: print prefix "define", macro P[macro] D[macro]
20906: next
20907: } else {
20908: # Replace #undef with comments. This is necessary, for example,
20909: # in the case of _POSIX_SOURCE, which is predefined and required
20910: # on some systems where configure will not decide to define it.
20911: if (defundef == "undef") {
20912: print "/*", prefix defundef, macro, "*/"
20913: next
20914: }
20915: }
20916: }
20917: { print }
20918: _ACAWK
20919: _ACEOF
20920: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20921: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20922: fi # test -n "$CONFIG_HEADERS"
20923:
20924:
20925: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20926: shift
20927: for ac_tag
20928: do
20929: case $ac_tag in
20930: :[FHLC]) ac_mode=$ac_tag; continue;;
20931: esac
20932: case $ac_mode$ac_tag in
20933: :[FHL]*:*);;
20934: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20935: :[FH]-) ac_tag=-:-;;
20936: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20937: esac
20938: ac_save_IFS=$IFS
20939: IFS=:
20940: set x $ac_tag
20941: IFS=$ac_save_IFS
20942: shift
20943: ac_file=$1
20944: shift
20945:
20946: case $ac_mode in
20947: :L) ac_source=$1;;
20948: :[FH])
20949: ac_file_inputs=
20950: for ac_f
20951: do
20952: case $ac_f in
20953: -) ac_f="$ac_tmp/stdin";;
20954: *) # Look for the file first in the build tree, then in the source tree
20955: # (if the path is not absolute). The absolute path cannot be DOS-style,
20956: # because $ac_f cannot contain `:'.
20957: test -f "$ac_f" ||
20958: case $ac_f in
20959: [\\/$]*) false;;
20960: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20961: esac ||
20962: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20963: esac
20964: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20965: as_fn_append ac_file_inputs " '$ac_f'"
20966: done
20967:
20968: # Let's still pretend it is `configure' which instantiates (i.e., don't
20969: # use $as_me), people would be surprised to read:
20970: # /* config.h. Generated by config.status. */
20971: configure_input='Generated from '`
20972: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20973: `' by configure.'
20974: if test x"$ac_file" != x-; then
20975: configure_input="$ac_file. $configure_input"
20976: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20977: $as_echo "$as_me: creating $ac_file" >&6;}
20978: fi
20979: # Neutralize special characters interpreted by sed in replacement strings.
20980: case $configure_input in #(
20981: *\&* | *\|* | *\\* )
20982: ac_sed_conf_input=`$as_echo "$configure_input" |
20983: sed 's/[\\\\&|]/\\\\&/g'`;; #(
20984: *) ac_sed_conf_input=$configure_input;;
20985: esac
20986:
20987: case $ac_tag in
20988: *:-:* | *:-) cat >"$ac_tmp/stdin" \
20989: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20990: esac
20991: ;;
20992: esac
20993:
20994: ac_dir=`$as_dirname -- "$ac_file" ||
20995: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20996: X"$ac_file" : 'X\(//\)[^/]' \| \
20997: X"$ac_file" : 'X\(//\)$' \| \
20998: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20999: $as_echo X"$ac_file" |
21000: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21001: s//\1/
21002: q
21003: }
21004: /^X\(\/\/\)[^/].*/{
21005: s//\1/
21006: q
21007: }
21008: /^X\(\/\/\)$/{
21009: s//\1/
21010: q
21011: }
21012: /^X\(\/\).*/{
21013: s//\1/
21014: q
21015: }
21016: s/.*/./; q'`
21017: as_dir="$ac_dir"; as_fn_mkdir_p
21018: ac_builddir=.
21019:
21020: case "$ac_dir" in
21021: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21022: *)
21023: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21024: # A ".." for each directory in $ac_dir_suffix.
21025: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21026: case $ac_top_builddir_sub in
21027: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21028: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21029: esac ;;
21030: esac
21031: ac_abs_top_builddir=$ac_pwd
21032: ac_abs_builddir=$ac_pwd$ac_dir_suffix
21033: # for backward compatibility:
21034: ac_top_builddir=$ac_top_build_prefix
21035:
21036: case $srcdir in
21037: .) # We are building in place.
21038: ac_srcdir=.
21039: ac_top_srcdir=$ac_top_builddir_sub
21040: ac_abs_top_srcdir=$ac_pwd ;;
21041: [\\/]* | ?:[\\/]* ) # Absolute name.
21042: ac_srcdir=$srcdir$ac_dir_suffix;
21043: ac_top_srcdir=$srcdir
21044: ac_abs_top_srcdir=$srcdir ;;
21045: *) # Relative name.
21046: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21047: ac_top_srcdir=$ac_top_build_prefix$srcdir
21048: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21049: esac
21050: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21051:
21052:
21053: case $ac_mode in
21054: :F)
21055: #
21056: # CONFIG_FILE
21057: #
21058:
21059: case $INSTALL in
21060: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21061: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21062: esac
21063: ac_MKDIR_P=$MKDIR_P
21064: case $MKDIR_P in
21065: [\\/$]* | ?:[\\/]* ) ;;
21066: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21067: esac
21068: _ACEOF
21069:
21070: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21071: # If the template does not know about datarootdir, expand it.
21072: # FIXME: This hack should be removed a few years after 2.60.
21073: ac_datarootdir_hack=; ac_datarootdir_seen=
21074: ac_sed_dataroot='
21075: /datarootdir/ {
21076: p
21077: q
21078: }
21079: /@datadir@/p
21080: /@docdir@/p
21081: /@infodir@/p
21082: /@localedir@/p
21083: /@mandir@/p'
21084: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21085: *datarootdir*) ac_datarootdir_seen=yes;;
21086: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21087: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21088: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21089: _ACEOF
21090: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21091: ac_datarootdir_hack='
21092: s&@datadir@&$datadir&g
21093: s&@docdir@&$docdir&g
21094: s&@infodir@&$infodir&g
21095: s&@localedir@&$localedir&g
21096: s&@mandir@&$mandir&g
21097: s&\\\${datarootdir}&$datarootdir&g' ;;
21098: esac
21099: _ACEOF
21100:
21101: # Neutralize VPATH when `$srcdir' = `.'.
21102: # Shell code in configure.ac might set extrasub.
21103: # FIXME: do we really want to maintain this feature?
21104: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21105: ac_sed_extra="$ac_vpsub
21106: $extrasub
21107: _ACEOF
21108: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21109: :t
21110: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21111: s|@configure_input@|$ac_sed_conf_input|;t t
21112: s&@top_builddir@&$ac_top_builddir_sub&;t t
21113: s&@top_build_prefix@&$ac_top_build_prefix&;t t
21114: s&@srcdir@&$ac_srcdir&;t t
21115: s&@abs_srcdir@&$ac_abs_srcdir&;t t
21116: s&@top_srcdir@&$ac_top_srcdir&;t t
21117: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21118: s&@builddir@&$ac_builddir&;t t
21119: s&@abs_builddir@&$ac_abs_builddir&;t t
21120: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21121: s&@INSTALL@&$ac_INSTALL&;t t
21122: s&@MKDIR_P@&$ac_MKDIR_P&;t t
21123: $ac_datarootdir_hack
21124: "
21125: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21126: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21127:
21128: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21129: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21130: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21131: "$ac_tmp/out"`; test -z "$ac_out"; } &&
21132: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21133: which seems to be undefined. Please make sure it is defined" >&5
21134: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21135: which seems to be undefined. Please make sure it is defined" >&2;}
21136:
21137: rm -f "$ac_tmp/stdin"
21138: case $ac_file in
21139: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21140: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21141: esac \
21142: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21143: ;;
21144: :H)
21145: #
21146: # CONFIG_HEADER
21147: #
21148: if test x"$ac_file" != x-; then
21149: {
21150: $as_echo "/* $configure_input */" \
21151: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21152: } >"$ac_tmp/config.h" \
21153: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21154: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21155: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21156: $as_echo "$as_me: $ac_file is unchanged" >&6;}
21157: else
21158: rm -f "$ac_file"
21159: mv "$ac_tmp/config.h" "$ac_file" \
21160: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21161: fi
21162: else
21163: $as_echo "/* $configure_input */" \
21164: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21165: || as_fn_error $? "could not create -" "$LINENO" 5
21166: fi
21167: # Compute "$ac_file"'s index in $config_headers.
21168: _am_arg="$ac_file"
21169: _am_stamp_count=1
21170: for _am_header in $config_headers :; do
21171: case $_am_header in
21172: $_am_arg | $_am_arg:* )
21173: break ;;
21174: * )
21175: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21176: esac
21177: done
21178: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21179: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21180: X"$_am_arg" : 'X\(//\)[^/]' \| \
21181: X"$_am_arg" : 'X\(//\)$' \| \
21182: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21183: $as_echo X"$_am_arg" |
21184: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21185: s//\1/
21186: q
21187: }
21188: /^X\(\/\/\)[^/].*/{
21189: s//\1/
21190: q
21191: }
21192: /^X\(\/\/\)$/{
21193: s//\1/
21194: q
21195: }
21196: /^X\(\/\).*/{
21197: s//\1/
21198: q
21199: }
21200: s/.*/./; q'`/stamp-h$_am_stamp_count
21201: ;;
21202:
21203: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21204: $as_echo "$as_me: executing $ac_file commands" >&6;}
21205: ;;
21206: esac
21207:
21208:
21209: case $ac_file$ac_mode in
21210: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.1.1.4 ! misho 21211: # Older Autoconf quotes --file arguments for eval, but not when files
1.1 misho 21212: # are listed without --file. Let's play safe and only enable the eval
21213: # if we detect the quoting.
21214: case $CONFIG_FILES in
21215: *\'*) eval set x "$CONFIG_FILES" ;;
21216: *) set x $CONFIG_FILES ;;
21217: esac
21218: shift
21219: for mf
21220: do
21221: # Strip MF so we end up with the name of the file.
21222: mf=`echo "$mf" | sed -e 's/:.*$//'`
21223: # Check whether this is an Automake generated Makefile or not.
1.1.1.4 ! misho 21224: # We used to match only the files named 'Makefile.in', but
1.1 misho 21225: # some people rename them; so instead we look at the file content.
21226: # Grep'ing the first line is not enough: some people post-process
21227: # each Makefile.in and add a new line on top of each file to say so.
21228: # Grep'ing the whole file is not good either: AIX grep has a line
21229: # limit of 2048, but all sed's we know have understand at least 4000.
21230: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21231: dirpart=`$as_dirname -- "$mf" ||
21232: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21233: X"$mf" : 'X\(//\)[^/]' \| \
21234: X"$mf" : 'X\(//\)$' \| \
21235: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21236: $as_echo X"$mf" |
21237: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21238: s//\1/
21239: q
21240: }
21241: /^X\(\/\/\)[^/].*/{
21242: s//\1/
21243: q
21244: }
21245: /^X\(\/\/\)$/{
21246: s//\1/
21247: q
21248: }
21249: /^X\(\/\).*/{
21250: s//\1/
21251: q
21252: }
21253: s/.*/./; q'`
21254: else
21255: continue
21256: fi
21257: # Extract the definition of DEPDIR, am__include, and am__quote
1.1.1.4 ! misho 21258: # from the Makefile without running 'make'.
1.1 misho 21259: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21260: test -z "$DEPDIR" && continue
21261: am__include=`sed -n 's/^am__include = //p' < "$mf"`
1.1.1.4 ! misho 21262: test -z "$am__include" && continue
1.1 misho 21263: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21264: # Find all dependency output files, they are included files with
21265: # $(DEPDIR) in their names. We invoke sed twice because it is the
21266: # simplest approach to changing $(DEPDIR) to its actual value in the
21267: # expansion.
21268: for file in `sed -n "
21269: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1.1.1.4 ! misho 21270: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1.1 misho 21271: # Make sure the directory exists.
21272: test -f "$dirpart/$file" && continue
21273: fdir=`$as_dirname -- "$file" ||
21274: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21275: X"$file" : 'X\(//\)[^/]' \| \
21276: X"$file" : 'X\(//\)$' \| \
21277: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21278: $as_echo X"$file" |
21279: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21280: s//\1/
21281: q
21282: }
21283: /^X\(\/\/\)[^/].*/{
21284: s//\1/
21285: q
21286: }
21287: /^X\(\/\/\)$/{
21288: s//\1/
21289: q
21290: }
21291: /^X\(\/\).*/{
21292: s//\1/
21293: q
21294: }
21295: s/.*/./; q'`
21296: as_dir=$dirpart/$fdir; as_fn_mkdir_p
21297: # echo "creating $dirpart/$file"
21298: echo '# dummy' > "$dirpart/$file"
21299: done
21300: done
21301: }
21302: ;;
21303: "libtool":C)
21304:
21305: # See if we are running on zsh, and set the options which allow our
21306: # commands through without removal of \ escapes.
21307: if test -n "${ZSH_VERSION+set}" ; then
21308: setopt NO_GLOB_SUBST
21309: fi
21310:
21311: cfgfile="${ofile}T"
21312: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21313: $RM "$cfgfile"
21314:
21315: cat <<_LT_EOF >> "$cfgfile"
21316: #! $SHELL
21317:
21318: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21319: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21320: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21321: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21322: #
21323: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1.1.1.4 ! misho 21324: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
! 21325: # Foundation, Inc.
1.1 misho 21326: # Written by Gordon Matzigkeit, 1996
21327: #
21328: # This file is part of GNU Libtool.
21329: #
21330: # GNU Libtool is free software; you can redistribute it and/or
21331: # modify it under the terms of the GNU General Public License as
21332: # published by the Free Software Foundation; either version 2 of
21333: # the License, or (at your option) any later version.
21334: #
21335: # As a special exception to the GNU General Public License,
21336: # if you distribute this file as part of a program or library that
21337: # is built using GNU Libtool, you may include this file under the
21338: # same distribution terms that you use for the rest of that program.
21339: #
21340: # GNU Libtool is distributed in the hope that it will be useful,
21341: # but WITHOUT ANY WARRANTY; without even the implied warranty of
21342: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21343: # GNU General Public License for more details.
21344: #
21345: # You should have received a copy of the GNU General Public License
21346: # along with GNU Libtool; see the file COPYING. If not, a copy
21347: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21348: # obtained by writing to the Free Software Foundation, Inc.,
21349: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21350:
21351:
21352: # The names of the tagged configurations supported by this script.
21353: available_tags="CXX "
21354:
21355: # ### BEGIN LIBTOOL CONFIG
21356:
21357: # Assembler program.
21358: AS=$lt_AS
21359:
21360: # DLL creation program.
21361: DLLTOOL=$lt_DLLTOOL
21362:
21363: # Object dumper program.
21364: OBJDUMP=$lt_OBJDUMP
21365:
21366: # Which release of libtool.m4 was used?
21367: macro_version=$macro_version
21368: macro_revision=$macro_revision
21369:
21370: # Whether or not to build shared libraries.
21371: build_libtool_libs=$enable_shared
21372:
21373: # Whether or not to build static libraries.
21374: build_old_libs=$enable_static
21375:
21376: # What type of objects to build.
21377: pic_mode=$pic_mode
21378:
21379: # Whether or not to optimize for fast installation.
21380: fast_install=$enable_fast_install
21381:
21382: # Shell to use when invoking shell scripts.
21383: SHELL=$lt_SHELL
21384:
21385: # An echo program that protects backslashes.
21386: ECHO=$lt_ECHO
21387:
1.1.1.4 ! misho 21388: # The PATH separator for the build system.
! 21389: PATH_SEPARATOR=$lt_PATH_SEPARATOR
! 21390:
1.1 misho 21391: # The host system.
21392: host_alias=$host_alias
21393: host=$host
21394: host_os=$host_os
21395:
21396: # The build system.
21397: build_alias=$build_alias
21398: build=$build
21399: build_os=$build_os
21400:
21401: # A sed program that does not truncate output.
21402: SED=$lt_SED
21403:
21404: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21405: Xsed="\$SED -e 1s/^X//"
21406:
21407: # A grep program that handles long lines.
21408: GREP=$lt_GREP
21409:
21410: # An ERE matcher.
21411: EGREP=$lt_EGREP
21412:
21413: # A literal string matcher.
21414: FGREP=$lt_FGREP
21415:
21416: # A BSD- or MS-compatible name lister.
21417: NM=$lt_NM
21418:
21419: # Whether we need soft or hard links.
21420: LN_S=$lt_LN_S
21421:
21422: # What is the maximum length of a command?
21423: max_cmd_len=$max_cmd_len
21424:
21425: # Object file suffix (normally "o").
21426: objext=$ac_objext
21427:
21428: # Executable file suffix (normally "").
21429: exeext=$exeext
21430:
21431: # whether the shell understands "unset".
21432: lt_unset=$lt_unset
21433:
21434: # turn spaces into newlines.
21435: SP2NL=$lt_lt_SP2NL
21436:
21437: # turn newlines into spaces.
21438: NL2SP=$lt_lt_NL2SP
21439:
21440: # convert \$build file names to \$host format.
21441: to_host_file_cmd=$lt_cv_to_host_file_cmd
21442:
21443: # convert \$build files to toolchain format.
21444: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21445:
21446: # Method to check whether dependent libraries are shared objects.
21447: deplibs_check_method=$lt_deplibs_check_method
21448:
21449: # Command to use when deplibs_check_method = "file_magic".
21450: file_magic_cmd=$lt_file_magic_cmd
21451:
21452: # How to find potential files when deplibs_check_method = "file_magic".
21453: file_magic_glob=$lt_file_magic_glob
21454:
21455: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21456: want_nocaseglob=$lt_want_nocaseglob
21457:
21458: # Command to associate shared and link libraries.
21459: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21460:
21461: # The archiver.
21462: AR=$lt_AR
21463:
21464: # Flags to create an archive.
21465: AR_FLAGS=$lt_AR_FLAGS
21466:
21467: # How to feed a file listing to the archiver.
21468: archiver_list_spec=$lt_archiver_list_spec
21469:
21470: # A symbol stripping program.
21471: STRIP=$lt_STRIP
21472:
21473: # Commands used to install an old-style archive.
21474: RANLIB=$lt_RANLIB
21475: old_postinstall_cmds=$lt_old_postinstall_cmds
21476: old_postuninstall_cmds=$lt_old_postuninstall_cmds
21477:
21478: # Whether to use a lock for old archive extraction.
21479: lock_old_archive_extraction=$lock_old_archive_extraction
21480:
21481: # A C compiler.
21482: LTCC=$lt_CC
21483:
21484: # LTCC compiler flags.
21485: LTCFLAGS=$lt_CFLAGS
21486:
21487: # Take the output of nm and produce a listing of raw symbols and C names.
21488: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21489:
21490: # Transform the output of nm in a proper C declaration.
21491: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21492:
21493: # Transform the output of nm in a C name address pair.
21494: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21495:
21496: # Transform the output of nm in a C name address pair when lib prefix is needed.
21497: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21498:
21499: # Specify filename containing input files for \$NM.
21500: nm_file_list_spec=$lt_nm_file_list_spec
21501:
21502: # The root where to search for dependent libraries,and in which our libraries should be installed.
21503: lt_sysroot=$lt_sysroot
21504:
21505: # The name of the directory that contains temporary libtool files.
21506: objdir=$objdir
21507:
21508: # Used to examine libraries when file_magic_cmd begins with "file".
21509: MAGIC_CMD=$MAGIC_CMD
21510:
21511: # Must we lock files when doing compilation?
21512: need_locks=$lt_need_locks
21513:
21514: # Manifest tool.
21515: MANIFEST_TOOL=$lt_MANIFEST_TOOL
21516:
21517: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21518: DSYMUTIL=$lt_DSYMUTIL
21519:
21520: # Tool to change global to local symbols on Mac OS X.
21521: NMEDIT=$lt_NMEDIT
21522:
21523: # Tool to manipulate fat objects and archives on Mac OS X.
21524: LIPO=$lt_LIPO
21525:
21526: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21527: OTOOL=$lt_OTOOL
21528:
21529: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21530: OTOOL64=$lt_OTOOL64
21531:
21532: # Old archive suffix (normally "a").
21533: libext=$libext
21534:
21535: # Shared library suffix (normally ".so").
21536: shrext_cmds=$lt_shrext_cmds
21537:
21538: # The commands to extract the exported symbol list from a shared archive.
21539: extract_expsyms_cmds=$lt_extract_expsyms_cmds
21540:
21541: # Variables whose values should be saved in libtool wrapper scripts and
21542: # restored at link time.
21543: variables_saved_for_relink=$lt_variables_saved_for_relink
21544:
21545: # Do we need the "lib" prefix for modules?
21546: need_lib_prefix=$need_lib_prefix
21547:
21548: # Do we need a version for libraries?
21549: need_version=$need_version
21550:
21551: # Library versioning type.
21552: version_type=$version_type
21553:
21554: # Shared library runtime path variable.
21555: runpath_var=$runpath_var
21556:
21557: # Shared library path variable.
21558: shlibpath_var=$shlibpath_var
21559:
21560: # Is shlibpath searched before the hard-coded library search path?
21561: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21562:
21563: # Format of library name prefix.
21564: libname_spec=$lt_libname_spec
21565:
21566: # List of archive names. First name is the real one, the rest are links.
21567: # The last name is the one that the linker finds with -lNAME
21568: library_names_spec=$lt_library_names_spec
21569:
21570: # The coded name of the library, if different from the real name.
21571: soname_spec=$lt_soname_spec
21572:
21573: # Permission mode override for installation of shared libraries.
21574: install_override_mode=$lt_install_override_mode
21575:
21576: # Command to use after installation of a shared archive.
21577: postinstall_cmds=$lt_postinstall_cmds
21578:
21579: # Command to use after uninstallation of a shared archive.
21580: postuninstall_cmds=$lt_postuninstall_cmds
21581:
21582: # Commands used to finish a libtool library installation in a directory.
21583: finish_cmds=$lt_finish_cmds
21584:
21585: # As "finish_cmds", except a single script fragment to be evaled but
21586: # not shown.
21587: finish_eval=$lt_finish_eval
21588:
21589: # Whether we should hardcode library paths into libraries.
21590: hardcode_into_libs=$hardcode_into_libs
21591:
21592: # Compile-time system search path for libraries.
21593: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21594:
21595: # Run-time system search path for libraries.
21596: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21597:
21598: # Whether dlopen is supported.
21599: dlopen_support=$enable_dlopen
21600:
21601: # Whether dlopen of programs is supported.
21602: dlopen_self=$enable_dlopen_self
21603:
21604: # Whether dlopen of statically linked programs is supported.
21605: dlopen_self_static=$enable_dlopen_self_static
21606:
21607: # Commands to strip libraries.
21608: old_striplib=$lt_old_striplib
21609: striplib=$lt_striplib
21610:
21611:
21612: # The linker used to build libraries.
21613: LD=$lt_LD
21614:
21615: # How to create reloadable object files.
21616: reload_flag=$lt_reload_flag
21617: reload_cmds=$lt_reload_cmds
21618:
21619: # Commands used to build an old-style archive.
21620: old_archive_cmds=$lt_old_archive_cmds
21621:
21622: # A language specific compiler.
21623: CC=$lt_compiler
21624:
21625: # Is the compiler the GNU compiler?
21626: with_gcc=$GCC
21627:
21628: # Compiler flag to turn off builtin functions.
21629: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21630:
21631: # Additional compiler flags for building library objects.
21632: pic_flag=$lt_lt_prog_compiler_pic
21633:
21634: # How to pass a linker flag through the compiler.
21635: wl=$lt_lt_prog_compiler_wl
21636:
21637: # Compiler flag to prevent dynamic linking.
21638: link_static_flag=$lt_lt_prog_compiler_static
21639:
21640: # Does compiler simultaneously support -c and -o options?
21641: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21642:
21643: # Whether or not to add -lc for building shared libraries.
21644: build_libtool_need_lc=$archive_cmds_need_lc
21645:
21646: # Whether or not to disallow shared libs when runtime libs are static.
21647: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21648:
21649: # Compiler flag to allow reflexive dlopens.
21650: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21651:
21652: # Compiler flag to generate shared objects directly from archives.
21653: whole_archive_flag_spec=$lt_whole_archive_flag_spec
21654:
21655: # Whether the compiler copes with passing no objects directly.
21656: compiler_needs_object=$lt_compiler_needs_object
21657:
21658: # Create an old-style archive from a shared archive.
21659: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21660:
21661: # Create a temporary old-style archive to link instead of a shared archive.
21662: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21663:
21664: # Commands used to build a shared archive.
21665: archive_cmds=$lt_archive_cmds
21666: archive_expsym_cmds=$lt_archive_expsym_cmds
21667:
21668: # Commands used to build a loadable module if different from building
21669: # a shared archive.
21670: module_cmds=$lt_module_cmds
21671: module_expsym_cmds=$lt_module_expsym_cmds
21672:
21673: # Whether we are building with GNU ld or not.
21674: with_gnu_ld=$lt_with_gnu_ld
21675:
21676: # Flag that allows shared libraries with undefined symbols to be built.
21677: allow_undefined_flag=$lt_allow_undefined_flag
21678:
21679: # Flag that enforces no undefined symbols.
21680: no_undefined_flag=$lt_no_undefined_flag
21681:
21682: # Flag to hardcode \$libdir into a binary during linking.
21683: # This must work even if \$libdir does not exist
21684: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21685:
21686: # Whether we need a single "-rpath" flag with a separated argument.
21687: hardcode_libdir_separator=$lt_hardcode_libdir_separator
21688:
21689: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21690: # DIR into the resulting binary.
21691: hardcode_direct=$hardcode_direct
21692:
21693: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21694: # DIR into the resulting binary and the resulting library dependency is
21695: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21696: # library is relocated.
21697: hardcode_direct_absolute=$hardcode_direct_absolute
21698:
21699: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21700: # into the resulting binary.
21701: hardcode_minus_L=$hardcode_minus_L
21702:
21703: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21704: # into the resulting binary.
21705: hardcode_shlibpath_var=$hardcode_shlibpath_var
21706:
21707: # Set to "yes" if building a shared library automatically hardcodes DIR
21708: # into the library and all subsequent libraries and executables linked
21709: # against it.
21710: hardcode_automatic=$hardcode_automatic
21711:
21712: # Set to yes if linker adds runtime paths of dependent libraries
21713: # to runtime path list.
21714: inherit_rpath=$inherit_rpath
21715:
21716: # Whether libtool must link a program against all its dependency libraries.
21717: link_all_deplibs=$link_all_deplibs
21718:
21719: # Set to "yes" if exported symbols are required.
21720: always_export_symbols=$always_export_symbols
21721:
21722: # The commands to list exported symbols.
21723: export_symbols_cmds=$lt_export_symbols_cmds
21724:
21725: # Symbols that should not be listed in the preloaded symbols.
21726: exclude_expsyms=$lt_exclude_expsyms
21727:
21728: # Symbols that must always be exported.
21729: include_expsyms=$lt_include_expsyms
21730:
21731: # Commands necessary for linking programs (against libraries) with templates.
21732: prelink_cmds=$lt_prelink_cmds
21733:
21734: # Commands necessary for finishing linking programs.
21735: postlink_cmds=$lt_postlink_cmds
21736:
21737: # Specify filename containing input files.
21738: file_list_spec=$lt_file_list_spec
21739:
21740: # How to hardcode a shared library path into an executable.
21741: hardcode_action=$hardcode_action
21742:
21743: # The directories searched by this compiler when creating a shared library.
21744: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21745:
21746: # Dependencies to place before and after the objects being linked to
21747: # create a shared library.
21748: predep_objects=$lt_predep_objects
21749: postdep_objects=$lt_postdep_objects
21750: predeps=$lt_predeps
21751: postdeps=$lt_postdeps
21752:
21753: # The library search path used internally by the compiler when linking
21754: # a shared library.
21755: compiler_lib_search_path=$lt_compiler_lib_search_path
21756:
21757: # ### END LIBTOOL CONFIG
21758:
21759: _LT_EOF
21760:
21761: case $host_os in
21762: aix3*)
21763: cat <<\_LT_EOF >> "$cfgfile"
21764: # AIX sometimes has problems with the GCC collect2 program. For some
21765: # reason, if we set the COLLECT_NAMES environment variable, the problems
21766: # vanish in a puff of smoke.
21767: if test "X${COLLECT_NAMES+set}" != Xset; then
21768: COLLECT_NAMES=
21769: export COLLECT_NAMES
21770: fi
21771: _LT_EOF
21772: ;;
21773: esac
21774:
21775:
21776: ltmain="$ac_aux_dir/ltmain.sh"
21777:
21778:
21779: # We use sed instead of cat because bash on DJGPP gets confused if
21780: # if finds mixed CR/LF and LF-only lines. Since sed operates in
21781: # text mode, it properly converts lines to CR/LF. This bash problem
21782: # is reportedly fixed, but why not run on old versions too?
21783: sed '$q' "$ltmain" >> "$cfgfile" \
21784: || (rm -f "$cfgfile"; exit 1)
21785:
21786: if test x"$xsi_shell" = xyes; then
21787: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21788: func_dirname ()\
21789: {\
21790: \ case ${1} in\
21791: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21792: \ * ) func_dirname_result="${3}" ;;\
21793: \ esac\
21794: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21795: && mv -f "$cfgfile.tmp" "$cfgfile" \
21796: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21797: test 0 -eq $? || _lt_function_replace_fail=:
21798:
21799:
21800: sed -e '/^func_basename ()$/,/^} # func_basename /c\
21801: func_basename ()\
21802: {\
21803: \ func_basename_result="${1##*/}"\
21804: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21805: && mv -f "$cfgfile.tmp" "$cfgfile" \
21806: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21807: test 0 -eq $? || _lt_function_replace_fail=:
21808:
21809:
21810: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21811: func_dirname_and_basename ()\
21812: {\
21813: \ case ${1} in\
21814: \ */*) func_dirname_result="${1%/*}${2}" ;;\
21815: \ * ) func_dirname_result="${3}" ;;\
21816: \ esac\
21817: \ func_basename_result="${1##*/}"\
21818: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21819: && mv -f "$cfgfile.tmp" "$cfgfile" \
21820: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21821: test 0 -eq $? || _lt_function_replace_fail=:
21822:
21823:
21824: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21825: func_stripname ()\
21826: {\
21827: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21828: \ # positional parameters, so assign one to ordinary parameter first.\
21829: \ func_stripname_result=${3}\
21830: \ func_stripname_result=${func_stripname_result#"${1}"}\
21831: \ func_stripname_result=${func_stripname_result%"${2}"}\
21832: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21833: && mv -f "$cfgfile.tmp" "$cfgfile" \
21834: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21835: test 0 -eq $? || _lt_function_replace_fail=:
21836:
21837:
21838: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21839: func_split_long_opt ()\
21840: {\
21841: \ func_split_long_opt_name=${1%%=*}\
21842: \ func_split_long_opt_arg=${1#*=}\
21843: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21844: && mv -f "$cfgfile.tmp" "$cfgfile" \
21845: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21846: test 0 -eq $? || _lt_function_replace_fail=:
21847:
21848:
21849: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21850: func_split_short_opt ()\
21851: {\
21852: \ func_split_short_opt_arg=${1#??}\
21853: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21854: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21855: && mv -f "$cfgfile.tmp" "$cfgfile" \
21856: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21857: test 0 -eq $? || _lt_function_replace_fail=:
21858:
21859:
21860: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21861: func_lo2o ()\
21862: {\
21863: \ case ${1} in\
21864: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21865: \ *) func_lo2o_result=${1} ;;\
21866: \ esac\
21867: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21868: && mv -f "$cfgfile.tmp" "$cfgfile" \
21869: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21870: test 0 -eq $? || _lt_function_replace_fail=:
21871:
21872:
21873: sed -e '/^func_xform ()$/,/^} # func_xform /c\
21874: func_xform ()\
21875: {\
21876: func_xform_result=${1%.*}.lo\
21877: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21878: && mv -f "$cfgfile.tmp" "$cfgfile" \
21879: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21880: test 0 -eq $? || _lt_function_replace_fail=:
21881:
21882:
21883: sed -e '/^func_arith ()$/,/^} # func_arith /c\
21884: func_arith ()\
21885: {\
21886: func_arith_result=$(( $* ))\
21887: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21888: && mv -f "$cfgfile.tmp" "$cfgfile" \
21889: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21890: test 0 -eq $? || _lt_function_replace_fail=:
21891:
21892:
21893: sed -e '/^func_len ()$/,/^} # func_len /c\
21894: func_len ()\
21895: {\
21896: func_len_result=${#1}\
21897: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21898: && mv -f "$cfgfile.tmp" "$cfgfile" \
21899: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21900: test 0 -eq $? || _lt_function_replace_fail=:
21901:
21902: fi
21903:
21904: if test x"$lt_shell_append" = xyes; then
21905: sed -e '/^func_append ()$/,/^} # func_append /c\
21906: func_append ()\
21907: {\
21908: eval "${1}+=\\${2}"\
21909: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21910: && mv -f "$cfgfile.tmp" "$cfgfile" \
21911: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21912: test 0 -eq $? || _lt_function_replace_fail=:
21913:
21914:
21915: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21916: func_append_quoted ()\
21917: {\
21918: \ func_quote_for_eval "${2}"\
21919: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21920: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21921: && mv -f "$cfgfile.tmp" "$cfgfile" \
21922: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21923: test 0 -eq $? || _lt_function_replace_fail=:
21924:
21925:
21926: # Save a `func_append' function call where possible by direct use of '+='
21927: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21928: && mv -f "$cfgfile.tmp" "$cfgfile" \
21929: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21930: test 0 -eq $? || _lt_function_replace_fail=:
21931: else
21932: # Save a `func_append' function call even when '+=' is not available
21933: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21934: && mv -f "$cfgfile.tmp" "$cfgfile" \
21935: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21936: test 0 -eq $? || _lt_function_replace_fail=:
21937: fi
21938:
21939: if test x"$_lt_function_replace_fail" = x":"; then
21940: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21941: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21942: fi
21943:
21944:
21945: mv -f "$cfgfile" "$ofile" ||
21946: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21947: chmod +x "$ofile"
21948:
21949:
21950: cat <<_LT_EOF >> "$ofile"
21951:
21952: # ### BEGIN LIBTOOL TAG CONFIG: CXX
21953:
21954: # The linker used to build libraries.
21955: LD=$lt_LD_CXX
21956:
21957: # How to create reloadable object files.
21958: reload_flag=$lt_reload_flag_CXX
21959: reload_cmds=$lt_reload_cmds_CXX
21960:
21961: # Commands used to build an old-style archive.
21962: old_archive_cmds=$lt_old_archive_cmds_CXX
21963:
21964: # A language specific compiler.
21965: CC=$lt_compiler_CXX
21966:
21967: # Is the compiler the GNU compiler?
21968: with_gcc=$GCC_CXX
21969:
21970: # Compiler flag to turn off builtin functions.
21971: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21972:
21973: # Additional compiler flags for building library objects.
21974: pic_flag=$lt_lt_prog_compiler_pic_CXX
21975:
21976: # How to pass a linker flag through the compiler.
21977: wl=$lt_lt_prog_compiler_wl_CXX
21978:
21979: # Compiler flag to prevent dynamic linking.
21980: link_static_flag=$lt_lt_prog_compiler_static_CXX
21981:
21982: # Does compiler simultaneously support -c and -o options?
21983: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21984:
21985: # Whether or not to add -lc for building shared libraries.
21986: build_libtool_need_lc=$archive_cmds_need_lc_CXX
21987:
21988: # Whether or not to disallow shared libs when runtime libs are static.
21989: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21990:
21991: # Compiler flag to allow reflexive dlopens.
21992: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21993:
21994: # Compiler flag to generate shared objects directly from archives.
21995: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21996:
21997: # Whether the compiler copes with passing no objects directly.
21998: compiler_needs_object=$lt_compiler_needs_object_CXX
21999:
22000: # Create an old-style archive from a shared archive.
22001: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22002:
22003: # Create a temporary old-style archive to link instead of a shared archive.
22004: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22005:
22006: # Commands used to build a shared archive.
22007: archive_cmds=$lt_archive_cmds_CXX
22008: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22009:
22010: # Commands used to build a loadable module if different from building
22011: # a shared archive.
22012: module_cmds=$lt_module_cmds_CXX
22013: module_expsym_cmds=$lt_module_expsym_cmds_CXX
22014:
22015: # Whether we are building with GNU ld or not.
22016: with_gnu_ld=$lt_with_gnu_ld_CXX
22017:
22018: # Flag that allows shared libraries with undefined symbols to be built.
22019: allow_undefined_flag=$lt_allow_undefined_flag_CXX
22020:
22021: # Flag that enforces no undefined symbols.
22022: no_undefined_flag=$lt_no_undefined_flag_CXX
22023:
22024: # Flag to hardcode \$libdir into a binary during linking.
22025: # This must work even if \$libdir does not exist
22026: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22027:
22028: # Whether we need a single "-rpath" flag with a separated argument.
22029: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22030:
22031: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22032: # DIR into the resulting binary.
22033: hardcode_direct=$hardcode_direct_CXX
22034:
22035: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22036: # DIR into the resulting binary and the resulting library dependency is
22037: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22038: # library is relocated.
22039: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22040:
22041: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22042: # into the resulting binary.
22043: hardcode_minus_L=$hardcode_minus_L_CXX
22044:
22045: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22046: # into the resulting binary.
22047: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22048:
22049: # Set to "yes" if building a shared library automatically hardcodes DIR
22050: # into the library and all subsequent libraries and executables linked
22051: # against it.
22052: hardcode_automatic=$hardcode_automatic_CXX
22053:
22054: # Set to yes if linker adds runtime paths of dependent libraries
22055: # to runtime path list.
22056: inherit_rpath=$inherit_rpath_CXX
22057:
22058: # Whether libtool must link a program against all its dependency libraries.
22059: link_all_deplibs=$link_all_deplibs_CXX
22060:
22061: # Set to "yes" if exported symbols are required.
22062: always_export_symbols=$always_export_symbols_CXX
22063:
22064: # The commands to list exported symbols.
22065: export_symbols_cmds=$lt_export_symbols_cmds_CXX
22066:
22067: # Symbols that should not be listed in the preloaded symbols.
22068: exclude_expsyms=$lt_exclude_expsyms_CXX
22069:
22070: # Symbols that must always be exported.
22071: include_expsyms=$lt_include_expsyms_CXX
22072:
22073: # Commands necessary for linking programs (against libraries) with templates.
22074: prelink_cmds=$lt_prelink_cmds_CXX
22075:
22076: # Commands necessary for finishing linking programs.
22077: postlink_cmds=$lt_postlink_cmds_CXX
22078:
22079: # Specify filename containing input files.
22080: file_list_spec=$lt_file_list_spec_CXX
22081:
22082: # How to hardcode a shared library path into an executable.
22083: hardcode_action=$hardcode_action_CXX
22084:
22085: # The directories searched by this compiler when creating a shared library.
22086: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22087:
22088: # Dependencies to place before and after the objects being linked to
22089: # create a shared library.
22090: predep_objects=$lt_predep_objects_CXX
22091: postdep_objects=$lt_postdep_objects_CXX
22092: predeps=$lt_predeps_CXX
22093: postdeps=$lt_postdeps_CXX
22094:
22095: # The library search path used internally by the compiler when linking
22096: # a shared library.
22097: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22098:
22099: # ### END LIBTOOL TAG CONFIG: CXX
22100: _LT_EOF
22101:
22102: ;;
22103: "script-chmod":C) chmod a+x pcre-config ;;
22104: "delete-old-chartables":C) rm -f pcre_chartables.c ;;
22105:
22106: esac
22107: done # for ac_tag
22108:
22109:
22110: as_fn_exit 0
22111: _ACEOF
22112: ac_clean_files=$ac_clean_files_save
22113:
22114: test $ac_write_fail = 0 ||
22115: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22116:
22117:
22118: # configure is writing to config.log, and then calls config.status.
22119: # config.status does its own redirection, appending to config.log.
22120: # Unfortunately, on DOS this fails, as config.log is still kept open
22121: # by configure, so config.status won't be able to write to it; its
22122: # output is simply discarded. So we exec the FD to /dev/null,
22123: # effectively closing config.log, so it can be properly (re)opened and
22124: # appended to by config.status. When coming back to configure, we
22125: # need to make the FD available again.
22126: if test "$no_create" != yes; then
22127: ac_cs_success=:
22128: ac_config_status_args=
22129: test "$silent" = yes &&
22130: ac_config_status_args="$ac_config_status_args --quiet"
22131: exec 5>/dev/null
22132: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22133: exec 5>>config.log
22134: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22135: # would make configure fail if this is the last instruction.
22136: $ac_cs_success || as_fn_exit 1
22137: fi
22138: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22139: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22140: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22141: fi
22142:
22143:
1.1.1.4 ! misho 22144: # Print out a nice little message after configure is run displaying the
1.1 misho 22145: # chosen options.
22146:
1.1.1.4 ! misho 22147: ebcdic_nl_code=n/a
! 22148: if test "$enable_ebcdic_nl25" = "yes"; then
! 22149: ebcdic_nl_code=0x25
! 22150: elif test "$enable_ebcdic" = "yes"; then
! 22151: ebcdic_nl_code=0x15
! 22152: fi
! 22153:
1.1 misho 22154: cat <<EOF
22155:
22156: $PACKAGE-$VERSION configuration summary:
22157:
22158: Install prefix .................. : ${prefix}
22159: C preprocessor .................. : ${CPP}
22160: C compiler ...................... : ${CC}
22161: C++ preprocessor ................ : ${CXXCPP}
22162: C++ compiler .................... : ${CXX}
22163: Linker .......................... : ${LD}
22164: C preprocessor flags ............ : ${CPPFLAGS}
1.1.1.4 ! misho 22165: C compiler flags ................ : ${CFLAGS} ${VISIBILITY_CFLAGS}
! 22166: C++ compiler flags .............. : ${CXXFLAGS} ${VISIBILITY_CXXFLAGS}
1.1 misho 22167: Linker flags .................... : ${LDFLAGS}
22168: Extra libraries ................. : ${LIBS}
22169:
1.1.1.2 misho 22170: Build 8 bit pcre library ........ : ${enable_pcre8}
22171: Build 16 bit pcre library ....... : ${enable_pcre16}
1.1.1.4 ! misho 22172: Build 32 bit pcre library ....... : ${enable_pcre32}
1.1 misho 22173: Build C++ library ............... : ${enable_cpp}
22174: Enable JIT compiling support .... : ${enable_jit}
1.1.1.4 ! misho 22175: Enable UTF-8/16/32 support ...... : ${enable_utf}
1.1 misho 22176: Unicode properties .............. : ${enable_unicode_properties}
22177: Newline char/sequence ........... : ${enable_newline}
22178: \R matches only ANYCRLF ......... : ${enable_bsr_anycrlf}
22179: EBCDIC coding ................... : ${enable_ebcdic}
1.1.1.4 ! misho 22180: EBCDIC code for NL .............. : ${ebcdic_nl_code}
1.1 misho 22181: Rebuild char tables ............. : ${enable_rebuild_chartables}
22182: Use stack recursion ............. : ${enable_stack_for_recursion}
22183: POSIX mem threshold ............. : ${with_posix_malloc_threshold}
22184: Internal link size .............. : ${with_link_size}
22185: Match limit ..................... : ${with_match_limit}
22186: Match limit recursion ........... : ${with_match_limit_recursion}
22187: Build shared libs ............... : ${enable_shared}
22188: Build static libs ............... : ${enable_static}
22189: Use JIT in pcregrep ............. : ${enable_pcregrep_jit}
22190: Buffer size for pcregrep ........ : ${with_pcregrep_bufsize}
22191: Link pcregrep with libz ......... : ${enable_pcregrep_libz}
22192: Link pcregrep with libbz2 ....... : ${enable_pcregrep_libbz2}
1.1.1.3 misho 22193: Link pcretest with libedit ...... : ${enable_pcretest_libedit}
1.1 misho 22194: Link pcretest with libreadline .. : ${enable_pcretest_libreadline}
1.1.1.4 ! misho 22195: Valgrind support ................ : ${enable_valgrind}
! 22196: Code coverage ................... : ${enable_coverage}
1.1 misho 22197:
22198: EOF
22199:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>