Annotation of parser3/configure, revision 1.239
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.237 moko 3: # Generated by GNU Autoconf 2.72 for parser 3.5.2b.
1.150 moko 4: #
5: #
1.237 moko 6: # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7: # Inc.
1.150 moko 8: #
1.1 paf 9: #
10: # This configure script is free software; the Free Software Foundation
11: # gives unlimited permission to copy, distribute and modify it.
1.150 moko 12: ## -------------------- ##
13: ## M4sh Initialization. ##
14: ## -------------------- ##
1.62 paf 15:
1.150 moko 16: # Be more Bourne compatible
17: DUALCASE=1; export DUALCASE # for MKS sh
1.237 moko 18: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19: then :
1.62 paf 20: emulate sh
21: NULLCMD=:
1.150 moko 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
1.150 moko 25: setopt NO_GLOB_SUBST
1.237 moko 26: else case e in #(
27: e) case `(set -o) 2>/dev/null` in #(
1.150 moko 28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
1.237 moko 32: esac ;;
1.150 moko 33: esac
34: fi
35:
36:
1.237 moko 37:
38: # Reset variables that may have inherited troublesome values from
39: # the environment.
40:
41: # IFS needs to be set, to space, tab, and newline, in precisely that order.
42: # (If _AS_PATH_WALK were called with IFS unset, it would have the
43: # side effect of setting IFS to empty, thus disabling word splitting.)
44: # Quoting is to prevent editors from complaining about space-tab.
1.150 moko 45: as_nl='
46: '
47: export as_nl
1.237 moko 48: IFS=" "" $as_nl"
49:
50: PS1='$ '
51: PS2='> '
52: PS4='+ '
53:
54: # Ensure predictable behavior from utilities with locale-dependent output.
55: LC_ALL=C
56: export LC_ALL
57: LANGUAGE=C
58: export LANGUAGE
59:
60: # We cannot yet rely on "unset" to work, but we need these variables
61: # to be unset--not just set to an empty or harmless value--now, to
62: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63: # also avoids known problems related to "unset" and subshell syntax
64: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66: do eval test \${$as_var+y} \
67: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68: done
69:
70: # Ensure that fds 0, 1, and 2 are open.
71: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.62 paf 74:
1.150 moko 75: # The user is always right.
1.237 moko 76: if ${PATH_SEPARATOR+false} :; then
1.150 moko 77: PATH_SEPARATOR=:
78: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80: PATH_SEPARATOR=';'
81: }
1.62 paf 82: fi
83:
84:
1.150 moko 85: # Find who we are. Look in the path if we contain no directory separator.
86: as_myself=
87: case $0 in #((
88: *[\\/]* ) as_myself=$0 ;;
89: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90: for as_dir in $PATH
91: do
92: IFS=$as_save_IFS
1.237 moko 93: case $as_dir in #(((
94: '') as_dir=./ ;;
95: */) ;;
96: *) as_dir=$as_dir/ ;;
97: esac
98: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.150 moko 99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
1.237 moko 104: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.150 moko 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
1.237 moko 110: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.150 moko 111: exit 1
112: fi
113:
114:
1.166 moko 115: # Use a proper internal environment variable to ensure we don't fall
116: # into an infinite loop, continuously re-executing ourselves.
117: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118: _as_can_reexec=no; export _as_can_reexec;
119: # We cannot yet assume a decent shell, so we have to provide a
120: # neutralization value for shells without unset; and this also
121: # works around shells that cannot unset nonexistent variables.
122: # Preserve -v and -x to the replacement shell.
123: BASH_ENV=/dev/null
124: ENV=/dev/null
125: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126: case $- in # ((((
127: *v*x* | *x*v* ) as_opts=-vx ;;
128: *v* ) as_opts=-v ;;
129: *x* ) as_opts=-x ;;
130: * ) as_opts= ;;
131: esac
132: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133: # Admittedly, this is quite paranoid, since all the known shells bail
1.237 moko 134: # out after a failed 'exec'.
135: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136: exit 255
1.166 moko 137: fi
138: # We don't want this to propagate to other subprocesses.
139: { _as_can_reexec=; unset _as_can_reexec;}
1.150 moko 140: if test "x$CONFIG_SHELL" = x; then
1.237 moko 141: as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142: then :
1.150 moko 143: emulate sh
144: NULLCMD=:
145: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146: # is contrary to our usage. Disable this feature.
147: alias -g '\${1+\"\$@\"}'='\"\$@\"'
148: setopt NO_GLOB_SUBST
1.237 moko 149: else case e in #(
150: e) case \`(set -o) 2>/dev/null\` in #(
1.150 moko 151: *posix*) :
152: set -o posix ;; #(
153: *) :
154: ;;
1.237 moko 155: esac ;;
1.150 moko 156: esac
157: fi
158: "
159: as_required="as_fn_return () { (exit \$1); }
160: as_fn_success () { as_fn_return 0; }
161: as_fn_failure () { as_fn_return 1; }
162: as_fn_ret_success () { return 0; }
163: as_fn_ret_failure () { return 1; }
164:
165: exitcode=0
166: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1.237 moko 170: if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171: then :
1.150 moko 172:
1.237 moko 173: else case e in #(
174: e) exitcode=1; echo positional parameters were not saved. ;;
175: esac
1.150 moko 176: fi
1.166 moko 177: test x\$exitcode = x0 || exit 1
1.237 moko 178: blah=\$(echo \$(echo blah))
179: test x\"\$blah\" = xblah || exit 1
1.166 moko 180: test -x / || exit 1"
1.150 moko 181: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185:
186: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190: PATH=/empty FPATH=/empty; export PATH FPATH
191: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193: test \$(( 1 + 1 )) = 2 || exit 1"
1.237 moko 194: if (eval "$as_required") 2>/dev/null
195: then :
1.150 moko 196: as_have_required=yes
1.237 moko 197: else case e in #(
198: e) as_have_required=no ;;
199: esac
1.150 moko 200: fi
1.237 moko 201: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202: then :
1.150 moko 203:
1.237 moko 204: else case e in #(
205: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.150 moko 206: as_found=false
207: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.62 paf 208: do
1.150 moko 209: IFS=$as_save_IFS
1.237 moko 210: case $as_dir in #(((
211: '') as_dir=./ ;;
212: */) ;;
213: *) as_dir=$as_dir/ ;;
214: esac
1.150 moko 215: as_found=:
216: case $as_dir in #(
217: /*)
218: for as_base in sh bash ksh sh5; do
219: # Try only shells that exist, to save several forks.
1.237 moko 220: as_shell=$as_dir$as_base
1.150 moko 221: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1.237 moko 222: as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223: then :
1.150 moko 224: CONFIG_SHELL=$as_shell as_have_required=yes
1.237 moko 225: if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226: then :
1.150 moko 227: break 2
228: fi
229: fi
230: done;;
231: esac
232: as_found=false
233: done
1.237 moko 234: IFS=$as_save_IFS
235: if $as_found
236: then :
237:
238: else case e in #(
239: e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240: as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241: then :
1.150 moko 242: CONFIG_SHELL=$SHELL as_have_required=yes
1.237 moko 243: fi ;;
244: esac
245: fi
1.150 moko 246:
247:
1.237 moko 248: if test "x$CONFIG_SHELL" != x
249: then :
1.166 moko 250: export CONFIG_SHELL
251: # We cannot yet assume a decent shell, so we have to provide a
252: # neutralization value for shells without unset; and this also
253: # works around shells that cannot unset nonexistent variables.
254: # Preserve -v and -x to the replacement shell.
255: BASH_ENV=/dev/null
256: ENV=/dev/null
257: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258: case $- in # ((((
259: *v*x* | *x*v* ) as_opts=-vx ;;
260: *v* ) as_opts=-v ;;
261: *x* ) as_opts=-x ;;
262: * ) as_opts= ;;
263: esac
264: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265: # Admittedly, this is quite paranoid, since all the known shells bail
1.237 moko 266: # out after a failed 'exec'.
267: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1.166 moko 268: exit 255
1.150 moko 269: fi
270:
1.237 moko 271: if test x$as_have_required = xno
272: then :
273: printf "%s\n" "$0: This script requires a shell more modern than all"
274: printf "%s\n" "$0: the shells that I found on your system."
275: if test ${ZSH_VERSION+y} ; then
276: printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277: printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
1.62 paf 278: else
1.237 moko 279: printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
1.150 moko 280: $0: including any error possibly output before this
281: $0: message. Then install a modern shell, or manually run
282: $0: the script under such a shell if you do have one."
1.62 paf 283: fi
1.150 moko 284: exit 1
1.237 moko 285: fi ;;
286: esac
1.150 moko 287: fi
288: fi
289: SHELL=${CONFIG_SHELL-/bin/sh}
290: export SHELL
291: # Unset more variables known to interfere with behavior of common tools.
292: CLICOLOR_FORCE= GREP_OPTIONS=
293: unset CLICOLOR_FORCE GREP_OPTIONS
294:
295: ## --------------------- ##
296: ## M4sh Shell Functions. ##
297: ## --------------------- ##
298: # as_fn_unset VAR
299: # ---------------
300: # Portably unset VAR.
301: as_fn_unset ()
302: {
303: { eval $1=; unset $1;}
304: }
305: as_unset=as_fn_unset
306:
1.237 moko 307:
1.150 moko 308: # as_fn_set_status STATUS
309: # -----------------------
310: # Set $? to STATUS, without forking.
311: as_fn_set_status ()
312: {
313: return $1
314: } # as_fn_set_status
315:
316: # as_fn_exit STATUS
317: # -----------------
318: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319: as_fn_exit ()
320: {
321: set +e
322: as_fn_set_status $1
323: exit $1
324: } # as_fn_exit
325:
326: # as_fn_mkdir_p
327: # -------------
328: # Create "$as_dir" as a directory, including parents if necessary.
329: as_fn_mkdir_p ()
330: {
331:
332: case $as_dir in #(
333: -*) as_dir=./$as_dir;;
334: esac
335: test -d "$as_dir" || eval $as_mkdir_p || {
336: as_dirs=
337: while :; do
338: case $as_dir in #(
1.237 moko 339: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.150 moko 340: *) as_qdir=$as_dir;;
341: esac
342: as_dirs="'$as_qdir' $as_dirs"
343: as_dir=`$as_dirname -- "$as_dir" ||
344: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345: X"$as_dir" : 'X\(//\)[^/]' \| \
346: X"$as_dir" : 'X\(//\)$' \| \
347: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 348: printf "%s\n" X"$as_dir" |
1.150 moko 349: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350: s//\1/
351: q
352: }
353: /^X\(\/\/\)[^/].*/{
354: s//\1/
355: q
356: }
357: /^X\(\/\/\)$/{
358: s//\1/
359: q
360: }
361: /^X\(\/\).*/{
362: s//\1/
363: q
364: }
365: s/.*/./; q'`
366: test -d "$as_dir" && break
367: done
368: test -z "$as_dirs" || eval "mkdir $as_dirs"
369: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370:
371:
372: } # as_fn_mkdir_p
1.166 moko 373:
374: # as_fn_executable_p FILE
375: # -----------------------
376: # Test if FILE is an executable regular file.
377: as_fn_executable_p ()
378: {
379: test -f "$1" && test -x "$1"
380: } # as_fn_executable_p
1.150 moko 381: # as_fn_append VAR VALUE
382: # ----------------------
383: # Append the text in VALUE to the end of the definition contained in VAR. Take
384: # advantage of any shell optimizations that allow amortized linear growth over
385: # repeated appends, instead of the typical quadratic growth present in naive
386: # implementations.
1.237 moko 387: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388: then :
1.150 moko 389: eval 'as_fn_append ()
390: {
391: eval $1+=\$2
392: }'
1.237 moko 393: else case e in #(
394: e) as_fn_append ()
1.150 moko 395: {
396: eval $1=\$$1\$2
1.237 moko 397: } ;;
398: esac
1.150 moko 399: fi # as_fn_append
400:
401: # as_fn_arith ARG...
402: # ------------------
403: # Perform arithmetic evaluation on the ARGs, and store the result in the
404: # global $as_val. Take advantage of shells that can avoid forks. The arguments
405: # must be portable across $(()) and expr.
1.237 moko 406: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407: then :
1.150 moko 408: eval 'as_fn_arith ()
409: {
410: as_val=$(( $* ))
411: }'
1.237 moko 412: else case e in #(
413: e) as_fn_arith ()
1.150 moko 414: {
415: as_val=`expr "$@" || test $? -eq 1`
1.237 moko 416: } ;;
417: esac
1.150 moko 418: fi # as_fn_arith
419:
420:
421: # as_fn_error STATUS ERROR [LINENO LOG_FD]
422: # ----------------------------------------
423: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425: # script with STATUS, using 1 if that was 0.
426: as_fn_error ()
427: {
428: as_status=$1; test $as_status -eq 0 && as_status=1
429: if test "$4"; then
430: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 431: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.150 moko 432: fi
1.237 moko 433: printf "%s\n" "$as_me: error: $2" >&2
1.150 moko 434: as_fn_exit $as_status
435: } # as_fn_error
1.62 paf 436:
1.150 moko 437: if expr a : '\(a\)' >/dev/null 2>&1 &&
438: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 439: as_expr=expr
440: else
441: as_expr=false
442: fi
443:
1.150 moko 444: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 445: as_basename=basename
446: else
447: as_basename=false
448: fi
449:
1.150 moko 450: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451: as_dirname=dirname
452: else
453: as_dirname=false
454: fi
1.62 paf 455:
1.150 moko 456: as_me=`$as_basename -- "$0" ||
1.62 paf 457: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458: X"$0" : 'X\(//\)$' \| \
1.150 moko 459: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 460: printf "%s\n" X/"$0" |
1.150 moko 461: sed '/^.*\/\([^/][^/]*\)\/*$/{
462: s//\1/
463: q
464: }
465: /^X\/\(\/\/\)$/{
466: s//\1/
467: q
468: }
469: /^X\/\(\/\).*/{
470: s//\1/
471: q
472: }
473: s/.*/./; q'`
1.62 paf 474:
475: # Avoid depending upon Character Ranges.
476: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479: as_cr_digits='0123456789'
480: as_cr_alnum=$as_cr_Letters$as_cr_digits
481:
482:
1.150 moko 483: as_lineno_1=$LINENO as_lineno_1a=$LINENO
484: as_lineno_2=$LINENO as_lineno_2a=$LINENO
485: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488: sed -n '
489: p
490: /[$]LINENO/=
491: ' <$as_myself |
1.62 paf 492: sed '
1.237 moko 493: t clear
494: :clear
1.150 moko 495: s/[$]LINENO.*/&-/
496: t lineno
497: b
498: :lineno
1.62 paf 499: N
1.150 moko 500: :loop
501: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.62 paf 502: t loop
1.150 moko 503: s/-\n.*//
1.62 paf 504: ' >$as_me.lineno &&
1.150 moko 505: chmod +x "$as_me.lineno" ||
1.237 moko 506: { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.62 paf 507:
1.166 moko 508: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509: # already done that, so ensure we don't try to do so again and fall
510: # in an infinite loop. This has already happened in practice.
511: _as_can_reexec=no; export _as_can_reexec
1.62 paf 512: # Don't try to exec as it changes $[0], causing all sort of problems
513: # (the dirname of $[0] is not the place where we might find the
1.150 moko 514: # original and so on. Autoconf is especially sensitive to this).
515: . "./$as_me.lineno"
1.62 paf 516: # Exit status is that of the last command.
517: exit
518: }
519:
1.237 moko 520:
521: # Determine whether it's possible to make 'echo' print without a newline.
522: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523: # for compatibility with existing Makefiles.
1.150 moko 524: ECHO_C= ECHO_N= ECHO_T=
525: case `echo -n x` in #(((((
526: -n*)
527: case `echo 'xy\c'` in
528: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529: xy) ECHO_C='\c';;
530: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531: ECHO_T=' ';;
532: esac;;
533: *)
534: ECHO_N='-n';;
1.62 paf 535: esac
536:
1.237 moko 537: # For backward compatibility with old third-party macros, we provide
538: # the shell variables $as_echo and $as_echo_n. New code should use
539: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540: as_echo='printf %s\n'
541: as_echo_n='printf %s'
542:
1.150 moko 543: rm -f conf$$ conf$$.exe conf$$.file
544: if test -d conf$$.dir; then
545: rm -f conf$$.dir/conf$$.file
1.62 paf 546: else
1.150 moko 547: rm -f conf$$.dir
548: mkdir conf$$.dir 2>/dev/null
1.62 paf 549: fi
1.150 moko 550: if (echo >conf$$.file) 2>/dev/null; then
551: if ln -s conf$$.file conf$$ 2>/dev/null; then
552: as_ln_s='ln -s'
553: # ... but there are two gotchas:
1.237 moko 554: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556: # In both cases, we have to default to 'cp -pR'.
1.150 moko 557: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 558: as_ln_s='cp -pR'
1.150 moko 559: elif ln conf$$.file conf$$ 2>/dev/null; then
560: as_ln_s=ln
561: else
1.166 moko 562: as_ln_s='cp -pR'
1.62 paf 563: fi
564: else
1.166 moko 565: as_ln_s='cp -pR'
1.62 paf 566: fi
1.150 moko 567: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568: rmdir conf$$.dir 2>/dev/null
1.62 paf 569:
570: if mkdir -p . 2>/dev/null; then
1.150 moko 571: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 572: else
1.86 paf 573: test -d ./-p && rmdir ./-p
1.62 paf 574: as_mkdir_p=false
575: fi
576:
1.166 moko 577: as_test_x='test -x'
578: as_executable_p=as_fn_executable_p
1.62 paf 579:
580: # Sed expression to map a string onto a valid CPP name.
1.237 moko 581: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.62 paf 583:
584: # Sed expression to map a string onto a valid variable name.
1.237 moko 585: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.62 paf 587:
1.128 moko 588: lt_ltdl_dir='src/lib/ltdl'
589:
590: SHELL=${CONFIG_SHELL-/bin/sh}
591:
1.237 moko 592: lt_dlopen_dir=$lt_ltdl_dir
1.128 moko 593:
1.1 paf 594:
1.150 moko 595: test -n "$DJDIR" || exec 7<&0 </dev/null
596: exec 6>&1
597:
1.62 paf 598: # Name of the host.
1.150 moko 599: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.62 paf 600: # so uname gets run too.
601: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602:
603: #
604: # Initializations.
605: #
1.1 paf 606: ac_default_prefix=/usr/local
1.150 moko 607: ac_clean_files=
1.62 paf 608: ac_config_libobj_dir=.
1.150 moko 609: LIBOBJS=
1.62 paf 610: cross_compiling=no
611: subdirs=
612: MFLAGS=
613: MAKEFLAGS=
614:
615: # Identity of this package.
1.128 moko 616: PACKAGE_NAME='parser'
617: PACKAGE_TARNAME='parser'
1.230 moko 618: PACKAGE_VERSION='3.5.2b'
619: PACKAGE_STRING='parser 3.5.2b'
1.128 moko 620: PACKAGE_BUGREPORT=''
1.150 moko 621: PACKAGE_URL=''
1.62 paf 622:
623: ac_unique_file="README"
624: # Factoring default headers for most tests.
625: ac_includes_default="\
1.237 moko 626: #include <stddef.h>
627: #ifdef HAVE_STDIO_H
628: # include <stdio.h>
1.62 paf 629: #endif
1.237 moko 630: #ifdef HAVE_STDLIB_H
1.62 paf 631: # include <stdlib.h>
632: #endif
1.150 moko 633: #ifdef HAVE_STRING_H
1.62 paf 634: # include <string.h>
635: #endif
1.150 moko 636: #ifdef HAVE_INTTYPES_H
1.62 paf 637: # include <inttypes.h>
638: #endif
1.150 moko 639: #ifdef HAVE_STDINT_H
640: # include <stdint.h>
641: #endif
1.237 moko 642: #ifdef HAVE_STRINGS_H
643: # include <strings.h>
644: #endif
645: #ifdef HAVE_SYS_TYPES_H
646: # include <sys/types.h>
647: #endif
648: #ifdef HAVE_SYS_STAT_H
649: # include <sys/stat.h>
650: #endif
1.150 moko 651: #ifdef HAVE_UNISTD_H
1.62 paf 652: # include <unistd.h>
653: #endif"
654:
1.237 moko 655: ac_header_c_list=
1.150 moko 656: enable_option_checking=no
1.237 moko 657: enable_year2038=no
1.150 moko 658: ac_subst_vars='ltdl_LTLIBOBJS
659: ltdl_LIBOBJS
660: am__EXEEXT_FALSE
661: am__EXEEXT_TRUE
662: LTLIBOBJS
663: LIBOBJS
664: LTDLOPEN
665: LT_CONFIG_H
666: subdirs
1.237 moko 667: LTARGZH_EXISTS_FALSE
668: LTARGZH_EXISTS_TRUE
1.150 moko 669: CONVENIENCE_LTDL_FALSE
670: CONVENIENCE_LTDL_TRUE
671: INSTALL_LTDL_FALSE
672: INSTALL_LTDL_TRUE
1.237 moko 673: LT_ARGZ_H
1.150 moko 674: sys_symbol_underscore
675: LIBADD_DL
676: LT_DLPREOPEN
677: LIBADD_DLD_LINK
678: LIBADD_SHL_LOAD
679: LIBADD_DLOPEN
680: LT_DLLOADERS
681: INCLTDL
682: LTDLINCL
683: LTDLDEPS
684: LIBLTDL
685: CXXCPP
1.237 moko 686: LT_SYS_LIBRARY_PATH
1.150 moko 687: OTOOL64
688: OTOOL
689: LIPO
690: NMEDIT
691: DSYMUTIL
692: MANIFEST_TOOL
693: RANLIB
694: ac_ct_AR
695: AR
1.237 moko 696: FILECMD
1.150 moko 697: LN_S
698: NM
699: ac_ct_DUMPBIN
700: DUMPBIN
701: LD
702: FGREP
703: EGREP
704: GREP
705: SED
706: LIBTOOL
707: OBJDUMP
708: DLLTOOL
709: AS
710: COMPILE_APACHE_MODULE_FALSE
711: COMPILE_APACHE_MODULE_TRUE
712: APACHE_CFLAGS
713: APACHE_INC
714: APACHE
1.239 ! moko 715: REDIS_LIBS
! 716: REDIS_INCLUDES
1.232 moko 717: AMQP_LIBS
718: AMQP_INCLUDES
1.150 moko 719: MIME_LIBS
720: MIME_INCLUDES
721: XML_LIBS
722: XML_INCLUDES
723: PCRE_LIBS
724: PCRE_INCLUDES
725: GC_LIBS
726: dll_extension
727: am__fastdepCC_FALSE
728: am__fastdepCC_TRUE
729: CCDEPMODE
730: ac_ct_CC
731: CFLAGS
732: CC
733: am__fastdepCXX_FALSE
734: am__fastdepCXX_TRUE
735: CXXDEPMODE
1.187 moko 736: am__nodep
1.150 moko 737: AMDEPBACKSLASH
738: AMDEP_FALSE
739: AMDEP_TRUE
740: am__include
741: DEPDIR
742: OBJEXT
743: EXEEXT
744: ac_ct_CXX
745: CPPFLAGS
746: LDFLAGS
747: CXXFLAGS
748: CXX
749: YFLAGS
750: YACC
751: host_os
752: host_vendor
753: host_cpu
754: host
755: build_os
756: build_vendor
757: build_cpu
758: build
759: P3S
1.237 moko 760: am__xargs_n
761: am__rm_f_notfound
1.187 moko 762: AM_BACKSLASH
763: AM_DEFAULT_VERBOSITY
764: AM_DEFAULT_V
765: AM_V
1.237 moko 766: CSCOPE
767: ETAGS
768: CTAGS
1.150 moko 769: am__untar
770: am__tar
771: AMTAR
772: am__leading_dot
773: SET_MAKE
774: AWK
775: mkdir_p
776: MKDIR_P
777: INSTALL_STRIP_PROGRAM
778: STRIP
779: install_sh
780: MAKEINFO
781: AUTOHEADER
782: AUTOMAKE
783: AUTOCONF
784: ACLOCAL
785: VERSION
786: PACKAGE
787: CYGPATH_W
788: am__isrc
789: INSTALL_DATA
790: INSTALL_SCRIPT
791: INSTALL_PROGRAM
792: target_alias
793: host_alias
794: build_alias
795: LIBS
796: ECHO_T
797: ECHO_N
798: ECHO_C
799: DEFS
800: mandir
801: localedir
802: libdir
803: psdir
804: pdfdir
805: dvidir
806: htmldir
807: infodir
808: docdir
809: oldincludedir
810: includedir
1.191 moko 811: runstatedir
1.150 moko 812: localstatedir
813: sharedstatedir
814: sysconfdir
815: datadir
816: datarootdir
817: libexecdir
818: sbindir
819: bindir
820: program_transform_name
821: prefix
822: exec_prefix
823: PACKAGE_URL
824: PACKAGE_BUGREPORT
825: PACKAGE_STRING
826: PACKAGE_VERSION
827: PACKAGE_TARNAME
828: PACKAGE_NAME
829: PATH_SEPARATOR
1.199 moko 830: SHELL
831: am__quote'
1.62 paf 832: ac_subst_files=''
1.150 moko 833: ac_user_opts='
834: enable_option_checking
1.187 moko 835: enable_silent_rules
1.150 moko 836: enable_dependency_tracking
837: with_build_warnings
1.182 moko 838: with_coverage
839: with_profiler
1.150 moko 840: with_assertions
841: with_sjlj_exceptions
1.203 moko 842: with_system_cfg
1.150 moko 843: enable_safe_mode
844: enable_execs
845: enable_stringstream
846: with_gc
847: with_pcre
848: with_xml
1.154 moko 849: with_mailreceive
1.232 moko 850: with_amqp
1.239 ! moko 851: with_redis
1.150 moko 852: with_sendmail
853: with_apache
1.237 moko 854: enable_pic
1.150 moko 855: with_pic
856: enable_shared
857: enable_static
858: enable_fast_install
1.237 moko 859: enable_aix_soname
860: with_aix_soname
1.150 moko 861: with_gnu_ld
862: with_sysroot
863: enable_libtool_lock
864: with_included_ltdl
865: with_ltdl_include
866: with_ltdl_lib
867: enable_ltdl_install
1.171 moko 868: enable_largefile
1.237 moko 869: enable_year2038
1.150 moko 870: '
871: ac_precious_vars='build_alias
872: host_alias
873: target_alias
874: YACC
875: YFLAGS
876: CXX
877: CXXFLAGS
878: LDFLAGS
879: LIBS
880: CPPFLAGS
881: CCC
882: CC
883: CFLAGS
1.237 moko 884: LT_SYS_LIBRARY_PATH
1.150 moko 885: CXXCPP'
886: ac_subdirs_all='src/lib/ltdl'
1.1 paf 887:
888: # Initialize some variables set by options.
1.62 paf 889: ac_init_help=
890: ac_init_version=false
1.150 moko 891: ac_unrecognized_opts=
892: ac_unrecognized_sep=
1.1 paf 893: # The variables have the same names as the options, with
894: # dashes changed to underlines.
1.62 paf 895: cache_file=/dev/null
1.1 paf 896: exec_prefix=NONE
897: no_create=
898: no_recursion=
899: prefix=NONE
900: program_prefix=NONE
901: program_suffix=NONE
902: program_transform_name=s,x,x,
903: silent=
904: site=
905: srcdir=
906: verbose=
907: x_includes=NONE
908: x_libraries=NONE
1.62 paf 909:
910: # Installation directory options.
911: # These are left unexpanded so users can "make install exec_prefix=/foo"
912: # and all the variables that are supposed to be based on exec_prefix
913: # by default will actually change.
914: # Use braces instead of parens because sh, perl, etc. also accept them.
1.150 moko 915: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 916: bindir='${exec_prefix}/bin'
917: sbindir='${exec_prefix}/sbin'
918: libexecdir='${exec_prefix}/libexec'
1.150 moko 919: datarootdir='${prefix}/share'
920: datadir='${datarootdir}'
1.1 paf 921: sysconfdir='${prefix}/etc'
922: sharedstatedir='${prefix}/com'
923: localstatedir='${prefix}/var'
1.191 moko 924: runstatedir='${localstatedir}/run'
1.1 paf 925: includedir='${prefix}/include'
926: oldincludedir='/usr/include'
1.150 moko 927: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928: infodir='${datarootdir}/info'
929: htmldir='${docdir}'
930: dvidir='${docdir}'
931: pdfdir='${docdir}'
932: psdir='${docdir}'
933: libdir='${exec_prefix}/lib'
934: localedir='${datarootdir}/locale'
935: mandir='${datarootdir}/man'
1.1 paf 936:
937: ac_prev=
1.150 moko 938: ac_dashdash=
1.1 paf 939: for ac_option
940: do
941: # If the previous option needs an argument, assign it.
942: if test -n "$ac_prev"; then
1.150 moko 943: eval $ac_prev=\$ac_option
1.1 paf 944: ac_prev=
945: continue
946: fi
947:
1.150 moko 948: case $ac_option in
949: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950: *=) ac_optarg= ;;
951: *) ac_optarg=yes ;;
952: esac
1.1 paf 953:
1.150 moko 954: case $ac_dashdash$ac_option in
955: --)
956: ac_dashdash=yes ;;
1.1 paf 957:
958: -bindir | --bindir | --bindi | --bind | --bin | --bi)
959: ac_prev=bindir ;;
960: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 961: bindir=$ac_optarg ;;
1.1 paf 962:
963: -build | --build | --buil | --bui | --bu)
1.62 paf 964: ac_prev=build_alias ;;
1.1 paf 965: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 966: build_alias=$ac_optarg ;;
1.1 paf 967:
968: -cache-file | --cache-file | --cache-fil | --cache-fi \
969: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970: ac_prev=cache_file ;;
971: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 973: cache_file=$ac_optarg ;;
974:
975: --config-cache | -C)
976: cache_file=config.cache ;;
1.1 paf 977:
1.150 moko 978: -datadir | --datadir | --datadi | --datad)
1.1 paf 979: ac_prev=datadir ;;
1.150 moko 980: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.62 paf 981: datadir=$ac_optarg ;;
1.1 paf 982:
1.150 moko 983: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984: | --dataroo | --dataro | --datar)
985: ac_prev=datarootdir ;;
986: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988: datarootdir=$ac_optarg ;;
989:
1.1 paf 990: -disable-* | --disable-*)
1.150 moko 991: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 992: # Reject names that are not valid shell variable names.
1.150 moko 993: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 moko 994: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.150 moko 995: ac_useropt_orig=$ac_useropt
1.237 moko 996: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 997: case $ac_user_opts in
998: *"
999: "enable_$ac_useropt"
1000: "*) ;;
1001: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002: ac_unrecognized_sep=', ';;
1003: esac
1004: eval enable_$ac_useropt=no ;;
1005:
1006: -docdir | --docdir | --docdi | --doc | --do)
1007: ac_prev=docdir ;;
1008: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009: docdir=$ac_optarg ;;
1010:
1011: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012: ac_prev=dvidir ;;
1013: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014: dvidir=$ac_optarg ;;
1.1 paf 1015:
1016: -enable-* | --enable-*)
1.150 moko 1017: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 1018: # Reject names that are not valid shell variable names.
1.150 moko 1019: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 moko 1020: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.150 moko 1021: ac_useropt_orig=$ac_useropt
1.237 moko 1022: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 1023: case $ac_user_opts in
1024: *"
1025: "enable_$ac_useropt"
1026: "*) ;;
1027: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028: ac_unrecognized_sep=', ';;
1.1 paf 1029: esac
1.150 moko 1030: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 1031:
1032: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034: | --exec | --exe | --ex)
1035: ac_prev=exec_prefix ;;
1036: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038: | --exec=* | --exe=* | --ex=*)
1.62 paf 1039: exec_prefix=$ac_optarg ;;
1.1 paf 1040:
1041: -gas | --gas | --ga | --g)
1042: # Obsolete; use --with-gas.
1043: with_gas=yes ;;
1044:
1.62 paf 1045: -help | --help | --hel | --he | -h)
1046: ac_init_help=long ;;
1047: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048: ac_init_help=recursive ;;
1049: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050: ac_init_help=short ;;
1.1 paf 1051:
1052: -host | --host | --hos | --ho)
1.62 paf 1053: ac_prev=host_alias ;;
1.1 paf 1054: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 1055: host_alias=$ac_optarg ;;
1.1 paf 1056:
1.150 moko 1057: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058: ac_prev=htmldir ;;
1059: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060: | --ht=*)
1061: htmldir=$ac_optarg ;;
1062:
1.1 paf 1063: -includedir | --includedir | --includedi | --included | --include \
1064: | --includ | --inclu | --incl | --inc)
1065: ac_prev=includedir ;;
1066: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 1068: includedir=$ac_optarg ;;
1.1 paf 1069:
1070: -infodir | --infodir | --infodi | --infod | --info | --inf)
1071: ac_prev=infodir ;;
1072: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 1073: infodir=$ac_optarg ;;
1.1 paf 1074:
1075: -libdir | --libdir | --libdi | --libd)
1076: ac_prev=libdir ;;
1077: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 1078: libdir=$ac_optarg ;;
1.1 paf 1079:
1080: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081: | --libexe | --libex | --libe)
1082: ac_prev=libexecdir ;;
1083: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084: | --libexe=* | --libex=* | --libe=*)
1.62 paf 1085: libexecdir=$ac_optarg ;;
1.1 paf 1086:
1.150 moko 1087: -localedir | --localedir | --localedi | --localed | --locale)
1088: ac_prev=localedir ;;
1089: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090: localedir=$ac_optarg ;;
1091:
1.1 paf 1092: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.150 moko 1093: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1094: ac_prev=localstatedir ;;
1095: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.150 moko 1096: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.62 paf 1097: localstatedir=$ac_optarg ;;
1.1 paf 1098:
1099: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100: ac_prev=mandir ;;
1101: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 1102: mandir=$ac_optarg ;;
1.1 paf 1103:
1104: -nfp | --nfp | --nf)
1105: # Obsolete; use --without-fp.
1106: with_fp=no ;;
1107:
1108: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 1109: | --no-cr | --no-c | -n)
1.1 paf 1110: no_create=yes ;;
1111:
1112: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114: no_recursion=yes ;;
1115:
1116: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118: | --oldin | --oldi | --old | --ol | --o)
1119: ac_prev=oldincludedir ;;
1120: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 1123: oldincludedir=$ac_optarg ;;
1.1 paf 1124:
1125: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126: ac_prev=prefix ;;
1127: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 1128: prefix=$ac_optarg ;;
1.1 paf 1129:
1130: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131: | --program-pre | --program-pr | --program-p)
1132: ac_prev=program_prefix ;;
1133: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 1135: program_prefix=$ac_optarg ;;
1.1 paf 1136:
1137: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138: | --program-suf | --program-su | --program-s)
1139: ac_prev=program_suffix ;;
1140: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 1142: program_suffix=$ac_optarg ;;
1.1 paf 1143:
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: ac_prev=program_transform_name ;;
1152: -program-transform-name=* | --program-transform-name=* \
1153: | --program-transform-nam=* | --program-transform-na=* \
1154: | --program-transform-n=* | --program-transform-=* \
1155: | --program-transform=* | --program-transfor=* \
1156: | --program-transfo=* | --program-transf=* \
1157: | --program-trans=* | --program-tran=* \
1158: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 1159: program_transform_name=$ac_optarg ;;
1.1 paf 1160:
1.150 moko 1161: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162: ac_prev=pdfdir ;;
1163: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164: pdfdir=$ac_optarg ;;
1165:
1166: -psdir | --psdir | --psdi | --psd | --ps)
1167: ac_prev=psdir ;;
1168: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169: psdir=$ac_optarg ;;
1170:
1.1 paf 1171: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172: | -silent | --silent | --silen | --sile | --sil)
1173: silent=yes ;;
1174:
1.191 moko 1175: -runstatedir | --runstatedir | --runstatedi | --runstated \
1176: | --runstate | --runstat | --runsta | --runst | --runs \
1177: | --run | --ru | --r)
1178: ac_prev=runstatedir ;;
1179: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1180: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1181: | --run=* | --ru=* | --r=*)
1182: runstatedir=$ac_optarg ;;
1183:
1.1 paf 1184: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1185: ac_prev=sbindir ;;
1186: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1187: | --sbi=* | --sb=*)
1.62 paf 1188: sbindir=$ac_optarg ;;
1.1 paf 1189:
1190: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1191: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1192: | --sharedst | --shareds | --shared | --share | --shar \
1193: | --sha | --sh)
1194: ac_prev=sharedstatedir ;;
1195: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1196: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1197: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1198: | --sha=* | --sh=*)
1.62 paf 1199: sharedstatedir=$ac_optarg ;;
1.1 paf 1200:
1201: -site | --site | --sit)
1202: ac_prev=site ;;
1203: -site=* | --site=* | --sit=*)
1.62 paf 1204: site=$ac_optarg ;;
1.1 paf 1205:
1206: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1207: ac_prev=srcdir ;;
1208: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 1209: srcdir=$ac_optarg ;;
1.1 paf 1210:
1211: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1212: | --syscon | --sysco | --sysc | --sys | --sy)
1213: ac_prev=sysconfdir ;;
1214: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1215: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 1216: sysconfdir=$ac_optarg ;;
1.1 paf 1217:
1218: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 1219: ac_prev=target_alias ;;
1.1 paf 1220: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 1221: target_alias=$ac_optarg ;;
1.1 paf 1222:
1223: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224: verbose=yes ;;
1225:
1.62 paf 1226: -version | --version | --versio | --versi | --vers | -V)
1227: ac_init_version=: ;;
1.1 paf 1228:
1229: -with-* | --with-*)
1.150 moko 1230: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1231: # Reject names that are not valid shell variable names.
1.150 moko 1232: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 moko 1233: as_fn_error $? "invalid package name: '$ac_useropt'"
1.150 moko 1234: ac_useropt_orig=$ac_useropt
1.237 moko 1235: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 1236: case $ac_user_opts in
1237: *"
1238: "with_$ac_useropt"
1239: "*) ;;
1240: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1241: ac_unrecognized_sep=', ';;
1.1 paf 1242: esac
1.150 moko 1243: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1244:
1245: -without-* | --without-*)
1.150 moko 1246: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1247: # Reject names that are not valid shell variable names.
1.150 moko 1248: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 moko 1249: as_fn_error $? "invalid package name: '$ac_useropt'"
1.150 moko 1250: ac_useropt_orig=$ac_useropt
1.237 moko 1251: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 1252: case $ac_user_opts in
1253: *"
1254: "with_$ac_useropt"
1255: "*) ;;
1256: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1257: ac_unrecognized_sep=', ';;
1258: esac
1259: eval with_$ac_useropt=no ;;
1.1 paf 1260:
1261: --x)
1262: # Obsolete; use --with-x.
1263: with_x=yes ;;
1264:
1265: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1266: | --x-incl | --x-inc | --x-in | --x-i)
1267: ac_prev=x_includes ;;
1268: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1269: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 1270: x_includes=$ac_optarg ;;
1.1 paf 1271:
1272: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1273: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1274: ac_prev=x_libraries ;;
1275: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1276: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 1277: x_libraries=$ac_optarg ;;
1.1 paf 1278:
1.237 moko 1279: -*) as_fn_error $? "unrecognized option: '$ac_option'
1280: Try '$0 --help' for more information"
1.1 paf 1281: ;;
1282:
1.62 paf 1283: *=*)
1284: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1285: # Reject names that are not valid shell variable names.
1.150 moko 1286: case $ac_envvar in #(
1287: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.237 moko 1288: as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1.150 moko 1289: esac
1290: eval $ac_envvar=\$ac_optarg
1.62 paf 1291: export $ac_envvar ;;
1292:
1.1 paf 1293: *)
1.62 paf 1294: # FIXME: should be removed in autoconf 3.0.
1.237 moko 1295: printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1.62 paf 1296: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.237 moko 1297: printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1.150 moko 1298: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1299: ;;
1300:
1301: esac
1302: done
1303:
1304: if test -n "$ac_prev"; then
1.62 paf 1305: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.150 moko 1306: as_fn_error $? "missing argument to $ac_option"
1.1 paf 1307: fi
1308:
1.150 moko 1309: if test -n "$ac_unrecognized_opts"; then
1310: case $enable_option_checking in
1311: no) ;;
1312: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.237 moko 1313: *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1.150 moko 1314: esac
1315: fi
1316:
1317: # Check all directory arguments for consistency.
1318: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1319: datadir sysconfdir sharedstatedir localstatedir includedir \
1320: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.191 moko 1321: libdir localedir mandir runstatedir
1.62 paf 1322: do
1.150 moko 1323: eval ac_val=\$$ac_var
1324: # Remove trailing slashes.
1.62 paf 1325: case $ac_val in
1.150 moko 1326: */ )
1327: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1328: eval $ac_var=\$ac_val;;
1.62 paf 1329: esac
1.150 moko 1330: # Be sure to have absolute directory names.
1.62 paf 1331: case $ac_val in
1.150 moko 1332: [\\/$]* | ?:[\\/]* ) continue;;
1333: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1334: esac
1.150 moko 1335: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1336: done
1337:
1.237 moko 1338: # There might be people who depend on the old broken behavior: '$host'
1.62 paf 1339: # used to hold the argument of --host etc.
1340: # FIXME: To remove some day.
1341: build=$build_alias
1342: host=$host_alias
1343: target=$target_alias
1344:
1345: # FIXME: To remove some day.
1346: if test "x$host_alias" != x; then
1347: if test "x$build_alias" = x; then
1348: cross_compiling=maybe
1349: elif test "x$build_alias" != "x$host_alias"; then
1350: cross_compiling=yes
1351: fi
1352: fi
1353:
1354: ac_tool_prefix=
1355: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1356:
1.62 paf 1357: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1358:
1359:
1.150 moko 1360: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1361: ac_ls_di=`ls -di .` &&
1362: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1363: as_fn_error $? "working directory cannot be determined"
1364: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1365: as_fn_error $? "pwd does not report name of working directory"
1366:
1367:
1.1 paf 1368: # Find the source files, if location was not specified.
1369: if test -z "$srcdir"; then
1370: ac_srcdir_defaulted=yes
1.150 moko 1371: # Try the directory containing this script, then the parent directory.
1372: ac_confdir=`$as_dirname -- "$as_myself" ||
1373: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1374: X"$as_myself" : 'X\(//\)[^/]' \| \
1375: X"$as_myself" : 'X\(//\)$' \| \
1376: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 1377: printf "%s\n" X"$as_myself" |
1.150 moko 1378: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379: s//\1/
1380: q
1381: }
1382: /^X\(\/\/\)[^/].*/{
1383: s//\1/
1384: q
1385: }
1386: /^X\(\/\/\)$/{
1387: s//\1/
1388: q
1389: }
1390: /^X\(\/\).*/{
1391: s//\1/
1392: q
1393: }
1394: s/.*/./; q'`
1.1 paf 1395: srcdir=$ac_confdir
1.150 moko 1396: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1397: srcdir=..
1398: fi
1399: else
1400: ac_srcdir_defaulted=no
1401: fi
1.150 moko 1402: if test ! -r "$srcdir/$ac_unique_file"; then
1403: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1404: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1405: fi
1.237 moko 1406: ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1.150 moko 1407: ac_abs_confdir=`(
1408: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1409: pwd)`
1410: # When building in place, set srcdir=.
1411: if test "$ac_abs_confdir" = "$ac_pwd"; then
1412: srcdir=.
1413: fi
1414: # Remove unnecessary trailing slashes from srcdir.
1415: # Double slashes in file names in object file debugging info
1416: # mess up M-x gdb in Emacs.
1417: case $srcdir in
1418: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419: esac
1420: for ac_var in $ac_precious_vars; do
1421: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422: eval ac_env_${ac_var}_value=\$${ac_var}
1423: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425: done
1.62 paf 1426:
1427: #
1428: # Report the --help message.
1429: #
1430: if test "$ac_init_help" = "long"; then
1431: # Omit some internal or obsolete options to make the list less imposing.
1432: # This message is too long to be a string in the A/UX 3.1 sh.
1433: cat <<_ACEOF
1.237 moko 1434: 'configure' configures parser 3.5.2b to adapt to many kinds of systems.
1.62 paf 1435:
1436: Usage: $0 [OPTION]... [VAR=VALUE]...
1437:
1438: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439: VAR=VALUE. See below for descriptions of some of the useful variables.
1440:
1441: Defaults for the options are specified in brackets.
1442:
1443: Configuration:
1444: -h, --help display this help and exit
1445: --help=short display options specific to this package
1446: --help=recursive display the short help of all the included packages
1447: -V, --version display version information and exit
1.237 moko 1448: -q, --quiet, --silent do not print 'checking ...' messages
1.62 paf 1449: --cache-file=FILE cache test results in FILE [disabled]
1.237 moko 1450: -C, --config-cache alias for '--cache-file=config.cache'
1.62 paf 1451: -n, --no-create do not create output files
1.237 moko 1452: --srcdir=DIR find the sources in DIR [configure dir or '..']
1.62 paf 1453:
1454: Installation directories:
1455: --prefix=PREFIX install architecture-independent files in PREFIX
1.150 moko 1456: [$ac_default_prefix]
1.62 paf 1457: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.150 moko 1458: [PREFIX]
1.62 paf 1459:
1.237 moko 1460: By default, 'make install' will install all the files in
1461: '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1462: an installation prefix other than '$ac_default_prefix' using '--prefix',
1463: for instance '--prefix=\$HOME'.
1.62 paf 1464:
1465: For better control, use the options below.
1466:
1467: Fine tuning of the installation directories:
1.150 moko 1468: --bindir=DIR user executables [EPREFIX/bin]
1469: --sbindir=DIR system admin executables [EPREFIX/sbin]
1470: --libexecdir=DIR program executables [EPREFIX/libexec]
1471: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.191 moko 1474: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.150 moko 1475: --libdir=DIR object code libraries [EPREFIX/lib]
1476: --includedir=DIR C header files [PREFIX/include]
1477: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480: --infodir=DIR info documentation [DATAROOTDIR/info]
1481: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482: --mandir=DIR man documentation [DATAROOTDIR/man]
1483: --docdir=DIR documentation root [DATAROOTDIR/doc/parser]
1484: --htmldir=DIR html documentation [DOCDIR]
1485: --dvidir=DIR dvi documentation [DOCDIR]
1486: --pdfdir=DIR pdf documentation [DOCDIR]
1487: --psdir=DIR ps documentation [DOCDIR]
1.62 paf 1488: _ACEOF
1489:
1490: cat <<\_ACEOF
1491:
1492: Program names:
1493: --program-prefix=PREFIX prepend PREFIX to installed program names
1494: --program-suffix=SUFFIX append SUFFIX to installed program names
1495: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496:
1497: System types:
1498: --build=BUILD configure for building on BUILD [guessed]
1499: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500: _ACEOF
1501: fi
1502:
1503: if test -n "$ac_init_help"; then
1.128 moko 1504: case $ac_init_help in
1.230 moko 1505: short | recursive ) echo "Configuration of parser 3.5.2b:";;
1.128 moko 1506: esac
1.62 paf 1507: cat <<\_ACEOF
1508:
1509: Optional Features:
1.150 moko 1510: --disable-option-checking ignore unrecognized --enable/--with options
1.62 paf 1511: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.187 moko 1513: --enable-silent-rules less verbose build output (undo: "make V=1")
1514: --disable-silent-rules verbose build output (undo: "make V=0")
1515: --enable-dependency-tracking
1516: do not reject slow dependency extractors
1517: --disable-dependency-tracking
1518: speeds up one-time build
1.67 paf 1519: --disable-safe-mode to enable reading and executing
1.62 paf 1520: files belonging to group+user other then effective
1.146 moko 1521: --disable-execs to disable any execs
1.62 paf 1522: (file::exec, file::cgi, unix mail:send)
1.195 moko 1523: --disable-stringstream to disable stringstream usage.
1524: when disabled table.save uses more memory, but more compilers are supported
1.237 moko 1525: --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1526: both]
1.150 moko 1527: --enable-shared[=PKGS] build shared libraries [default=yes]
1528: --enable-static[=PKGS] build static libraries [default=yes]
1.128 moko 1529: --enable-fast-install[=PKGS]
1530: optimize for fast installation [default=yes]
1.237 moko 1531: --enable-aix-soname=aix|svr4|both
1532: shared library versioning (aka "SONAME") variant to
1533: provide on AIX, [default=aix].
1.128 moko 1534: --disable-libtool-lock avoid locking (might break parallel builds)
1535: --enable-ltdl-install install libltdl
1.171 moko 1536: --disable-largefile omit support for large files
1.237 moko 1537: --enable-year2038 support timestamps after 2038
1.62 paf 1538:
1539: Optional Packages:
1540: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 1542: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.185 moko 1543: --with-coverage to enable gcov code coverage support
1544: --with-profiler to enable gprof code profiler support
1.67 paf 1545: --with-assertions to enable assertions
1.201 moko 1546: --with-sjlj-exceptions to enable simple 'throw' from dynamic library
1547: --with-system-cfg=FILE to specify system-wide auto.p
1548: --with-gc=DIR DIR is the directory where
1.142 moko 1549: Boehm garbage collecting library is installed
1.201 moko 1550: --with-pcre=DIR DIR is the directory where
1.142 moko 1551: PCRE library is installed
1.201 moko 1552: --with-xml=DIR DIR is the directory where
1.142 moko 1553: Gnome XML libraries are installed
1.201 moko 1554: --with-mailreceive=DIR is the directory where
1.154 moko 1555: Gnome MIME library is installed
1.232 moko 1556: --with-amqp=DIR DIR is the directory where
1557: RabbitMQ C library (librabbitmq) is installed
1.239 ! moko 1558: --with-redis=DIR DIR is the directory where
! 1559: Redis C library (hiredis) is installed
1.62 paf 1560: \"--with-sendmail=COMMAND\" forces this command to send mail.
1561: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
1562: (makes parser ignore user-defined sendmail commands)
1.146 moko 1563: --with-apache=FILE FILE is the full path for APXS
1.122 moko 1564: builds apache DSO module using apxs
1.128 moko 1565: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1.237 moko 1566: --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1567: compiler's sysroot if not specified).
1.128 moko 1568: --with-included-ltdl use the GNU ltdl sources included here
1569: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1570: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 1571:
1572: Some influential environment variables:
1.237 moko 1573: YACC The 'Yet Another Compiler Compiler' implementation to use.
1574: Defaults to the first program found out of: 'bison -y', 'byacc',
1575: 'yacc'.
1.150 moko 1576: YFLAGS The list of arguments that will be passed by default to $YACC.
1577: This script will default YFLAGS to the empty string to avoid a
1.237 moko 1578: default value of '-d' given by some make applications.
1.66 paf 1579: CXX C++ compiler command
1580: CXXFLAGS C++ compiler flags
1.62 paf 1581: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582: nonstandard directory <lib dir>
1.150 moko 1583: LIBS libraries to pass to the linker, e.g. -l<library>
1584: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1585: you have headers in a nonstandard directory <include dir>
1.66 paf 1586: CC C compiler command
1587: CFLAGS C compiler flags
1.237 moko 1588: LT_SYS_LIBRARY_PATH
1589: User-defined run-time library search path.
1.128 moko 1590: CXXCPP C++ preprocessor
1.62 paf 1591:
1.237 moko 1592: Use these variables to override the choices made by 'configure' or to help
1.62 paf 1593: it to find libraries and programs with nonstandard names/locations.
1594:
1.150 moko 1595: Report bugs to the package provider.
1.62 paf 1596: _ACEOF
1.150 moko 1597: ac_status=$?
1.62 paf 1598: fi
1599:
1600: if test "$ac_init_help" = "recursive"; then
1601: # If there are subdirs, report their specific --help.
1602: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.150 moko 1603: test -d "$ac_dir" ||
1604: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605: continue
1.62 paf 1606: ac_builddir=.
1607:
1.150 moko 1608: case "$ac_dir" in
1609: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610: *)
1.237 moko 1611: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.150 moko 1612: # A ".." for each directory in $ac_dir_suffix.
1.237 moko 1613: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.150 moko 1614: case $ac_top_builddir_sub in
1615: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617: esac ;;
1618: esac
1619: ac_abs_top_builddir=$ac_pwd
1620: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621: # for backward compatibility:
1622: ac_top_builddir=$ac_top_build_prefix
1.62 paf 1623:
1624: case $srcdir in
1.150 moko 1625: .) # We are building in place.
1.62 paf 1626: ac_srcdir=.
1.150 moko 1627: ac_top_srcdir=$ac_top_builddir_sub
1628: ac_abs_top_srcdir=$ac_pwd ;;
1629: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 1630: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 1631: ac_top_srcdir=$srcdir
1632: ac_abs_top_srcdir=$srcdir ;;
1633: *) # Relative name.
1634: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635: ac_top_srcdir=$ac_top_build_prefix$srcdir
1636: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 1637: esac
1.150 moko 1638: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.62 paf 1639:
1.150 moko 1640: cd "$ac_dir" || { ac_status=$?; continue; }
1.237 moko 1641: # Check for configure.gnu first; this name is used for a wrapper for
1642: # Metaconfig's "Configure" on case-insensitive file systems.
1.150 moko 1643: if test -f "$ac_srcdir/configure.gnu"; then
1644: echo &&
1645: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646: elif test -f "$ac_srcdir/configure"; then
1647: echo &&
1648: $SHELL "$ac_srcdir/configure" --help=recursive
1.62 paf 1649: else
1.237 moko 1650: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.150 moko 1651: fi || ac_status=$?
1652: cd "$ac_pwd" || { ac_status=$?; break; }
1.62 paf 1653: done
1654: fi
1655:
1.150 moko 1656: test -n "$ac_init_help" && exit $ac_status
1.62 paf 1657: if $ac_init_version; then
1658: cat <<\_ACEOF
1.230 moko 1659: parser configure 3.5.2b
1.237 moko 1660: generated by GNU Autoconf 2.72
1.62 paf 1661:
1.237 moko 1662: Copyright (C) 2023 Free Software Foundation, Inc.
1.62 paf 1663: This configure script is free software; the Free Software Foundation
1664: gives unlimited permission to copy, distribute and modify it.
1665: _ACEOF
1.150 moko 1666: exit
1.62 paf 1667: fi
1668:
1.150 moko 1669: ## ------------------------ ##
1670: ## Autoconf initialization. ##
1671: ## ------------------------ ##
1672:
1673: # ac_fn_cxx_try_compile LINENO
1674: # ----------------------------
1675: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676: ac_fn_cxx_try_compile ()
1.62 paf 1677: {
1.150 moko 1678: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1679: rm -f conftest.$ac_objext conftest.beam
1.150 moko 1680: if { { ac_try="$ac_compile"
1681: case "(($ac_try" in
1682: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683: *) ac_try_echo=$ac_try;;
1684: esac
1685: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1686: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1687: (eval "$ac_compile") 2>conftest.err
1688: ac_status=$?
1689: if test -s conftest.err; then
1690: grep -v '^ *+' conftest.err >conftest.er1
1691: cat conftest.er1 >&5
1692: mv -f conftest.er1 conftest.err
1693: fi
1.237 moko 1694: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1695: test $ac_status = 0; } && {
1696: test -z "$ac_cxx_werror_flag" ||
1697: test ! -s conftest.err
1.237 moko 1698: } && test -s conftest.$ac_objext
1699: then :
1.150 moko 1700: ac_retval=0
1.237 moko 1701: else case e in #(
1702: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1703: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 1704:
1.237 moko 1705: ac_retval=1 ;;
1706: esac
1.150 moko 1707: fi
1708: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709: as_fn_set_status $ac_retval
1.62 paf 1710:
1.150 moko 1711: } # ac_fn_cxx_try_compile
1712:
1713: # ac_fn_c_try_compile LINENO
1714: # --------------------------
1715: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716: ac_fn_c_try_compile ()
1717: {
1718: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1719: rm -f conftest.$ac_objext conftest.beam
1.150 moko 1720: if { { ac_try="$ac_compile"
1721: case "(($ac_try" in
1722: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723: *) ac_try_echo=$ac_try;;
1724: esac
1725: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1726: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1727: (eval "$ac_compile") 2>conftest.err
1728: ac_status=$?
1729: if test -s conftest.err; then
1730: grep -v '^ *+' conftest.err >conftest.er1
1731: cat conftest.er1 >&5
1732: mv -f conftest.er1 conftest.err
1733: fi
1.237 moko 1734: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1735: test $ac_status = 0; } && {
1736: test -z "$ac_c_werror_flag" ||
1737: test ! -s conftest.err
1.237 moko 1738: } && test -s conftest.$ac_objext
1739: then :
1.150 moko 1740: ac_retval=0
1.237 moko 1741: else case e in #(
1742: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1743: sed 's/^/| /' conftest.$ac_ext >&5
1744:
1.237 moko 1745: ac_retval=1 ;;
1746: esac
1.150 moko 1747: fi
1748: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749: as_fn_set_status $ac_retval
1750:
1751: } # ac_fn_c_try_compile
1752:
1753: # ac_fn_c_try_link LINENO
1754: # -----------------------
1755: # Try to link conftest.$ac_ext, and return whether this succeeded.
1756: ac_fn_c_try_link ()
1757: {
1758: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1759: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.150 moko 1760: if { { ac_try="$ac_link"
1761: case "(($ac_try" in
1762: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763: *) ac_try_echo=$ac_try;;
1764: esac
1765: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1766: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1767: (eval "$ac_link") 2>conftest.err
1768: ac_status=$?
1769: if test -s conftest.err; then
1770: grep -v '^ *+' conftest.err >conftest.er1
1771: cat conftest.er1 >&5
1772: mv -f conftest.er1 conftest.err
1773: fi
1.237 moko 1774: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1775: test $ac_status = 0; } && {
1776: test -z "$ac_c_werror_flag" ||
1777: test ! -s conftest.err
1778: } && test -s conftest$ac_exeext && {
1779: test "$cross_compiling" = yes ||
1.166 moko 1780: test -x conftest$ac_exeext
1.237 moko 1781: }
1782: then :
1.150 moko 1783: ac_retval=0
1.237 moko 1784: else case e in #(
1785: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1786: sed 's/^/| /' conftest.$ac_ext >&5
1787:
1.237 moko 1788: ac_retval=1 ;;
1789: esac
1.150 moko 1790: fi
1791: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1792: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1793: # interfere with the next link command; also delete a directory that is
1794: # left behind by Apple's compiler. We do this before executing the actions.
1795: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797: as_fn_set_status $ac_retval
1798:
1799: } # ac_fn_c_try_link
1800:
1801: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802: # -------------------------------------------------------
1803: # Tests whether HEADER exists and can be compiled using the include files in
1804: # INCLUDES, setting the cache variable VAR accordingly.
1805: ac_fn_c_check_header_compile ()
1806: {
1807: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1808: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809: printf %s "checking for $2... " >&6; }
1810: if eval test \${$3+y}
1811: then :
1812: printf %s "(cached) " >&6
1813: else case e in #(
1814: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.150 moko 1815: /* end confdefs.h. */
1816: $4
1817: #include <$2>
1818: _ACEOF
1.237 moko 1819: if ac_fn_c_try_compile "$LINENO"
1820: then :
1.150 moko 1821: eval "$3=yes"
1.237 moko 1822: else case e in #(
1823: e) eval "$3=no" ;;
1824: esac
1.150 moko 1825: fi
1.237 moko 1826: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1827: esac
1.150 moko 1828: fi
1829: eval ac_res=\$$3
1.237 moko 1830: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831: printf "%s\n" "$ac_res" >&6; }
1.150 moko 1832: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833:
1834: } # ac_fn_c_check_header_compile
1835:
1836: # ac_fn_c_check_func LINENO FUNC VAR
1837: # ----------------------------------
1838: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839: ac_fn_c_check_func ()
1840: {
1841: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1842: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843: printf %s "checking for $2... " >&6; }
1844: if eval test \${$3+y}
1845: then :
1846: printf %s "(cached) " >&6
1847: else case e in #(
1848: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.150 moko 1849: /* end confdefs.h. */
1850: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1852: #define $2 innocuous_$2
1853:
1854: /* System header to define __stub macros and hopefully few prototypes,
1.237 moko 1855: which can conflict with char $2 (void); below. */
1.150 moko 1856:
1.237 moko 1857: #include <limits.h>
1.150 moko 1858: #undef $2
1859:
1860: /* Override any GCC internal prototype to avoid an error.
1861: Use char because int might match the return type of a GCC
1862: builtin and then its argument prototype would still apply. */
1863: #ifdef __cplusplus
1864: extern "C"
1865: #endif
1.237 moko 1866: char $2 (void);
1.150 moko 1867: /* The GNU C library defines this for functions which it implements
1868: to always fail with ENOSYS. Some functions are actually named
1869: something starting with __ and the normal name is an alias. */
1870: #if defined __stub_$2 || defined __stub___$2
1871: choke me
1872: #endif
1873:
1874: int
1.237 moko 1875: main (void)
1.150 moko 1876: {
1877: return $2 ();
1878: ;
1879: return 0;
1880: }
1881: _ACEOF
1.237 moko 1882: if ac_fn_c_try_link "$LINENO"
1883: then :
1.150 moko 1884: eval "$3=yes"
1.237 moko 1885: else case e in #(
1886: e) eval "$3=no" ;;
1887: esac
1.150 moko 1888: fi
1.237 moko 1889: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1890: conftest$ac_exeext conftest.$ac_ext ;;
1891: esac
1.150 moko 1892: fi
1893: eval ac_res=\$$3
1.237 moko 1894: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895: printf "%s\n" "$ac_res" >&6; }
1.150 moko 1896: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897:
1898: } # ac_fn_c_check_func
1899:
1900: # ac_fn_cxx_try_cpp LINENO
1901: # ------------------------
1902: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1903: ac_fn_cxx_try_cpp ()
1904: {
1905: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906: if { { ac_try="$ac_cpp conftest.$ac_ext"
1907: case "(($ac_try" in
1908: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909: *) ac_try_echo=$ac_try;;
1910: esac
1911: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1912: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1913: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1914: ac_status=$?
1915: if test -s conftest.err; then
1916: grep -v '^ *+' conftest.err >conftest.er1
1917: cat conftest.er1 >&5
1918: mv -f conftest.er1 conftest.err
1919: fi
1.237 moko 1920: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1921: test $ac_status = 0; } > conftest.i && {
1922: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1923: test ! -s conftest.err
1.237 moko 1924: }
1925: then :
1.150 moko 1926: ac_retval=0
1.237 moko 1927: else case e in #(
1928: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1929: sed 's/^/| /' conftest.$ac_ext >&5
1930:
1.237 moko 1931: ac_retval=1 ;;
1932: esac
1.150 moko 1933: fi
1934: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935: as_fn_set_status $ac_retval
1936:
1937: } # ac_fn_cxx_try_cpp
1938:
1939: # ac_fn_cxx_try_link LINENO
1940: # -------------------------
1941: # Try to link conftest.$ac_ext, and return whether this succeeded.
1942: ac_fn_cxx_try_link ()
1943: {
1944: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 1945: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.150 moko 1946: if { { ac_try="$ac_link"
1947: case "(($ac_try" in
1948: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949: *) ac_try_echo=$ac_try;;
1950: esac
1951: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 1952: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1953: (eval "$ac_link") 2>conftest.err
1954: ac_status=$?
1955: if test -s conftest.err; then
1956: grep -v '^ *+' conftest.err >conftest.er1
1957: cat conftest.er1 >&5
1958: mv -f conftest.er1 conftest.err
1959: fi
1.237 moko 1960: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1961: test $ac_status = 0; } && {
1962: test -z "$ac_cxx_werror_flag" ||
1963: test ! -s conftest.err
1964: } && test -s conftest$ac_exeext && {
1965: test "$cross_compiling" = yes ||
1.166 moko 1966: test -x conftest$ac_exeext
1.237 moko 1967: }
1968: then :
1.150 moko 1969: ac_retval=0
1.237 moko 1970: else case e in #(
1971: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1972: sed 's/^/| /' conftest.$ac_ext >&5
1973:
1.237 moko 1974: ac_retval=1 ;;
1975: esac
1.150 moko 1976: fi
1977: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1978: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1979: # interfere with the next link command; also delete a directory that is
1980: # left behind by Apple's compiler. We do this before executing the actions.
1981: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983: as_fn_set_status $ac_retval
1984:
1985: } # ac_fn_cxx_try_link
1986:
1.237 moko 1987: # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1988: # ------------------------------------------------------------------
1.150 moko 1989: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1.237 moko 1990: # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1991: ac_fn_check_decl ()
1.150 moko 1992: {
1993: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994: as_decl_name=`echo $2|sed 's/ *(.*//'`
1.237 moko 1995: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1996: printf %s "checking whether $as_decl_name is declared... " >&6; }
1997: if eval test \${$3+y}
1998: then :
1999: printf %s "(cached) " >&6
2000: else case e in #(
2001: e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2002: eval ac_save_FLAGS=\$$6
2003: as_fn_append $6 " $5"
1.150 moko 2004: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005: /* end confdefs.h. */
2006: $4
2007: int
1.237 moko 2008: main (void)
1.150 moko 2009: {
2010: #ifndef $as_decl_name
2011: #ifdef __cplusplus
2012: (void) $as_decl_use;
2013: #else
2014: (void) $as_decl_name;
2015: #endif
2016: #endif
2017:
2018: ;
2019: return 0;
2020: }
2021: _ACEOF
1.237 moko 2022: if ac_fn_c_try_compile "$LINENO"
2023: then :
1.150 moko 2024: eval "$3=yes"
1.237 moko 2025: else case e in #(
2026: e) eval "$3=no" ;;
2027: esac
1.150 moko 2028: fi
1.237 moko 2029: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2030: eval $6=\$ac_save_FLAGS
2031: ;;
2032: esac
1.150 moko 2033: fi
2034: eval ac_res=\$$3
1.237 moko 2035: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036: printf "%s\n" "$ac_res" >&6; }
1.150 moko 2037: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038:
1.237 moko 2039: } # ac_fn_check_decl
1.150 moko 2040:
2041: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2042: # -------------------------------------------
2043: # Tests whether TYPE exists after having included INCLUDES, setting cache
2044: # variable VAR accordingly.
2045: ac_fn_c_check_type ()
2046: {
2047: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 2048: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049: printf %s "checking for $2... " >&6; }
2050: if eval test \${$3+y}
2051: then :
2052: printf %s "(cached) " >&6
2053: else case e in #(
2054: e) eval "$3=no"
1.150 moko 2055: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056: /* end confdefs.h. */
2057: $4
2058: int
1.237 moko 2059: main (void)
1.150 moko 2060: {
2061: if (sizeof ($2))
2062: return 0;
2063: ;
2064: return 0;
2065: }
2066: _ACEOF
1.237 moko 2067: if ac_fn_c_try_compile "$LINENO"
2068: then :
1.150 moko 2069: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070: /* end confdefs.h. */
2071: $4
2072: int
1.237 moko 2073: main (void)
1.150 moko 2074: {
2075: if (sizeof (($2)))
2076: return 0;
2077: ;
2078: return 0;
2079: }
2080: _ACEOF
1.237 moko 2081: if ac_fn_c_try_compile "$LINENO"
2082: then :
1.150 moko 2083:
1.237 moko 2084: else case e in #(
2085: e) eval "$3=yes" ;;
2086: esac
1.150 moko 2087: fi
1.237 moko 2088: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 2089: fi
1.237 moko 2090: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2091: esac
1.150 moko 2092: fi
2093: eval ac_res=\$$3
1.237 moko 2094: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095: printf "%s\n" "$ac_res" >&6; }
1.150 moko 2096: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097:
2098: } # ac_fn_c_check_type
2099:
1.237 moko 2100: # ac_fn_c_try_run LINENO
2101: # ----------------------
2102: # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2103: # executables *can* be run.
2104: ac_fn_c_try_run ()
2105: {
2106: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107: if { { ac_try="$ac_link"
2108: case "(($ac_try" in
2109: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110: *) ac_try_echo=$ac_try;;
2111: esac
2112: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2113: printf "%s\n" "$ac_try_echo"; } >&5
2114: (eval "$ac_link") 2>&5
2115: ac_status=$?
2116: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2118: { { case "(($ac_try" in
2119: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2120: *) ac_try_echo=$ac_try;;
2121: esac
2122: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2123: printf "%s\n" "$ac_try_echo"; } >&5
2124: (eval "$ac_try") 2>&5
2125: ac_status=$?
2126: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2127: test $ac_status = 0; }; }
2128: then :
2129: ac_retval=0
2130: else case e in #(
2131: e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2132: printf "%s\n" "$as_me: failed program was:" >&5
2133: sed 's/^/| /' conftest.$ac_ext >&5
2134:
2135: ac_retval=$ac_status ;;
2136: esac
2137: fi
2138: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2139: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2140: as_fn_set_status $ac_retval
2141:
2142: } # ac_fn_c_try_run
2143:
1.156 moko 2144: # ac_fn_c_find_uintX_t LINENO BITS VAR
2145: # ------------------------------------
2146: # Finds an unsigned integer type with width BITS, setting cache variable VAR
2147: # accordingly.
2148: ac_fn_c_find_uintX_t ()
2149: {
2150: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 2151: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2152: printf %s "checking for uint$2_t... " >&6; }
2153: if eval test \${$3+y}
2154: then :
2155: printf %s "(cached) " >&6
2156: else case e in #(
2157: e) eval "$3=no"
1.156 moko 2158: # Order is important - never check a type that is potentially smaller
2159: # than half of the expected target width.
2160: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2161: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2162: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163: /* end confdefs.h. */
2164: $ac_includes_default
2165: int
1.237 moko 2166: main (void)
1.156 moko 2167: {
2168: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1.166 moko 2169: test_array [0] = 0;
2170: return test_array [0];
1.156 moko 2171:
2172: ;
2173: return 0;
2174: }
2175: _ACEOF
1.237 moko 2176: if ac_fn_c_try_compile "$LINENO"
2177: then :
1.156 moko 2178: case $ac_type in #(
2179: uint$2_t) :
2180: eval "$3=yes" ;; #(
2181: *) :
2182: eval "$3=\$ac_type" ;;
2183: esac
2184: fi
1.237 moko 2185: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2186: if eval test \"x\$"$3"\" = x"no"
2187: then :
1.156 moko 2188:
1.237 moko 2189: else case e in #(
2190: e) break ;;
2191: esac
1.156 moko 2192: fi
1.237 moko 2193: done ;;
2194: esac
1.156 moko 2195: fi
2196: eval ac_res=\$$3
1.237 moko 2197: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198: printf "%s\n" "$ac_res" >&6; }
1.156 moko 2199: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200:
2201: } # ac_fn_c_find_uintX_t
2202:
1.234 moko 2203: # ac_fn_c_find_intX_t LINENO BITS VAR
2204: # -----------------------------------
2205: # Finds a signed integer type with width BITS, setting cache variable VAR
2206: # accordingly.
2207: ac_fn_c_find_intX_t ()
2208: {
2209: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 2210: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2211: printf %s "checking for int$2_t... " >&6; }
2212: if eval test \${$3+y}
2213: then :
2214: printf %s "(cached) " >&6
2215: else case e in #(
2216: e) eval "$3=no"
1.234 moko 2217: # Order is important - never check a type that is potentially smaller
2218: # than half of the expected target width.
2219: for ac_type in int$2_t 'int' 'long int' \
2220: 'long long int' 'short int' 'signed char'; do
2221: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222: /* end confdefs.h. */
2223: $ac_includes_default
2224: enum { N = $2 / 2 - 1 };
2225: int
1.237 moko 2226: main (void)
1.234 moko 2227: {
2228: static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2229: test_array [0] = 0;
2230: return test_array [0];
2231:
2232: ;
2233: return 0;
2234: }
2235: _ACEOF
1.237 moko 2236: if ac_fn_c_try_compile "$LINENO"
2237: then :
1.234 moko 2238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239: /* end confdefs.h. */
2240: $ac_includes_default
2241: enum { N = $2 / 2 - 1 };
2242: int
1.237 moko 2243: main (void)
1.234 moko 2244: {
2245: static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2246: < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2247: test_array [0] = 0;
2248: return test_array [0];
2249:
2250: ;
2251: return 0;
2252: }
2253: _ACEOF
1.237 moko 2254: if ac_fn_c_try_compile "$LINENO"
2255: then :
1.234 moko 2256:
1.237 moko 2257: else case e in #(
2258: e) case $ac_type in #(
1.234 moko 2259: int$2_t) :
2260: eval "$3=yes" ;; #(
2261: *) :
2262: eval "$3=\$ac_type" ;;
1.237 moko 2263: esac ;;
1.234 moko 2264: esac
2265: fi
1.237 moko 2266: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.234 moko 2267: fi
1.237 moko 2268: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2269: if eval test \"x\$"$3"\" = x"no"
2270: then :
1.234 moko 2271:
1.237 moko 2272: else case e in #(
2273: e) break ;;
2274: esac
1.234 moko 2275: fi
1.237 moko 2276: done ;;
2277: esac
1.234 moko 2278: fi
2279: eval ac_res=\$$3
1.237 moko 2280: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2281: printf "%s\n" "$ac_res" >&6; }
1.234 moko 2282: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283:
2284: } # ac_fn_c_find_intX_t
2285:
1.161 moko 2286: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2287: # ----------------------------------------------------
2288: # Tries to find if the field MEMBER exists in type AGGR, after including
2289: # INCLUDES, setting cache variable VAR accordingly.
2290: ac_fn_c_check_member ()
2291: {
2292: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 2293: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2294: printf %s "checking for $2.$3... " >&6; }
2295: if eval test \${$4+y}
2296: then :
2297: printf %s "(cached) " >&6
2298: else case e in #(
2299: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.161 moko 2300: /* end confdefs.h. */
2301: $5
2302: int
1.237 moko 2303: main (void)
1.161 moko 2304: {
2305: static $2 ac_aggr;
2306: if (ac_aggr.$3)
2307: return 0;
2308: ;
2309: return 0;
2310: }
2311: _ACEOF
1.237 moko 2312: if ac_fn_c_try_compile "$LINENO"
2313: then :
1.161 moko 2314: eval "$4=yes"
1.237 moko 2315: else case e in #(
2316: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.161 moko 2317: /* end confdefs.h. */
2318: $5
2319: int
1.237 moko 2320: main (void)
1.161 moko 2321: {
2322: static $2 ac_aggr;
2323: if (sizeof ac_aggr.$3)
2324: return 0;
2325: ;
2326: return 0;
2327: }
2328: _ACEOF
1.237 moko 2329: if ac_fn_c_try_compile "$LINENO"
2330: then :
1.161 moko 2331: eval "$4=yes"
1.237 moko 2332: else case e in #(
2333: e) eval "$4=no" ;;
2334: esac
1.161 moko 2335: fi
1.237 moko 2336: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2337: esac
1.161 moko 2338: fi
1.237 moko 2339: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2340: esac
1.161 moko 2341: fi
2342: eval ac_res=\$$4
1.237 moko 2343: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344: printf "%s\n" "$ac_res" >&6; }
1.161 moko 2345: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346:
2347: } # ac_fn_c_check_member
1.237 moko 2348: ac_configure_args_raw=
2349: for ac_arg
2350: do
2351: case $ac_arg in
2352: *\'*)
2353: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2354: esac
2355: as_fn_append ac_configure_args_raw " '$ac_arg'"
2356: done
2357:
2358: case $ac_configure_args_raw in
2359: *$as_nl*)
2360: ac_safe_unquote= ;;
2361: *)
2362: ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2363: ac_unsafe_a="$ac_unsafe_z#~"
2364: ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2365: ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2366: esac
2367:
2368: cat >config.log <<_ACEOF
2369: This file contains any messages produced by compilers while
2370: running configure, to aid debugging if configure makes a mistake.
2371:
2372: It was created by parser $as_me 3.5.2b, which was
2373: generated by GNU Autoconf 2.72. Invocation command line was
2374:
2375: $ $0$ac_configure_args_raw
1.161 moko 2376:
1.237 moko 2377: _ACEOF
2378: exec 5>>config.log
1.150 moko 2379: {
1.237 moko 2380: cat <<_ASUNAME
2381: ## --------- ##
2382: ## Platform. ##
2383: ## --------- ##
1.150 moko 2384:
2385: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2386: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2387: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2388: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2389: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2390:
2391: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2392: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.62 paf 2393:
2394: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2395: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2396: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.150 moko 2397: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.62 paf 2398: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2399: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2400: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2401:
2402: _ASUNAME
2403:
2404: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405: for as_dir in $PATH
2406: do
2407: IFS=$as_save_IFS
1.237 moko 2408: case $as_dir in #(((
2409: '') as_dir=./ ;;
2410: */) ;;
2411: *) as_dir=$as_dir/ ;;
2412: esac
2413: printf "%s\n" "PATH: $as_dir"
1.150 moko 2414: done
2415: IFS=$as_save_IFS
1.1 paf 2416:
1.62 paf 2417: } >&5
2418:
2419: cat >&5 <<_ACEOF
2420:
2421:
2422: ## ----------- ##
2423: ## Core tests. ##
2424: ## ----------- ##
2425:
2426: _ACEOF
2427:
2428:
2429: # Keep a trace of the command line.
2430: # Strip out --no-create and --no-recursion so they do not pile up.
2431: # Strip out --silent because we don't want to record it for future runs.
2432: # Also quote any args containing shell meta-characters.
2433: # Make two passes to allow for proper duplicate-argument suppression.
2434: ac_configure_args=
2435: ac_configure_args0=
2436: ac_configure_args1=
2437: ac_must_keep_next=false
2438: for ac_pass in 1 2
2439: do
2440: for ac_arg
2441: do
2442: case $ac_arg in
2443: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2444: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2445: | -silent | --silent | --silen | --sile | --sil)
2446: continue ;;
1.150 moko 2447: *\'*)
1.237 moko 2448: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2449: esac
2450: case $ac_pass in
1.150 moko 2451: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.62 paf 2452: 2)
1.150 moko 2453: as_fn_append ac_configure_args1 " '$ac_arg'"
1.62 paf 2454: if test $ac_must_keep_next = true; then
1.86 paf 2455: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 2456: else
1.86 paf 2457: case $ac_arg in
2458: *=* | --config-cache | -C | -disable-* | --disable-* \
2459: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2460: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2461: | -with-* | --with-* | -without-* | --without-* | --x)
2462: case "$ac_configure_args0 " in
2463: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2464: esac
2465: ;;
2466: -* ) ac_must_keep_next=true ;;
2467: esac
1.62 paf 2468: fi
1.150 moko 2469: as_fn_append ac_configure_args " '$ac_arg'"
1.62 paf 2470: ;;
2471: esac
2472: done
2473: done
1.150 moko 2474: { ac_configure_args0=; unset ac_configure_args0;}
2475: { ac_configure_args1=; unset ac_configure_args1;}
1.62 paf 2476:
2477: # When interrupted or exit'd, cleanup temporary files, and complete
2478: # config.log. We remove comments because anyway the quotes in there
2479: # would cause problems or look ugly.
1.150 moko 2480: # WARNING: Use '\'' to represent an apostrophe within the trap.
2481: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.62 paf 2482: trap 'exit_status=$?
1.237 moko 2483: # Sanitize IFS.
2484: IFS=" "" $as_nl"
1.62 paf 2485: # Save into config.log some information that might help in debugging.
2486: {
2487: echo
2488:
1.237 moko 2489: printf "%s\n" "## ---------------- ##
1.62 paf 2490: ## Cache variables. ##
1.150 moko 2491: ## ---------------- ##"
1.62 paf 2492: echo
2493: # The following way of writing the cache mishandles newlines in values,
1.150 moko 2494: (
2495: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2496: eval ac_val=\$$ac_var
2497: case $ac_val in #(
2498: *${as_nl}*)
2499: case $ac_var in #(
1.237 moko 2500: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2501: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.150 moko 2502: esac
2503: case $ac_var in #(
2504: _ | IFS | as_nl) ;; #(
2505: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2506: *) { eval $ac_var=; unset $ac_var;} ;;
2507: esac ;;
2508: esac
2509: done
1.62 paf 2510: (set) 2>&1 |
1.150 moko 2511: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2512: *${as_nl}ac_space=\ *)
1.62 paf 2513: sed -n \
1.150 moko 2514: "s/'\''/'\''\\\\'\'''\''/g;
2515: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2516: ;; #(
1.62 paf 2517: *)
1.150 moko 2518: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 2519: ;;
1.150 moko 2520: esac |
2521: sort
2522: )
1.62 paf 2523: echo
2524:
1.237 moko 2525: printf "%s\n" "## ----------------- ##
1.62 paf 2526: ## Output variables. ##
1.150 moko 2527: ## ----------------- ##"
1.62 paf 2528: echo
2529: for ac_var in $ac_subst_vars
2530: do
1.150 moko 2531: eval ac_val=\$$ac_var
2532: case $ac_val in
1.237 moko 2533: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.150 moko 2534: esac
1.237 moko 2535: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.62 paf 2536: done | sort
2537: echo
2538:
2539: if test -n "$ac_subst_files"; then
1.237 moko 2540: printf "%s\n" "## ------------------- ##
1.150 moko 2541: ## File substitutions. ##
2542: ## ------------------- ##"
1.62 paf 2543: echo
2544: for ac_var in $ac_subst_files
2545: do
1.150 moko 2546: eval ac_val=\$$ac_var
2547: case $ac_val in
1.237 moko 2548: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.150 moko 2549: esac
1.237 moko 2550: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.62 paf 2551: done | sort
2552: echo
2553: fi
2554:
2555: if test -s confdefs.h; then
1.237 moko 2556: printf "%s\n" "## ----------- ##
1.62 paf 2557: ## confdefs.h. ##
1.150 moko 2558: ## ----------- ##"
1.62 paf 2559: echo
1.150 moko 2560: cat confdefs.h
1.62 paf 2561: echo
2562: fi
2563: test "$ac_signal" != 0 &&
1.237 moko 2564: printf "%s\n" "$as_me: caught signal $ac_signal"
2565: printf "%s\n" "$as_me: exit $exit_status"
1.62 paf 2566: } >&5
1.150 moko 2567: rm -f core *.core core.conftest.* &&
2568: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.62 paf 2569: exit $exit_status
1.150 moko 2570: ' 0
1.62 paf 2571: for ac_signal in 1 2 13 15; do
1.150 moko 2572: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.62 paf 2573: done
2574: ac_signal=0
2575:
2576: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.150 moko 2577: rm -f -r conftest* confdefs.h
2578:
1.237 moko 2579: printf "%s\n" "/* confdefs.h */" > confdefs.h
1.62 paf 2580:
2581: # Predefined preprocessor variables.
2582:
1.237 moko 2583: printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1.62 paf 2584:
1.237 moko 2585: printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1.62 paf 2586:
1.237 moko 2587: printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1.62 paf 2588:
1.237 moko 2589: printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1.62 paf 2590:
1.237 moko 2591: printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1.62 paf 2592:
1.237 moko 2593: printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1.62 paf 2594:
2595:
2596: # Let the site file select an alternate cache file if it wants to.
1.150 moko 2597: # Prefer an explicitly selected file to automatically selected ones.
2598: if test -n "$CONFIG_SITE"; then
1.237 moko 2599: ac_site_files="$CONFIG_SITE"
1.150 moko 2600: elif test "x$prefix" != xNONE; then
1.237 moko 2601: ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1.150 moko 2602: else
1.237 moko 2603: ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.150 moko 2604: fi
1.237 moko 2605:
2606: for ac_site_file in $ac_site_files
1.150 moko 2607: do
1.237 moko 2608: case $ac_site_file in #(
2609: */*) :
2610: ;; #(
2611: *) :
2612: ac_site_file=./$ac_site_file ;;
2613: esac
2614: if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2615: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2616: printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1.62 paf 2617: sed 's/^/| /' "$ac_site_file" >&5
1.150 moko 2618: . "$ac_site_file" \
1.237 moko 2619: || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2620: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 2621: as_fn_error $? "failed to load site script $ac_site_file
1.237 moko 2622: See 'config.log' for more details" "$LINENO" 5; }
1.1 paf 2623: fi
2624: done
2625:
2626: if test -r "$cache_file"; then
1.150 moko 2627: # Some versions of bash will fail to source /dev/null (special files
2628: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2629: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1.237 moko 2630: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2631: printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1.62 paf 2632: case $cache_file in
1.150 moko 2633: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2634: *) . "./$cache_file";;
1.62 paf 2635: esac
2636: fi
1.1 paf 2637: else
1.237 moko 2638: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2639: printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1.62 paf 2640: >$cache_file
2641: fi
2642:
1.237 moko 2643: # Test code for whether the C++ compiler supports C++98 (global declarations)
2644: ac_cxx_conftest_cxx98_globals='
2645: // Does the compiler advertise C++98 conformance?
2646: #if !defined __cplusplus || __cplusplus < 199711L
2647: # error "Compiler does not advertise C++98 conformance"
2648: #endif
2649:
2650: // These inclusions are to reject old compilers that
2651: // lack the unsuffixed header files.
2652: #include <cstdlib>
2653: #include <exception>
2654:
2655: // <cassert> and <cstring> are *not* freestanding headers in C++98.
2656: extern void assert (int);
2657: namespace std {
2658: extern int strcmp (const char *, const char *);
2659: }
2660:
2661: // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2662: using std::exception;
2663: using std::strcmp;
2664:
2665: namespace {
2666:
2667: void test_exception_syntax()
2668: {
2669: try {
2670: throw "test";
2671: } catch (const char *s) {
2672: // Extra parentheses suppress a warning when building autoconf itself,
2673: // due to lint rules shared with more typical C programs.
2674: assert (!(strcmp) (s, "test"));
2675: }
2676: }
2677:
2678: template <typename T> struct test_template
2679: {
2680: T const val;
2681: explicit test_template(T t) : val(t) {}
2682: template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2683: };
2684:
2685: } // anonymous namespace
2686: '
2687:
2688: # Test code for whether the C++ compiler supports C++98 (body of main)
2689: ac_cxx_conftest_cxx98_main='
2690: assert (argc);
2691: assert (! argv[0]);
2692: {
2693: test_exception_syntax ();
2694: test_template<double> tt (2.0);
2695: assert (tt.add (4) == 6.0);
2696: assert (true && !false);
2697: }
2698: '
2699:
2700: # Test code for whether the C++ compiler supports C++11 (global declarations)
2701: ac_cxx_conftest_cxx11_globals='
2702: // Does the compiler advertise C++ 2011 conformance?
2703: #if !defined __cplusplus || __cplusplus < 201103L
2704: # error "Compiler does not advertise C++11 conformance"
2705: #endif
2706:
2707: namespace cxx11test
2708: {
2709: constexpr int get_val() { return 20; }
2710:
2711: struct testinit
2712: {
2713: int i;
2714: double d;
2715: };
2716:
2717: class delegate
2718: {
2719: public:
2720: delegate(int n) : n(n) {}
2721: delegate(): delegate(2354) {}
2722:
2723: virtual int getval() { return this->n; };
2724: protected:
2725: int n;
2726: };
2727:
2728: class overridden : public delegate
2729: {
2730: public:
2731: overridden(int n): delegate(n) {}
2732: virtual int getval() override final { return this->n * 2; }
2733: };
2734:
2735: class nocopy
2736: {
2737: public:
2738: nocopy(int i): i(i) {}
2739: nocopy() = default;
2740: nocopy(const nocopy&) = delete;
2741: nocopy & operator=(const nocopy&) = delete;
2742: private:
2743: int i;
2744: };
2745:
2746: // for testing lambda expressions
2747: template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2748: {
2749: return f(v);
2750: }
2751:
2752: // for testing variadic templates and trailing return types
2753: template <typename V> auto sum(V first) -> V
2754: {
2755: return first;
2756: }
2757: template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2758: {
2759: return first + sum(rest...);
2760: }
2761: }
2762: '
2763:
2764: # Test code for whether the C++ compiler supports C++11 (body of main)
2765: ac_cxx_conftest_cxx11_main='
2766: {
2767: // Test auto and decltype
2768: auto a1 = 6538;
2769: auto a2 = 48573953.4;
2770: auto a3 = "String literal";
2771:
2772: int total = 0;
2773: for (auto i = a3; *i; ++i) { total += *i; }
2774:
2775: decltype(a2) a4 = 34895.034;
2776: }
2777: {
2778: // Test constexpr
2779: short sa[cxx11test::get_val()] = { 0 };
2780: }
2781: {
2782: // Test initializer lists
2783: cxx11test::testinit il = { 4323, 435234.23544 };
2784: }
2785: {
2786: // Test range-based for
2787: int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2788: 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2789: for (auto &x : array) { x += 23; }
2790: }
2791: {
2792: // Test lambda expressions
2793: using cxx11test::eval;
2794: assert (eval ([](int x) { return x*2; }, 21) == 42);
2795: double d = 2.0;
2796: assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2797: assert (d == 5.0);
2798: assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2799: assert (d == 5.0);
2800: }
2801: {
2802: // Test use of variadic templates
2803: using cxx11test::sum;
2804: auto a = sum(1);
2805: auto b = sum(1, 2);
2806: auto c = sum(1.0, 2.0, 3.0);
2807: }
2808: {
2809: // Test constructor delegation
2810: cxx11test::delegate d1;
2811: cxx11test::delegate d2();
2812: cxx11test::delegate d3(45);
2813: }
2814: {
2815: // Test override and final
2816: cxx11test::overridden o1(55464);
2817: }
2818: {
2819: // Test nullptr
2820: char *c = nullptr;
2821: }
2822: {
2823: // Test template brackets
2824: test_template<::test_template<int>> v(test_template<int>(12));
2825: }
2826: {
2827: // Unicode literals
2828: char const *utf8 = u8"UTF-8 string \u2500";
2829: char16_t const *utf16 = u"UTF-8 string \u2500";
2830: char32_t const *utf32 = U"UTF-32 string \u2500";
2831: }
2832: '
2833:
2834: # Test code for whether the C compiler supports C++11 (complete).
2835: ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2836: ${ac_cxx_conftest_cxx11_globals}
2837:
2838: int
2839: main (int argc, char **argv)
2840: {
2841: int ok = 0;
2842: ${ac_cxx_conftest_cxx98_main}
2843: ${ac_cxx_conftest_cxx11_main}
2844: return ok;
2845: }
2846: "
2847:
2848: # Test code for whether the C compiler supports C++98 (complete).
2849: ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2850: int
2851: main (int argc, char **argv)
2852: {
2853: int ok = 0;
2854: ${ac_cxx_conftest_cxx98_main}
2855: return ok;
2856: }
2857: "
2858:
2859: # Test code for whether the C compiler supports C89 (global declarations)
2860: ac_c_conftest_c89_globals='
2861: /* Does the compiler advertise C89 conformance?
2862: Do not test the value of __STDC__, because some compilers set it to 0
2863: while being otherwise adequately conformant. */
2864: #if !defined __STDC__
2865: # error "Compiler does not advertise C89 conformance"
2866: #endif
2867:
2868: #include <stddef.h>
2869: #include <stdarg.h>
2870: struct stat;
2871: /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2872: struct buf { int x; };
2873: struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2874: static char *e (char **p, int i)
2875: {
2876: return p[i];
2877: }
2878: static char *f (char * (*g) (char **, int), char **p, ...)
2879: {
2880: char *s;
2881: va_list v;
2882: va_start (v,p);
2883: s = g (p, va_arg (v,int));
2884: va_end (v);
2885: return s;
2886: }
2887:
2888: /* C89 style stringification. */
2889: #define noexpand_stringify(a) #a
2890: const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2891:
2892: /* C89 style token pasting. Exercises some of the corner cases that
2893: e.g. old MSVC gets wrong, but not very hard. */
2894: #define noexpand_concat(a,b) a##b
2895: #define expand_concat(a,b) noexpand_concat(a,b)
2896: extern int vA;
2897: extern int vbee;
2898: #define aye A
2899: #define bee B
2900: int *pvA = &expand_concat(v,aye);
2901: int *pvbee = &noexpand_concat(v,bee);
2902:
2903: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2904: function prototypes and stuff, but not \xHH hex character constants.
2905: These do not provoke an error unfortunately, instead are silently treated
2906: as an "x". The following induces an error, until -std is added to get
2907: proper ANSI mode. Curiously \x00 != x always comes out true, for an
2908: array size at least. It is necessary to write \x00 == 0 to get something
2909: that is true only with -std. */
2910: int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2911:
2912: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2913: inside strings and character constants. */
2914: #define FOO(x) '\''x'\''
2915: int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2916:
2917: int test (int i, double x);
2918: struct s1 {int (*f) (int a);};
2919: struct s2 {int (*f) (double a);};
2920: int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2921: int, int);'
2922:
2923: # Test code for whether the C compiler supports C89 (body of main).
2924: ac_c_conftest_c89_main='
2925: ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2926: '
2927:
2928: # Test code for whether the C compiler supports C99 (global declarations)
2929: ac_c_conftest_c99_globals='
2930: /* Does the compiler advertise C99 conformance? */
2931: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2932: # error "Compiler does not advertise C99 conformance"
2933: #endif
2934:
2935: // See if C++-style comments work.
2936:
2937: #include <stdbool.h>
2938: extern int puts (const char *);
2939: extern int printf (const char *, ...);
2940: extern int dprintf (int, const char *, ...);
2941: extern void *malloc (size_t);
2942: extern void free (void *);
2943:
2944: // Check varargs macros. These examples are taken from C99 6.10.3.5.
2945: // dprintf is used instead of fprintf to avoid needing to declare
2946: // FILE and stderr.
2947: #define debug(...) dprintf (2, __VA_ARGS__)
2948: #define showlist(...) puts (#__VA_ARGS__)
2949: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2950: static void
2951: test_varargs_macros (void)
2952: {
2953: int x = 1234;
2954: int y = 5678;
2955: debug ("Flag");
2956: debug ("X = %d\n", x);
2957: showlist (The first, second, and third items.);
2958: report (x>y, "x is %d but y is %d", x, y);
2959: }
2960:
2961: // Check long long types.
2962: #define BIG64 18446744073709551615ull
2963: #define BIG32 4294967295ul
2964: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2965: #if !BIG_OK
2966: #error "your preprocessor is broken"
2967: #endif
2968: #if BIG_OK
2969: #else
2970: #error "your preprocessor is broken"
2971: #endif
2972: static long long int bignum = -9223372036854775807LL;
2973: static unsigned long long int ubignum = BIG64;
2974:
2975: struct incomplete_array
2976: {
2977: int datasize;
2978: double data[];
2979: };
2980:
2981: struct named_init {
2982: int number;
2983: const wchar_t *name;
2984: double average;
2985: };
2986:
2987: typedef const char *ccp;
2988:
2989: static inline int
2990: test_restrict (ccp restrict text)
2991: {
2992: // Iterate through items via the restricted pointer.
2993: // Also check for declarations in for loops.
2994: for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2995: continue;
2996: return 0;
2997: }
2998:
2999: // Check varargs and va_copy.
3000: static bool
3001: test_varargs (const char *format, ...)
3002: {
3003: va_list args;
3004: va_start (args, format);
3005: va_list args_copy;
3006: va_copy (args_copy, args);
3007:
3008: const char *str = "";
3009: int number = 0;
3010: float fnumber = 0;
3011:
3012: while (*format)
3013: {
3014: switch (*format++)
3015: {
3016: case '\''s'\'': // string
3017: str = va_arg (args_copy, const char *);
3018: break;
3019: case '\''d'\'': // int
3020: number = va_arg (args_copy, int);
3021: break;
3022: case '\''f'\'': // float
3023: fnumber = va_arg (args_copy, double);
3024: break;
3025: default:
3026: break;
3027: }
3028: }
3029: va_end (args_copy);
3030: va_end (args);
3031:
3032: return *str && number && fnumber;
3033: }
3034: '
3035:
3036: # Test code for whether the C compiler supports C99 (body of main).
3037: ac_c_conftest_c99_main='
3038: // Check bool.
3039: _Bool success = false;
3040: success |= (argc != 0);
3041:
3042: // Check restrict.
3043: if (test_restrict ("String literal") == 0)
3044: success = true;
3045: char *restrict newvar = "Another string";
3046:
3047: // Check varargs.
3048: success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3049: test_varargs_macros ();
3050:
3051: // Check flexible array members.
3052: struct incomplete_array *ia =
3053: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3054: ia->datasize = 10;
3055: for (int i = 0; i < ia->datasize; ++i)
3056: ia->data[i] = i * 1.234;
3057: // Work around memory leak warnings.
3058: free (ia);
3059:
3060: // Check named initializers.
3061: struct named_init ni = {
3062: .number = 34,
3063: .name = L"Test wide string",
3064: .average = 543.34343,
3065: };
3066:
3067: ni.number = 58;
3068:
3069: int dynamic_array[ni.number];
3070: dynamic_array[0] = argv[0][0];
3071: dynamic_array[ni.number - 1] = 543;
3072:
3073: // work around unused variable warnings
3074: ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3075: || dynamic_array[ni.number - 1] != 543);
3076: '
3077:
3078: # Test code for whether the C compiler supports C11 (global declarations)
3079: ac_c_conftest_c11_globals='
3080: /* Does the compiler advertise C11 conformance? */
3081: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3082: # error "Compiler does not advertise C11 conformance"
3083: #endif
3084:
3085: // Check _Alignas.
3086: char _Alignas (double) aligned_as_double;
3087: char _Alignas (0) no_special_alignment;
3088: extern char aligned_as_int;
3089: char _Alignas (0) _Alignas (int) aligned_as_int;
3090:
3091: // Check _Alignof.
3092: enum
3093: {
3094: int_alignment = _Alignof (int),
3095: int_array_alignment = _Alignof (int[100]),
3096: char_alignment = _Alignof (char)
3097: };
3098: _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3099:
3100: // Check _Noreturn.
3101: int _Noreturn does_not_return (void) { for (;;) continue; }
3102:
3103: // Check _Static_assert.
3104: struct test_static_assert
3105: {
3106: int x;
3107: _Static_assert (sizeof (int) <= sizeof (long int),
3108: "_Static_assert does not work in struct");
3109: long int y;
3110: };
3111:
3112: // Check UTF-8 literals.
3113: #define u8 syntax error!
3114: char const utf8_literal[] = u8"happens to be ASCII" "another string";
3115:
3116: // Check duplicate typedefs.
3117: typedef long *long_ptr;
3118: typedef long int *long_ptr;
3119: typedef long_ptr long_ptr;
3120:
3121: // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3122: struct anonymous
3123: {
3124: union {
3125: struct { int i; int j; };
3126: struct { int k; long int l; } w;
3127: };
3128: int m;
3129: } v1;
3130: '
3131:
3132: # Test code for whether the C compiler supports C11 (body of main).
3133: ac_c_conftest_c11_main='
3134: _Static_assert ((offsetof (struct anonymous, i)
3135: == offsetof (struct anonymous, w.k)),
3136: "Anonymous union alignment botch");
3137: v1.i = 2;
3138: v1.w.k = 5;
3139: ok |= v1.i != 5;
3140: '
3141:
3142: # Test code for whether the C compiler supports C11 (complete).
3143: ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3144: ${ac_c_conftest_c99_globals}
3145: ${ac_c_conftest_c11_globals}
3146:
3147: int
3148: main (int argc, char **argv)
3149: {
3150: int ok = 0;
3151: ${ac_c_conftest_c89_main}
3152: ${ac_c_conftest_c99_main}
3153: ${ac_c_conftest_c11_main}
3154: return ok;
3155: }
3156: "
3157:
3158: # Test code for whether the C compiler supports C99 (complete).
3159: ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3160: ${ac_c_conftest_c99_globals}
3161:
3162: int
3163: main (int argc, char **argv)
3164: {
3165: int ok = 0;
3166: ${ac_c_conftest_c89_main}
3167: ${ac_c_conftest_c99_main}
3168: return ok;
3169: }
3170: "
3171:
3172: # Test code for whether the C compiler supports C89 (complete).
3173: ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3174:
3175: int
3176: main (int argc, char **argv)
3177: {
3178: int ok = 0;
3179: ${ac_c_conftest_c89_main}
3180: return ok;
3181: }
3182: "
3183:
3184: as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3185: as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3186: as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3187: as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3188: as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3189: as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3190: as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3191: as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3192: as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3193:
3194: # Auxiliary files required by this configure script.
3195: ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
3196:
3197: # Locations in which to look for auxiliary files.
3198: ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3199:
3200: # Search for a directory containing all of the required auxiliary files,
3201: # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3202: # If we don't find one directory that contains all the files we need,
3203: # we report the set of missing files from the *first* directory in
3204: # $ac_aux_dir_candidates and give up.
3205: ac_missing_aux_files=""
3206: ac_first_candidate=:
3207: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3208: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209: as_found=false
3210: for as_dir in $ac_aux_dir_candidates
3211: do
3212: IFS=$as_save_IFS
3213: case $as_dir in #(((
3214: '') as_dir=./ ;;
3215: */) ;;
3216: *) as_dir=$as_dir/ ;;
3217: esac
3218: as_found=:
3219:
3220: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3221: ac_aux_dir_found=yes
3222: ac_install_sh=
3223: for ac_aux in $ac_aux_files
3224: do
3225: # As a special case, if "install-sh" is required, that requirement
3226: # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3227: # and $ac_install_sh is set appropriately for whichever one is found.
3228: if test x"$ac_aux" = x"install-sh"
3229: then
3230: if test -f "${as_dir}install-sh"; then
3231: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3232: ac_install_sh="${as_dir}install-sh -c"
3233: elif test -f "${as_dir}install.sh"; then
3234: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3235: ac_install_sh="${as_dir}install.sh -c"
3236: elif test -f "${as_dir}shtool"; then
3237: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3238: ac_install_sh="${as_dir}shtool install -c"
3239: else
3240: ac_aux_dir_found=no
3241: if $ac_first_candidate; then
3242: ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3243: else
3244: break
3245: fi
3246: fi
3247: else
3248: if test -f "${as_dir}${ac_aux}"; then
3249: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3250: else
3251: ac_aux_dir_found=no
3252: if $ac_first_candidate; then
3253: ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3254: else
3255: break
3256: fi
3257: fi
3258: fi
3259: done
3260: if test "$ac_aux_dir_found" = yes; then
3261: ac_aux_dir="$as_dir"
3262: break
3263: fi
3264: ac_first_candidate=false
3265:
3266: as_found=false
3267: done
3268: IFS=$as_save_IFS
3269: if $as_found
3270: then :
3271:
3272: else case e in #(
3273: e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3274: esac
3275: fi
3276:
3277:
3278: # These three variables are undocumented and unsupported,
3279: # and are intended to be withdrawn in a future Autoconf release.
3280: # They can cause serious problems if a builder's source tree is in a directory
3281: # whose full name contains unusual characters.
3282: if test -f "${ac_aux_dir}config.guess"; then
3283: ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3284: fi
3285: if test -f "${ac_aux_dir}config.sub"; then
3286: ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3287: fi
3288: if test -f "$ac_aux_dir/configure"; then
3289: ac_configure="$SHELL ${ac_aux_dir}configure"
3290: fi
3291:
1.62 paf 3292: # Check that the precious variables saved in the cache have kept the same
3293: # value.
3294: ac_cache_corrupted=false
1.150 moko 3295: for ac_var in $ac_precious_vars; do
1.62 paf 3296: eval ac_old_set=\$ac_cv_env_${ac_var}_set
3297: eval ac_new_set=\$ac_env_${ac_var}_set
1.150 moko 3298: eval ac_old_val=\$ac_cv_env_${ac_var}_value
3299: eval ac_new_val=\$ac_env_${ac_var}_value
1.62 paf 3300: case $ac_old_set,$ac_new_set in
3301: set,)
1.237 moko 3302: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3303: printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
1.62 paf 3304: ac_cache_corrupted=: ;;
3305: ,set)
1.237 moko 3306: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3307: printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
1.62 paf 3308: ac_cache_corrupted=: ;;
3309: ,);;
3310: *)
3311: if test "x$ac_old_val" != "x$ac_new_val"; then
1.150 moko 3312: # differences in whitespace do not lead to failure.
3313: ac_old_val_w=`echo x $ac_old_val`
3314: ac_new_val_w=`echo x $ac_new_val`
3315: if test "$ac_old_val_w" != "$ac_new_val_w"; then
1.237 moko 3316: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3317: printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
1.150 moko 3318: ac_cache_corrupted=:
3319: else
1.237 moko 3320: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3321: printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
1.150 moko 3322: eval $ac_var=\$ac_old_val
3323: fi
1.237 moko 3324: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3325: printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3326: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3327: printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
1.62 paf 3328: fi;;
3329: esac
3330: # Pass precious variables to config.status.
3331: if test "$ac_new_set" = set; then
3332: case $ac_new_val in
1.237 moko 3333: *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 3334: *) ac_arg=$ac_var=$ac_new_val ;;
3335: esac
3336: case " $ac_configure_args " in
3337: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.150 moko 3338: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.62 paf 3339: esac
3340: fi
3341: done
3342: if $ac_cache_corrupted; then
1.237 moko 3343: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3344: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3345: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3346: printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3347: as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3348: and start over" "$LINENO" 5
1.150 moko 3349: fi
3350: ## -------------------- ##
3351: ## Main body of script. ##
3352: ## -------------------- ##
1.1 paf 3353:
3354: ac_ext=c
3355: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 3356: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359:
3360:
3361:
3362:
3363:
1.229 moko 3364:
1.237 moko 3365: am__api_version='1.17'
3366:
1.150 moko 3367:
1.1 paf 3368:
1.237 moko 3369: # Find a good install program. We prefer a C program (faster),
1.1 paf 3370: # so one script is as good as another. But avoid the broken or
3371: # incompatible versions:
3372: # SysV /etc/install, /usr/sbin/install
3373: # SunOS /usr/etc/install
3374: # IRIX /sbin/install
3375: # AIX /bin/install
1.62 paf 3376: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 3377: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3378: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3379: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 3380: # OS/2's system install, which has a completely different semantic
1.1 paf 3381: # ./install, which can be erroneously created by make from ./install.sh.
1.150 moko 3382: # Reject install programs that cannot install multiple files.
1.237 moko 3383: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3384: printf %s "checking for a BSD-compatible install... " >&6; }
1.1 paf 3385: if test -z "$INSTALL"; then
1.237 moko 3386: if test ${ac_cv_path_install+y}
3387: then :
3388: printf %s "(cached) " >&6
3389: else case e in #(
3390: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.62 paf 3391: for as_dir in $PATH
3392: do
3393: IFS=$as_save_IFS
1.237 moko 3394: case $as_dir in #(((
3395: '') as_dir=./ ;;
3396: */) ;;
3397: *) as_dir=$as_dir/ ;;
3398: esac
3399: # Account for fact that we put trailing slashes in our PATH walk.
3400: case $as_dir in #((
3401: ./ | /[cC]/* | \
1.62 paf 3402: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.150 moko 3403: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.62 paf 3404: /usr/ucb/* ) ;;
3405: *)
3406: # OSF1 and SCO ODT 3.0 have their own names for install.
3407: # Don't use installbsd from OSF since it installs stuff as root
3408: # by default.
3409: for ac_prog in ginstall scoinst install; do
3410: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3411: if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
1.86 paf 3412: if test $ac_prog = install &&
1.237 moko 3413: grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.86 paf 3414: # AIX install. It has an incompatible calling convention.
3415: :
3416: elif test $ac_prog = install &&
1.237 moko 3417: grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.86 paf 3418: # program-specific install script used by HP pwplus--don't use.
3419: :
3420: else
1.150 moko 3421: rm -rf conftest.one conftest.two conftest.dir
3422: echo one > conftest.one
3423: echo two > conftest.two
3424: mkdir conftest.dir
1.237 moko 3425: if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
1.150 moko 3426: test -s conftest.one && test -s conftest.two &&
3427: test -s conftest.dir/conftest.one &&
3428: test -s conftest.dir/conftest.two
3429: then
1.237 moko 3430: ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
1.150 moko 3431: break 3
3432: fi
1.86 paf 3433: fi
3434: fi
1.1 paf 3435: done
1.62 paf 3436: done
3437: ;;
3438: esac
3439:
1.150 moko 3440: done
3441: IFS=$as_save_IFS
3442:
3443: rm -rf conftest.one conftest.two conftest.dir
1.237 moko 3444: ;;
3445: esac
1.1 paf 3446: fi
1.237 moko 3447: if test ${ac_cv_path_install+y}; then
1.62 paf 3448: INSTALL=$ac_cv_path_install
1.1 paf 3449: else
1.150 moko 3450: # As a last resort, use the slow shell script. Don't cache a
3451: # value for INSTALL within a source directory, because that will
1.1 paf 3452: # break other packages using the cache if that directory is
1.150 moko 3453: # removed, or if the value is a relative name.
1.62 paf 3454: INSTALL=$ac_install_sh
1.1 paf 3455: fi
3456: fi
1.237 moko 3457: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3458: printf "%s\n" "$INSTALL" >&6; }
1.1 paf 3459:
3460: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3461: # It thinks the first close brace ends the variable substitution.
3462: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3463:
1.62 paf 3464: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 3465:
3466: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3467:
1.237 moko 3468: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3469: printf %s "checking whether sleep supports fractional seconds... " >&6; }
3470: if test ${am_cv_sleep_fractional_seconds+y}
3471: then :
3472: printf %s "(cached) " >&6
3473: else case e in #(
3474: e) if sleep 0.001 2>/dev/null
3475: then :
3476: am_cv_sleep_fractional_seconds=yes
3477: else case e in #(
3478: e) am_cv_sleep_fractional_seconds=no ;;
3479: esac
3480: fi
3481: ;;
3482: esac
3483: fi
3484: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3485: printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3486:
3487: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3488: printf %s "checking filesystem timestamp resolution... " >&6; }
3489: if test ${am_cv_filesystem_timestamp_resolution+y}
3490: then :
3491: printf %s "(cached) " >&6
3492: else case e in #(
3493: e) # Default to the worst case.
3494: am_cv_filesystem_timestamp_resolution=2
3495:
3496: # Only try to go finer than 1 sec if sleep can do it.
3497: # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3498: # - 1 sec is not much of a win compared to 2 sec, and
3499: # - it takes 2 seconds to perform the test whether 1 sec works.
3500: #
3501: # Instead, just use the default 2s on platforms that have 1s resolution,
3502: # accept the extra 1s delay when using $sleep in the Automake tests, in
3503: # exchange for not incurring the 2s delay for running the test for all
3504: # packages.
3505: #
3506: am_try_resolutions=
3507: if test "$am_cv_sleep_fractional_seconds" = yes; then
3508: # Even a millisecond often causes a bunch of false positives,
3509: # so just try a hundredth of a second. The time saved between .001 and
3510: # .01 is not terribly consequential.
3511: am_try_resolutions="0.01 0.1 $am_try_resolutions"
3512: fi
3513:
3514: # In order to catch current-generation FAT out, we must *modify* files
3515: # that already exist; the *creation* timestamp is finer. Use names
3516: # that make ls -t sort them differently when they have equal
3517: # timestamps than when they have distinct timestamps, keeping
3518: # in mind that ls -t prints the *newest* file first.
3519: rm -f conftest.ts?
3520: : > conftest.ts1
3521: : > conftest.ts2
3522: : > conftest.ts3
3523:
3524: # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3525: # clobber the current shell's arguments. (Outer-level square brackets
3526: # are removed by m4; they're present so that m4 does not expand
3527: # <dollar><star>; be careful, easy to get confused.)
3528: if (
3529: set X `ls -t conftest.ts[12]` &&
3530: {
3531: test "$*" != "X conftest.ts1 conftest.ts2" ||
3532: test "$*" != "X conftest.ts2 conftest.ts1";
3533: }
3534: ); then :; else
3535: # If neither matched, then we have a broken ls. This can happen
3536: # if, for instance, CONFIG_SHELL is bash and it inherits a
3537: # broken ls alias from the environment. This has actually
3538: # happened. Such a system could not be considered "sane".
3539: printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3540: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3541: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3542: as_fn_error $? "ls -t produces unexpected output.
3543: Make sure there is not a broken ls alias in your environment.
3544: See 'config.log' for more details" "$LINENO" 5; }
3545: fi
3546:
3547: for am_try_res in $am_try_resolutions; do
3548: # Any one fine-grained sleep might happen to cross the boundary
3549: # between two values of a coarser actual resolution, but if we do
3550: # two fine-grained sleeps in a row, at least one of them will fall
3551: # entirely within a coarse interval.
3552: echo alpha > conftest.ts1
3553: sleep $am_try_res
3554: echo beta > conftest.ts2
3555: sleep $am_try_res
3556: echo gamma > conftest.ts3
3557:
3558: # We assume that 'ls -t' will make use of high-resolution
3559: # timestamps if the operating system supports them at all.
3560: if (set X `ls -t conftest.ts?` &&
3561: test "$2" = conftest.ts3 &&
3562: test "$3" = conftest.ts2 &&
3563: test "$4" = conftest.ts1); then
3564: #
3565: # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3566: # because we don't need to test make.
3567: make_ok=true
3568: if test $am_try_res != 1; then
3569: # But if we've succeeded so far with a subsecond resolution, we
3570: # have one more thing to check: make. It can happen that
3571: # everything else supports the subsecond mtimes, but make doesn't;
3572: # notably on macOS, which ships make 3.81 from 2006 (the last one
3573: # released under GPLv2). https://bugs.gnu.org/68808
3574: #
3575: # We test $MAKE if it is defined in the environment, else "make".
3576: # It might get overridden later, but our hope is that in practice
3577: # it does not matter: it is the system "make" which is (by far)
3578: # the most likely to be broken, whereas if the user overrides it,
3579: # probably they did so with a better, or at least not worse, make.
3580: # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3581: #
3582: # Create a Makefile (real tab character here):
3583: rm -f conftest.mk
3584: echo 'conftest.ts1: conftest.ts2' >conftest.mk
3585: echo ' touch conftest.ts2' >>conftest.mk
3586: #
3587: # Now, running
3588: # touch conftest.ts1; touch conftest.ts2; make
3589: # should touch ts1 because ts2 is newer. This could happen by luck,
3590: # but most often, it will fail if make's support is insufficient. So
3591: # test for several consecutive successes.
3592: #
3593: # (We reuse conftest.ts[12] because we still want to modify existing
3594: # files, not create new ones, per above.)
3595: n=0
3596: make=${MAKE-make}
3597: until test $n -eq 3; do
3598: echo one > conftest.ts1
3599: sleep $am_try_res
3600: echo two > conftest.ts2 # ts2 should now be newer than ts1
3601: if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3602: make_ok=false
3603: break # out of $n loop
3604: fi
3605: n=`expr $n + 1`
3606: done
3607: fi
3608: #
3609: if $make_ok; then
3610: # Everything we know to check worked out, so call this resolution good.
3611: am_cv_filesystem_timestamp_resolution=$am_try_res
3612: break # out of $am_try_res loop
3613: fi
3614: # Otherwise, we'll go on to check the next resolution.
3615: fi
3616: done
3617: rm -f conftest.ts?
3618: # (end _am_filesystem_timestamp_resolution)
3619: ;;
3620: esac
3621: fi
3622: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3623: printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3624:
3625: # This check should not be cached, as it may vary across builds of
3626: # different projects.
3627: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3628: printf %s "checking whether build environment is sane... " >&6; }
1.150 moko 3629: # Reject unsafe characters in $srcdir or the absolute working directory
3630: # name. Accept space and tab only in the latter.
3631: am_lf='
3632: '
3633: case `pwd` in
3634: *[\\\"\#\$\&\'\`$am_lf]*)
3635: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3636: esac
3637: case $srcdir in
3638: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.187 moko 3639: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.150 moko 3640: esac
3641:
1.187 moko 3642: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 paf 3643: # arguments. Must try -L first in case configure is actually a
3644: # symlink; some systems play weird games with the mod time of symlinks
3645: # (eg FreeBSD returns the mod time of the symlink's containing
3646: # directory).
1.237 moko 3647: am_build_env_is_sane=no
3648: am_has_slept=no
3649: rm -f conftest.file
3650: for am_try in 1 2; do
3651: echo "timestamp, slept: $am_has_slept" > conftest.file
3652: if (
3653: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3654: if test "$*" = "X"; then
3655: # -L didn't work.
3656: set X `ls -t "$srcdir/configure" conftest.file`
3657: fi
3658: test "$2" = conftest.file
3659: ); then
3660: am_build_env_is_sane=yes
3661: break
3662: fi
3663: # Just in case.
3664: sleep "$am_cv_filesystem_timestamp_resolution"
3665: am_has_slept=yes
3666: done
1.1 paf 3667:
1.237 moko 3668: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3669: printf "%s\n" "$am_build_env_is_sane" >&6; }
3670: if test "$am_build_env_is_sane" = no; then
3671: as_fn_error $? "newly created file is older than distributed files!
1.150 moko 3672: Check your system clock" "$LINENO" 5
1.1 paf 3673: fi
1.237 moko 3674:
1.187 moko 3675: # If we didn't sleep, we still need to ensure time stamps of config.status and
3676: # generated files are strictly newer.
3677: am_sleep_pid=
1.237 moko 3678: if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3679: then :
3680:
3681: else case e in #(
3682: e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
1.187 moko 3683: am_sleep_pid=$!
1.237 moko 3684: ;;
3685: esac
1.187 moko 3686: fi
3687:
3688: rm -f conftest.file
3689:
1.1 paf 3690: test "$program_prefix" != NONE &&
1.150 moko 3691: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 3692: # Use a double $ so make ignores it.
3693: test "$program_suffix" != NONE &&
1.150 moko 3694: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3695: # Double any \ or $.
1.237 moko 3696: # By default was 's,x,x', remove it if useless.
1.150 moko 3697: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1.237 moko 3698: program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3699:
1.62 paf 3700:
1.187 moko 3701: # Expand $ac_aux_dir to an absolute path.
3702: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.62 paf 3703:
1.237 moko 3704:
3705: if test x"${MISSING+set}" != xset; then
1.216 moko 3706: MISSING="\${SHELL} '$am_aux_dir/missing'"
1.150 moko 3707: fi
1.62 paf 3708: # Use eval to expand $SHELL
1.187 moko 3709: if eval "$MISSING --is-lightweight"; then
3710: am_missing_run="$MISSING "
1.62 paf 3711: else
3712: am_missing_run=
1.237 moko 3713: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3714: printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.62 paf 3715: fi
3716:
1.187 moko 3717: if test x"${install_sh+set}" != xset; then
1.150 moko 3718: case $am_aux_dir in
3719: *\ * | *\ *)
3720: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3721: *)
3722: install_sh="\${SHELL} $am_aux_dir/install-sh"
3723: esac
1.86 paf 3724: fi
3725:
1.187 moko 3726: # Installed binaries are usually stripped using 'strip' when the user
3727: # run "make install-strip". However 'strip' might not be the right
1.150 moko 3728: # tool to use in cross-compilation environments, therefore Automake
1.187 moko 3729: # will honor the 'STRIP' environment variable to overrule this program.
1.150 moko 3730: if test "$cross_compiling" != no; then
3731: if test -n "$ac_tool_prefix"; then
3732: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3733: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.237 moko 3734: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735: printf %s "checking for $ac_word... " >&6; }
3736: if test ${ac_cv_prog_STRIP+y}
3737: then :
3738: printf %s "(cached) " >&6
3739: else case e in #(
3740: e) if test -n "$STRIP"; then
1.150 moko 3741: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3742: else
3743: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744: for as_dir in $PATH
3745: do
3746: IFS=$as_save_IFS
1.237 moko 3747: case $as_dir in #(((
3748: '') as_dir=./ ;;
3749: */) ;;
3750: *) as_dir=$as_dir/ ;;
3751: esac
1.150 moko 3752: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3753: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.150 moko 3754: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.237 moko 3755: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.150 moko 3756: break 2
3757: fi
3758: done
3759: done
3760: IFS=$as_save_IFS
3761:
1.237 moko 3762: fi ;;
3763: esac
1.150 moko 3764: fi
3765: STRIP=$ac_cv_prog_STRIP
3766: if test -n "$STRIP"; then
1.237 moko 3767: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3768: printf "%s\n" "$STRIP" >&6; }
1.150 moko 3769: else
1.237 moko 3770: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771: printf "%s\n" "no" >&6; }
1.150 moko 3772: fi
3773:
3774:
3775: fi
3776: if test -z "$ac_cv_prog_STRIP"; then
3777: ac_ct_STRIP=$STRIP
3778: # Extract the first word of "strip", so it can be a program name with args.
3779: set dummy strip; ac_word=$2
1.237 moko 3780: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781: printf %s "checking for $ac_word... " >&6; }
3782: if test ${ac_cv_prog_ac_ct_STRIP+y}
3783: then :
3784: printf %s "(cached) " >&6
3785: else case e in #(
3786: e) if test -n "$ac_ct_STRIP"; then
1.150 moko 3787: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3788: else
3789: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790: for as_dir in $PATH
3791: do
3792: IFS=$as_save_IFS
1.237 moko 3793: case $as_dir in #(((
3794: '') as_dir=./ ;;
3795: */) ;;
3796: *) as_dir=$as_dir/ ;;
3797: esac
1.150 moko 3798: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3799: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.150 moko 3800: ac_cv_prog_ac_ct_STRIP="strip"
1.237 moko 3801: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.150 moko 3802: break 2
3803: fi
3804: done
3805: done
3806: IFS=$as_save_IFS
3807:
1.237 moko 3808: fi ;;
3809: esac
1.150 moko 3810: fi
3811: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3812: if test -n "$ac_ct_STRIP"; then
1.237 moko 3813: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3814: printf "%s\n" "$ac_ct_STRIP" >&6; }
1.150 moko 3815: else
1.237 moko 3816: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817: printf "%s\n" "no" >&6; }
1.150 moko 3818: fi
3819:
3820: if test "x$ac_ct_STRIP" = x; then
3821: STRIP=":"
3822: else
3823: case $cross_compiling:$ac_tool_warned in
3824: yes:)
1.237 moko 3825: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3826: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 3827: ac_tool_warned=yes ;;
3828: esac
3829: STRIP=$ac_ct_STRIP
3830: fi
3831: else
3832: STRIP="$ac_cv_prog_STRIP"
3833: fi
3834:
3835: fi
3836: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3837:
1.237 moko 3838:
3839: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3840: printf %s "checking for a race-free mkdir -p... " >&6; }
1.150 moko 3841: if test -z "$MKDIR_P"; then
1.237 moko 3842: if test ${ac_cv_path_mkdir+y}
3843: then :
3844: printf %s "(cached) " >&6
3845: else case e in #(
3846: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.150 moko 3847: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3848: do
3849: IFS=$as_save_IFS
1.237 moko 3850: case $as_dir in #(((
3851: '') as_dir=./ ;;
3852: */) ;;
3853: *) as_dir=$as_dir/ ;;
3854: esac
1.150 moko 3855: for ac_prog in mkdir gmkdir; do
3856: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3857: as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3858: case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3859: 'mkdir ('*'coreutils) '* | \
3860: *'BusyBox '* | \
1.150 moko 3861: 'mkdir (fileutils) '4.1*)
1.237 moko 3862: ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
1.150 moko 3863: break 3;;
3864: esac
3865: done
3866: done
3867: done
3868: IFS=$as_save_IFS
1.237 moko 3869: ;;
3870: esac
1.150 moko 3871: fi
3872:
3873: test -d ./--version && rmdir ./--version
1.237 moko 3874: if test ${ac_cv_path_mkdir+y}; then
1.150 moko 3875: MKDIR_P="$ac_cv_path_mkdir -p"
3876: else
1.237 moko 3877: # As a last resort, use plain mkdir -p,
3878: # in the hope it doesn't have the bugs of ancient mkdir.
3879: MKDIR_P='mkdir -p'
1.150 moko 3880: fi
3881: fi
1.237 moko 3882: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3883: printf "%s\n" "$MKDIR_P" >&6; }
1.150 moko 3884:
3885: for ac_prog in gawk mawk nawk awk
1.62 paf 3886: do
3887: # Extract the first word of "$ac_prog", so it can be a program name with args.
3888: set dummy $ac_prog; ac_word=$2
1.237 moko 3889: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3890: printf %s "checking for $ac_word... " >&6; }
3891: if test ${ac_cv_prog_AWK+y}
3892: then :
3893: printf %s "(cached) " >&6
3894: else case e in #(
3895: e) if test -n "$AWK"; then
1.62 paf 3896: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3897: else
3898: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899: for as_dir in $PATH
3900: do
3901: IFS=$as_save_IFS
1.237 moko 3902: case $as_dir in #(((
3903: '') as_dir=./ ;;
3904: */) ;;
3905: *) as_dir=$as_dir/ ;;
3906: esac
1.150 moko 3907: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 3908: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.62 paf 3909: ac_cv_prog_AWK="$ac_prog"
1.237 moko 3910: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 3911: break 2
3912: fi
3913: done
1.150 moko 3914: done
3915: IFS=$as_save_IFS
1.62 paf 3916:
1.237 moko 3917: fi ;;
3918: esac
1.62 paf 3919: fi
3920: AWK=$ac_cv_prog_AWK
3921: if test -n "$AWK"; then
1.237 moko 3922: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3923: printf "%s\n" "$AWK" >&6; }
1.62 paf 3924: else
1.237 moko 3925: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926: printf "%s\n" "no" >&6; }
1.62 paf 3927: fi
1.1 paf 3928:
1.150 moko 3929:
1.62 paf 3930: test -n "$AWK" && break
3931: done
1.1 paf 3932:
1.237 moko 3933: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3934: printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1.150 moko 3935: set x ${MAKE-make}
1.237 moko 3936: ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3937: if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3938: then :
3939: printf %s "(cached) " >&6
3940: else case e in #(
3941: e) cat >conftest.make <<\_ACEOF
1.150 moko 3942: SHELL = /bin/sh
1.1 paf 3943: all:
1.150 moko 3944: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.62 paf 3945: _ACEOF
1.150 moko 3946: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3947: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3948: *@@@%%%=?*=@@@%%%*)
3949: eval ac_cv_prog_make_${ac_make}_set=yes;;
3950: *)
3951: eval ac_cv_prog_make_${ac_make}_set=no;;
3952: esac
1.237 moko 3953: rm -f conftest.make ;;
3954: esac
1.1 paf 3955: fi
1.150 moko 3956: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.237 moko 3957: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3958: printf "%s\n" "yes" >&6; }
1.1 paf 3959: SET_MAKE=
3960: else
1.237 moko 3961: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962: printf "%s\n" "no" >&6; }
1.1 paf 3963: SET_MAKE="MAKE=${MAKE-make}"
3964: fi
3965:
1.86 paf 3966: rm -rf .tst 2>/dev/null
3967: mkdir .tst 2>/dev/null
3968: if test -d .tst; then
3969: am__leading_dot=.
3970: else
3971: am__leading_dot=_
3972: fi
3973: rmdir .tst 2>/dev/null
3974:
1.237 moko 3975: AM_DEFAULT_VERBOSITY=1
1.187 moko 3976: # Check whether --enable-silent-rules was given.
1.237 moko 3977: if test ${enable_silent_rules+y}
3978: then :
1.187 moko 3979: enableval=$enable_silent_rules;
3980: fi
3981:
3982: am_make=${MAKE-make}
1.237 moko 3983: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3984: printf %s "checking whether $am_make supports nested variables... " >&6; }
3985: if test ${am_cv_make_support_nested_variables+y}
3986: then :
3987: printf %s "(cached) " >&6
3988: else case e in #(
3989: e) if printf "%s\n" 'TRUE=$(BAR$(V))
1.187 moko 3990: BAR0=false
3991: BAR1=true
3992: V=1
3993: am__doit:
3994: @$(TRUE)
3995: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3996: am_cv_make_support_nested_variables=yes
3997: else
3998: am_cv_make_support_nested_variables=no
1.237 moko 3999: fi ;;
4000: esac
1.187 moko 4001: fi
1.237 moko 4002: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4003: printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4004: AM_BACKSLASH='\'
4005:
4006: am__rm_f_notfound=
4007: if (rm -f && rm -fr && rm -rf) 2>/dev/null
4008: then :
4009:
4010: else case e in #(
4011: e) am__rm_f_notfound='""' ;;
4012: esac
1.187 moko 4013: fi
1.237 moko 4014:
4015:
4016: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4017: printf %s "checking xargs -n works... " >&6; }
4018: if test ${am_cv_xargs_n_works+y}
4019: then :
4020: printf %s "(cached) " >&6
4021: else case e in #(
4022: e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4023: 3"
4024: then :
4025: am_cv_xargs_n_works=yes
4026: else case e in #(
4027: e) am_cv_xargs_n_works=no ;;
4028: esac
4029: fi ;;
4030: esac
4031: fi
4032: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4033: printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4034: if test "$am_cv_xargs_n_works" = yes
4035: then :
4036: am__xargs_n='xargs -n'
4037: else case e in #(
4038: e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4039: ;;
4040: esac
1.187 moko 4041: fi
4042:
1.150 moko 4043: if test "`cd $srcdir && pwd`" != "`pwd`"; then
4044: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4045: # is not polluted with repeated "-I."
4046: am__isrc=' -I$(srcdir)'
4047: # test to see if srcdir already configured
4048: if test -f $srcdir/config.status; then
4049: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4050: fi
1.62 paf 4051: fi
4052:
4053: # test whether we have cygpath
4054: if test -z "$CYGPATH_W"; then
4055: if (cygpath --version) >/dev/null 2>/dev/null; then
4056: CYGPATH_W='cygpath -w'
4057: else
4058: CYGPATH_W=echo
4059: fi
4060: fi
4061:
4062:
4063: # Define the identity of the package.
1.128 moko 4064: PACKAGE='parser'
1.230 moko 4065: VERSION='3.5.2b'
1.128 moko 4066:
4067:
1.237 moko 4068: printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
1.1 paf 4069:
4070:
1.237 moko 4071: printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
1.128 moko 4072:
1.62 paf 4073: # Some tools Automake needs.
4074:
4075: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4076:
4077:
4078: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4079:
4080:
4081: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4082:
4083:
4084: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4085:
4086:
4087: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 4088:
1.187 moko 4089: # For better backward compatibility. To be removed once Automake 1.9.x
4090: # dies out for good. For more background, see:
1.199 moko 4091: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4092: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1.187 moko 4093: mkdir_p='$(MKDIR_P)'
4094:
4095: # We need awk for the "check" target (and possibly the TAP driver). The
4096: # system "awk" is bad on some platforms.
4097: # Always define AMTAR for backward compatibility. Yes, it's still used
4098: # in the wild :-( We should find a proper way to deprecate it ...
4099: AMTAR='$${TAR-tar}'
4100:
4101:
4102: # We'll loop over all known methods to create a tar archive until one works.
4103: _am_tools='gnutar pax cpio none'
4104:
4105: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4106:
1.86 paf 4107:
4108:
4109:
4110:
1.237 moko 4111: # Variables for tags utilities; see am/tags.am
4112: if test -z "$CTAGS"; then
4113: CTAGS=ctags
4114: fi
4115:
4116: if test -z "$ETAGS"; then
4117: ETAGS=etags
4118: fi
4119:
4120: if test -z "$CSCOPE"; then
4121: CSCOPE=cscope
4122: fi
4123:
1.62 paf 4124:
1.187 moko 4125:
4126:
4127:
4128:
1.1 paf 4129:
4130:
1.128 moko 4131:
1.12 paf 4132: P3S=`cd $srcdir/src ; pwd`
1.1 paf 4133:
4134:
1.128 moko 4135:
1.237 moko 4136:
4137:
4138: # Make sure we can run config.sub.
4139: $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4140: as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4141:
4142: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4143: printf %s "checking build system type... " >&6; }
4144: if test ${ac_cv_build+y}
4145: then :
4146: printf %s "(cached) " >&6
4147: else case e in #(
4148: e) ac_build_alias=$build_alias
1.150 moko 4149: test "x$ac_build_alias" = x &&
1.237 moko 4150: ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
1.150 moko 4151: test "x$ac_build_alias" = x &&
4152: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.237 moko 4153: ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4154: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4155: ;;
4156: esac
1.150 moko 4157: fi
1.237 moko 4158: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4159: printf "%s\n" "$ac_cv_build" >&6; }
1.150 moko 4160: case $ac_cv_build in
4161: *-*-*) ;;
4162: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4163: esac
4164: build=$ac_cv_build
4165: ac_save_IFS=$IFS; IFS='-'
4166: set x $ac_cv_build
4167: shift
4168: build_cpu=$1
4169: build_vendor=$2
4170: shift; shift
4171: # Remember, the first character of IFS is used to create $*,
4172: # except with old shells:
4173: build_os=$*
4174: IFS=$ac_save_IFS
4175: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4176:
4177:
1.237 moko 4178: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4179: printf %s "checking host system type... " >&6; }
4180: if test ${ac_cv_host+y}
4181: then :
4182: printf %s "(cached) " >&6
4183: else case e in #(
4184: e) if test "x$host_alias" = x; then
1.150 moko 4185: ac_cv_host=$ac_cv_build
4186: else
1.237 moko 4187: ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4188: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
1.62 paf 4189: fi
1.237 moko 4190: ;;
4191: esac
1.62 paf 4192: fi
1.237 moko 4193: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4194: printf "%s\n" "$ac_cv_host" >&6; }
1.150 moko 4195: case $ac_cv_host in
4196: *-*-*) ;;
4197: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4198: esac
1.62 paf 4199: host=$ac_cv_host
1.150 moko 4200: ac_save_IFS=$IFS; IFS='-'
4201: set x $ac_cv_host
4202: shift
4203: host_cpu=$1
4204: host_vendor=$2
4205: shift; shift
4206: # Remember, the first character of IFS is used to create $*,
4207: # except with old shells:
4208: host_os=$*
4209: IFS=$ac_save_IFS
4210: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.81 paf 4211:
4212:
4213:
1.237 moko 4214: printf "%s\n" "#define PARSER_VERSION \"$VERSION (compiled on $host)\"" >>confdefs.h
1.147 moko 4215:
4216:
1.41 paf 4217:
1.67 paf 4218: case $host_os in
4219: *cygwin* )
1.237 moko 4220: printf "%s\n" "#define CYGWIN /**/" >>confdefs.h
1.67 paf 4221: ;;
4222: esac
1.41 paf 4223:
1.128 moko 4224:
1.1 paf 4225:
1.62 paf 4226: for ac_prog in gawk mawk nawk awk
1.41 paf 4227: do
1.62 paf 4228: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 4229: set dummy $ac_prog; ac_word=$2
1.237 moko 4230: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231: printf %s "checking for $ac_word... " >&6; }
4232: if test ${ac_cv_prog_AWK+y}
4233: then :
4234: printf %s "(cached) " >&6
4235: else case e in #(
4236: e) if test -n "$AWK"; then
1.41 paf 4237: ac_cv_prog_AWK="$AWK" # Let the user override the test.
4238: else
1.62 paf 4239: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240: for as_dir in $PATH
4241: do
4242: IFS=$as_save_IFS
1.237 moko 4243: case $as_dir in #(((
4244: '') as_dir=./ ;;
4245: */) ;;
4246: *) as_dir=$as_dir/ ;;
4247: esac
1.150 moko 4248: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 4249: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.62 paf 4250: ac_cv_prog_AWK="$ac_prog"
1.237 moko 4251: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4252: break 2
4253: fi
4254: done
1.150 moko 4255: done
4256: IFS=$as_save_IFS
1.62 paf 4257:
1.237 moko 4258: fi ;;
4259: esac
1.41 paf 4260: fi
1.62 paf 4261: AWK=$ac_cv_prog_AWK
1.41 paf 4262: if test -n "$AWK"; then
1.237 moko 4263: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4264: printf "%s\n" "$AWK" >&6; }
1.41 paf 4265: else
1.237 moko 4266: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267: printf "%s\n" "no" >&6; }
1.41 paf 4268: fi
4269:
1.150 moko 4270:
1.62 paf 4271: test -n "$AWK" && break
1.41 paf 4272: done
4273:
4274:
4275: for ac_prog in 'bison -y' byacc
4276: do
1.62 paf 4277: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 4278: set dummy $ac_prog; ac_word=$2
1.237 moko 4279: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280: printf %s "checking for $ac_word... " >&6; }
4281: if test ${ac_cv_prog_YACC+y}
4282: then :
4283: printf %s "(cached) " >&6
4284: else case e in #(
4285: e) if test -n "$YACC"; then
1.41 paf 4286: ac_cv_prog_YACC="$YACC" # Let the user override the test.
4287: else
1.62 paf 4288: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289: for as_dir in $PATH
4290: do
4291: IFS=$as_save_IFS
1.237 moko 4292: case $as_dir in #(((
4293: '') as_dir=./ ;;
4294: */) ;;
4295: *) as_dir=$as_dir/ ;;
4296: esac
1.150 moko 4297: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 4298: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.62 paf 4299: ac_cv_prog_YACC="$ac_prog"
1.237 moko 4300: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4301: break 2
4302: fi
4303: done
1.150 moko 4304: done
4305: IFS=$as_save_IFS
1.62 paf 4306:
1.237 moko 4307: fi ;;
4308: esac
1.41 paf 4309: fi
1.62 paf 4310: YACC=$ac_cv_prog_YACC
1.41 paf 4311: if test -n "$YACC"; then
1.237 moko 4312: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4313: printf "%s\n" "$YACC" >&6; }
1.41 paf 4314: else
1.237 moko 4315: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316: printf "%s\n" "no" >&6; }
1.41 paf 4317: fi
4318:
1.150 moko 4319:
1.62 paf 4320: test -n "$YACC" && break
1.41 paf 4321: done
4322: test -n "$YACC" || YACC="yacc"
4323:
4324: if test "$YACC" != "bison -y"; then
1.237 moko 4325: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
4326: printf "%s\n" "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 4327: else
1.237 moko 4328: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
4329: printf %s "checking bison version... " >&6; }
1.67 paf 4330: oldIFS=$IFS; IFS=.
4331: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
4332: IFS=$oldIFS
4333: if test "$1" = "1" -a "$2" -lt "25"; then
1.237 moko 4334: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
4335: printf "%s\n" "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 4336: fi
1.237 moko 4337: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $1.$2 (ok)" >&5
4338: printf "%s\n" "$1.$2 (ok)" >&6; }
1.62 paf 4339: fi
4340:
1.237 moko 4341:
4342:
4343:
4344:
4345:
4346:
1.150 moko 4347: ac_ext=cpp
1.66 paf 4348: ac_cpp='$CXXCPP $CPPFLAGS'
4349: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 4352: if test -z "$CXX"; then
4353: if test -n "$CCC"; then
4354: CXX=$CCC
4355: else
4356: if test -n "$ac_tool_prefix"; then
1.237 moko 4357: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
1.66 paf 4358: do
4359: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 moko 4361: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362: printf %s "checking for $ac_word... " >&6; }
4363: if test ${ac_cv_prog_CXX+y}
4364: then :
4365: printf %s "(cached) " >&6
4366: else case e in #(
4367: e) if test -n "$CXX"; then
1.66 paf 4368: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 4369: else
4370: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371: for as_dir in $PATH
4372: do
4373: IFS=$as_save_IFS
1.237 moko 4374: case $as_dir in #(((
4375: '') as_dir=./ ;;
4376: */) ;;
4377: *) as_dir=$as_dir/ ;;
4378: esac
1.150 moko 4379: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 4380: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 4381: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.237 moko 4382: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4383: break 2
4384: fi
4385: done
1.150 moko 4386: done
4387: IFS=$as_save_IFS
1.62 paf 4388:
1.237 moko 4389: fi ;;
4390: esac
1.62 paf 4391: fi
1.66 paf 4392: CXX=$ac_cv_prog_CXX
4393: if test -n "$CXX"; then
1.237 moko 4394: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4395: printf "%s\n" "$CXX" >&6; }
1.62 paf 4396: else
1.237 moko 4397: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398: printf "%s\n" "no" >&6; }
1.41 paf 4399: fi
4400:
1.150 moko 4401:
1.66 paf 4402: test -n "$CXX" && break
4403: done
1.62 paf 4404: fi
1.66 paf 4405: if test -z "$CXX"; then
4406: ac_ct_CXX=$CXX
1.237 moko 4407: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
1.66 paf 4408: do
4409: # Extract the first word of "$ac_prog", so it can be a program name with args.
4410: set dummy $ac_prog; ac_word=$2
1.237 moko 4411: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412: printf %s "checking for $ac_word... " >&6; }
4413: if test ${ac_cv_prog_ac_ct_CXX+y}
4414: then :
4415: printf %s "(cached) " >&6
4416: else case e in #(
4417: e) if test -n "$ac_ct_CXX"; then
1.66 paf 4418: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 4419: else
4420: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421: for as_dir in $PATH
4422: do
4423: IFS=$as_save_IFS
1.237 moko 4424: case $as_dir in #(((
4425: '') as_dir=./ ;;
4426: */) ;;
4427: *) as_dir=$as_dir/ ;;
4428: esac
1.150 moko 4429: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 4430: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 4431: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.237 moko 4432: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4433: break 2
4434: fi
4435: done
1.150 moko 4436: done
4437: IFS=$as_save_IFS
1.62 paf 4438:
1.237 moko 4439: fi ;;
4440: esac
1.62 paf 4441: fi
1.66 paf 4442: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4443: if test -n "$ac_ct_CXX"; then
1.237 moko 4444: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4445: printf "%s\n" "$ac_ct_CXX" >&6; }
1.62 paf 4446: else
1.237 moko 4447: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448: printf "%s\n" "no" >&6; }
1.62 paf 4449: fi
4450:
1.150 moko 4451:
1.66 paf 4452: test -n "$ac_ct_CXX" && break
4453: done
4454:
1.150 moko 4455: if test "x$ac_ct_CXX" = x; then
4456: CXX="g++"
4457: else
4458: case $cross_compiling:$ac_tool_warned in
4459: yes:)
1.237 moko 4460: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4461: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 4462: ac_tool_warned=yes ;;
4463: esac
4464: CXX=$ac_ct_CXX
4465: fi
1.62 paf 4466: fi
4467:
1.150 moko 4468: fi
4469: fi
1.66 paf 4470: # Provide some information about the compiler.
1.237 moko 4471: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
1.150 moko 4472: set X $ac_compile
4473: ac_compiler=$2
4474: for ac_option in --version -v -V -qversion; do
4475: { { ac_try="$ac_compiler $ac_option >&5"
4476: case "(($ac_try" in
4477: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478: *) ac_try_echo=$ac_try;;
4479: esac
4480: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4481: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4482: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.66 paf 4483: ac_status=$?
1.150 moko 4484: if test -s conftest.err; then
4485: sed '10a\
4486: ... rest of stderr output deleted ...
4487: 10q' conftest.err >conftest.er1
4488: cat conftest.er1 >&5
4489: fi
4490: rm -f conftest.er1 conftest.err
1.237 moko 4491: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 4492: test $ac_status = 0; }
4493: done
1.66 paf 4494:
1.150 moko 4495: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4496: /* end confdefs.h. */
4497:
4498: int
1.237 moko 4499: main (void)
1.66 paf 4500: {
4501:
4502: ;
4503: return 0;
4504: }
4505: _ACEOF
4506: ac_clean_files_save=$ac_clean_files
1.150 moko 4507: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.66 paf 4508: # Try to create an executable without -o first, disregard a.out.
4509: # It will help us diagnose broken compilers, and finding out an intuition
4510: # of exeext.
1.237 moko 4511: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
4512: printf %s "checking whether the C++ compiler works... " >&6; }
4513: ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.150 moko 4514:
4515: # The possible output files:
4516: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4517:
4518: ac_rmfiles=
4519: for ac_file in $ac_files
4520: do
4521: case $ac_file in
4522: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4523: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4524: esac
4525: done
4526: rm -f $ac_rmfiles
4527:
4528: if { { ac_try="$ac_link_default"
4529: case "(($ac_try" in
4530: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531: *) ac_try_echo=$ac_try;;
4532: esac
4533: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4534: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4535: (eval "$ac_link_default") 2>&5
4536: ac_status=$?
1.237 moko 4537: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4538: test $ac_status = 0; }
4539: then :
4540: # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4541: # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
1.150 moko 4542: # in a Makefile. We should not override ac_cv_exeext if it was cached,
4543: # so that the user can short-circuit this test for compilers unknown to
4544: # Autoconf.
4545: for ac_file in $ac_files ''
1.62 paf 4546: do
1.66 paf 4547: test -f "$ac_file" || continue
4548: case $ac_file in
1.150 moko 4549: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.86 paf 4550: ;;
1.66 paf 4551: [ab].out )
1.86 paf 4552: # We found the default executable, but exeext='' is most
4553: # certainly right.
4554: break;;
1.66 paf 4555: *.* )
1.237 moko 4556: if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
1.150 moko 4557: then :; else
4558: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4559: fi
4560: # We set ac_cv_exeext here because the later test for it is not
1.237 moko 4561: # safe: cross compilers may not add the suffix if given an '-o'
1.150 moko 4562: # argument, so we may need to know it at that point already.
4563: # Even if this section looks crufty: it has the advantage of
4564: # actually working.
1.86 paf 4565: break;;
1.66 paf 4566: * )
1.86 paf 4567: break;;
1.66 paf 4568: esac
1.62 paf 4569: done
1.150 moko 4570: test "$ac_cv_exeext" = no && ac_cv_exeext=
4571:
1.237 moko 4572: else case e in #(
4573: e) ac_file='' ;;
4574: esac
1.150 moko 4575: fi
1.237 moko 4576: if test -z "$ac_file"
4577: then :
4578: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579: printf "%s\n" "no" >&6; }
4580: printf "%s\n" "$as_me: failed program was:" >&5
1.66 paf 4581: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 4582:
1.237 moko 4583: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4584: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 4585: as_fn_error 77 "C++ compiler cannot create executables
1.237 moko 4586: See 'config.log' for more details" "$LINENO" 5; }
4587: else case e in #(
4588: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4589: printf "%s\n" "yes" >&6; } ;;
4590: esac
1.1 paf 4591: fi
1.237 moko 4592: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4593: printf %s "checking for C++ compiler default output file name... " >&6; }
4594: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4595: printf "%s\n" "$ac_file" >&6; }
1.66 paf 4596: ac_exeext=$ac_cv_exeext
1.62 paf 4597:
1.150 moko 4598: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.66 paf 4599: ac_clean_files=$ac_clean_files_save
1.237 moko 4600: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4601: printf %s "checking for suffix of executables... " >&6; }
1.150 moko 4602: if { { ac_try="$ac_link"
4603: case "(($ac_try" in
4604: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605: *) ac_try_echo=$ac_try;;
4606: esac
4607: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4608: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4609: (eval "$ac_link") 2>&5
1.62 paf 4610: ac_status=$?
1.237 moko 4611: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4612: test $ac_status = 0; }
4613: then :
4614: # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4615: # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4616: # work properly (i.e., refer to 'conftest.exe'), while it won't with
4617: # 'rm'.
1.62 paf 4618: for ac_file in conftest.exe conftest conftest.*; do
4619: test -f "$ac_file" || continue
4620: case $ac_file in
1.150 moko 4621: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.62 paf 4622: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 4623: break;;
1.62 paf 4624: * ) break;;
4625: esac
4626: done
1.237 moko 4627: else case e in #(
4628: e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4629: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 4630: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.237 moko 4631: See 'config.log' for more details" "$LINENO" 5; } ;;
4632: esac
1.150 moko 4633: fi
4634: rm -f conftest conftest$ac_cv_exeext
1.237 moko 4635: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4636: printf "%s\n" "$ac_cv_exeext" >&6; }
1.62 paf 4637:
4638: rm -f conftest.$ac_ext
4639: EXEEXT=$ac_cv_exeext
4640: ac_exeext=$EXEEXT
1.150 moko 4641: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642: /* end confdefs.h. */
4643: #include <stdio.h>
4644: int
1.237 moko 4645: main (void)
1.150 moko 4646: {
4647: FILE *f = fopen ("conftest.out", "w");
1.237 moko 4648: if (!f)
4649: return 1;
1.150 moko 4650: return ferror (f) || fclose (f) != 0;
4651:
4652: ;
4653: return 0;
4654: }
4655: _ACEOF
4656: ac_clean_files="$ac_clean_files conftest.out"
4657: # Check that the compiler produces executables we can run. If not, either
4658: # the compiler is broken, or we cross compile.
1.237 moko 4659: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4660: printf %s "checking whether we are cross compiling... " >&6; }
1.150 moko 4661: if test "$cross_compiling" != yes; then
4662: { { ac_try="$ac_link"
4663: case "(($ac_try" in
4664: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665: *) ac_try_echo=$ac_try;;
4666: esac
4667: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4668: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4669: (eval "$ac_link") 2>&5
4670: ac_status=$?
1.237 moko 4671: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 4672: test $ac_status = 0; }
4673: if { ac_try='./conftest$ac_cv_exeext'
4674: { { case "(($ac_try" in
4675: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676: *) ac_try_echo=$ac_try;;
4677: esac
4678: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4679: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4680: (eval "$ac_try") 2>&5
4681: ac_status=$?
1.237 moko 4682: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 4683: test $ac_status = 0; }; }; then
4684: cross_compiling=no
4685: else
4686: if test "$cross_compiling" = maybe; then
4687: cross_compiling=yes
4688: else
1.237 moko 4689: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4690: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4691: as_fn_error 77 "cannot run C++ compiled programs.
4692: If you meant to cross compile, use '--host'.
4693: See 'config.log' for more details" "$LINENO" 5; }
1.150 moko 4694: fi
4695: fi
4696: fi
1.237 moko 4697: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4698: printf "%s\n" "$cross_compiling" >&6; }
1.150 moko 4699:
1.237 moko 4700: rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4701: conftest.o conftest.obj conftest.out
1.150 moko 4702: ac_clean_files=$ac_clean_files_save
1.237 moko 4703: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4704: printf %s "checking for suffix of object files... " >&6; }
4705: if test ${ac_cv_objext+y}
4706: then :
4707: printf %s "(cached) " >&6
4708: else case e in #(
4709: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4710: /* end confdefs.h. */
4711:
4712: int
1.237 moko 4713: main (void)
1.62 paf 4714: {
4715:
4716: ;
4717: return 0;
4718: }
4719: _ACEOF
4720: rm -f conftest.o conftest.obj
1.150 moko 4721: if { { ac_try="$ac_compile"
4722: case "(($ac_try" in
4723: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724: *) ac_try_echo=$ac_try;;
4725: esac
4726: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 4727: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4728: (eval "$ac_compile") 2>&5
4729: ac_status=$?
1.237 moko 4730: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731: test $ac_status = 0; }
4732: then :
1.150 moko 4733: for ac_file in conftest.o conftest.obj conftest.*; do
4734: test -f "$ac_file" || continue;
1.62 paf 4735: case $ac_file in
1.150 moko 4736: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.62 paf 4737: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4738: break;;
4739: esac
4740: done
1.237 moko 4741: else case e in #(
4742: e) printf "%s\n" "$as_me: failed program was:" >&5
1.62 paf 4743: sed 's/^/| /' conftest.$ac_ext >&5
4744:
1.237 moko 4745: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4746: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 4747: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.237 moko 4748: See 'config.log' for more details" "$LINENO" 5; } ;;
4749: esac
1.62 paf 4750: fi
1.237 moko 4751: rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4752: esac
1.62 paf 4753: fi
1.237 moko 4754: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4755: printf "%s\n" "$ac_cv_objext" >&6; }
1.66 paf 4756: OBJEXT=$ac_cv_objext
4757: ac_objext=$OBJEXT
1.237 moko 4758: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4759: printf %s "checking whether the compiler supports GNU C++... " >&6; }
4760: if test ${ac_cv_cxx_compiler_gnu+y}
4761: then :
4762: printf %s "(cached) " >&6
4763: else case e in #(
4764: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4765: /* end confdefs.h. */
1.66 paf 4766:
1.62 paf 4767: int
1.237 moko 4768: main (void)
1.62 paf 4769: {
1.66 paf 4770: #ifndef __GNUC__
4771: choke me
4772: #endif
4773:
1.62 paf 4774: ;
4775: return 0;
4776: }
4777: _ACEOF
1.237 moko 4778: if ac_fn_cxx_try_compile "$LINENO"
4779: then :
1.66 paf 4780: ac_compiler_gnu=yes
1.237 moko 4781: else case e in #(
4782: e) ac_compiler_gnu=no ;;
4783: esac
1.1 paf 4784: fi
1.237 moko 4785: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.66 paf 4786: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.237 moko 4787: ;;
4788: esac
4789: fi
4790: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4791: printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4792: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1 paf 4793:
1.150 moko 4794: if test $ac_compiler_gnu = yes; then
4795: GXX=yes
4796: else
4797: GXX=
4798: fi
1.237 moko 4799: ac_test_CXXFLAGS=${CXXFLAGS+y}
1.66 paf 4800: ac_save_CXXFLAGS=$CXXFLAGS
1.237 moko 4801: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4802: printf %s "checking whether $CXX accepts -g... " >&6; }
4803: if test ${ac_cv_prog_cxx_g+y}
4804: then :
4805: printf %s "(cached) " >&6
4806: else case e in #(
4807: e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
1.150 moko 4808: ac_cxx_werror_flag=yes
4809: ac_cv_prog_cxx_g=no
4810: CXXFLAGS="-g"
4811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4812: /* end confdefs.h. */
1.1 paf 4813:
1.66 paf 4814: int
1.237 moko 4815: main (void)
1.66 paf 4816: {
1.1 paf 4817:
1.66 paf 4818: ;
4819: return 0;
4820: }
1.62 paf 4821: _ACEOF
1.237 moko 4822: if ac_fn_cxx_try_compile "$LINENO"
4823: then :
1.66 paf 4824: ac_cv_prog_cxx_g=yes
1.237 moko 4825: else case e in #(
4826: e) CXXFLAGS=""
1.150 moko 4827: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4828: /* end confdefs.h. */
1.66 paf 4829:
1.62 paf 4830: int
1.237 moko 4831: main (void)
1.62 paf 4832: {
1.150 moko 4833:
1.62 paf 4834: ;
4835: return 0;
4836: }
4837: _ACEOF
1.237 moko 4838: if ac_fn_cxx_try_compile "$LINENO"
4839: then :
1.150 moko 4840:
1.237 moko 4841: else case e in #(
4842: e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
1.150 moko 4843: CXXFLAGS="-g"
4844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845: /* end confdefs.h. */
1.62 paf 4846:
4847: int
1.237 moko 4848: main (void)
1.62 paf 4849: {
1.150 moko 4850:
1.62 paf 4851: ;
4852: return 0;
4853: }
4854: _ACEOF
1.237 moko 4855: if ac_fn_cxx_try_compile "$LINENO"
4856: then :
1.150 moko 4857: ac_cv_prog_cxx_g=yes
4858: fi
1.237 moko 4859: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4860: esac
1.150 moko 4861: fi
1.237 moko 4862: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4863: esac
1.150 moko 4864: fi
1.237 moko 4865: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4866: ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4867: esac
1.150 moko 4868: fi
1.237 moko 4869: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4870: printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4871: if test $ac_test_CXXFLAGS; then
1.150 moko 4872: CXXFLAGS=$ac_save_CXXFLAGS
4873: elif test $ac_cv_prog_cxx_g = yes; then
4874: if test "$GXX" = yes; then
4875: CXXFLAGS="-g -O2"
4876: else
4877: CXXFLAGS="-g"
4878: fi
1.1 paf 4879: else
1.150 moko 4880: if test "$GXX" = yes; then
4881: CXXFLAGS="-O2"
4882: else
4883: CXXFLAGS=
4884: fi
1.1 paf 4885: fi
1.237 moko 4886: ac_prog_cxx_stdcxx=no
4887: if test x$ac_prog_cxx_stdcxx = xno
4888: then :
4889: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4890: printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4891: if test ${ac_cv_prog_cxx_cxx11+y}
4892: then :
4893: printf %s "(cached) " >&6
4894: else case e in #(
4895: e) ac_cv_prog_cxx_cxx11=no
4896: ac_save_CXX=$CXX
4897: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898: /* end confdefs.h. */
4899: $ac_cxx_conftest_cxx11_program
4900: _ACEOF
4901: for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4902: do
4903: CXX="$ac_save_CXX $ac_arg"
4904: if ac_fn_cxx_try_compile "$LINENO"
4905: then :
4906: ac_cv_prog_cxx_cxx11=$ac_arg
4907: fi
4908: rm -f core conftest.err conftest.$ac_objext conftest.beam
4909: test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4910: done
4911: rm -f conftest.$ac_ext
4912: CXX=$ac_save_CXX ;;
4913: esac
4914: fi
4915:
4916: if test "x$ac_cv_prog_cxx_cxx11" = xno
4917: then :
4918: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4919: printf "%s\n" "unsupported" >&6; }
4920: else case e in #(
4921: e) if test "x$ac_cv_prog_cxx_cxx11" = x
4922: then :
4923: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4924: printf "%s\n" "none needed" >&6; }
4925: else case e in #(
4926: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4927: printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4928: CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4929: esac
4930: fi
4931: ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4932: ac_prog_cxx_stdcxx=cxx11 ;;
4933: esac
4934: fi
4935: fi
4936: if test x$ac_prog_cxx_stdcxx = xno
4937: then :
4938: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4939: printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4940: if test ${ac_cv_prog_cxx_cxx98+y}
4941: then :
4942: printf %s "(cached) " >&6
4943: else case e in #(
4944: e) ac_cv_prog_cxx_cxx98=no
4945: ac_save_CXX=$CXX
4946: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947: /* end confdefs.h. */
4948: $ac_cxx_conftest_cxx98_program
4949: _ACEOF
4950: for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4951: do
4952: CXX="$ac_save_CXX $ac_arg"
4953: if ac_fn_cxx_try_compile "$LINENO"
4954: then :
4955: ac_cv_prog_cxx_cxx98=$ac_arg
4956: fi
4957: rm -f core conftest.err conftest.$ac_objext conftest.beam
4958: test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4959: done
4960: rm -f conftest.$ac_ext
4961: CXX=$ac_save_CXX ;;
4962: esac
4963: fi
4964:
4965: if test "x$ac_cv_prog_cxx_cxx98" = xno
4966: then :
4967: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4968: printf "%s\n" "unsupported" >&6; }
4969: else case e in #(
4970: e) if test "x$ac_cv_prog_cxx_cxx98" = x
4971: then :
4972: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4973: printf "%s\n" "none needed" >&6; }
4974: else case e in #(
4975: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4976: printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4977: CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4978: esac
4979: fi
4980: ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4981: ac_prog_cxx_stdcxx=cxx98 ;;
4982: esac
4983: fi
4984: fi
4985:
1.62 paf 4986: ac_ext=c
4987: ac_cpp='$CPP $CPPFLAGS'
4988: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 4991: DEPDIR="${am__leading_dot}deps"
1.62 paf 4992:
1.150 moko 4993: ac_config_commands="$ac_config_commands depfiles"
1.62 paf 4994:
1.237 moko 4995: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4996: printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
1.199 moko 4997: cat > confinc.mk << 'END'
1.86 paf 4998: am__doit:
1.199 moko 4999: @echo this is the am__doit target >confinc.out
1.86 paf 5000: .PHONY: am__doit
1.62 paf 5001: END
5002: am__include="#"
5003: am__quote=
1.199 moko 5004: # BSD make does it like this.
5005: echo '.include "confinc.mk" # ignored' > confmf.BSD
5006: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5007: echo 'include confinc.mk # ignored' > confmf.GNU
5008: _am_result=no
5009: for s in GNU BSD; do
5010: { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5011: (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5012: ac_status=$?
5013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014: (exit $ac_status); }
5015: case $?:`cat confinc.out 2>/dev/null` in #(
5016: '0:this is the am__doit target') :
5017: case $s in #(
5018: BSD) :
5019: am__include='.include' am__quote='"' ;; #(
5020: *) :
5021: am__include='include' am__quote='' ;;
5022: esac ;; #(
5023: *) :
1.150 moko 5024: ;;
1.199 moko 5025: esac
5026: if test "$am__include" != "#"; then
5027: _am_result="yes ($s style)"
5028: break
5029: fi
5030: done
5031: rm -f confinc.* confmf.*
1.237 moko 5032: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5033: printf "%s\n" "${_am_result}" >&6; }
1.62 paf 5034:
1.150 moko 5035: # Check whether --enable-dependency-tracking was given.
1.237 moko 5036: if test ${enable_dependency_tracking+y}
5037: then :
1.150 moko 5038: enableval=$enable_dependency_tracking;
5039: fi
1.62 paf 5040:
5041: if test "x$enable_dependency_tracking" != xno; then
5042: am_depcomp="$ac_aux_dir/depcomp"
5043: AMDEPBACKSLASH='\'
1.187 moko 5044: am__nodep='_no'
1.1 paf 5045: fi
1.150 moko 5046: if test "x$enable_dependency_tracking" != xno; then
1.62 paf 5047: AMDEP_TRUE=
5048: AMDEP_FALSE='#'
5049: else
5050: AMDEP_TRUE='#'
5051: AMDEP_FALSE=
5052: fi
1.1 paf 5053:
5054:
5055:
1.66 paf 5056: depcc="$CXX" am_compiler_list=
1.1 paf 5057:
1.237 moko 5058: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5059: printf %s "checking dependency style of $depcc... " >&6; }
5060: if test ${am_cv_CXX_dependencies_compiler_type+y}
5061: then :
5062: printf %s "(cached) " >&6
5063: else case e in #(
5064: e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.62 paf 5065: # We make a subdir and do the tests there. Otherwise we can end up
5066: # making bogus files that we don't know about and never remove. For
5067: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 5068: # making a dummy file named 'D' -- because '-MD' means "put the output
5069: # in D".
5070: rm -rf conftest.dir
1.62 paf 5071: mkdir conftest.dir
5072: # Copy depcomp to subdir because otherwise we won't find it if we're
5073: # using a relative directory.
5074: cp "$am_depcomp" conftest.dir
5075: cd conftest.dir
1.86 paf 5076: # We will build objects and dependencies in a subdirectory because
5077: # it helps to detect inapplicable dependency modes. For instance
5078: # both Tru64's cc and ICC support -MD to output dependencies as a
5079: # side effect of compilation, but ICC will put the dependencies in
5080: # the current directory while Tru64 will put them in the object
5081: # directory.
5082: mkdir sub
1.1 paf 5083:
1.66 paf 5084: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 5085: if test "$am_compiler_list" = ""; then
5086: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 5087: fi
1.150 moko 5088: am__universal=false
5089: case " $depcc " in #(
5090: *\ -arch\ *\ -arch\ *) am__universal=true ;;
5091: esac
5092:
1.62 paf 5093: for depmode in $am_compiler_list; do
1.86 paf 5094: # Setup a source with many dependencies, because some compilers
5095: # like to wrap large dependency lists on column 80 (with \), and
5096: # we should not choose a depcomp mode which is confused by this.
5097: #
1.62 paf 5098: # We need to recreate these files for each test, as the compiler may
5099: # overwrite some of them when testing with obscure command lines.
5100: # This happens at least with the AIX C compiler.
1.86 paf 5101: : > sub/conftest.c
5102: for i in 1 2 3 4 5 6; do
5103: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 5104: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5105: # Solaris 10 /bin/sh.
5106: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 5107: done
5108: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 5109:
1.187 moko 5110: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 5111: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 5112: # handle '-M -o', and we need to detect this. Also, some Intel
5113: # versions had trouble with output in subdirs.
1.150 moko 5114: am__obj=sub/conftest.${OBJEXT-o}
5115: am__minus_obj="-o $am__obj"
1.62 paf 5116: case $depmode in
1.150 moko 5117: gcc)
5118: # This depmode causes a compiler race in universal mode.
5119: test "$am__universal" = false || continue
5120: ;;
1.62 paf 5121: nosideeffect)
1.187 moko 5122: # After this tag, mechanisms are not by side-effect, so they'll
5123: # only be used when explicitly requested.
1.62 paf 5124: if test "x$enable_dependency_tracking" = xyes; then
5125: continue
5126: else
5127: break
5128: fi
5129: ;;
1.187 moko 5130: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5131: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 5132: # not run yet. These depmodes are late enough in the game, and
5133: # so weak that their functioning should not be impacted.
5134: am__obj=conftest.${OBJEXT-o}
5135: am__minus_obj=
5136: ;;
1.62 paf 5137: none) break ;;
5138: esac
5139: if depmode=$depmode \
1.150 moko 5140: source=sub/conftest.c object=$am__obj \
1.86 paf 5141: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 5142: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 5143: >/dev/null 2>conftest.err &&
1.150 moko 5144: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 5145: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 5146: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 5147: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 5148: # icc doesn't choke on unknown options, it will just issue warnings
5149: # or remarks (even with -Werror). So we grep stderr for any message
5150: # that says an option was ignored or not supported.
1.237 moko 5151: # When given -MP, icc 7.0 and 7.1 complain thus:
1.86 paf 5152: # icc: Command line warning: ignoring option '-M'; no argument required
5153: # The diagnosis changed in icc 8.0:
5154: # icc: Command line remark: option '-MP' not supported
5155: if (grep 'ignoring option' conftest.err ||
5156: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5157: am_cv_CXX_dependencies_compiler_type=$depmode
5158: break
5159: fi
1.66 paf 5160: fi
5161: done
5162:
5163: cd ..
5164: rm -rf conftest.dir
5165: else
5166: am_cv_CXX_dependencies_compiler_type=none
5167: fi
1.237 moko 5168: ;;
5169: esac
1.66 paf 5170: fi
1.237 moko 5171: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5172: printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.66 paf 5173: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5174:
1.150 moko 5175: if
1.66 paf 5176: test "x$enable_dependency_tracking" != xno \
5177: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5178: am__fastdepCXX_TRUE=
5179: am__fastdepCXX_FALSE='#'
5180: else
5181: am__fastdepCXX_TRUE='#'
5182: am__fastdepCXX_FALSE=
5183: fi
5184:
5185:
1.237 moko 5186:
5187:
5188:
5189:
5190:
5191:
5192:
5193:
5194:
1.66 paf 5195: ac_ext=c
5196: ac_cpp='$CPP $CPPFLAGS'
5197: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200: if test -n "$ac_tool_prefix"; then
5201: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5202: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.237 moko 5203: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204: printf %s "checking for $ac_word... " >&6; }
5205: if test ${ac_cv_prog_CC+y}
5206: then :
5207: printf %s "(cached) " >&6
5208: else case e in #(
5209: e) if test -n "$CC"; then
1.66 paf 5210: ac_cv_prog_CC="$CC" # Let the user override the test.
5211: else
5212: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213: for as_dir in $PATH
5214: do
5215: IFS=$as_save_IFS
1.237 moko 5216: case $as_dir in #(((
5217: '') as_dir=./ ;;
5218: */) ;;
5219: *) as_dir=$as_dir/ ;;
5220: esac
1.150 moko 5221: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5222: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5223: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.237 moko 5224: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5225: break 2
5226: fi
5227: done
1.150 moko 5228: done
5229: IFS=$as_save_IFS
1.66 paf 5230:
1.237 moko 5231: fi ;;
5232: esac
1.66 paf 5233: fi
5234: CC=$ac_cv_prog_CC
5235: if test -n "$CC"; then
1.237 moko 5236: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5237: printf "%s\n" "$CC" >&6; }
1.66 paf 5238: else
1.237 moko 5239: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240: printf "%s\n" "no" >&6; }
1.66 paf 5241: fi
5242:
1.150 moko 5243:
1.66 paf 5244: fi
5245: if test -z "$ac_cv_prog_CC"; then
5246: ac_ct_CC=$CC
5247: # Extract the first word of "gcc", so it can be a program name with args.
5248: set dummy gcc; ac_word=$2
1.237 moko 5249: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250: printf %s "checking for $ac_word... " >&6; }
5251: if test ${ac_cv_prog_ac_ct_CC+y}
5252: then :
5253: printf %s "(cached) " >&6
5254: else case e in #(
5255: e) if test -n "$ac_ct_CC"; then
1.66 paf 5256: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5257: else
5258: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259: for as_dir in $PATH
5260: do
5261: IFS=$as_save_IFS
1.237 moko 5262: case $as_dir in #(((
5263: '') as_dir=./ ;;
5264: */) ;;
5265: *) as_dir=$as_dir/ ;;
5266: esac
1.150 moko 5267: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5268: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5269: ac_cv_prog_ac_ct_CC="gcc"
1.237 moko 5270: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5271: break 2
5272: fi
5273: done
1.150 moko 5274: done
5275: IFS=$as_save_IFS
1.66 paf 5276:
1.237 moko 5277: fi ;;
5278: esac
1.66 paf 5279: fi
5280: ac_ct_CC=$ac_cv_prog_ac_ct_CC
5281: if test -n "$ac_ct_CC"; then
1.237 moko 5282: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5283: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 paf 5284: else
1.237 moko 5285: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286: printf "%s\n" "no" >&6; }
1.62 paf 5287: fi
5288:
1.150 moko 5289: if test "x$ac_ct_CC" = x; then
5290: CC=""
5291: else
5292: case $cross_compiling:$ac_tool_warned in
5293: yes:)
1.237 moko 5294: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 5296: ac_tool_warned=yes ;;
5297: esac
5298: CC=$ac_ct_CC
5299: fi
1.66 paf 5300: else
5301: CC="$ac_cv_prog_CC"
1.1 paf 5302: fi
1.62 paf 5303:
1.66 paf 5304: if test -z "$CC"; then
1.150 moko 5305: if test -n "$ac_tool_prefix"; then
5306: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.66 paf 5307: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.237 moko 5308: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309: printf %s "checking for $ac_word... " >&6; }
5310: if test ${ac_cv_prog_CC+y}
5311: then :
5312: printf %s "(cached) " >&6
5313: else case e in #(
5314: e) if test -n "$CC"; then
1.66 paf 5315: ac_cv_prog_CC="$CC" # Let the user override the test.
5316: else
5317: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318: for as_dir in $PATH
5319: do
5320: IFS=$as_save_IFS
1.237 moko 5321: case $as_dir in #(((
5322: '') as_dir=./ ;;
5323: */) ;;
5324: *) as_dir=$as_dir/ ;;
5325: esac
1.150 moko 5326: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5327: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5328: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.237 moko 5329: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5330: break 2
5331: fi
5332: done
1.150 moko 5333: done
5334: IFS=$as_save_IFS
1.62 paf 5335:
1.237 moko 5336: fi ;;
5337: esac
1.66 paf 5338: fi
5339: CC=$ac_cv_prog_CC
5340: if test -n "$CC"; then
1.237 moko 5341: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5342: printf "%s\n" "$CC" >&6; }
1.62 paf 5343: else
1.237 moko 5344: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345: printf "%s\n" "no" >&6; }
1.1 paf 5346: fi
5347:
1.150 moko 5348:
1.66 paf 5349: fi
1.1 paf 5350: fi
1.66 paf 5351: if test -z "$CC"; then
5352: # Extract the first word of "cc", so it can be a program name with args.
5353: set dummy cc; ac_word=$2
1.237 moko 5354: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355: printf %s "checking for $ac_word... " >&6; }
5356: if test ${ac_cv_prog_CC+y}
5357: then :
5358: printf %s "(cached) " >&6
5359: else case e in #(
5360: e) if test -n "$CC"; then
1.66 paf 5361: ac_cv_prog_CC="$CC" # Let the user override the test.
5362: else
5363: ac_prog_rejected=no
5364: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365: for as_dir in $PATH
5366: do
5367: IFS=$as_save_IFS
1.237 moko 5368: case $as_dir in #(((
5369: '') as_dir=./ ;;
5370: */) ;;
5371: *) as_dir=$as_dir/ ;;
5372: esac
1.150 moko 5373: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5374: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5375: if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.66 paf 5376: ac_prog_rejected=yes
5377: continue
5378: fi
5379: ac_cv_prog_CC="cc"
1.237 moko 5380: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5381: break 2
5382: fi
5383: done
1.150 moko 5384: done
5385: IFS=$as_save_IFS
1.62 paf 5386:
1.66 paf 5387: if test $ac_prog_rejected = yes; then
5388: # We found a bogon in the path, so make sure we never use it.
5389: set dummy $ac_cv_prog_CC
5390: shift
5391: if test $# != 0; then
5392: # We chose a different compiler from the bogus one.
5393: # However, it has the same basename, so the bogon will be chosen
5394: # first if we set CC to just the basename; use the full file name.
5395: shift
1.237 moko 5396: ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1.66 paf 5397: fi
5398: fi
1.237 moko 5399: fi ;;
5400: esac
1.66 paf 5401: fi
5402: CC=$ac_cv_prog_CC
5403: if test -n "$CC"; then
1.237 moko 5404: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5405: printf "%s\n" "$CC" >&6; }
1.66 paf 5406: else
1.237 moko 5407: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408: printf "%s\n" "no" >&6; }
1.1 paf 5409: fi
5410:
1.150 moko 5411:
1.66 paf 5412: fi
5413: if test -z "$CC"; then
5414: if test -n "$ac_tool_prefix"; then
1.150 moko 5415: for ac_prog in cl.exe
1.62 paf 5416: do
5417: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5418: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 moko 5419: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420: printf %s "checking for $ac_word... " >&6; }
5421: if test ${ac_cv_prog_CC+y}
5422: then :
5423: printf %s "(cached) " >&6
5424: else case e in #(
5425: e) if test -n "$CC"; then
1.66 paf 5426: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 5427: else
5428: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429: for as_dir in $PATH
5430: do
5431: IFS=$as_save_IFS
1.237 moko 5432: case $as_dir in #(((
5433: '') as_dir=./ ;;
5434: */) ;;
5435: *) as_dir=$as_dir/ ;;
5436: esac
1.150 moko 5437: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5438: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5439: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.237 moko 5440: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 5441: break 2
5442: fi
5443: done
1.150 moko 5444: done
5445: IFS=$as_save_IFS
1.1 paf 5446:
1.237 moko 5447: fi ;;
5448: esac
1.62 paf 5449: fi
1.66 paf 5450: CC=$ac_cv_prog_CC
5451: if test -n "$CC"; then
1.237 moko 5452: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5453: printf "%s\n" "$CC" >&6; }
1.1 paf 5454: else
1.237 moko 5455: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456: printf "%s\n" "no" >&6; }
1.1 paf 5457: fi
5458:
1.150 moko 5459:
1.66 paf 5460: test -n "$CC" && break
1.62 paf 5461: done
5462: fi
1.66 paf 5463: if test -z "$CC"; then
5464: ac_ct_CC=$CC
1.150 moko 5465: for ac_prog in cl.exe
1.62 paf 5466: do
5467: # Extract the first word of "$ac_prog", so it can be a program name with args.
5468: set dummy $ac_prog; ac_word=$2
1.237 moko 5469: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470: printf %s "checking for $ac_word... " >&6; }
5471: if test ${ac_cv_prog_ac_ct_CC+y}
5472: then :
5473: printf %s "(cached) " >&6
5474: else case e in #(
5475: e) if test -n "$ac_ct_CC"; then
1.66 paf 5476: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 5477: else
1.62 paf 5478: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479: for as_dir in $PATH
5480: do
5481: IFS=$as_save_IFS
1.237 moko 5482: case $as_dir in #(((
5483: '') as_dir=./ ;;
5484: */) ;;
5485: *) as_dir=$as_dir/ ;;
5486: esac
1.150 moko 5487: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 5488: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5489: ac_cv_prog_ac_ct_CC="$ac_prog"
1.237 moko 5490: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 5491: break 2
5492: fi
5493: done
1.150 moko 5494: done
5495: IFS=$as_save_IFS
1.62 paf 5496:
1.237 moko 5497: fi ;;
5498: esac
1.62 paf 5499: fi
1.66 paf 5500: ac_ct_CC=$ac_cv_prog_ac_ct_CC
5501: if test -n "$ac_ct_CC"; then
1.237 moko 5502: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5503: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 paf 5504: else
1.237 moko 5505: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506: printf "%s\n" "no" >&6; }
1.1 paf 5507: fi
5508:
1.150 moko 5509:
1.66 paf 5510: test -n "$ac_ct_CC" && break
5511: done
5512:
1.150 moko 5513: if test "x$ac_ct_CC" = x; then
5514: CC=""
5515: else
5516: case $cross_compiling:$ac_tool_warned in
5517: yes:)
1.237 moko 5518: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5519: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 5520: ac_tool_warned=yes ;;
5521: esac
5522: CC=$ac_ct_CC
5523: fi
1.66 paf 5524: fi
5525:
5526: fi
1.237 moko 5527: if test -z "$CC"; then
5528: if test -n "$ac_tool_prefix"; then
5529: # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5530: set dummy ${ac_tool_prefix}clang; ac_word=$2
5531: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532: printf %s "checking for $ac_word... " >&6; }
5533: if test ${ac_cv_prog_CC+y}
5534: then :
5535: printf %s "(cached) " >&6
5536: else case e in #(
5537: e) if test -n "$CC"; then
5538: ac_cv_prog_CC="$CC" # Let the user override the test.
5539: else
5540: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541: for as_dir in $PATH
5542: do
5543: IFS=$as_save_IFS
5544: case $as_dir in #(((
5545: '') as_dir=./ ;;
5546: */) ;;
5547: *) as_dir=$as_dir/ ;;
5548: esac
5549: for ac_exec_ext in '' $ac_executable_extensions; do
5550: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5551: ac_cv_prog_CC="${ac_tool_prefix}clang"
5552: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5553: break 2
5554: fi
5555: done
5556: done
5557: IFS=$as_save_IFS
5558:
5559: fi ;;
5560: esac
5561: fi
5562: CC=$ac_cv_prog_CC
5563: if test -n "$CC"; then
5564: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5565: printf "%s\n" "$CC" >&6; }
5566: else
5567: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568: printf "%s\n" "no" >&6; }
5569: fi
5570:
5571:
5572: fi
5573: if test -z "$ac_cv_prog_CC"; then
5574: ac_ct_CC=$CC
5575: # Extract the first word of "clang", so it can be a program name with args.
5576: set dummy clang; ac_word=$2
5577: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5578: printf %s "checking for $ac_word... " >&6; }
5579: if test ${ac_cv_prog_ac_ct_CC+y}
5580: then :
5581: printf %s "(cached) " >&6
5582: else case e in #(
5583: e) if test -n "$ac_ct_CC"; then
5584: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5585: else
5586: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587: for as_dir in $PATH
5588: do
5589: IFS=$as_save_IFS
5590: case $as_dir in #(((
5591: '') as_dir=./ ;;
5592: */) ;;
5593: *) as_dir=$as_dir/ ;;
5594: esac
5595: for ac_exec_ext in '' $ac_executable_extensions; do
5596: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5597: ac_cv_prog_ac_ct_CC="clang"
5598: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5599: break 2
5600: fi
5601: done
5602: done
5603: IFS=$as_save_IFS
5604:
5605: fi ;;
5606: esac
5607: fi
5608: ac_ct_CC=$ac_cv_prog_ac_ct_CC
5609: if test -n "$ac_ct_CC"; then
5610: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5611: printf "%s\n" "$ac_ct_CC" >&6; }
5612: else
5613: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614: printf "%s\n" "no" >&6; }
5615: fi
5616:
5617: if test "x$ac_ct_CC" = x; then
5618: CC=""
5619: else
5620: case $cross_compiling:$ac_tool_warned in
5621: yes:)
5622: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5623: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5624: ac_tool_warned=yes ;;
5625: esac
5626: CC=$ac_ct_CC
5627: fi
5628: else
5629: CC="$ac_cv_prog_CC"
5630: fi
5631:
5632: fi
1.62 paf 5633:
1.1 paf 5634:
1.237 moko 5635: test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5636: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 5637: as_fn_error $? "no acceptable C compiler found in \$PATH
1.237 moko 5638: See 'config.log' for more details" "$LINENO" 5; }
1.62 paf 5639:
5640: # Provide some information about the compiler.
1.237 moko 5641: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.150 moko 5642: set X $ac_compile
5643: ac_compiler=$2
1.237 moko 5644: for ac_option in --version -v -V -qversion -version; do
1.150 moko 5645: { { ac_try="$ac_compiler $ac_option >&5"
5646: case "(($ac_try" in
5647: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648: *) ac_try_echo=$ac_try;;
5649: esac
5650: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 moko 5651: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 5652: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.62 paf 5653: ac_status=$?
1.150 moko 5654: if test -s conftest.err; then
5655: sed '10a\
5656: ... rest of stderr output deleted ...
5657: 10q' conftest.err >conftest.er1
5658: cat conftest.er1 >&5
5659: fi
5660: rm -f conftest.er1 conftest.err
1.237 moko 5661: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 5662: test $ac_status = 0; }
5663: done
5664:
1.237 moko 5665: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5666: printf %s "checking whether the compiler supports GNU C... " >&6; }
5667: if test ${ac_cv_c_compiler_gnu+y}
5668: then :
5669: printf %s "(cached) " >&6
5670: else case e in #(
5671: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 5672: /* end confdefs.h. */
5673:
5674: int
1.237 moko 5675: main (void)
1.62 paf 5676: {
5677: #ifndef __GNUC__
5678: choke me
5679: #endif
5680:
5681: ;
5682: return 0;
5683: }
5684: _ACEOF
1.237 moko 5685: if ac_fn_c_try_compile "$LINENO"
5686: then :
1.62 paf 5687: ac_compiler_gnu=yes
1.237 moko 5688: else case e in #(
5689: e) ac_compiler_gnu=no ;;
5690: esac
1.62 paf 5691: fi
1.237 moko 5692: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.66 paf 5693: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.237 moko 5694: ;;
5695: esac
5696: fi
5697: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5698: printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5699: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.62 paf 5700:
1.150 moko 5701: if test $ac_compiler_gnu = yes; then
5702: GCC=yes
5703: else
5704: GCC=
5705: fi
1.237 moko 5706: ac_test_CFLAGS=${CFLAGS+y}
1.66 paf 5707: ac_save_CFLAGS=$CFLAGS
1.237 moko 5708: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5709: printf %s "checking whether $CC accepts -g... " >&6; }
5710: if test ${ac_cv_prog_cc_g+y}
5711: then :
5712: printf %s "(cached) " >&6
5713: else case e in #(
5714: e) ac_save_c_werror_flag=$ac_c_werror_flag
1.150 moko 5715: ac_c_werror_flag=yes
5716: ac_cv_prog_cc_g=no
5717: CFLAGS="-g"
5718: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 5719: /* end confdefs.h. */
5720:
5721: int
1.237 moko 5722: main (void)
1.62 paf 5723: {
5724:
5725: ;
5726: return 0;
5727: }
5728: _ACEOF
1.237 moko 5729: if ac_fn_c_try_compile "$LINENO"
5730: then :
1.66 paf 5731: ac_cv_prog_cc_g=yes
1.237 moko 5732: else case e in #(
5733: e) CFLAGS=""
1.150 moko 5734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735: /* end confdefs.h. */
5736:
5737: int
1.237 moko 5738: main (void)
1.150 moko 5739: {
1.62 paf 5740:
1.150 moko 5741: ;
5742: return 0;
5743: }
5744: _ACEOF
1.237 moko 5745: if ac_fn_c_try_compile "$LINENO"
5746: then :
1.150 moko 5747:
1.237 moko 5748: else case e in #(
5749: e) ac_c_werror_flag=$ac_save_c_werror_flag
1.150 moko 5750: CFLAGS="-g"
5751: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752: /* end confdefs.h. */
5753:
5754: int
1.237 moko 5755: main (void)
1.150 moko 5756: {
5757:
5758: ;
5759: return 0;
5760: }
5761: _ACEOF
1.237 moko 5762: if ac_fn_c_try_compile "$LINENO"
5763: then :
1.150 moko 5764: ac_cv_prog_cc_g=yes
5765: fi
1.237 moko 5766: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5767: esac
1.62 paf 5768: fi
1.237 moko 5769: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5770: esac
1.62 paf 5771: fi
1.237 moko 5772: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5773: ac_c_werror_flag=$ac_save_c_werror_flag ;;
5774: esac
1.150 moko 5775: fi
1.237 moko 5776: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5777: printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5778: if test $ac_test_CFLAGS; then
1.66 paf 5779: CFLAGS=$ac_save_CFLAGS
5780: elif test $ac_cv_prog_cc_g = yes; then
5781: if test "$GCC" = yes; then
5782: CFLAGS="-g -O2"
1.1 paf 5783: else
1.66 paf 5784: CFLAGS="-g"
1.1 paf 5785: fi
5786: else
1.66 paf 5787: if test "$GCC" = yes; then
5788: CFLAGS="-O2"
1.1 paf 5789: else
1.66 paf 5790: CFLAGS=
1.1 paf 5791: fi
5792: fi
1.237 moko 5793: ac_prog_cc_stdc=no
5794: if test x$ac_prog_cc_stdc = xno
5795: then :
5796: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5797: printf %s "checking for $CC option to enable C11 features... " >&6; }
5798: if test ${ac_cv_prog_cc_c11+y}
5799: then :
5800: printf %s "(cached) " >&6
5801: else case e in #(
5802: e) ac_cv_prog_cc_c11=no
1.66 paf 5803: ac_save_CC=$CC
1.150 moko 5804: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 5805: /* end confdefs.h. */
1.237 moko 5806: $ac_c_conftest_c11_program
5807: _ACEOF
5808: for ac_arg in '' -std=gnu11
5809: do
5810: CC="$ac_save_CC $ac_arg"
5811: if ac_fn_c_try_compile "$LINENO"
5812: then :
5813: ac_cv_prog_cc_c11=$ac_arg
5814: fi
5815: rm -f core conftest.err conftest.$ac_objext conftest.beam
5816: test "x$ac_cv_prog_cc_c11" != "xno" && break
5817: done
5818: rm -f conftest.$ac_ext
5819: CC=$ac_save_CC ;;
5820: esac
5821: fi
1.86 paf 5822:
1.237 moko 5823: if test "x$ac_cv_prog_cc_c11" = xno
5824: then :
5825: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5826: printf "%s\n" "unsupported" >&6; }
5827: else case e in #(
5828: e) if test "x$ac_cv_prog_cc_c11" = x
5829: then :
5830: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5831: printf "%s\n" "none needed" >&6; }
5832: else case e in #(
5833: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5834: printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5835: CC="$CC $ac_cv_prog_cc_c11" ;;
5836: esac
5837: fi
5838: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5839: ac_prog_cc_stdc=c11 ;;
5840: esac
5841: fi
5842: fi
5843: if test x$ac_prog_cc_stdc = xno
5844: then :
5845: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5846: printf %s "checking for $CC option to enable C99 features... " >&6; }
5847: if test ${ac_cv_prog_cc_c99+y}
5848: then :
5849: printf %s "(cached) " >&6
5850: else case e in #(
5851: e) ac_cv_prog_cc_c99=no
5852: ac_save_CC=$CC
5853: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854: /* end confdefs.h. */
5855: $ac_c_conftest_c99_program
5856: _ACEOF
5857: for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5858: do
5859: CC="$ac_save_CC $ac_arg"
5860: if ac_fn_c_try_compile "$LINENO"
5861: then :
5862: ac_cv_prog_cc_c99=$ac_arg
5863: fi
5864: rm -f core conftest.err conftest.$ac_objext conftest.beam
5865: test "x$ac_cv_prog_cc_c99" != "xno" && break
5866: done
5867: rm -f conftest.$ac_ext
5868: CC=$ac_save_CC ;;
5869: esac
5870: fi
1.86 paf 5871:
1.237 moko 5872: if test "x$ac_cv_prog_cc_c99" = xno
5873: then :
5874: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5875: printf "%s\n" "unsupported" >&6; }
5876: else case e in #(
5877: e) if test "x$ac_cv_prog_cc_c99" = x
5878: then :
5879: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5880: printf "%s\n" "none needed" >&6; }
5881: else case e in #(
5882: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5883: printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5884: CC="$CC $ac_cv_prog_cc_c99" ;;
5885: esac
5886: fi
5887: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5888: ac_prog_cc_stdc=c99 ;;
5889: esac
5890: fi
5891: fi
5892: if test x$ac_prog_cc_stdc = xno
5893: then :
5894: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5895: printf %s "checking for $CC option to enable C89 features... " >&6; }
5896: if test ${ac_cv_prog_cc_c89+y}
5897: then :
5898: printf %s "(cached) " >&6
5899: else case e in #(
5900: e) ac_cv_prog_cc_c89=no
5901: ac_save_CC=$CC
5902: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903: /* end confdefs.h. */
5904: $ac_c_conftest_c89_program
1.66 paf 5905: _ACEOF
1.237 moko 5906: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.66 paf 5907: do
5908: CC="$ac_save_CC $ac_arg"
1.237 moko 5909: if ac_fn_c_try_compile "$LINENO"
5910: then :
1.150 moko 5911: ac_cv_prog_cc_c89=$ac_arg
1.66 paf 5912: fi
1.237 moko 5913: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.150 moko 5914: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.66 paf 5915: done
1.150 moko 5916: rm -f conftest.$ac_ext
1.237 moko 5917: CC=$ac_save_CC ;;
5918: esac
5919: fi
1.66 paf 5920:
1.237 moko 5921: if test "x$ac_cv_prog_cc_c89" = xno
5922: then :
5923: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5924: printf "%s\n" "unsupported" >&6; }
5925: else case e in #(
5926: e) if test "x$ac_cv_prog_cc_c89" = x
5927: then :
5928: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5929: printf "%s\n" "none needed" >&6; }
5930: else case e in #(
5931: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5932: printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5933: CC="$CC $ac_cv_prog_cc_c89" ;;
5934: esac
1.66 paf 5935: fi
1.237 moko 5936: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5937: ac_prog_cc_stdc=c89 ;;
1.66 paf 5938: esac
1.237 moko 5939: fi
1.62 paf 5940: fi
1.66 paf 5941:
1.62 paf 5942: ac_ext=c
5943: ac_cpp='$CPP $CPPFLAGS'
5944: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5945: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5946: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5947:
1.237 moko 5948:
5949: ac_ext=c
1.187 moko 5950: ac_cpp='$CPP $CPPFLAGS'
5951: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5952: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.237 moko 5954: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5955: printf %s "checking whether $CC understands -c and -o together... " >&6; }
5956: if test ${am_cv_prog_cc_c_o+y}
5957: then :
5958: printf %s "(cached) " >&6
5959: else case e in #(
5960: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.187 moko 5961: /* end confdefs.h. */
5962:
5963: int
1.237 moko 5964: main (void)
1.187 moko 5965: {
5966:
5967: ;
5968: return 0;
5969: }
5970: _ACEOF
5971: # Make sure it works both with $CC and with simple cc.
5972: # Following AC_PROG_CC_C_O, we do the test twice because some
5973: # compilers refuse to overwrite an existing .o file with -o,
5974: # though they will create one.
5975: am_cv_prog_cc_c_o=yes
5976: for am_i in 1 2; do
5977: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5978: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5979: ac_status=$?
5980: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981: (exit $ac_status); } \
5982: && test -f conftest2.$ac_objext; then
5983: : OK
5984: else
5985: am_cv_prog_cc_c_o=no
5986: break
5987: fi
5988: done
5989: rm -f core conftest*
1.237 moko 5990: unset am_i ;;
5991: esac
1.187 moko 5992: fi
1.237 moko 5993: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5994: printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
1.187 moko 5995: if test "$am_cv_prog_cc_c_o" != yes; then
5996: # Losing compiler, so override with the script.
5997: # FIXME: It is wrong to rewrite CC.
5998: # But if we don't then we get into trouble of one sort or another.
5999: # A longer-term fix would be to have automake use am__CC in this case,
6000: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6001: CC="$am_aux_dir/compile $CC"
6002: fi
6003: ac_ext=c
6004: ac_cpp='$CPP $CPPFLAGS'
6005: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008:
6009:
1.66 paf 6010: depcc="$CC" am_compiler_list=
1.62 paf 6011:
1.237 moko 6012: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6013: printf %s "checking dependency style of $depcc... " >&6; }
6014: if test ${am_cv_CC_dependencies_compiler_type+y}
6015: then :
6016: printf %s "(cached) " >&6
6017: else case e in #(
6018: e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.62 paf 6019: # We make a subdir and do the tests there. Otherwise we can end up
6020: # making bogus files that we don't know about and never remove. For
6021: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 6022: # making a dummy file named 'D' -- because '-MD' means "put the output
6023: # in D".
6024: rm -rf conftest.dir
1.62 paf 6025: mkdir conftest.dir
6026: # Copy depcomp to subdir because otherwise we won't find it if we're
6027: # using a relative directory.
6028: cp "$am_depcomp" conftest.dir
6029: cd conftest.dir
1.86 paf 6030: # We will build objects and dependencies in a subdirectory because
6031: # it helps to detect inapplicable dependency modes. For instance
6032: # both Tru64's cc and ICC support -MD to output dependencies as a
6033: # side effect of compilation, but ICC will put the dependencies in
6034: # the current directory while Tru64 will put them in the object
6035: # directory.
6036: mkdir sub
1.62 paf 6037:
1.66 paf 6038: am_cv_CC_dependencies_compiler_type=none
1.62 paf 6039: if test "$am_compiler_list" = ""; then
6040: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6041: fi
1.150 moko 6042: am__universal=false
6043: case " $depcc " in #(
6044: *\ -arch\ *\ -arch\ *) am__universal=true ;;
6045: esac
6046:
1.62 paf 6047: for depmode in $am_compiler_list; do
1.86 paf 6048: # Setup a source with many dependencies, because some compilers
6049: # like to wrap large dependency lists on column 80 (with \), and
6050: # we should not choose a depcomp mode which is confused by this.
6051: #
1.62 paf 6052: # We need to recreate these files for each test, as the compiler may
6053: # overwrite some of them when testing with obscure command lines.
6054: # This happens at least with the AIX C compiler.
1.86 paf 6055: : > sub/conftest.c
6056: for i in 1 2 3 4 5 6; do
6057: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 6058: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6059: # Solaris 10 /bin/sh.
6060: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 6061: done
6062: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 6063:
1.187 moko 6064: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 6065: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 6066: # handle '-M -o', and we need to detect this. Also, some Intel
6067: # versions had trouble with output in subdirs.
1.150 moko 6068: am__obj=sub/conftest.${OBJEXT-o}
6069: am__minus_obj="-o $am__obj"
1.62 paf 6070: case $depmode in
1.150 moko 6071: gcc)
6072: # This depmode causes a compiler race in universal mode.
6073: test "$am__universal" = false || continue
6074: ;;
1.62 paf 6075: nosideeffect)
1.187 moko 6076: # After this tag, mechanisms are not by side-effect, so they'll
6077: # only be used when explicitly requested.
1.62 paf 6078: if test "x$enable_dependency_tracking" = xyes; then
6079: continue
6080: else
6081: break
6082: fi
6083: ;;
1.187 moko 6084: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6085: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 6086: # not run yet. These depmodes are late enough in the game, and
6087: # so weak that their functioning should not be impacted.
6088: am__obj=conftest.${OBJEXT-o}
6089: am__minus_obj=
6090: ;;
1.62 paf 6091: none) break ;;
6092: esac
1.66 paf 6093: if depmode=$depmode \
1.150 moko 6094: source=sub/conftest.c object=$am__obj \
1.86 paf 6095: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 6096: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 6097: >/dev/null 2>conftest.err &&
1.150 moko 6098: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 6099: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 6100: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 6101: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 6102: # icc doesn't choke on unknown options, it will just issue warnings
6103: # or remarks (even with -Werror). So we grep stderr for any message
6104: # that says an option was ignored or not supported.
1.237 moko 6105: # When given -MP, icc 7.0 and 7.1 complain thus:
1.86 paf 6106: # icc: Command line warning: ignoring option '-M'; no argument required
6107: # The diagnosis changed in icc 8.0:
6108: # icc: Command line remark: option '-MP' not supported
6109: if (grep 'ignoring option' conftest.err ||
6110: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6111: am_cv_CC_dependencies_compiler_type=$depmode
6112: break
6113: fi
1.66 paf 6114: fi
6115: done
6116:
6117: cd ..
6118: rm -rf conftest.dir
6119: else
6120: am_cv_CC_dependencies_compiler_type=none
6121: fi
1.237 moko 6122: ;;
6123: esac
1.66 paf 6124: fi
1.237 moko 6125: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6126: printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
1.66 paf 6127: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6128:
1.150 moko 6129: if
1.66 paf 6130: test "x$enable_dependency_tracking" != xno \
6131: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6132: am__fastdepCC_TRUE=
6133: am__fastdepCC_FALSE='#'
6134: else
6135: am__fastdepCC_TRUE='#'
6136: am__fastdepCC_FALSE=
6137: fi
6138:
6139:
1.128 moko 6140:
1.66 paf 6141: ac_ext=c
6142: ac_cpp='$CPP $CPPFLAGS'
6143: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146:
1.67 paf 6147:
1.62 paf 6148:
1.237 moko 6149: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dynamic-link library extension" >&5
6150: printf %s "checking for dynamic-link library extension... " >&6; }
1.128 moko 6151: case "$host_os" in
1.158 moko 6152: *cygwin* ) dll_extension=dll;;
6153: * ) dll_extension=so
1.66 paf 6154: esac
1.237 moko 6155: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dll_extension" >&5
6156: printf "%s\n" "$dll_extension" >&6; }
1.1 paf 6157:
1.71 paf 6158:
6159:
6160:
1.150 moko 6161: # Check whether --with-build-warnings was given.
1.237 moko 6162: if test ${with_build_warnings+y}
6163: then :
6164: withval=$with_build_warnings; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling compiler warnings" >&5
6165: printf "%s\n" "$as_me: WARNING: enabling compiler warnings" >&2;}
1.225 moko 6166: CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2 -Wextra -Wall -Wno-parentheses"
1.71 paf 6167:
1.150 moko 6168: fi
6169:
1.1 paf 6170:
6171:
1.182 moko 6172: # Check whether --with-coverage was given.
1.237 moko 6173: if test ${with_coverage+y}
6174: then :
6175: withval=$with_coverage; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling gcov support" >&5
6176: printf "%s\n" "$as_me: WARNING: enabling gcov support" >&2;}
1.182 moko 6177: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O0-9*//g'`
6178: CXXFLAGS=`echo "$XXCFLAGS" | $SED -e 's/-O0-9*//g'`
6179: CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
6180: CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
6181: LDFLAGS="$LDFLAGS -lgcov"
6182:
6183: fi
6184:
6185:
6186:
6187: # Check whether --with-profiler was given.
1.237 moko 6188: if test ${with_profiler+y}
6189: then :
6190: withval=$with_profiler; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling gprof support" >&5
6191: printf "%s\n" "$as_me: WARNING: enabling gprof support" >&2;}
1.193 moko 6192: CFLAGS="$CFLAGS -O0 -pg -g"
6193: CXXFLAGS="$CXXFLAGS -O0 -pg -g"
1.182 moko 6194:
6195: fi
6196:
6197:
6198:
1.150 moko 6199: # Check whether --with-assertions was given.
1.237 moko 6200: if test ${with_assertions+y}
6201: then :
6202: withval=$with_assertions; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
6203: printf "%s\n" "$as_me: WARNING: enabling assertions" >&2;}
6204:
6205: else case e in #(
6206: e)
6207: printf "%s\n" "#define NDEBUG /**/" >>confdefs.h
1.67 paf 6208:
1.237 moko 6209: ;;
6210: esac
1.150 moko 6211: fi
1.67 paf 6212:
6213:
1.94 misha 6214:
1.150 moko 6215: # Check whether --with-sjlj-exceptions was given.
1.237 moko 6216: if test ${with_sjlj_exceptions+y}
6217: then :
1.150 moko 6218: withval=$with_sjlj_exceptions;
1.237 moko 6219: printf "%s\n" "#define PA_WITH_SJLJ_EXCEPTIONS /**/" >>confdefs.h
1.128 moko 6220:
6221:
1.150 moko 6222: fi
1.128 moko 6223:
6224:
1.62 paf 6225:
1.201 moko 6226:
1.203 moko 6227: # Check whether --with-system-cfg was given.
1.237 moko 6228: if test ${with_system_cfg+y}
6229: then :
1.203 moko 6230: withval=$with_system_cfg;
1.237 moko 6231: printf "%s\n" "#define SYSTEM_CONFIG_FILE \"$withval\"" >>confdefs.h
1.201 moko 6232:
6233:
6234: fi
6235:
6236:
6237:
1.150 moko 6238: # Check whether --enable-safe-mode was given.
1.237 moko 6239: if test ${enable_safe_mode+y}
6240: then :
1.150 moko 6241: enableval=$enable_safe_mode;
1.67 paf 6242: SAFE_MODE=$enableval
1.60 paf 6243:
1.1 paf 6244:
1.150 moko 6245: fi
6246:
1.128 moko 6247:
1.60 paf 6248: if test "$SAFE_MODE" = "no"; then
1.237 moko 6249: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling reading of files belonging to group+user other then effective" >&5
6250: printf "%s\n" "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 6251: else
1.62 paf 6252:
1.237 moko 6253: printf "%s\n" "#define PA_SAFE_MODE /**/" >>confdefs.h
1.1 paf 6254:
6255: fi
6256:
1.94 misha 6257:
1.150 moko 6258: # Check whether --enable-execs was given.
1.237 moko 6259: if test ${enable_execs+y}
6260: then :
1.150 moko 6261: enableval=$enable_execs;
1.13 paf 6262: if test "$enableval" = "no"; then
1.237 moko 6263: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling file execs" >&5
6264: printf "%s\n" "$as_me: WARNING: disabling file execs" >&2;}
1.62 paf 6265:
1.237 moko 6266: printf "%s\n" "#define NO_PA_EXECS /**/" >>confdefs.h
1.13 paf 6267:
6268: fi
6269:
6270:
1.150 moko 6271: fi
1.13 paf 6272:
1.60 paf 6273:
1.94 misha 6274:
1.150 moko 6275: # Check whether --enable-stringstream was given.
1.237 moko 6276: if test ${enable_stringstream+y}
6277: then :
1.150 moko 6278: enableval=$enable_stringstream;
1.94 misha 6279: if test "$enableval" = "no"; then
1.237 moko 6280: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling stringstream usage" >&5
6281: printf "%s\n" "$as_me: WARNING: disabling stringstream usage" >&2;}
1.94 misha 6282:
1.237 moko 6283: printf "%s\n" "#define NO_STRINGSTREAM /**/" >>confdefs.h
1.94 misha 6284:
6285: fi
6286:
6287:
1.150 moko 6288: fi
1.94 misha 6289:
6290:
1.62 paf 6291:
1.17 paf 6292:
1.150 moko 6293: # Check whether --with-gc was given.
1.237 moko 6294: if test ${with_gc+y}
6295: then :
1.150 moko 6296: withval=$with_gc;
1.17 paf 6297:
1.142 moko 6298: GC=$withval
6299: GC_LIBS="$GC/libgc.la"
6300:
6301: if test -f $GC_LIBS; then
6302: GC_OK="yes"
6303: else
6304: GC_LIBS="-L$GC -lgc"
6305: fi
1.62 paf 6306:
1.151 moko 6307: if test "$GC" = "yes"; then
6308: GC=""
6309: GC_LIBS="-lgc"
1.237 moko 6310: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc value was not specified, hoping linker would find it" >&5
6311: printf "%s\n" "$as_me: WARNING: --with-gc value was not specified, hoping linker would find it" >&2;}
1.151 moko 6312: fi
6313:
1.237 moko 6314: else case e in #(
6315: e)
1.142 moko 6316: GC_LIBS="-lgc"
1.237 moko 6317: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc was not specified, hoping linker would find it" >&5
6318: printf "%s\n" "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
6319: ;;
6320: esac
1.150 moko 6321: fi
1.17 paf 6322:
6323:
1.142 moko 6324: if test -z "$GC_OK"; then
1.237 moko 6325: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgc" >&5
6326: printf %s "checking for libgc... " >&6; }
1.138 moko 6327: SAVE_LIBS=$LIBS
6328: LIBS="$LIBS $GC_LIBS"
1.128 moko 6329:
1.229 moko 6330:
6331: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 6332: /* end confdefs.h. */
1.142 moko 6333: extern int GC_dont_gc;
1.67 paf 6334: int
1.237 moko 6335: main (void)
1.67 paf 6336: {
1.142 moko 6337: GC_dont_gc=0;
1.67 paf 6338: ;
6339: return 0;
6340: }
6341: _ACEOF
1.237 moko 6342: if ac_fn_c_try_link "$LINENO"
6343: then :
6344: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6345: printf "%s\n" "yes" >&6; }
6346:
6347: else case e in #(
6348: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349: printf "%s\n" "no" >&6; }
1.142 moko 6350: if test -z "$GC"; then
1.201 moko 6351: as_fn_error $? "please specify path to libgc: --with-gc=DIR" "$LINENO" 5
1.142 moko 6352: else
1.150 moko 6353: as_fn_error $? "$GC does not seem to be valid libgc installation directory" "$LINENO" 5
1.142 moko 6354: fi
1.67 paf 6355:
1.237 moko 6356: ;;
6357: esac
1.67 paf 6358: fi
1.237 moko 6359: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 6360: conftest$ac_exeext conftest.$ac_ext
1.229 moko 6361:
1.138 moko 6362: LIBS=$SAVE_LIBS
6363: fi
1.67 paf 6364:
6365:
1.1 paf 6366:
1.15 paf 6367:
1.142 moko 6368:
1.150 moko 6369: # Check whether --with-pcre was given.
1.237 moko 6370: if test ${with_pcre+y}
6371: then :
1.150 moko 6372: withval=$with_pcre;
1.100 misha 6373: PCRE=$withval
6374:
1.151 moko 6375: if test "$PCRE" = "yes"; then
6376: PCRE=""
1.237 moko 6377: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5
6378: printf "%s\n" "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;}
1.218 moko 6379: else
6380: PCRE_INCLUDES="-I$PCRE/include"
6381:
6382: if test -f $PCRE/include/pcre.h -a -f $PCRE/lib/libpcre.la; then
6383: PCRE_OK="yes"
6384: PCRE_LIBS="$PCRE/lib/libpcre.la"
6385: else
6386: if test -f $PCRE/include/pcre2.h -a -f $PCRE/lib/libpcre2-8.la; then
6387: PCRE_OK="yes"
6388: PCRE_LIBS="$PCRE/lib/libpcre2-8.la"
6389:
1.237 moko 6390: printf "%s\n" "#define HAVE_PCRE2 /**/" >>confdefs.h
1.218 moko 6391:
6392: else
6393: PCRE_LIBS="-L$PCRE/lib"
6394: fi
6395: fi
1.151 moko 6396: fi
1.142 moko 6397:
1.237 moko 6398: else case e in #(
6399: e)
6400: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
6401: printf "%s\n" "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
6402: ;;
6403: esac
1.150 moko 6404: fi
1.100 misha 6405:
6406:
1.142 moko 6407: if test -z "$PCRE_OK"; then
1.237 moko 6408: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre2" >&5
6409: printf %s "checking for pcre2... " >&6; }
1.218 moko 6410: SAVE_LIBS=$LIBS
6411: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES -lpcre2-8"
1.229 moko 6412:
6413: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.218 moko 6414: /* end confdefs.h. */
6415: #define PCRE2_CODE_UNIT_WIDTH 8
6416: #include <pcre2.h>
6417: int
1.237 moko 6418: main (void)
1.218 moko 6419: {
6420: void *v=pcre2_general_context_create(0,0,0);
6421: ;
6422: return 0;
6423: }
6424: _ACEOF
1.237 moko 6425: if ac_fn_c_try_link "$LINENO"
6426: then :
6427: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6428: printf "%s\n" "yes" >&6; }
1.218 moko 6429: PCRE_LIBS="$PCRE_LIBS -lpcre2-8"
6430:
1.237 moko 6431: printf "%s\n" "#define HAVE_PCRE2 /**/" >>confdefs.h
1.218 moko 6432:
6433: PCRE_OK="yes"
6434:
1.237 moko 6435: else case e in #(
6436: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437: printf "%s\n" "no" >&6; }
1.229 moko 6438:
1.237 moko 6439: ;;
6440: esac
1.218 moko 6441: fi
1.237 moko 6442: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.218 moko 6443: conftest$ac_exeext conftest.$ac_ext
1.229 moko 6444:
1.218 moko 6445: LIBS=$SAVE_LIBS
6446: fi
6447:
6448: if test -z "$PCRE_OK"; then
1.237 moko 6449: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre" >&5
6450: printf %s "checking for pcre... " >&6; }
1.218 moko 6451: PCRE_LIBS="$PCRE_LIBS -lpcre"
1.142 moko 6452: SAVE_LIBS=$LIBS
6453: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
1.229 moko 6454:
6455: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 6456: /* end confdefs.h. */
6457: #include <pcre.h>
6458: int
1.237 moko 6459: main (void)
1.142 moko 6460: {
6461: const char *v=pcre_version();
6462: ;
6463: return 0;
6464: }
6465: _ACEOF
1.237 moko 6466: if ac_fn_c_try_link "$LINENO"
6467: then :
6468: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6469: printf "%s\n" "yes" >&6; }
6470:
6471: else case e in #(
6472: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473: printf "%s\n" "no" >&6; }
1.142 moko 6474: if test -z "$PCRE"; then
1.201 moko 6475: as_fn_error $? "please specify path to PCRE: --with-pcre=DIR" "$LINENO" 5
1.142 moko 6476: else
1.150 moko 6477: as_fn_error $? "$PCRE does not seem to be valid PCRE installation directory" "$LINENO" 5
1.142 moko 6478: fi
6479:
1.237 moko 6480: ;;
6481: esac
1.142 moko 6482: fi
1.237 moko 6483: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 6484: conftest$ac_exeext conftest.$ac_ext
1.229 moko 6485:
1.142 moko 6486: LIBS=$SAVE_LIBS
6487: fi
1.100 misha 6488:
6489:
6490:
6491:
1.66 paf 6492:
6493:
1.150 moko 6494: # Check whether --with-xml was given.
1.237 moko 6495: if test ${with_xml+y}
6496: then :
1.150 moko 6497: withval=$with_xml;
1.66 paf 6498:
1.142 moko 6499: XML=$withval
6500: XML_LIBS="-lxml2 -lxslt -lexslt"
6501:
6502: if test -z "$XML" -o "$XML" = "yes"; then
6503: XML=""
6504: XML_INCLUDES="-I/usr/include/libxml2"
1.237 moko 6505: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
6506: printf "%s\n" "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
1.142 moko 6507: else
6508: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
1.193 moko 6509: XML_LIBS="-L$XML/lib $XML_LIBS"
1.67 paf 6510:
1.142 moko 6511: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
6512: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
6513: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
6514: XML_OK="yes"
6515: fi
1.67 paf 6516: fi
1.66 paf 6517:
1.142 moko 6518: if test -z "$XML_OK"; then
1.237 moko 6519: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
6520: printf %s "checking for xml... " >&6; }
1.142 moko 6521: SAVE_LIBS=$LIBS
6522: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.229 moko 6523:
6524: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 6525: /* end confdefs.h. */
6526: #include <libxslt/xslt.h>
6527: int
1.237 moko 6528: main (void)
1.142 moko 6529: {
6530: const char *v=xsltEngineVersion;
6531: ;
6532: return 0;
6533: }
6534: _ACEOF
1.237 moko 6535: if ac_fn_c_try_link "$LINENO"
6536: then :
6537: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6538: printf "%s\n" "yes" >&6; }
6539:
6540: else case e in #(
6541: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542: printf "%s\n" "no" >&6; }
1.142 moko 6543: if test -z "$XML"; then
1.201 moko 6544: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=DIR" "$LINENO" 5
1.142 moko 6545: else
1.150 moko 6546: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
1.142 moko 6547: fi
6548:
1.237 moko 6549: ;;
6550: esac
1.142 moko 6551: fi
1.237 moko 6552: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 6553: conftest$ac_exeext conftest.$ac_ext
1.229 moko 6554:
1.142 moko 6555: LIBS=$SAVE_LIBS
1.67 paf 6556: fi
1.66 paf 6557:
1.237 moko 6558: printf "%s\n" "#define XML /**/" >>confdefs.h
1.150 moko 6559:
1.66 paf 6560:
1.150 moko 6561: fi
1.66 paf 6562:
1.90 paf 6563:
1.66 paf 6564:
6565:
6566:
6567:
1.90 paf 6568:
1.154 moko 6569: # Check whether --with-mailreceive was given.
1.237 moko 6570: if test ${with_mailreceive+y}
6571: then :
1.154 moko 6572: withval=$with_mailreceive;
6573: MIME=$withval
1.155 moko 6574: GLIB="glib-2.0"
1.154 moko 6575: GMIME="gmime-2.4"
6576:
6577: if test -z "$MIME" -o "$MIME" = "yes"; then
6578: MIME=""
6579: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
6580: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
1.194 moko 6581: if test -z "$MIME_LIBS"; then
6582: GMIME="gmime-3.0"
6583: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
6584: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
6585: fi
1.237 moko 6586: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
6587: printf "%s\n" "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
1.154 moko 6588: else
1.155 moko 6589: MIME_INCLUDES="-I$MIME/include/$GMIME"
1.154 moko 6590: MIME_LIBS="-l$GMIME"
6591: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
6592: MIME_LIBS="$MIME/lib/lib$GMIME.la"
1.155 moko 6593: if test -f $MIME/lib/lib$GLIB.la; then
6594: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
6595: else
6596: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
6597: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
6598: fi
1.154 moko 6599: MIME_OK="yes"
6600: fi
1.67 paf 6601: fi
1.66 paf 6602:
1.154 moko 6603: if test -z "$MIME_OK"; then
1.237 moko 6604: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
6605: printf %s "checking for mime... " >&6; }
1.154 moko 6606: SAVE_LIBS=$LIBS
6607: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
1.229 moko 6608:
6609: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.154 moko 6610: /* end confdefs.h. */
6611: #include <gmime/gmime.h>
6612: int
1.237 moko 6613: main (void)
1.154 moko 6614: {
6615: guint v=gmime_major_version;
6616: ;
6617: return 0;
6618: }
6619: _ACEOF
1.237 moko 6620: if ac_fn_c_try_link "$LINENO"
6621: then :
6622: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6623: printf "%s\n" "yes" >&6; }
6624:
6625: else case e in #(
6626: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627: printf "%s\n" "no" >&6; }
1.154 moko 6628: if test -z "$MIME"; then
1.201 moko 6629: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=DIR" "$LINENO" 5
1.154 moko 6630: else
6631: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
1.90 paf 6632: fi
1.66 paf 6633:
1.237 moko 6634: ;;
6635: esac
1.150 moko 6636: fi
1.237 moko 6637: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.154 moko 6638: conftest$ac_exeext conftest.$ac_ext
1.229 moko 6639:
1.154 moko 6640: LIBS=$SAVE_LIBS
1.67 paf 6641: fi
1.66 paf 6642:
1.237 moko 6643: printf "%s\n" "#define WITH_MAILRECEIVE /**/" >>confdefs.h
1.66 paf 6644:
6645:
1.154 moko 6646: fi
1.66 paf 6647:
6648:
6649:
6650:
6651:
6652:
6653:
1.232 moko 6654: # Check whether --with-amqp was given.
1.237 moko 6655: if test ${with_amqp+y}
6656: then :
1.232 moko 6657: withval=$with_amqp;
6658: AMQP=$withval
6659:
6660: if test -z "$AMQP" -o "$AMQP" = "yes"; then
6661: AMQP_INCLUDES=""
6662: AMQP_LIBS="-lrabbitmq"
1.237 moko 6663: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-amqp value was not specified, hoping linker would find it" >&5
6664: printf "%s\n" "$as_me: WARNING: --with-amqp value was not specified, hoping linker would find it" >&2;}
1.232 moko 6665: else
6666: AMQP_INCLUDES="-I$AMQP/include"
6667: if test -f $AMQP/lib/librabbitmq.la; then
6668: AMQP_LIBS="$AMQP/lib/librabbitmq.la"
6669: else
6670: AMQP_LIBS="-L$AMQP/lib -lrabbitmq"
6671: fi
6672: fi
6673:
1.237 moko 6674: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librabbitmq" >&5
6675: printf %s "checking for librabbitmq... " >&6; }
1.232 moko 6676: SAVE_LIBS=$LIBS
6677: LIBS="$LIBS $AMQP_LIBS $AMQP_INCLUDES"
6678:
6679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680: /* end confdefs.h. */
6681: #include <amqp.h>
6682: int
1.237 moko 6683: main (void)
1.232 moko 6684: {
6685: amqp_connection_state_t c = 0;
6686: ;
6687: return 0;
6688: }
6689: _ACEOF
1.237 moko 6690: if ac_fn_c_try_link "$LINENO"
6691: then :
6692: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6693: printf "%s\n" "yes" >&6; }
6694:
6695: else case e in #(
6696: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697: printf "%s\n" "no" >&6; }
1.232 moko 6698: if test -z "$AMQP"; then
6699: as_fn_error $? "please specify path to librabbitmq: --with-amqp=DIR" "$LINENO" 5
6700: else
6701: as_fn_error $? "$AMQP does not seem to be valid librabbitmq installation directory" "$LINENO" 5
6702: fi
6703:
1.237 moko 6704: ;;
6705: esac
1.232 moko 6706: fi
1.237 moko 6707: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.232 moko 6708: conftest$ac_exeext conftest.$ac_ext
6709:
6710: LIBS=$SAVE_LIBS
6711:
1.237 moko 6712: printf "%s\n" "#define WITH_AMQP /**/" >>confdefs.h
1.232 moko 6713:
6714:
6715: fi
6716:
6717:
6718:
6719:
6720:
6721:
1.239 ! moko 6722:
! 6723: # Check whether --with-redis was given.
! 6724: if test ${with_redis+y}
! 6725: then :
! 6726: withval=$with_redis;
! 6727: REDIS=$withval
! 6728:
! 6729: if test -z "$REDIS" -o "$REDIS" = "yes"; then
! 6730: REDIS_INCLUDES=""
! 6731: REDIS_LIBS="-lhiredis"
! 6732: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-redis value was not specified, hoping linker would find it" >&5
! 6733: printf "%s\n" "$as_me: WARNING: --with-redis value was not specified, hoping linker would find it" >&2;}
! 6734: else
! 6735: REDIS_INCLUDES="-I$REDIS/include"
! 6736: if test -f $REDIS/lib/libhiredis.la; then
! 6737: REDIS_LIBS="$REDIS/lib/libhiredis.la"
! 6738: else
! 6739: REDIS_LIBS="-L$REDIS/lib -lhiredis"
! 6740: fi
! 6741: fi
! 6742:
! 6743: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hiredis" >&5
! 6744: printf %s "checking for hiredis... " >&6; }
! 6745: SAVE_LIBS=$LIBS
! 6746: LIBS="$LIBS $REDIS_LIBS $REDIS_INCLUDES"
! 6747:
! 6748: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 6749: /* end confdefs.h. */
! 6750: #include <hiredis/hiredis.h>
! 6751: int
! 6752: main (void)
! 6753: {
! 6754: redisContext *c = redisConnect("", 0);
! 6755: ;
! 6756: return 0;
! 6757: }
! 6758: _ACEOF
! 6759: if ac_fn_c_try_link "$LINENO"
! 6760: then :
! 6761: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 6762: printf "%s\n" "yes" >&6; }
! 6763:
! 6764: else case e in #(
! 6765: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6766: printf "%s\n" "no" >&6; }
! 6767: if test -z "$REDIS"; then
! 6768: as_fn_error $? "please specify path to hiredis: --with-redis=DIR" "$LINENO" 5
! 6769: else
! 6770: as_fn_error $? "$REDIS does not seem to be valid hiredis installation directory" "$LINENO" 5
! 6771: fi
! 6772:
! 6773: ;;
! 6774: esac
! 6775: fi
! 6776: rm -f core conftest.err conftest.$ac_objext conftest.beam \
! 6777: conftest$ac_exeext conftest.$ac_ext
! 6778:
! 6779: LIBS=$SAVE_LIBS
! 6780:
! 6781: printf "%s\n" "#define WITH_REDIS /**/" >>confdefs.h
! 6782:
! 6783:
! 6784: fi
! 6785:
! 6786:
! 6787:
! 6788:
! 6789:
! 6790:
1.150 moko 6791: # Check whether --with-sendmail was given.
1.237 moko 6792: if test ${with_sendmail+y}
6793: then :
1.150 moko 6794: withval=$with_sendmail;
1.237 moko 6795: printf "%s\n" "#define PA_FORCED_SENDMAIL \"$withval\"" >>confdefs.h
1.66 paf 6796:
6797:
1.150 moko 6798: fi
1.66 paf 6799:
6800:
6801:
1.122 moko 6802:
1.150 moko 6803: # Check whether --with-apache was given.
1.237 moko 6804: if test ${with_apache+y}
6805: then :
1.150 moko 6806: withval=$with_apache;
1.122 moko 6807: APXS=$withval
6808:
6809: if test -z "$APXS" -o "$APXS" = "yes"; then
6810: APXS=`which apxs 2>/dev/null`
1.142 moko 6811: if test -z "$APXS"; then
6812: APXS=`which apxs2 2>/dev/null`
6813: fi
6814: fi
1.122 moko 6815:
6816: APACHE=`$APXS -q TARGET 2>/dev/null`
6817:
6818: if test -z "$APACHE"; then
1.150 moko 6819: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
1.67 paf 6820: fi
1.7 paf 6821:
1.122 moko 6822: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
6823: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
6824: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
6825: APACHE_CFLAGS=`$APXS -q CFLAGS`
6826:
1.150 moko 6827: fi
1.7 paf 6828:
6829:
1.62 paf 6830:
1.122 moko 6831:
1.150 moko 6832: if test -n "$APACHE"; then
1.122 moko 6833: COMPILE_APACHE_MODULE_TRUE=
6834: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 6835: else
1.122 moko 6836: COMPILE_APACHE_MODULE_TRUE='#'
6837: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 6838: fi
1.1 paf 6839:
6840:
6841:
1.62 paf 6842:
6843:
1.7 paf 6844:
1.1 paf 6845:
6846:
6847:
1.62 paf 6848:
1.128 moko 6849: case `pwd` in
6850: *\ * | *\ *)
1.237 moko 6851: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6852: printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.128 moko 6853: esac
6854:
6855:
6856:
1.237 moko 6857: macro_version='2.5.4'
6858: macro_revision='2.5.4'
6859:
1.128 moko 6860:
6861:
6862:
6863:
6864:
6865:
6866:
6867:
6868:
6869:
6870:
6871:
6872:
1.237 moko 6873: ltmain=$ac_aux_dir/ltmain.sh
1.128 moko 6874:
6875: # Backslashify metacharacters that are still active within
6876: # double-quoted strings.
6877: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 6878:
1.128 moko 6879: # Same as above, but do not quote variable references.
6880: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 6881:
1.128 moko 6882: # Sed substitution to delay expansion of an escaped shell variable in a
6883: # double_quote_subst'ed string.
6884: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 6885:
1.128 moko 6886: # Sed substitution to delay expansion of an escaped single quote.
6887: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 6888:
1.128 moko 6889: # Sed substitution to avoid accidental globbing in evaled expressions
6890: no_glob_subst='s/\*/\\\*/g'
1.86 paf 6891:
1.128 moko 6892: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6893: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6894: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 6895:
1.237 moko 6896: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6897: printf %s "checking how to print strings... " >&6; }
1.128 moko 6898: # Test print first, because it will be a builtin if present.
6899: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6900: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6901: ECHO='print -r --'
6902: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6903: ECHO='printf %s\n'
6904: else
6905: # Use this function as a fallback that always works.
6906: func_fallback_echo ()
6907: {
6908: eval 'cat <<_LTECHO_EOF
6909: $1
6910: _LTECHO_EOF'
6911: }
6912: ECHO='func_fallback_echo'
6913: fi
1.86 paf 6914:
1.128 moko 6915: # func_echo_all arg...
6916: # Invoke $ECHO with all args, space-separated.
6917: func_echo_all ()
1.66 paf 6918: {
1.128 moko 6919: $ECHO ""
1.66 paf 6920: }
1.10 paf 6921:
1.237 moko 6922: case $ECHO in
6923: printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6924: printf "%s\n" "printf" >&6; } ;;
6925: print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6926: printf "%s\n" "print -r" >&6; } ;;
6927: *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6928: printf "%s\n" "cat" >&6; } ;;
1.128 moko 6929: esac
6930:
6931:
6932:
6933:
6934:
6935:
6936:
6937:
6938:
6939:
6940:
6941:
6942:
6943:
1.237 moko 6944: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6945: printf %s "checking for a sed that does not truncate output... " >&6; }
6946: if test ${ac_cv_path_SED+y}
6947: then :
6948: printf %s "(cached) " >&6
6949: else case e in #(
6950: e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
1.150 moko 6951: for ac_i in 1 2 3 4 5 6 7; do
6952: ac_script="$ac_script$as_nl$ac_script"
6953: done
6954: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6955: { ac_script=; unset ac_script;}
6956: if test -z "$SED"; then
6957: ac_path_SED_found=false
6958: # Loop through the user's path and test for each of PROGNAME-LIST
6959: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 6960: for as_dir in $PATH
6961: do
6962: IFS=$as_save_IFS
1.237 moko 6963: case $as_dir in #(((
6964: '') as_dir=./ ;;
6965: */) ;;
6966: *) as_dir=$as_dir/ ;;
6967: esac
6968: for ac_prog in sed gsed
6969: do
1.128 moko 6970: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 6971: ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
1.166 moko 6972: as_fn_executable_p "$ac_path_SED" || continue
1.150 moko 6973: # Check for GNU ac_path_SED and select it if it is found.
6974: # Check for GNU $ac_path_SED
1.237 moko 6975: case `"$ac_path_SED" --version 2>&1` in #(
1.150 moko 6976: *GNU*)
6977: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
1.237 moko 6978: #(
1.150 moko 6979: *)
6980: ac_count=0
1.237 moko 6981: printf %s 0123456789 >"conftest.in"
1.150 moko 6982: while :
6983: do
6984: cat "conftest.in" "conftest.in" >"conftest.tmp"
6985: mv "conftest.tmp" "conftest.in"
6986: cp "conftest.in" "conftest.nl"
1.237 moko 6987: printf "%s\n" '' >> "conftest.nl"
1.150 moko 6988: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6989: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6990: as_fn_arith $ac_count + 1 && ac_count=$as_val
6991: if test $ac_count -gt ${ac_path_SED_max-0}; then
6992: # Best one so far, save it but keep looking for a better one
6993: ac_cv_path_SED="$ac_path_SED"
6994: ac_path_SED_max=$ac_count
6995: fi
6996: # 10*(2^10) chars as input seems more than enough
6997: test $ac_count -gt 10 && break
6998: done
6999: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7000: esac
7001:
7002: $ac_path_SED_found && break 3
1.128 moko 7003: done
7004: done
1.150 moko 7005: done
1.128 moko 7006: IFS=$as_save_IFS
1.150 moko 7007: if test -z "$ac_cv_path_SED"; then
7008: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.128 moko 7009: fi
1.150 moko 7010: else
7011: ac_cv_path_SED=$SED
7012: fi
1.237 moko 7013: ;;
7014: esac
1.66 paf 7015: fi
1.237 moko 7016: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7017: printf "%s\n" "$ac_cv_path_SED" >&6; }
1.150 moko 7018: SED="$ac_cv_path_SED"
7019: rm -f conftest.sed
1.128 moko 7020:
7021: test -z "$SED" && SED=sed
7022: Xsed="$SED -e 1s/^X//"
1.10 paf 7023:
1.128 moko 7024:
7025:
7026:
7027:
7028:
7029:
7030:
7031:
7032:
7033:
1.237 moko 7034: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7035: printf %s "checking for grep that handles long lines and -e... " >&6; }
7036: if test ${ac_cv_path_GREP+y}
7037: then :
7038: printf %s "(cached) " >&6
7039: else case e in #(
7040: e) if test -z "$GREP"; then
1.150 moko 7041: ac_path_GREP_found=false
7042: # Loop through the user's path and test for each of PROGNAME-LIST
7043: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7045: do
7046: IFS=$as_save_IFS
1.237 moko 7047: case $as_dir in #(((
7048: '') as_dir=./ ;;
7049: */) ;;
7050: *) as_dir=$as_dir/ ;;
7051: esac
7052: for ac_prog in grep ggrep
7053: do
1.150 moko 7054: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 7055: ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
1.166 moko 7056: as_fn_executable_p "$ac_path_GREP" || continue
1.150 moko 7057: # Check for GNU ac_path_GREP and select it if it is found.
7058: # Check for GNU $ac_path_GREP
1.237 moko 7059: case `"$ac_path_GREP" --version 2>&1` in #(
1.150 moko 7060: *GNU*)
7061: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
1.237 moko 7062: #(
1.150 moko 7063: *)
7064: ac_count=0
1.237 moko 7065: printf %s 0123456789 >"conftest.in"
1.150 moko 7066: while :
7067: do
7068: cat "conftest.in" "conftest.in" >"conftest.tmp"
7069: mv "conftest.tmp" "conftest.in"
7070: cp "conftest.in" "conftest.nl"
1.237 moko 7071: printf "%s\n" 'GREP' >> "conftest.nl"
1.150 moko 7072: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7073: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7074: as_fn_arith $ac_count + 1 && ac_count=$as_val
7075: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7076: # Best one so far, save it but keep looking for a better one
7077: ac_cv_path_GREP="$ac_path_GREP"
7078: ac_path_GREP_max=$ac_count
1.128 moko 7079: fi
1.150 moko 7080: # 10*(2^10) chars as input seems more than enough
7081: test $ac_count -gt 10 && break
7082: done
7083: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7084: esac
7085:
7086: $ac_path_GREP_found && break 3
7087: done
7088: done
7089: done
7090: IFS=$as_save_IFS
7091: if test -z "$ac_cv_path_GREP"; then
7092: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7093: fi
7094: else
7095: ac_cv_path_GREP=$GREP
7096: fi
1.237 moko 7097: ;;
7098: esac
1.128 moko 7099: fi
1.237 moko 7100: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7101: printf "%s\n" "$ac_cv_path_GREP" >&6; }
1.150 moko 7102: GREP="$ac_cv_path_GREP"
7103:
7104:
1.237 moko 7105: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7106: printf %s "checking for egrep... " >&6; }
7107: if test ${ac_cv_path_EGREP+y}
7108: then :
7109: printf %s "(cached) " >&6
7110: else case e in #(
7111: e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1.150 moko 7112: then ac_cv_path_EGREP="$GREP -E"
7113: else
7114: if test -z "$EGREP"; then
7115: ac_path_EGREP_found=false
7116: # Loop through the user's path and test for each of PROGNAME-LIST
7117: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7119: do
7120: IFS=$as_save_IFS
1.237 moko 7121: case $as_dir in #(((
7122: '') as_dir=./ ;;
7123: */) ;;
7124: *) as_dir=$as_dir/ ;;
7125: esac
7126: for ac_prog in egrep
7127: do
1.150 moko 7128: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 7129: ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
1.166 moko 7130: as_fn_executable_p "$ac_path_EGREP" || continue
1.150 moko 7131: # Check for GNU ac_path_EGREP and select it if it is found.
7132: # Check for GNU $ac_path_EGREP
1.237 moko 7133: case `"$ac_path_EGREP" --version 2>&1` in #(
1.150 moko 7134: *GNU*)
7135: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
1.237 moko 7136: #(
1.150 moko 7137: *)
7138: ac_count=0
1.237 moko 7139: printf %s 0123456789 >"conftest.in"
1.150 moko 7140: while :
7141: do
7142: cat "conftest.in" "conftest.in" >"conftest.tmp"
7143: mv "conftest.tmp" "conftest.in"
7144: cp "conftest.in" "conftest.nl"
1.237 moko 7145: printf "%s\n" 'EGREP' >> "conftest.nl"
1.150 moko 7146: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7147: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7148: as_fn_arith $ac_count + 1 && ac_count=$as_val
7149: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7150: # Best one so far, save it but keep looking for a better one
7151: ac_cv_path_EGREP="$ac_path_EGREP"
7152: ac_path_EGREP_max=$ac_count
7153: fi
7154: # 10*(2^10) chars as input seems more than enough
7155: test $ac_count -gt 10 && break
7156: done
7157: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7158: esac
1.128 moko 7159:
1.150 moko 7160: $ac_path_EGREP_found && break 3
7161: done
7162: done
7163: done
7164: IFS=$as_save_IFS
7165: if test -z "$ac_cv_path_EGREP"; then
7166: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7167: fi
7168: else
7169: ac_cv_path_EGREP=$EGREP
7170: fi
1.128 moko 7171:
1.237 moko 7172: fi ;;
7173: esac
1.150 moko 7174: fi
1.237 moko 7175: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7176: printf "%s\n" "$ac_cv_path_EGREP" >&6; }
1.150 moko 7177: EGREP="$ac_cv_path_EGREP"
7178:
1.237 moko 7179: EGREP_TRADITIONAL=$EGREP
7180: ac_cv_path_EGREP_TRADITIONAL=$EGREP
1.150 moko 7181:
1.237 moko 7182: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7183: printf %s "checking for fgrep... " >&6; }
7184: if test ${ac_cv_path_FGREP+y}
7185: then :
7186: printf %s "(cached) " >&6
7187: else case e in #(
7188: e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1.150 moko 7189: then ac_cv_path_FGREP="$GREP -F"
7190: else
7191: if test -z "$FGREP"; then
7192: ac_path_FGREP_found=false
7193: # Loop through the user's path and test for each of PROGNAME-LIST
7194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7196: do
7197: IFS=$as_save_IFS
1.237 moko 7198: case $as_dir in #(((
7199: '') as_dir=./ ;;
7200: */) ;;
7201: *) as_dir=$as_dir/ ;;
7202: esac
7203: for ac_prog in fgrep
7204: do
1.150 moko 7205: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 7206: ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
1.166 moko 7207: as_fn_executable_p "$ac_path_FGREP" || continue
1.150 moko 7208: # Check for GNU ac_path_FGREP and select it if it is found.
7209: # Check for GNU $ac_path_FGREP
1.237 moko 7210: case `"$ac_path_FGREP" --version 2>&1` in #(
1.150 moko 7211: *GNU*)
7212: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
1.237 moko 7213: #(
1.150 moko 7214: *)
7215: ac_count=0
1.237 moko 7216: printf %s 0123456789 >"conftest.in"
1.150 moko 7217: while :
7218: do
7219: cat "conftest.in" "conftest.in" >"conftest.tmp"
7220: mv "conftest.tmp" "conftest.in"
7221: cp "conftest.in" "conftest.nl"
1.237 moko 7222: printf "%s\n" 'FGREP' >> "conftest.nl"
1.150 moko 7223: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7224: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7225: as_fn_arith $ac_count + 1 && ac_count=$as_val
7226: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7227: # Best one so far, save it but keep looking for a better one
7228: ac_cv_path_FGREP="$ac_path_FGREP"
7229: ac_path_FGREP_max=$ac_count
1.128 moko 7230: fi
1.150 moko 7231: # 10*(2^10) chars as input seems more than enough
7232: test $ac_count -gt 10 && break
7233: done
7234: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7235: esac
7236:
7237: $ac_path_FGREP_found && break 3
7238: done
7239: done
7240: done
7241: IFS=$as_save_IFS
7242: if test -z "$ac_cv_path_FGREP"; then
7243: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7244: fi
7245: else
7246: ac_cv_path_FGREP=$FGREP
7247: fi
7248:
1.237 moko 7249: fi ;;
7250: esac
1.128 moko 7251: fi
1.237 moko 7252: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7253: printf "%s\n" "$ac_cv_path_FGREP" >&6; }
1.150 moko 7254: FGREP="$ac_cv_path_FGREP"
1.128 moko 7255:
7256:
7257: test -z "$GREP" && GREP=grep
7258:
7259:
7260:
7261:
7262:
7263:
7264:
7265:
7266:
7267:
7268:
7269:
7270:
7271:
7272:
7273:
7274:
7275:
7276:
1.150 moko 7277: # Check whether --with-gnu-ld was given.
1.237 moko 7278: if test ${with_gnu_ld+y}
7279: then :
7280: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7281: else case e in #(
7282: e) with_gnu_ld=no ;;
7283: esac
1.150 moko 7284: fi
7285:
1.128 moko 7286: ac_prog=ld
1.237 moko 7287: if test yes = "$GCC"; then
1.128 moko 7288: # Check if gcc -print-prog-name=ld gives a path.
1.237 moko 7289: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7290: printf %s "checking for ld used by $CC... " >&6; }
1.128 moko 7291: case $host in
1.237 moko 7292: *-*-mingw* | *-*-windows*)
7293: # gcc leaves a trailing carriage return, which upsets mingw
1.128 moko 7294: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7295: *)
7296: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7297: esac
7298: case $ac_prog in
7299: # Accept absolute paths.
7300: [\\/]* | ?:[\\/]*)
7301: re_direlt='/[^/][^/]*/\.\./'
7302: # Canonicalize the pathname of ld
7303: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7304: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7305: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7306: done
1.237 moko 7307: test -z "$LD" && LD=$ac_prog
1.128 moko 7308: ;;
7309: "")
7310: # If it fails, then pretend we aren't using GCC.
7311: ac_prog=ld
7312: ;;
7313: *)
7314: # If it is relative, then search for the first ld in PATH.
7315: with_gnu_ld=unknown
7316: ;;
7317: esac
1.237 moko 7318: elif test yes = "$with_gnu_ld"; then
7319: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7320: printf %s "checking for GNU ld... " >&6; }
7321: else
7322: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7323: printf %s "checking for non-GNU ld... " >&6; }
7324: fi
7325: if test ${lt_cv_path_LD+y}
7326: then :
7327: printf %s "(cached) " >&6
7328: else case e in #(
7329: e) if test -z "$LD"; then
7330: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 7331: for ac_dir in $PATH; do
1.237 moko 7332: IFS=$lt_save_ifs
1.128 moko 7333: test -z "$ac_dir" && ac_dir=.
7334: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.237 moko 7335: lt_cv_path_LD=$ac_dir/$ac_prog
1.128 moko 7336: # Check to see if the program is GNU ld. I'd rather use --version,
7337: # but apparently some variants of GNU ld only accept -v.
7338: # Break only if it was the GNU/non-GNU ld that we prefer.
7339: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7340: *GNU* | *'with BFD'*)
1.237 moko 7341: test no != "$with_gnu_ld" && break
1.128 moko 7342: ;;
7343: *)
1.237 moko 7344: test yes != "$with_gnu_ld" && break
1.128 moko 7345: ;;
7346: esac
7347: fi
7348: done
1.237 moko 7349: IFS=$lt_save_ifs
1.128 moko 7350: else
1.237 moko 7351: lt_cv_path_LD=$LD # Let the user override the test with a path.
7352: fi ;;
7353: esac
1.128 moko 7354: fi
7355:
1.237 moko 7356: LD=$lt_cv_path_LD
1.128 moko 7357: if test -n "$LD"; then
1.237 moko 7358: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7359: printf "%s\n" "$LD" >&6; }
1.128 moko 7360: else
1.237 moko 7361: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362: printf "%s\n" "no" >&6; }
1.128 moko 7363: fi
1.150 moko 7364: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1.237 moko 7365: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7366: printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7367: if test ${lt_cv_prog_gnu_ld+y}
7368: then :
7369: printf %s "(cached) " >&6
7370: else case e in #(
7371: e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.128 moko 7372: case `$LD -v 2>&1 </dev/null` in
7373: *GNU* | *'with BFD'*)
7374: lt_cv_prog_gnu_ld=yes
7375: ;;
7376: *)
7377: lt_cv_prog_gnu_ld=no
7378: ;;
1.237 moko 7379: esac ;;
1.128 moko 7380: esac
7381: fi
1.237 moko 7382: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7383: printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 7384: with_gnu_ld=$lt_cv_prog_gnu_ld
7385:
7386:
7387:
7388:
7389:
7390:
7391:
7392:
7393:
1.237 moko 7394: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7395: printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7396: if test ${lt_cv_path_NM+y}
7397: then :
7398: printf %s "(cached) " >&6
7399: else case e in #(
7400: e) if test -n "$NM"; then
1.128 moko 7401: # Let the user override the test.
1.237 moko 7402: lt_cv_path_NM=$NM
1.128 moko 7403: else
1.237 moko 7404: lt_nm_to_check=${ac_tool_prefix}nm
1.128 moko 7405: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7406: lt_nm_to_check="$lt_nm_to_check nm"
7407: fi
7408: for lt_tmp_nm in $lt_nm_to_check; do
1.237 moko 7409: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 7410: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
1.237 moko 7411: IFS=$lt_save_ifs
1.128 moko 7412: test -z "$ac_dir" && ac_dir=.
1.237 moko 7413: tmp_nm=$ac_dir/$lt_tmp_nm
7414: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
1.128 moko 7415: # Check to see if the nm accepts a BSD-compat flag.
1.237 moko 7416: # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
1.128 moko 7417: # nm: unknown option "B" ignored
7418: # Tru64's nm complains that /dev/null is an invalid object file
1.237 moko 7419: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7420: case $build_os in
7421: mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7422: *) lt_bad_file=/dev/null ;;
7423: esac
7424: case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7425: *$lt_bad_file* | *'Invalid file or object type'*)
1.128 moko 7426: lt_cv_path_NM="$tmp_nm -B"
1.237 moko 7427: break 2
1.128 moko 7428: ;;
7429: *)
1.237 moko 7430: case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
1.128 moko 7431: */dev/null*)
7432: lt_cv_path_NM="$tmp_nm -p"
1.237 moko 7433: break 2
1.128 moko 7434: ;;
7435: *)
7436: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7437: continue # so that we can try to find one that supports BSD flags
7438: ;;
7439: esac
7440: ;;
7441: esac
7442: fi
7443: done
1.237 moko 7444: IFS=$lt_save_ifs
1.128 moko 7445: done
7446: : ${lt_cv_path_NM=no}
1.237 moko 7447: fi ;;
7448: esac
1.128 moko 7449: fi
1.237 moko 7450: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7451: printf "%s\n" "$lt_cv_path_NM" >&6; }
7452: if test no != "$lt_cv_path_NM"; then
7453: NM=$lt_cv_path_NM
1.128 moko 7454: else
7455: # Didn't find any BSD compatible name lister, look for dumpbin.
7456: if test -n "$DUMPBIN"; then :
7457: # Let the user override the test.
7458: else
7459: if test -n "$ac_tool_prefix"; then
7460: for ac_prog in dumpbin "link -dump"
7461: do
7462: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7463: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 moko 7464: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465: printf %s "checking for $ac_word... " >&6; }
7466: if test ${ac_cv_prog_DUMPBIN+y}
7467: then :
7468: printf %s "(cached) " >&6
7469: else case e in #(
7470: e) if test -n "$DUMPBIN"; then
1.128 moko 7471: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7472: else
7473: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474: for as_dir in $PATH
7475: do
7476: IFS=$as_save_IFS
1.237 moko 7477: case $as_dir in #(((
7478: '') as_dir=./ ;;
7479: */) ;;
7480: *) as_dir=$as_dir/ ;;
7481: esac
1.150 moko 7482: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 7483: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 7484: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.237 moko 7485: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 7486: break 2
7487: fi
7488: done
1.150 moko 7489: done
7490: IFS=$as_save_IFS
1.128 moko 7491:
1.237 moko 7492: fi ;;
7493: esac
1.128 moko 7494: fi
7495: DUMPBIN=$ac_cv_prog_DUMPBIN
7496: if test -n "$DUMPBIN"; then
1.237 moko 7497: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7498: printf "%s\n" "$DUMPBIN" >&6; }
1.128 moko 7499: else
1.237 moko 7500: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501: printf "%s\n" "no" >&6; }
1.128 moko 7502: fi
7503:
1.150 moko 7504:
1.128 moko 7505: test -n "$DUMPBIN" && break
7506: done
7507: fi
7508: if test -z "$DUMPBIN"; then
7509: ac_ct_DUMPBIN=$DUMPBIN
7510: for ac_prog in dumpbin "link -dump"
7511: do
7512: # Extract the first word of "$ac_prog", so it can be a program name with args.
7513: set dummy $ac_prog; ac_word=$2
1.237 moko 7514: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515: printf %s "checking for $ac_word... " >&6; }
7516: if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7517: then :
7518: printf %s "(cached) " >&6
7519: else case e in #(
7520: e) if test -n "$ac_ct_DUMPBIN"; then
1.128 moko 7521: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7522: else
7523: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524: for as_dir in $PATH
7525: do
7526: IFS=$as_save_IFS
1.237 moko 7527: case $as_dir in #(((
7528: '') as_dir=./ ;;
7529: */) ;;
7530: *) as_dir=$as_dir/ ;;
7531: esac
1.150 moko 7532: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 7533: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 7534: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.237 moko 7535: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 7536: break 2
7537: fi
7538: done
1.150 moko 7539: done
7540: IFS=$as_save_IFS
1.128 moko 7541:
1.237 moko 7542: fi ;;
7543: esac
1.128 moko 7544: fi
7545: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7546: if test -n "$ac_ct_DUMPBIN"; then
1.237 moko 7547: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7548: printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
1.128 moko 7549: else
1.237 moko 7550: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551: printf "%s\n" "no" >&6; }
1.128 moko 7552: fi
7553:
1.150 moko 7554:
1.128 moko 7555: test -n "$ac_ct_DUMPBIN" && break
7556: done
7557:
1.150 moko 7558: if test "x$ac_ct_DUMPBIN" = x; then
7559: DUMPBIN=":"
7560: else
7561: case $cross_compiling:$ac_tool_warned in
7562: yes:)
1.237 moko 7563: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7564: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 7565: ac_tool_warned=yes ;;
7566: esac
7567: DUMPBIN=$ac_ct_DUMPBIN
7568: fi
1.128 moko 7569: fi
7570:
1.237 moko 7571: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
1.128 moko 7572: *COFF*)
1.237 moko 7573: DUMPBIN="$DUMPBIN -symbols -headers"
1.128 moko 7574: ;;
7575: *)
7576: DUMPBIN=:
7577: ;;
7578: esac
7579: fi
7580:
1.237 moko 7581: if test : != "$DUMPBIN"; then
7582: NM=$DUMPBIN
1.128 moko 7583: fi
7584: fi
7585: test -z "$NM" && NM=nm
7586:
7587:
7588:
7589:
7590:
7591:
1.237 moko 7592: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7593: printf %s "checking the name lister ($NM) interface... " >&6; }
7594: if test ${lt_cv_nm_interface+y}
7595: then :
7596: printf %s "(cached) " >&6
7597: else case e in #(
7598: e) lt_cv_nm_interface="BSD nm"
1.128 moko 7599: echo "int some_variable = 0;" > conftest.$ac_ext
7600: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7601: (eval "$ac_compile" 2>conftest.err)
7602: cat conftest.err >&5
7603: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7604: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7605: cat conftest.err >&5
7606: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7607: cat conftest.out >&5
7608: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7609: lt_cv_nm_interface="MS dumpbin"
7610: fi
1.237 moko 7611: rm -f conftest* ;;
7612: esac
1.128 moko 7613: fi
1.237 moko 7614: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7615: printf "%s\n" "$lt_cv_nm_interface" >&6; }
1.128 moko 7616:
1.237 moko 7617: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7618: printf %s "checking whether ln -s works... " >&6; }
1.128 moko 7619: LN_S=$as_ln_s
7620: if test "$LN_S" = "ln -s"; then
1.237 moko 7621: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7622: printf "%s\n" "yes" >&6; }
1.128 moko 7623: else
1.237 moko 7624: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7625: printf "%s\n" "no, using $LN_S" >&6; }
1.128 moko 7626: fi
7627:
7628: # find the maximum length of command line arguments
1.237 moko 7629: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7630: printf %s "checking the maximum length of command line arguments... " >&6; }
7631: if test ${lt_cv_sys_max_cmd_len+y}
7632: then :
7633: printf %s "(cached) " >&6
7634: else case e in #(
7635: e) i=0
7636: teststring=ABCD
1.128 moko 7637:
7638: case $build_os in
7639: msdosdjgpp*)
7640: # On DJGPP, this test can blow up pretty badly due to problems in libc
7641: # (any single argument exceeding 2000 bytes causes a buffer overrun
7642: # during glob expansion). Even if it were fixed, the result of this
7643: # check would be larger than it should be.
7644: lt_cv_sys_max_cmd_len=12288; # 12K is about right
7645: ;;
7646:
1.237 moko 7647: gnu* | ironclad*)
7648: # Under GNU Hurd and Ironclad, this test is not required because there
7649: # is no limit to the length of command line arguments.
1.128 moko 7650: # Libtool will interpret -1 as no limit whatsoever
7651: lt_cv_sys_max_cmd_len=-1;
7652: ;;
7653:
1.237 moko 7654: cygwin* | mingw* | windows* | cegcc*)
1.128 moko 7655: # On Win9x/ME, this test blows up -- it succeeds, but takes
7656: # about 5 minutes as the teststring grows exponentially.
7657: # Worse, since 9x/ME are not pre-emptively multitasking,
7658: # you end up with a "frozen" computer, even though with patience
7659: # the test eventually succeeds (with a max line length of 256k).
7660: # Instead, let's just punt: use the minimum linelength reported by
7661: # all of the supported platforms: 8192 (on NT/2K/XP).
7662: lt_cv_sys_max_cmd_len=8192;
7663: ;;
7664:
7665: mint*)
7666: # On MiNT this can take a long time and run out of memory.
7667: lt_cv_sys_max_cmd_len=8192;
7668: ;;
7669:
7670: amigaos*)
7671: # On AmigaOS with pdksh, this test takes hours, literally.
7672: # So we just punt and use a minimum line length of 8192.
7673: lt_cv_sys_max_cmd_len=8192;
7674: ;;
7675:
1.237 moko 7676: darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
1.128 moko 7677: # This has been around since 386BSD, at least. Likely further.
7678: if test -x /sbin/sysctl; then
7679: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7680: elif test -x /usr/sbin/sysctl; then
7681: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7682: else
7683: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7684: fi
7685: # And add a safety zone
7686: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7687: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7688: ;;
7689:
7690: interix*)
7691: # We know the value 262144 and hardcode it with a safety zone (like BSD)
7692: lt_cv_sys_max_cmd_len=196608
7693: ;;
7694:
7695: os2*)
7696: # The test takes a long time on OS/2.
7697: lt_cv_sys_max_cmd_len=8192
7698: ;;
7699:
7700: osf*)
7701: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7702: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7703: # nice to cause kernel panics so lets avoid the loop below.
7704: # First set a reasonable default.
7705: lt_cv_sys_max_cmd_len=16384
7706: #
7707: if test -x /sbin/sysconfig; then
7708: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7709: *1*) lt_cv_sys_max_cmd_len=-1 ;;
7710: esac
7711: fi
7712: ;;
7713: sco3.2v5*)
7714: lt_cv_sys_max_cmd_len=102400
7715: ;;
7716: sysv5* | sco5v6* | sysv4.2uw2*)
7717: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7718: if test -n "$kargmax"; then
1.237 moko 7719: lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
1.128 moko 7720: else
7721: lt_cv_sys_max_cmd_len=32768
7722: fi
7723: ;;
7724: *)
7725: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1.237 moko 7726: if test -n "$lt_cv_sys_max_cmd_len" && \
7727: test undefined != "$lt_cv_sys_max_cmd_len"; then
1.128 moko 7728: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7729: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7730: else
7731: # Make teststring a little bigger before we do anything with it.
7732: # a 1K string should be a reasonable start.
1.237 moko 7733: for i in 1 2 3 4 5 6 7 8; do
1.128 moko 7734: teststring=$teststring$teststring
7735: done
7736: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7737: # If test is not a shell built-in, we'll probably end up computing a
7738: # maximum length that is only half of the actual maximum length, but
7739: # we can't tell.
1.237 moko 7740: while { test X`env echo "$teststring$teststring" 2>/dev/null` \
1.128 moko 7741: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1.237 moko 7742: test 17 != "$i" # 1/2 MB should be enough
1.128 moko 7743: do
7744: i=`expr $i + 1`
7745: teststring=$teststring$teststring
7746: done
7747: # Only check the string length outside the loop.
7748: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7749: teststring=
7750: # Add a significant safety factor because C++ compilers can tack on
7751: # massive amounts of additional arguments before passing them to the
7752: # linker. It appears as though 1/2 is a usable value.
7753: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7754: fi
7755: ;;
7756: esac
1.237 moko 7757: ;;
7758: esac
1.128 moko 7759: fi
7760:
1.237 moko 7761: if test -n "$lt_cv_sys_max_cmd_len"; then
7762: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7763: printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
1.128 moko 7764: else
1.237 moko 7765: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7766: printf "%s\n" "none" >&6; }
1.128 moko 7767: fi
7768: max_cmd_len=$lt_cv_sys_max_cmd_len
7769:
7770:
7771:
7772:
7773:
7774:
7775: : ${CP="cp -f"}
7776: : ${MV="mv -f"}
7777: : ${RM="rm -f"}
7778:
7779: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7780: lt_unset=unset
7781: else
7782: lt_unset=false
7783: fi
7784:
7785:
7786:
7787:
7788:
7789: # test EBCDIC or ASCII
7790: case `echo X|tr X '\101'` in
7791: A) # ASCII based system
7792: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7793: lt_SP2NL='tr \040 \012'
7794: lt_NL2SP='tr \015\012 \040\040'
7795: ;;
7796: *) # EBCDIC based system
7797: lt_SP2NL='tr \100 \n'
7798: lt_NL2SP='tr \r\n \100\100'
7799: ;;
7800: esac
7801:
7802:
7803:
7804:
7805:
7806:
7807:
7808:
7809:
1.237 moko 7810: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7811: printf %s "checking how to convert $build file names to $host format... " >&6; }
7812: if test ${lt_cv_to_host_file_cmd+y}
7813: then :
7814: printf %s "(cached) " >&6
7815: else case e in #(
7816: e) case $host in
1.128 moko 7817: *-*-mingw* )
7818: case $build in
1.237 moko 7819: *-*-mingw* | *-*-windows* ) # actually msys
1.128 moko 7820: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7821: ;;
7822: *-*-cygwin* )
7823: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7824: ;;
7825: * ) # otherwise, assume *nix
7826: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7827: ;;
7828: esac
7829: ;;
7830: *-*-cygwin* )
7831: case $build in
1.237 moko 7832: *-*-mingw* | *-*-windows* ) # actually msys
1.128 moko 7833: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7834: ;;
7835: *-*-cygwin* )
7836: lt_cv_to_host_file_cmd=func_convert_file_noop
7837: ;;
7838: * ) # otherwise, assume *nix
7839: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7840: ;;
7841: esac
7842: ;;
7843: * ) # unhandled hosts (and "normal" native builds)
7844: lt_cv_to_host_file_cmd=func_convert_file_noop
7845: ;;
7846: esac
1.237 moko 7847: ;;
7848: esac
1.128 moko 7849: fi
7850:
7851: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.237 moko 7852: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7853: printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 7854:
7855:
7856:
7857:
7858:
1.237 moko 7859: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7860: printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7861: if test ${lt_cv_to_tool_file_cmd+y}
7862: then :
7863: printf %s "(cached) " >&6
7864: else case e in #(
7865: e) #assume ordinary cross tools, or native build.
1.128 moko 7866: lt_cv_to_tool_file_cmd=func_convert_file_noop
7867: case $host in
1.237 moko 7868: *-*-mingw* | *-*-windows* )
1.128 moko 7869: case $build in
1.237 moko 7870: *-*-mingw* | *-*-windows* ) # actually msys
1.128 moko 7871: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7872: ;;
7873: esac
7874: ;;
7875: esac
1.237 moko 7876: ;;
7877: esac
1.128 moko 7878: fi
7879:
7880: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.237 moko 7881: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7882: printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 7883:
7884:
7885:
7886:
7887:
1.237 moko 7888: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7889: printf %s "checking for $LD option to reload object files... " >&6; }
7890: if test ${lt_cv_ld_reload_flag+y}
7891: then :
7892: printf %s "(cached) " >&6
7893: else case e in #(
7894: e) lt_cv_ld_reload_flag='-r' ;;
7895: esac
1.128 moko 7896: fi
1.237 moko 7897: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7898: printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
1.128 moko 7899: reload_flag=$lt_cv_ld_reload_flag
7900: case $reload_flag in
7901: "" | " "*) ;;
7902: *) reload_flag=" $reload_flag" ;;
7903: esac
7904: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7905: case $host_os in
1.237 moko 7906: cygwin* | mingw* | windows* | pw32* | cegcc*)
7907: if test yes != "$GCC"; then
1.128 moko 7908: reload_cmds=false
7909: fi
7910: ;;
7911: darwin*)
1.237 moko 7912: if test yes = "$GCC"; then
7913: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
1.128 moko 7914: else
7915: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7916: fi
7917: ;;
7918: esac
7919:
7920:
7921:
7922:
7923:
7924:
7925:
7926:
7927:
1.237 moko 7928: # Extract the first word of "file", so it can be a program name with args.
7929: set dummy file; ac_word=$2
7930: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931: printf %s "checking for $ac_word... " >&6; }
7932: if test ${ac_cv_prog_FILECMD+y}
7933: then :
7934: printf %s "(cached) " >&6
7935: else case e in #(
7936: e) if test -n "$FILECMD"; then
7937: ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
1.128 moko 7938: else
7939: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940: for as_dir in $PATH
7941: do
7942: IFS=$as_save_IFS
1.237 moko 7943: case $as_dir in #(((
7944: '') as_dir=./ ;;
7945: */) ;;
7946: *) as_dir=$as_dir/ ;;
7947: esac
1.150 moko 7948: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 7949: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7950: ac_cv_prog_FILECMD="file"
7951: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 7952: break 2
7953: fi
7954: done
1.150 moko 7955: done
7956: IFS=$as_save_IFS
1.128 moko 7957:
1.237 moko 7958: test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
7959: fi ;;
7960: esac
7961: fi
7962: FILECMD=$ac_cv_prog_FILECMD
7963: if test -n "$FILECMD"; then
7964: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
7965: printf "%s\n" "$FILECMD" >&6; }
7966: else
7967: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968: printf "%s\n" "no" >&6; }
1.128 moko 7969: fi
1.237 moko 7970:
7971:
7972:
7973:
7974:
7975:
7976:
7977:
7978: if test -n "$ac_tool_prefix"; then
7979: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7980: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7981: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982: printf %s "checking for $ac_word... " >&6; }
7983: if test ${ac_cv_prog_OBJDUMP+y}
7984: then :
7985: printf %s "(cached) " >&6
7986: else case e in #(
7987: e) if test -n "$OBJDUMP"; then
7988: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7989: else
7990: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991: for as_dir in $PATH
7992: do
7993: IFS=$as_save_IFS
7994: case $as_dir in #(((
7995: '') as_dir=./ ;;
7996: */) ;;
7997: *) as_dir=$as_dir/ ;;
7998: esac
7999: for ac_exec_ext in '' $ac_executable_extensions; do
8000: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8001: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8002: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8003: break 2
8004: fi
8005: done
8006: done
8007: IFS=$as_save_IFS
8008:
8009: fi ;;
8010: esac
1.128 moko 8011: fi
8012: OBJDUMP=$ac_cv_prog_OBJDUMP
8013: if test -n "$OBJDUMP"; then
1.237 moko 8014: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8015: printf "%s\n" "$OBJDUMP" >&6; }
1.128 moko 8016: else
1.237 moko 8017: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018: printf "%s\n" "no" >&6; }
1.128 moko 8019: fi
8020:
1.150 moko 8021:
1.128 moko 8022: fi
8023: if test -z "$ac_cv_prog_OBJDUMP"; then
8024: ac_ct_OBJDUMP=$OBJDUMP
8025: # Extract the first word of "objdump", so it can be a program name with args.
8026: set dummy objdump; ac_word=$2
1.237 moko 8027: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8028: printf %s "checking for $ac_word... " >&6; }
8029: if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8030: then :
8031: printf %s "(cached) " >&6
8032: else case e in #(
8033: e) if test -n "$ac_ct_OBJDUMP"; then
1.128 moko 8034: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8035: else
8036: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037: for as_dir in $PATH
8038: do
8039: IFS=$as_save_IFS
1.237 moko 8040: case $as_dir in #(((
8041: '') as_dir=./ ;;
8042: */) ;;
8043: *) as_dir=$as_dir/ ;;
8044: esac
1.150 moko 8045: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 8046: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 8047: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.237 moko 8048: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8049: break 2
8050: fi
8051: done
1.150 moko 8052: done
8053: IFS=$as_save_IFS
1.128 moko 8054:
1.237 moko 8055: fi ;;
8056: esac
1.128 moko 8057: fi
8058: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8059: if test -n "$ac_ct_OBJDUMP"; then
1.237 moko 8060: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8061: printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
1.128 moko 8062: else
1.237 moko 8063: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064: printf "%s\n" "no" >&6; }
1.128 moko 8065: fi
8066:
1.150 moko 8067: if test "x$ac_ct_OBJDUMP" = x; then
8068: OBJDUMP="false"
8069: else
8070: case $cross_compiling:$ac_tool_warned in
8071: yes:)
1.237 moko 8072: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 8074: ac_tool_warned=yes ;;
8075: esac
8076: OBJDUMP=$ac_ct_OBJDUMP
8077: fi
1.128 moko 8078: else
8079: OBJDUMP="$ac_cv_prog_OBJDUMP"
8080: fi
8081:
8082: test -z "$OBJDUMP" && OBJDUMP=objdump
8083:
8084:
8085:
8086:
8087:
8088:
1.237 moko 8089: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8090: printf %s "checking how to recognize dependent libraries... " >&6; }
8091: if test ${lt_cv_deplibs_check_method+y}
8092: then :
8093: printf %s "(cached) " >&6
8094: else case e in #(
8095: e) lt_cv_file_magic_cmd='$MAGIC_CMD'
1.128 moko 8096: lt_cv_file_magic_test_file=
8097: lt_cv_deplibs_check_method='unknown'
8098: # Need to set the preceding variable on all platforms that support
8099: # interlibrary dependencies.
8100: # 'none' -- dependencies not supported.
1.237 moko 8101: # 'unknown' -- same as none, but documents that we really don't know.
1.128 moko 8102: # 'pass_all' -- all dependencies passed with no checks.
8103: # 'file_magic [[regex]]' -- check by looking for files in library path
1.237 moko 8104: # that responds to the $file_magic_cmd with a given extended regex.
8105: # If you have 'file' or equivalent on your system and you're not sure
8106: # whether 'pass_all' will *always* work, you probably want this one.
1.128 moko 8107:
8108: case $host_os in
8109: aix[4-9]*)
8110: lt_cv_deplibs_check_method=pass_all
8111: ;;
8112:
8113: beos*)
8114: lt_cv_deplibs_check_method=pass_all
8115: ;;
8116:
8117: bsdi[45]*)
8118: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1.237 moko 8119: lt_cv_file_magic_cmd='$FILECMD -L'
1.128 moko 8120: lt_cv_file_magic_test_file=/shlib/libc.so
8121: ;;
8122:
8123: cygwin*)
8124: # func_win32_libid is a shell function defined in ltmain.sh
8125: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8126: lt_cv_file_magic_cmd='func_win32_libid'
8127: ;;
8128:
1.237 moko 8129: mingw* | windows* | pw32*)
1.128 moko 8130: # Base MSYS/MinGW do not provide the 'file' command needed by
8131: # func_win32_libid shell function, so use a weaker test based on 'objdump',
8132: # unless we find 'file', for example because we are cross-compiling.
1.237 moko 8133: if ( file / ) >/dev/null 2>&1; then
1.128 moko 8134: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8135: lt_cv_file_magic_cmd='func_win32_libid'
8136: else
8137: # Keep this pattern in sync with the one in func_win32_libid.
1.237 moko 8138: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
1.128 moko 8139: lt_cv_file_magic_cmd='$OBJDUMP -f'
8140: fi
8141: ;;
8142:
8143: cegcc*)
8144: # use the weaker test based on 'objdump'. See mingw*.
8145: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8146: lt_cv_file_magic_cmd='$OBJDUMP -f'
8147: ;;
8148:
8149: darwin* | rhapsody*)
8150: lt_cv_deplibs_check_method=pass_all
8151: ;;
8152:
1.237 moko 8153: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 8154: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8155: case $host_cpu in
8156: i*86 )
8157: # Not sure whether the presence of OpenBSD here was a mistake.
8158: # Let's accept both of them until this is cleared up.
8159: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.237 moko 8160: lt_cv_file_magic_cmd=$FILECMD
1.128 moko 8161: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8162: ;;
8163: esac
8164: else
8165: lt_cv_deplibs_check_method=pass_all
8166: fi
8167: ;;
8168:
8169: haiku*)
8170: lt_cv_deplibs_check_method=pass_all
8171: ;;
8172:
8173: hpux10.20* | hpux11*)
1.237 moko 8174: lt_cv_file_magic_cmd=$FILECMD
1.128 moko 8175: case $host_cpu in
8176: ia64*)
8177: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8178: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8179: ;;
8180: hppa*64*)
8181: 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]'
8182: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8183: ;;
8184: *)
8185: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8186: lt_cv_file_magic_test_file=/usr/lib/libc.sl
8187: ;;
8188: esac
8189: ;;
8190:
8191: interix[3-9]*)
8192: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8193: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8194: ;;
8195:
8196: irix5* | irix6* | nonstopux*)
8197: case $LD in
8198: *-32|*"-32 ") libmagic=32-bit;;
8199: *-n32|*"-n32 ") libmagic=N32;;
8200: *-64|*"-64 ") libmagic=64-bit;;
8201: *) libmagic=never-match;;
8202: esac
8203: lt_cv_deplibs_check_method=pass_all
8204: ;;
8205:
8206: # This must be glibc/ELF.
1.237 moko 8207: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8208: lt_cv_deplibs_check_method=pass_all
8209: ;;
8210:
8211: *-mlibc)
1.128 moko 8212: lt_cv_deplibs_check_method=pass_all
8213: ;;
8214:
1.237 moko 8215: netbsd* | netbsdelf*-gnu)
1.128 moko 8216: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8217: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8218: else
8219: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8220: fi
8221: ;;
8222:
8223: newos6*)
8224: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1.237 moko 8225: lt_cv_file_magic_cmd=$FILECMD
1.128 moko 8226: lt_cv_file_magic_test_file=/usr/lib/libnls.so
8227: ;;
8228:
8229: *nto* | *qnx*)
8230: lt_cv_deplibs_check_method=pass_all
8231: ;;
8232:
8233: openbsd*)
1.237 moko 8234: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1.128 moko 8235: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8236: else
8237: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8238: fi
8239: ;;
8240:
8241: osf3* | osf4* | osf5*)
8242: lt_cv_deplibs_check_method=pass_all
8243: ;;
8244:
8245: rdos*)
8246: lt_cv_deplibs_check_method=pass_all
8247: ;;
8248:
1.237 moko 8249: serenity*)
8250: lt_cv_deplibs_check_method=pass_all
8251: ;;
8252:
1.128 moko 8253: solaris*)
8254: lt_cv_deplibs_check_method=pass_all
8255: ;;
8256:
8257: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8258: lt_cv_deplibs_check_method=pass_all
8259: ;;
8260:
8261: sysv4 | sysv4.3*)
8262: case $host_vendor in
8263: motorola)
8264: 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]'
8265: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8266: ;;
8267: ncr)
8268: lt_cv_deplibs_check_method=pass_all
8269: ;;
8270: sequent)
8271: lt_cv_file_magic_cmd='/bin/file'
8272: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8273: ;;
8274: sni)
8275: lt_cv_file_magic_cmd='/bin/file'
8276: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8277: lt_cv_file_magic_test_file=/lib/libc.so
8278: ;;
8279: siemens)
8280: lt_cv_deplibs_check_method=pass_all
8281: ;;
8282: pc)
8283: lt_cv_deplibs_check_method=pass_all
8284: ;;
8285: esac
8286: ;;
8287:
8288: tpf*)
8289: lt_cv_deplibs_check_method=pass_all
8290: ;;
1.237 moko 8291: os2*)
8292: lt_cv_deplibs_check_method=pass_all
8293: ;;
8294: esac
8295: ;;
1.128 moko 8296: esac
8297: fi
1.237 moko 8298: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8299: printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
1.128 moko 8300:
8301: file_magic_glob=
8302: want_nocaseglob=no
8303: if test "$build" = "$host"; then
8304: case $host_os in
1.237 moko 8305: mingw* | windows* | pw32*)
1.128 moko 8306: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8307: want_nocaseglob=yes
8308: else
8309: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8310: fi
8311: ;;
8312: esac
8313: fi
8314:
8315: file_magic_cmd=$lt_cv_file_magic_cmd
8316: deplibs_check_method=$lt_cv_deplibs_check_method
8317: test -z "$deplibs_check_method" && deplibs_check_method=unknown
8318:
8319:
8320:
8321:
8322:
8323:
8324:
8325:
8326:
8327:
8328:
8329:
8330:
8331:
8332:
8333:
8334:
8335:
8336:
8337:
8338:
8339:
8340: if test -n "$ac_tool_prefix"; then
8341: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8342: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.237 moko 8343: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344: printf %s "checking for $ac_word... " >&6; }
8345: if test ${ac_cv_prog_DLLTOOL+y}
8346: then :
8347: printf %s "(cached) " >&6
8348: else case e in #(
8349: e) if test -n "$DLLTOOL"; then
1.128 moko 8350: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8351: else
8352: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8353: for as_dir in $PATH
8354: do
8355: IFS=$as_save_IFS
1.237 moko 8356: case $as_dir in #(((
8357: '') as_dir=./ ;;
8358: */) ;;
8359: *) as_dir=$as_dir/ ;;
8360: esac
1.150 moko 8361: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 8362: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 8363: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.237 moko 8364: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8365: break 2
8366: fi
8367: done
1.150 moko 8368: done
8369: IFS=$as_save_IFS
1.128 moko 8370:
1.237 moko 8371: fi ;;
8372: esac
1.128 moko 8373: fi
8374: DLLTOOL=$ac_cv_prog_DLLTOOL
8375: if test -n "$DLLTOOL"; then
1.237 moko 8376: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8377: printf "%s\n" "$DLLTOOL" >&6; }
1.128 moko 8378: else
1.237 moko 8379: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380: printf "%s\n" "no" >&6; }
1.128 moko 8381: fi
8382:
1.150 moko 8383:
1.128 moko 8384: fi
8385: if test -z "$ac_cv_prog_DLLTOOL"; then
8386: ac_ct_DLLTOOL=$DLLTOOL
8387: # Extract the first word of "dlltool", so it can be a program name with args.
8388: set dummy dlltool; ac_word=$2
1.237 moko 8389: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390: printf %s "checking for $ac_word... " >&6; }
8391: if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8392: then :
8393: printf %s "(cached) " >&6
8394: else case e in #(
8395: e) if test -n "$ac_ct_DLLTOOL"; then
1.128 moko 8396: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8397: else
8398: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399: for as_dir in $PATH
8400: do
8401: IFS=$as_save_IFS
1.237 moko 8402: case $as_dir in #(((
8403: '') as_dir=./ ;;
8404: */) ;;
8405: *) as_dir=$as_dir/ ;;
8406: esac
1.150 moko 8407: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 8408: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 8409: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.237 moko 8410: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8411: break 2
8412: fi
8413: done
1.150 moko 8414: done
8415: IFS=$as_save_IFS
1.128 moko 8416:
1.237 moko 8417: fi ;;
8418: esac
1.128 moko 8419: fi
8420: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8421: if test -n "$ac_ct_DLLTOOL"; then
1.237 moko 8422: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8423: printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
1.128 moko 8424: else
1.237 moko 8425: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426: printf "%s\n" "no" >&6; }
1.128 moko 8427: fi
8428:
1.150 moko 8429: if test "x$ac_ct_DLLTOOL" = x; then
8430: DLLTOOL="false"
8431: else
8432: case $cross_compiling:$ac_tool_warned in
8433: yes:)
1.237 moko 8434: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8435: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 8436: ac_tool_warned=yes ;;
8437: esac
8438: DLLTOOL=$ac_ct_DLLTOOL
8439: fi
1.128 moko 8440: else
8441: DLLTOOL="$ac_cv_prog_DLLTOOL"
8442: fi
8443:
8444: test -z "$DLLTOOL" && DLLTOOL=dlltool
8445:
8446:
8447:
8448:
8449:
8450:
8451:
1.237 moko 8452: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8453: printf %s "checking how to associate runtime and link libraries... " >&6; }
8454: if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8455: then :
8456: printf %s "(cached) " >&6
8457: else case e in #(
8458: e) lt_cv_sharedlib_from_linklib_cmd='unknown'
1.128 moko 8459:
8460: case $host_os in
1.237 moko 8461: cygwin* | mingw* | windows* | pw32* | cegcc*)
8462: # two different shell functions defined in ltmain.sh;
8463: # decide which one to use based on capabilities of $DLLTOOL
1.128 moko 8464: case `$DLLTOOL --help 2>&1` in
8465: *--identify-strict*)
8466: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8467: ;;
8468: *)
8469: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8470: ;;
8471: esac
8472: ;;
8473: *)
8474: # fallback: assume linklib IS sharedlib
1.237 moko 8475: lt_cv_sharedlib_from_linklib_cmd=$ECHO
1.128 moko 8476: ;;
8477: esac
1.237 moko 8478: ;;
8479: esac
1.128 moko 8480: fi
1.237 moko 8481: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8482: printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.128 moko 8483: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8484: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8485:
8486:
8487:
8488:
8489:
8490:
8491:
8492: if test -n "$ac_tool_prefix"; then
1.237 moko 8493: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8494: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8495: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496: printf %s "checking for $ac_word... " >&6; }
8497: if test ${ac_cv_prog_RANLIB+y}
8498: then :
8499: printf %s "(cached) " >&6
8500: else case e in #(
8501: e) if test -n "$RANLIB"; then
8502: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8503: else
8504: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505: for as_dir in $PATH
8506: do
8507: IFS=$as_save_IFS
8508: case $as_dir in #(((
8509: '') as_dir=./ ;;
8510: */) ;;
8511: *) as_dir=$as_dir/ ;;
8512: esac
8513: for ac_exec_ext in '' $ac_executable_extensions; do
8514: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8515: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8516: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8517: break 2
8518: fi
8519: done
8520: done
8521: IFS=$as_save_IFS
8522:
8523: fi ;;
8524: esac
8525: fi
8526: RANLIB=$ac_cv_prog_RANLIB
8527: if test -n "$RANLIB"; then
8528: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8529: printf "%s\n" "$RANLIB" >&6; }
8530: else
8531: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8532: printf "%s\n" "no" >&6; }
8533: fi
8534:
8535:
8536: fi
8537: if test -z "$ac_cv_prog_RANLIB"; then
8538: ac_ct_RANLIB=$RANLIB
8539: # Extract the first word of "ranlib", so it can be a program name with args.
8540: set dummy ranlib; ac_word=$2
8541: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542: printf %s "checking for $ac_word... " >&6; }
8543: if test ${ac_cv_prog_ac_ct_RANLIB+y}
8544: then :
8545: printf %s "(cached) " >&6
8546: else case e in #(
8547: e) if test -n "$ac_ct_RANLIB"; then
8548: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8549: else
8550: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551: for as_dir in $PATH
8552: do
8553: IFS=$as_save_IFS
8554: case $as_dir in #(((
8555: '') as_dir=./ ;;
8556: */) ;;
8557: *) as_dir=$as_dir/ ;;
8558: esac
8559: for ac_exec_ext in '' $ac_executable_extensions; do
8560: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8561: ac_cv_prog_ac_ct_RANLIB="ranlib"
8562: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8563: break 2
8564: fi
8565: done
8566: done
8567: IFS=$as_save_IFS
8568:
8569: fi ;;
8570: esac
8571: fi
8572: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8573: if test -n "$ac_ct_RANLIB"; then
8574: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8575: printf "%s\n" "$ac_ct_RANLIB" >&6; }
8576: else
8577: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578: printf "%s\n" "no" >&6; }
8579: fi
8580:
8581: if test "x$ac_ct_RANLIB" = x; then
8582: RANLIB=":"
8583: else
8584: case $cross_compiling:$ac_tool_warned in
8585: yes:)
8586: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8587: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8588: ac_tool_warned=yes ;;
8589: esac
8590: RANLIB=$ac_ct_RANLIB
8591: fi
8592: else
8593: RANLIB="$ac_cv_prog_RANLIB"
8594: fi
8595:
8596: if test -n "$ac_tool_prefix"; then
1.128 moko 8597: for ac_prog in ar
8598: do
8599: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8600: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 moko 8601: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602: printf %s "checking for $ac_word... " >&6; }
8603: if test ${ac_cv_prog_AR+y}
8604: then :
8605: printf %s "(cached) " >&6
8606: else case e in #(
8607: e) if test -n "$AR"; then
1.128 moko 8608: ac_cv_prog_AR="$AR" # Let the user override the test.
8609: else
8610: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611: for as_dir in $PATH
8612: do
8613: IFS=$as_save_IFS
1.237 moko 8614: case $as_dir in #(((
8615: '') as_dir=./ ;;
8616: */) ;;
8617: *) as_dir=$as_dir/ ;;
8618: esac
1.150 moko 8619: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 8620: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 8621: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.237 moko 8622: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8623: break 2
8624: fi
8625: done
1.150 moko 8626: done
8627: IFS=$as_save_IFS
1.128 moko 8628:
1.237 moko 8629: fi ;;
8630: esac
1.128 moko 8631: fi
8632: AR=$ac_cv_prog_AR
8633: if test -n "$AR"; then
1.237 moko 8634: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8635: printf "%s\n" "$AR" >&6; }
1.128 moko 8636: else
1.237 moko 8637: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638: printf "%s\n" "no" >&6; }
1.128 moko 8639: fi
8640:
1.150 moko 8641:
1.128 moko 8642: test -n "$AR" && break
8643: done
8644: fi
8645: if test -z "$AR"; then
8646: ac_ct_AR=$AR
8647: for ac_prog in ar
8648: do
8649: # Extract the first word of "$ac_prog", so it can be a program name with args.
8650: set dummy $ac_prog; ac_word=$2
1.237 moko 8651: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652: printf %s "checking for $ac_word... " >&6; }
8653: if test ${ac_cv_prog_ac_ct_AR+y}
8654: then :
8655: printf %s "(cached) " >&6
8656: else case e in #(
8657: e) if test -n "$ac_ct_AR"; then
1.128 moko 8658: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8659: else
8660: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661: for as_dir in $PATH
8662: do
8663: IFS=$as_save_IFS
1.237 moko 8664: case $as_dir in #(((
8665: '') as_dir=./ ;;
8666: */) ;;
8667: *) as_dir=$as_dir/ ;;
8668: esac
1.150 moko 8669: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 8670: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 8671: ac_cv_prog_ac_ct_AR="$ac_prog"
1.237 moko 8672: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8673: break 2
8674: fi
8675: done
1.150 moko 8676: done
8677: IFS=$as_save_IFS
1.128 moko 8678:
1.237 moko 8679: fi ;;
8680: esac
1.128 moko 8681: fi
8682: ac_ct_AR=$ac_cv_prog_ac_ct_AR
8683: if test -n "$ac_ct_AR"; then
1.237 moko 8684: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8685: printf "%s\n" "$ac_ct_AR" >&6; }
1.128 moko 8686: else
1.237 moko 8687: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688: printf "%s\n" "no" >&6; }
1.128 moko 8689: fi
8690:
1.150 moko 8691:
1.128 moko 8692: test -n "$ac_ct_AR" && break
8693: done
8694:
1.150 moko 8695: if test "x$ac_ct_AR" = x; then
8696: AR="false"
8697: else
8698: case $cross_compiling:$ac_tool_warned in
8699: yes:)
1.237 moko 8700: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8701: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 8702: ac_tool_warned=yes ;;
8703: esac
8704: AR=$ac_ct_AR
8705: fi
1.128 moko 8706: fi
8707:
8708: : ${AR=ar}
8709:
8710:
8711:
8712:
8713:
8714:
1.237 moko 8715: # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8716: # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8717: # higher priority because that's what people were doing historically (setting
8718: # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8719: # variable obsoleted/removed.
8720:
8721: test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8722: lt_ar_flags=$AR_FLAGS
8723:
8724:
8725:
8726:
8727:
8728:
8729: # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8730: # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
1.128 moko 8731:
8732:
8733:
8734:
8735:
1.237 moko 8736:
8737: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8738: printf %s "checking for archiver @FILE support... " >&6; }
8739: if test ${lt_cv_ar_at_file+y}
8740: then :
8741: printf %s "(cached) " >&6
8742: else case e in #(
8743: e) lt_cv_ar_at_file=no
1.150 moko 8744: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8745: /* end confdefs.h. */
8746:
8747: int
1.237 moko 8748: main (void)
1.128 moko 8749: {
8750:
8751: ;
8752: return 0;
8753: }
8754: _ACEOF
1.237 moko 8755: if ac_fn_c_try_compile "$LINENO"
8756: then :
1.128 moko 8757: echo conftest.$ac_objext > conftest.lst
8758: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.150 moko 8759: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 8760: (eval $lt_ar_try) 2>&5
8761: ac_status=$?
1.237 moko 8762: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 8763: test $ac_status = 0; }
1.237 moko 8764: if test 0 -eq "$ac_status"; then
1.128 moko 8765: # Ensure the archiver fails upon bogus file names.
8766: rm -f conftest.$ac_objext libconftest.a
1.150 moko 8767: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 8768: (eval $lt_ar_try) 2>&5
8769: ac_status=$?
1.237 moko 8770: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 8771: test $ac_status = 0; }
1.237 moko 8772: if test 0 -ne "$ac_status"; then
1.128 moko 8773: lt_cv_ar_at_file=@
8774: fi
8775: fi
8776: rm -f conftest.* libconftest.a
8777:
8778: fi
1.237 moko 8779: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8780: ;;
8781: esac
1.128 moko 8782: fi
1.237 moko 8783: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8784: printf "%s\n" "$lt_cv_ar_at_file" >&6; }
1.128 moko 8785:
1.237 moko 8786: if test no = "$lt_cv_ar_at_file"; then
1.128 moko 8787: archiver_list_spec=
8788: else
8789: archiver_list_spec=$lt_cv_ar_at_file
8790: fi
8791:
8792:
8793:
8794:
8795:
8796:
8797:
8798: if test -n "$ac_tool_prefix"; then
8799: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8800: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.237 moko 8801: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8802: printf %s "checking for $ac_word... " >&6; }
8803: if test ${ac_cv_prog_STRIP+y}
8804: then :
8805: printf %s "(cached) " >&6
8806: else case e in #(
8807: e) if test -n "$STRIP"; then
1.128 moko 8808: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8809: else
8810: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811: for as_dir in $PATH
8812: do
8813: IFS=$as_save_IFS
1.237 moko 8814: case $as_dir in #(((
8815: '') as_dir=./ ;;
8816: */) ;;
8817: *) as_dir=$as_dir/ ;;
8818: esac
1.150 moko 8819: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 8820: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 8821: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.237 moko 8822: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8823: break 2
8824: fi
8825: done
1.150 moko 8826: done
8827: IFS=$as_save_IFS
1.128 moko 8828:
1.237 moko 8829: fi ;;
8830: esac
1.128 moko 8831: fi
8832: STRIP=$ac_cv_prog_STRIP
8833: if test -n "$STRIP"; then
1.237 moko 8834: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8835: printf "%s\n" "$STRIP" >&6; }
1.128 moko 8836: else
1.237 moko 8837: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838: printf "%s\n" "no" >&6; }
1.128 moko 8839: fi
8840:
1.150 moko 8841:
1.128 moko 8842: fi
8843: if test -z "$ac_cv_prog_STRIP"; then
8844: ac_ct_STRIP=$STRIP
8845: # Extract the first word of "strip", so it can be a program name with args.
8846: set dummy strip; ac_word=$2
1.237 moko 8847: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848: printf %s "checking for $ac_word... " >&6; }
8849: if test ${ac_cv_prog_ac_ct_STRIP+y}
8850: then :
8851: printf %s "(cached) " >&6
8852: else case e in #(
8853: e) if test -n "$ac_ct_STRIP"; then
1.128 moko 8854: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8855: else
8856: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857: for as_dir in $PATH
8858: do
8859: IFS=$as_save_IFS
1.237 moko 8860: case $as_dir in #(((
8861: '') as_dir=./ ;;
8862: */) ;;
8863: *) as_dir=$as_dir/ ;;
8864: esac
1.150 moko 8865: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 8866: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 8867: ac_cv_prog_ac_ct_STRIP="strip"
1.237 moko 8868: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8869: break 2
8870: fi
8871: done
1.150 moko 8872: done
8873: IFS=$as_save_IFS
1.128 moko 8874:
1.237 moko 8875: fi ;;
8876: esac
1.128 moko 8877: fi
8878: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8879: if test -n "$ac_ct_STRIP"; then
1.237 moko 8880: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8881: printf "%s\n" "$ac_ct_STRIP" >&6; }
1.128 moko 8882: else
1.237 moko 8883: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884: printf "%s\n" "no" >&6; }
1.128 moko 8885: fi
8886:
1.150 moko 8887: if test "x$ac_ct_STRIP" = x; then
8888: STRIP=":"
8889: else
8890: case $cross_compiling:$ac_tool_warned in
8891: yes:)
1.237 moko 8892: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8893: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 8894: ac_tool_warned=yes ;;
8895: esac
8896: STRIP=$ac_ct_STRIP
8897: fi
1.128 moko 8898: else
8899: STRIP="$ac_cv_prog_STRIP"
8900: fi
8901:
8902: test -z "$STRIP" && STRIP=:
8903:
8904:
8905:
8906:
8907:
8908:
8909:
8910: test -z "$RANLIB" && RANLIB=:
8911:
8912:
8913:
8914:
8915:
8916:
8917: # Determine commands to create old-style static archives.
8918: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8919: old_postinstall_cmds='chmod 644 $oldlib'
8920: old_postuninstall_cmds=
8921:
8922: if test -n "$RANLIB"; then
8923: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.237 moko 8924: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.128 moko 8925: fi
8926:
8927: case $host_os in
8928: darwin*)
8929: lock_old_archive_extraction=yes ;;
8930: *)
8931: lock_old_archive_extraction=no ;;
8932: esac
8933:
8934:
8935:
8936:
8937:
8938:
8939:
8940:
8941:
8942:
8943:
8944:
8945:
8946:
8947:
8948:
8949:
8950:
8951:
8952:
8953:
8954:
8955:
8956:
8957:
8958:
8959:
8960:
8961:
8962:
8963:
8964:
8965:
8966:
8967:
8968:
8969:
8970:
8971:
8972: # If no C compiler was specified, use CC.
8973: LTCC=${LTCC-"$CC"}
8974:
8975: # If no C compiler flags were specified, use CFLAGS.
8976: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8977:
8978: # Allow CC to be a program name with arguments.
8979: compiler=$CC
8980:
8981:
8982: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.237 moko 8983: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8984: printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8985: if test ${lt_cv_sys_global_symbol_pipe+y}
8986: then :
8987: printf %s "(cached) " >&6
8988: else case e in #(
8989: e)
1.128 moko 8990: # These are sane defaults that work on at least a few old systems.
8991: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8992:
8993: # Character class describing NM global symbol codes.
8994: symcode='[BCDEGRST]'
8995:
8996: # Regexp to match symbols that can be accessed directly from C.
8997: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8998:
8999: # Define system-specific variables.
9000: case $host_os in
9001: aix*)
9002: symcode='[BCDT]'
9003: ;;
1.237 moko 9004: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 9005: symcode='[ABCDGISTW]'
9006: ;;
9007: hpux*)
1.237 moko 9008: if test ia64 = "$host_cpu"; then
1.128 moko 9009: symcode='[ABCDEGRST]'
9010: fi
9011: ;;
9012: irix* | nonstopux*)
9013: symcode='[BCDEGRST]'
9014: ;;
9015: osf*)
9016: symcode='[BCDEGQRST]'
9017: ;;
9018: solaris*)
1.237 moko 9019: symcode='[BCDRT]'
1.128 moko 9020: ;;
9021: sco3.2v5*)
9022: symcode='[DT]'
9023: ;;
9024: sysv4.2uw2*)
9025: symcode='[DT]'
9026: ;;
9027: sysv5* | sco5v6* | unixware* | OpenUNIX*)
9028: symcode='[ABDT]'
9029: ;;
9030: sysv4)
9031: symcode='[DFNSTU]'
9032: ;;
9033: esac
9034:
9035: # If we're using GNU nm, then use its standard symbol codes.
9036: case `$NM -V 2>&1` in
9037: *GNU* | *'with BFD'*)
9038: symcode='[ABCDGIRSTW]' ;;
9039: esac
9040:
1.237 moko 9041: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9042: # Gets list of data symbols to import.
9043: lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9044: # Adjust the below global symbol transforms to fixup imported variables.
9045: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9046: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9047: lt_c_name_lib_hook="\
9048: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9049: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9050: else
9051: # Disable hooks by default.
9052: lt_cv_sys_global_symbol_to_import=
9053: lt_cdecl_hook=
9054: lt_c_name_hook=
9055: lt_c_name_lib_hook=
9056: fi
9057:
1.128 moko 9058: # Transform an extracted symbol line into a proper C declaration.
9059: # Some systems (esp. on ia64) link data and code symbols differently,
9060: # so use this general approach.
1.237 moko 9061: lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9062: $lt_cdecl_hook\
9063: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9064: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
1.128 moko 9065:
9066: # Transform an extracted symbol line into symbol name and symbol address
1.237 moko 9067: lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9068: $lt_c_name_hook\
9069: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9070: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9071:
9072: # Transform an extracted symbol line into symbol name with lib prefix and
9073: # symbol address.
9074: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9075: $lt_c_name_lib_hook\
9076: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9077: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9078: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
1.128 moko 9079:
9080: # Handle CRLF in mingw tool chain
9081: opt_cr=
9082: case $build_os in
1.237 moko 9083: mingw* | windows*)
1.128 moko 9084: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9085: ;;
9086: esac
9087:
9088: # Try without a prefix underscore, then with it.
9089: for ac_symprfx in "" "_"; do
9090:
9091: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9092: symxfrm="\\1 $ac_symprfx\\2 \\2"
9093:
9094: # Write the raw and C identifiers.
9095: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
1.237 moko 9096: # Fake it for dumpbin and say T for any non-static function,
9097: # D for any global variable and I for any imported variable.
9098: # Also find C++ and __fastcall symbols from MSVC++ or ICC,
1.128 moko 9099: # which start with @ or ?.
9100: lt_cv_sys_global_symbol_pipe="$AWK '"\
9101: " {last_section=section; section=\$ 3};"\
9102: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9103: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
1.237 moko 9104: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9105: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9106: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
1.128 moko 9107: " \$ 0!~/External *\|/{next};"\
9108: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9109: " {if(hide[section]) next};"\
1.237 moko 9110: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9111: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9112: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9113: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
1.128 moko 9114: " ' prfx=^$ac_symprfx"
9115: else
1.237 moko 9116: lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.128 moko 9117: fi
1.237 moko 9118: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
1.128 moko 9119:
9120: # Check to see that the pipe works correctly.
9121: pipe_works=no
9122:
9123: rm -f conftest*
9124: cat > conftest.$ac_ext <<_LT_EOF
9125: #ifdef __cplusplus
9126: extern "C" {
9127: #endif
9128: char nm_test_var;
9129: void nm_test_func(void);
9130: void nm_test_func(void){}
9131: #ifdef __cplusplus
9132: }
9133: #endif
1.237 moko 9134: int main(void){nm_test_var='a';nm_test_func();return(0);}
1.128 moko 9135: _LT_EOF
9136:
1.150 moko 9137: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9138: (eval $ac_compile) 2>&5
9139: ac_status=$?
1.237 moko 9140: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9141: test $ac_status = 0; }; then
1.128 moko 9142: # Now try to grab the symbols.
9143: nlist=conftest.nm
1.237 moko 9144: $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9145: if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
1.128 moko 9146: # Try sorting and uniquifying the output.
9147: if sort "$nlist" | uniq > "$nlist"T; then
9148: mv -f "$nlist"T "$nlist"
9149: else
9150: rm -f "$nlist"T
9151: fi
9152:
9153: # Make sure that we snagged all the symbols we need.
9154: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9155: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9156: cat <<_LT_EOF > conftest.$ac_ext
9157: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
1.237 moko 9158: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9159: /* DATA imports from DLLs on WIN32 can't be const, because runtime
1.128 moko 9160: relocations are performed -- see ld's documentation on pseudo-relocs. */
9161: # define LT_DLSYM_CONST
1.237 moko 9162: #elif defined __osf__
1.128 moko 9163: /* This system does not cope well with relocations in const data. */
9164: # define LT_DLSYM_CONST
9165: #else
9166: # define LT_DLSYM_CONST const
9167: #endif
9168:
9169: #ifdef __cplusplus
9170: extern "C" {
9171: #endif
9172:
9173: _LT_EOF
9174: # Now generate the symbol file.
9175: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9176:
9177: cat <<_LT_EOF >> conftest.$ac_ext
9178:
9179: /* The mapping between symbol names and symbols. */
9180: LT_DLSYM_CONST struct {
9181: const char *name;
9182: void *address;
9183: }
9184: lt__PROGRAM__LTX_preloaded_symbols[] =
9185: {
9186: { "@PROGRAM@", (void *) 0 },
9187: _LT_EOF
1.237 moko 9188: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
1.128 moko 9189: cat <<\_LT_EOF >> conftest.$ac_ext
9190: {0, (void *) 0}
9191: };
9192:
9193: /* This works around a problem in FreeBSD linker */
9194: #ifdef FREEBSD_WORKAROUND
9195: static const void *lt_preloaded_setup() {
9196: return lt__PROGRAM__LTX_preloaded_symbols;
9197: }
9198: #endif
9199:
9200: #ifdef __cplusplus
9201: }
9202: #endif
9203: _LT_EOF
9204: # Now try linking the two files.
9205: mv conftest.$ac_objext conftstm.$ac_objext
9206: lt_globsym_save_LIBS=$LIBS
9207: lt_globsym_save_CFLAGS=$CFLAGS
1.237 moko 9208: LIBS=conftstm.$ac_objext
1.128 moko 9209: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 9210: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 9211: (eval $ac_link) 2>&5
9212: ac_status=$?
1.237 moko 9213: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9214: test $ac_status = 0; } && test -s conftest$ac_exeext; then
1.128 moko 9215: pipe_works=yes
9216: fi
9217: LIBS=$lt_globsym_save_LIBS
9218: CFLAGS=$lt_globsym_save_CFLAGS
9219: else
9220: echo "cannot find nm_test_func in $nlist" >&5
9221: fi
9222: else
9223: echo "cannot find nm_test_var in $nlist" >&5
9224: fi
9225: else
9226: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9227: fi
9228: else
9229: echo "$progname: failed program was:" >&5
9230: cat conftest.$ac_ext >&5
9231: fi
9232: rm -rf conftest* conftst*
9233:
9234: # Do not use the global_symbol_pipe unless it works.
1.237 moko 9235: if test yes = "$pipe_works"; then
1.128 moko 9236: break
9237: else
9238: lt_cv_sys_global_symbol_pipe=
9239: fi
9240: done
1.237 moko 9241: ;;
9242: esac
1.128 moko 9243: fi
9244:
9245: if test -z "$lt_cv_sys_global_symbol_pipe"; then
9246: lt_cv_sys_global_symbol_to_cdecl=
9247: fi
9248: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.237 moko 9249: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9250: printf "%s\n" "failed" >&6; }
1.128 moko 9251: else
1.237 moko 9252: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9253: printf "%s\n" "ok" >&6; }
1.128 moko 9254: fi
9255:
9256: # Response file support.
9257: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9258: nm_file_list_spec='@'
9259: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9260: nm_file_list_spec='@'
9261: fi
9262:
9263:
9264:
9265:
9266:
9267:
9268:
9269:
9270:
9271:
9272:
9273:
9274:
9275:
9276:
9277:
9278:
9279:
9280:
9281:
9282:
9283:
9284:
9285:
9286:
9287:
9288:
1.237 moko 9289:
9290:
9291:
9292:
9293:
9294:
9295:
9296:
9297:
9298:
9299: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9300: printf %s "checking for sysroot... " >&6; }
1.128 moko 9301:
1.150 moko 9302: # Check whether --with-sysroot was given.
1.237 moko 9303: if test ${with_sysroot+y}
9304: then :
1.150 moko 9305: withval=$with_sysroot;
1.237 moko 9306: else case e in #(
9307: e) with_sysroot=no ;;
9308: esac
1.150 moko 9309: fi
9310:
1.128 moko 9311:
9312: lt_sysroot=
1.237 moko 9313: case $with_sysroot in #(
1.128 moko 9314: yes)
1.237 moko 9315: if test yes = "$GCC"; then
9316: # Trim trailing / since we'll always append absolute paths and we want
9317: # to avoid //, if only for less confusing output for the user.
9318: lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
1.128 moko 9319: fi
9320: ;; #(
9321: /*)
1.237 moko 9322: lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
1.128 moko 9323: ;; #(
9324: no|'')
9325: ;; #(
9326: *)
1.237 moko 9327: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9328: printf "%s\n" "$with_sysroot" >&6; }
1.150 moko 9329: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 9330: ;;
9331: esac
9332:
1.237 moko 9333: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9334: printf "%s\n" "${lt_sysroot:-no}" >&6; }
1.128 moko 9335:
9336:
9337:
9338:
9339:
1.237 moko 9340: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9341: printf %s "checking for a working dd... " >&6; }
9342: if test ${ac_cv_path_lt_DD+y}
9343: then :
9344: printf %s "(cached) " >&6
9345: else case e in #(
9346: e) printf 0123456789abcdef0123456789abcdef >conftest.i
9347: cat conftest.i conftest.i >conftest2.i
9348: : ${lt_DD:=$DD}
9349: if test -z "$lt_DD"; then
9350: ac_path_lt_DD_found=false
9351: # Loop through the user's path and test for each of PROGNAME-LIST
9352: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353: for as_dir in $PATH
9354: do
9355: IFS=$as_save_IFS
9356: case $as_dir in #(((
9357: '') as_dir=./ ;;
9358: */) ;;
9359: *) as_dir=$as_dir/ ;;
9360: esac
9361: for ac_prog in dd
9362: do
9363: for ac_exec_ext in '' $ac_executable_extensions; do
9364: ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9365: as_fn_executable_p "$ac_path_lt_DD" || continue
9366: if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9367: cmp -s conftest.i conftest.out \
9368: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9369: fi
9370: $ac_path_lt_DD_found && break 3
9371: done
9372: done
9373: done
9374: IFS=$as_save_IFS
9375: if test -z "$ac_cv_path_lt_DD"; then
9376: :
9377: fi
9378: else
9379: ac_cv_path_lt_DD=$lt_DD
9380: fi
9381:
9382: rm -f conftest.i conftest2.i conftest.out ;;
9383: esac
9384: fi
9385: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9386: printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9387:
9388:
9389: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9390: printf %s "checking how to truncate binary pipes... " >&6; }
9391: if test ${lt_cv_truncate_bin+y}
9392: then :
9393: printf %s "(cached) " >&6
9394: else case e in #(
9395: e) printf 0123456789abcdef0123456789abcdef >conftest.i
9396: cat conftest.i conftest.i >conftest2.i
9397: lt_cv_truncate_bin=
9398: if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9399: cmp -s conftest.i conftest.out \
9400: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9401: fi
9402: rm -f conftest.i conftest2.i conftest.out
9403: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9404: esac
9405: fi
9406: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9407: printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9408:
9409:
9410:
9411:
9412:
9413:
9414:
9415: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9416: func_cc_basename ()
9417: {
9418: for cc_temp in $*""; do
9419: case $cc_temp in
9420: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9421: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9422: \-*) ;;
9423: *) break;;
9424: esac
9425: done
9426: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9427: }
9428:
1.150 moko 9429: # Check whether --enable-libtool-lock was given.
1.237 moko 9430: if test ${enable_libtool_lock+y}
9431: then :
1.150 moko 9432: enableval=$enable_libtool_lock;
9433: fi
1.128 moko 9434:
1.237 moko 9435: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1.128 moko 9436:
9437: # Some flags need to be propagated to the compiler or linker for good
9438: # libtool support.
9439: case $host in
9440: ia64-*-hpux*)
1.237 moko 9441: # Find out what ABI is being produced by ac_compile, and set mode
9442: # options accordingly.
1.128 moko 9443: echo 'int i;' > conftest.$ac_ext
1.150 moko 9444: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9445: (eval $ac_compile) 2>&5
9446: ac_status=$?
1.237 moko 9447: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9448: test $ac_status = 0; }; then
1.237 moko 9449: case `$FILECMD conftest.$ac_objext` in
1.128 moko 9450: *ELF-32*)
1.237 moko 9451: HPUX_IA64_MODE=32
1.128 moko 9452: ;;
9453: *ELF-64*)
1.237 moko 9454: HPUX_IA64_MODE=64
1.128 moko 9455: ;;
9456: esac
9457: fi
9458: rm -rf conftest*
9459: ;;
9460: *-*-irix6*)
1.237 moko 9461: # Find out what ABI is being produced by ac_compile, and set linker
9462: # options accordingly.
1.128 moko 9463: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 9464: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9465: (eval $ac_compile) 2>&5
9466: ac_status=$?
1.237 moko 9467: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9468: test $ac_status = 0; }; then
1.237 moko 9469: if test yes = "$lt_cv_prog_gnu_ld"; then
9470: case `$FILECMD conftest.$ac_objext` in
1.128 moko 9471: *32-bit*)
9472: LD="${LD-ld} -melf32bsmip"
9473: ;;
9474: *N32*)
9475: LD="${LD-ld} -melf32bmipn32"
9476: ;;
9477: *64-bit*)
9478: LD="${LD-ld} -melf64bmip"
9479: ;;
9480: esac
9481: else
1.237 moko 9482: case `$FILECMD conftest.$ac_objext` in
1.128 moko 9483: *32-bit*)
9484: LD="${LD-ld} -32"
9485: ;;
9486: *N32*)
9487: LD="${LD-ld} -n32"
9488: ;;
9489: *64-bit*)
9490: LD="${LD-ld} -64"
9491: ;;
9492: esac
9493: fi
9494: fi
9495: rm -rf conftest*
9496: ;;
9497:
1.237 moko 9498: mips64*-*linux*)
9499: # Find out what ABI is being produced by ac_compile, and set linker
9500: # options accordingly.
9501: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9502: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9503: (eval $ac_compile) 2>&5
9504: ac_status=$?
9505: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9506: test $ac_status = 0; }; then
9507: emul=elf
9508: case `$FILECMD conftest.$ac_objext` in
9509: *32-bit*)
9510: emul="${emul}32"
9511: ;;
9512: *64-bit*)
9513: emul="${emul}64"
9514: ;;
9515: esac
9516: case `$FILECMD conftest.$ac_objext` in
9517: *MSB*)
9518: emul="${emul}btsmip"
9519: ;;
9520: *LSB*)
9521: emul="${emul}ltsmip"
9522: ;;
9523: esac
9524: case `$FILECMD conftest.$ac_objext` in
9525: *N32*)
9526: emul="${emul}n32"
9527: ;;
9528: esac
9529: LD="${LD-ld} -m $emul"
9530: fi
9531: rm -rf conftest*
9532: ;;
9533:
9534: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9535: s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9536: # Find out what ABI is being produced by ac_compile, and set linker
9537: # options accordingly. Note that the listed cases only cover the
9538: # situations where additional linker options are needed (such as when
9539: # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9540: # vice versa); the common cases where no linker options are needed do
9541: # not appear in the list.
1.128 moko 9542: echo 'int i;' > conftest.$ac_ext
1.150 moko 9543: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9544: (eval $ac_compile) 2>&5
9545: ac_status=$?
1.237 moko 9546: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9547: test $ac_status = 0; }; then
1.237 moko 9548: case `$FILECMD conftest.o` in
1.128 moko 9549: *32-bit*)
9550: case $host in
9551: x86_64-*kfreebsd*-gnu)
9552: LD="${LD-ld} -m elf_i386_fbsd"
9553: ;;
1.237 moko 9554: x86_64-*linux*|x86_64-gnu*)
9555: case `$FILECMD conftest.o` in
9556: *x86-64*)
9557: LD="${LD-ld} -m elf32_x86_64"
9558: ;;
9559: *)
9560: LD="${LD-ld} -m elf_i386"
9561: ;;
9562: esac
1.128 moko 9563: ;;
1.237 moko 9564: powerpc64le-*linux*)
9565: LD="${LD-ld} -m elf32lppclinux"
9566: ;;
9567: powerpc64-*linux*)
1.128 moko 9568: LD="${LD-ld} -m elf32ppclinux"
9569: ;;
9570: s390x-*linux*)
9571: LD="${LD-ld} -m elf_s390"
9572: ;;
9573: sparc64-*linux*)
9574: LD="${LD-ld} -m elf32_sparc"
9575: ;;
9576: esac
9577: ;;
9578: *64-bit*)
9579: case $host in
9580: x86_64-*kfreebsd*-gnu)
9581: LD="${LD-ld} -m elf_x86_64_fbsd"
9582: ;;
1.237 moko 9583: x86_64-*linux*|x86_64-gnu*)
1.128 moko 9584: LD="${LD-ld} -m elf_x86_64"
9585: ;;
1.237 moko 9586: powerpcle-*linux*)
9587: LD="${LD-ld} -m elf64lppc"
9588: ;;
9589: powerpc-*linux*)
1.128 moko 9590: LD="${LD-ld} -m elf64ppc"
9591: ;;
9592: s390*-*linux*|s390*-*tpf*)
9593: LD="${LD-ld} -m elf64_s390"
9594: ;;
9595: sparc*-*linux*)
9596: LD="${LD-ld} -m elf64_sparc"
9597: ;;
9598: esac
9599: ;;
9600: esac
9601: fi
9602: rm -rf conftest*
9603: ;;
9604:
9605: *-*-sco3.2v5*)
9606: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1.237 moko 9607: SAVE_CFLAGS=$CFLAGS
1.128 moko 9608: CFLAGS="$CFLAGS -belf"
1.237 moko 9609: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9610: printf %s "checking whether the C compiler needs -belf... " >&6; }
9611: if test ${lt_cv_cc_needs_belf+y}
9612: then :
9613: printf %s "(cached) " >&6
9614: else case e in #(
9615: e) ac_ext=c
1.128 moko 9616: ac_cpp='$CPP $CPPFLAGS'
9617: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9618: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9619: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9620:
1.150 moko 9621: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 9622: /* end confdefs.h. */
9623:
9624: int
1.237 moko 9625: main (void)
1.128 moko 9626: {
9627:
9628: ;
9629: return 0;
9630: }
9631: _ACEOF
1.237 moko 9632: if ac_fn_c_try_link "$LINENO"
9633: then :
1.128 moko 9634: lt_cv_cc_needs_belf=yes
1.237 moko 9635: else case e in #(
9636: e) lt_cv_cc_needs_belf=no ;;
9637: esac
1.128 moko 9638: fi
1.237 moko 9639: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 9640: conftest$ac_exeext conftest.$ac_ext
1.128 moko 9641: ac_ext=c
9642: ac_cpp='$CPP $CPPFLAGS'
9643: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9644: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9645: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.237 moko 9646: ;;
9647: esac
1.128 moko 9648: fi
1.237 moko 9649: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9650: printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9651: if test yes != "$lt_cv_cc_needs_belf"; then
1.128 moko 9652: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1.237 moko 9653: CFLAGS=$SAVE_CFLAGS
1.128 moko 9654: fi
9655: ;;
9656: *-*solaris*)
1.237 moko 9657: # Find out what ABI is being produced by ac_compile, and set linker
9658: # options accordingly.
1.128 moko 9659: echo 'int i;' > conftest.$ac_ext
1.150 moko 9660: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9661: (eval $ac_compile) 2>&5
9662: ac_status=$?
1.237 moko 9663: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9664: test $ac_status = 0; }; then
1.237 moko 9665: case `$FILECMD conftest.o` in
1.128 moko 9666: *64-bit*)
9667: case $lt_cv_prog_gnu_ld in
9668: yes*)
9669: case $host in
1.237 moko 9670: i?86-*-solaris*|x86_64-*-solaris*)
1.128 moko 9671: LD="${LD-ld} -m elf_x86_64"
9672: ;;
9673: sparc*-*-solaris*)
9674: LD="${LD-ld} -m elf64_sparc"
9675: ;;
9676: esac
9677: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9678: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1.237 moko 9679: LD=${LD-ld}_sol2
1.128 moko 9680: fi
9681: ;;
9682: *)
9683: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9684: LD="${LD-ld} -64"
9685: fi
9686: ;;
9687: esac
9688: ;;
9689: esac
9690: fi
9691: rm -rf conftest*
9692: ;;
9693: esac
9694:
1.237 moko 9695: need_locks=$enable_libtool_lock
1.128 moko 9696:
9697: if test -n "$ac_tool_prefix"; then
9698: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9699: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.237 moko 9700: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701: printf %s "checking for $ac_word... " >&6; }
9702: if test ${ac_cv_prog_MANIFEST_TOOL+y}
9703: then :
9704: printf %s "(cached) " >&6
9705: else case e in #(
9706: e) if test -n "$MANIFEST_TOOL"; then
1.128 moko 9707: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9708: else
9709: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710: for as_dir in $PATH
9711: do
9712: IFS=$as_save_IFS
1.237 moko 9713: case $as_dir in #(((
9714: '') as_dir=./ ;;
9715: */) ;;
9716: *) as_dir=$as_dir/ ;;
9717: esac
1.150 moko 9718: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 9719: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 9720: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.237 moko 9721: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9722: break 2
9723: fi
9724: done
1.150 moko 9725: done
9726: IFS=$as_save_IFS
1.128 moko 9727:
1.237 moko 9728: fi ;;
9729: esac
1.128 moko 9730: fi
9731: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9732: if test -n "$MANIFEST_TOOL"; then
1.237 moko 9733: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9734: printf "%s\n" "$MANIFEST_TOOL" >&6; }
1.128 moko 9735: else
1.237 moko 9736: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737: printf "%s\n" "no" >&6; }
1.128 moko 9738: fi
9739:
1.150 moko 9740:
1.128 moko 9741: fi
9742: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9743: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9744: # Extract the first word of "mt", so it can be a program name with args.
9745: set dummy mt; ac_word=$2
1.237 moko 9746: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9747: printf %s "checking for $ac_word... " >&6; }
9748: if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9749: then :
9750: printf %s "(cached) " >&6
9751: else case e in #(
9752: e) if test -n "$ac_ct_MANIFEST_TOOL"; then
1.128 moko 9753: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9754: else
9755: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9756: for as_dir in $PATH
9757: do
9758: IFS=$as_save_IFS
1.237 moko 9759: case $as_dir in #(((
9760: '') as_dir=./ ;;
9761: */) ;;
9762: *) as_dir=$as_dir/ ;;
9763: esac
1.150 moko 9764: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 9765: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 9766: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.237 moko 9767: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9768: break 2
9769: fi
9770: done
1.150 moko 9771: done
9772: IFS=$as_save_IFS
1.128 moko 9773:
1.237 moko 9774: fi ;;
9775: esac
1.128 moko 9776: fi
9777: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9778: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.237 moko 9779: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9780: printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 9781: else
1.237 moko 9782: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783: printf "%s\n" "no" >&6; }
1.128 moko 9784: fi
9785:
1.150 moko 9786: if test "x$ac_ct_MANIFEST_TOOL" = x; then
9787: MANIFEST_TOOL=":"
9788: else
9789: case $cross_compiling:$ac_tool_warned in
9790: yes:)
1.237 moko 9791: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9792: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 9793: ac_tool_warned=yes ;;
9794: esac
9795: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9796: fi
1.128 moko 9797: else
9798: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9799: fi
9800:
9801: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.237 moko 9802: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9803: printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9804: if test ${lt_cv_path_manifest_tool+y}
9805: then :
9806: printf %s "(cached) " >&6
9807: else case e in #(
9808: e) lt_cv_path_manifest_tool=no
1.128 moko 9809: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9810: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9811: cat conftest.err >&5
9812: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
1.237 moko 9813: lt_cv_path_manifest_tool=yes
1.128 moko 9814: fi
1.237 moko 9815: rm -f conftest* ;;
9816: esac
1.128 moko 9817: fi
1.237 moko 9818: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
9819: printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
9820: if test yes != "$lt_cv_path_manifest_tool"; then
1.128 moko 9821: MANIFEST_TOOL=:
9822: fi
9823:
9824:
9825:
9826:
9827:
9828:
9829: case $host_os in
9830: rhapsody* | darwin*)
9831: if test -n "$ac_tool_prefix"; then
9832: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9833: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.237 moko 9834: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9835: printf %s "checking for $ac_word... " >&6; }
9836: if test ${ac_cv_prog_DSYMUTIL+y}
9837: then :
9838: printf %s "(cached) " >&6
9839: else case e in #(
9840: e) if test -n "$DSYMUTIL"; then
1.128 moko 9841: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9842: else
9843: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9844: for as_dir in $PATH
9845: do
9846: IFS=$as_save_IFS
1.237 moko 9847: case $as_dir in #(((
9848: '') as_dir=./ ;;
9849: */) ;;
9850: *) as_dir=$as_dir/ ;;
9851: esac
1.150 moko 9852: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 9853: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 9854: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.237 moko 9855: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9856: break 2
9857: fi
9858: done
1.150 moko 9859: done
9860: IFS=$as_save_IFS
1.128 moko 9861:
1.237 moko 9862: fi ;;
9863: esac
1.128 moko 9864: fi
9865: DSYMUTIL=$ac_cv_prog_DSYMUTIL
9866: if test -n "$DSYMUTIL"; then
1.237 moko 9867: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9868: printf "%s\n" "$DSYMUTIL" >&6; }
1.128 moko 9869: else
1.237 moko 9870: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871: printf "%s\n" "no" >&6; }
1.128 moko 9872: fi
9873:
1.150 moko 9874:
1.128 moko 9875: fi
9876: if test -z "$ac_cv_prog_DSYMUTIL"; then
9877: ac_ct_DSYMUTIL=$DSYMUTIL
9878: # Extract the first word of "dsymutil", so it can be a program name with args.
9879: set dummy dsymutil; ac_word=$2
1.237 moko 9880: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9881: printf %s "checking for $ac_word... " >&6; }
9882: if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9883: then :
9884: printf %s "(cached) " >&6
9885: else case e in #(
9886: e) if test -n "$ac_ct_DSYMUTIL"; then
1.128 moko 9887: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9888: else
9889: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890: for as_dir in $PATH
9891: do
9892: IFS=$as_save_IFS
1.237 moko 9893: case $as_dir in #(((
9894: '') as_dir=./ ;;
9895: */) ;;
9896: *) as_dir=$as_dir/ ;;
9897: esac
1.150 moko 9898: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 9899: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 9900: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.237 moko 9901: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9902: break 2
9903: fi
9904: done
1.150 moko 9905: done
9906: IFS=$as_save_IFS
1.128 moko 9907:
1.237 moko 9908: fi ;;
9909: esac
1.128 moko 9910: fi
9911: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9912: if test -n "$ac_ct_DSYMUTIL"; then
1.237 moko 9913: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9914: printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 9915: else
1.237 moko 9916: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9917: printf "%s\n" "no" >&6; }
1.128 moko 9918: fi
9919:
1.150 moko 9920: if test "x$ac_ct_DSYMUTIL" = x; then
9921: DSYMUTIL=":"
9922: else
9923: case $cross_compiling:$ac_tool_warned in
9924: yes:)
1.237 moko 9925: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9926: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 9927: ac_tool_warned=yes ;;
9928: esac
9929: DSYMUTIL=$ac_ct_DSYMUTIL
9930: fi
1.128 moko 9931: else
9932: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9933: fi
9934:
9935: if test -n "$ac_tool_prefix"; then
9936: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9937: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.237 moko 9938: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939: printf %s "checking for $ac_word... " >&6; }
9940: if test ${ac_cv_prog_NMEDIT+y}
9941: then :
9942: printf %s "(cached) " >&6
9943: else case e in #(
9944: e) if test -n "$NMEDIT"; then
1.128 moko 9945: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9946: else
9947: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948: for as_dir in $PATH
9949: do
9950: IFS=$as_save_IFS
1.237 moko 9951: case $as_dir in #(((
9952: '') as_dir=./ ;;
9953: */) ;;
9954: *) as_dir=$as_dir/ ;;
9955: esac
1.150 moko 9956: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 9957: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 9958: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.237 moko 9959: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9960: break 2
9961: fi
9962: done
1.150 moko 9963: done
9964: IFS=$as_save_IFS
1.128 moko 9965:
1.237 moko 9966: fi ;;
9967: esac
1.128 moko 9968: fi
9969: NMEDIT=$ac_cv_prog_NMEDIT
9970: if test -n "$NMEDIT"; then
1.237 moko 9971: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9972: printf "%s\n" "$NMEDIT" >&6; }
1.128 moko 9973: else
1.237 moko 9974: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975: printf "%s\n" "no" >&6; }
1.128 moko 9976: fi
9977:
1.150 moko 9978:
1.128 moko 9979: fi
9980: if test -z "$ac_cv_prog_NMEDIT"; then
9981: ac_ct_NMEDIT=$NMEDIT
9982: # Extract the first word of "nmedit", so it can be a program name with args.
9983: set dummy nmedit; ac_word=$2
1.237 moko 9984: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985: printf %s "checking for $ac_word... " >&6; }
9986: if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9987: then :
9988: printf %s "(cached) " >&6
9989: else case e in #(
9990: e) if test -n "$ac_ct_NMEDIT"; then
1.128 moko 9991: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9992: else
9993: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994: for as_dir in $PATH
9995: do
9996: IFS=$as_save_IFS
1.237 moko 9997: case $as_dir in #(((
9998: '') as_dir=./ ;;
9999: */) ;;
10000: *) as_dir=$as_dir/ ;;
10001: esac
1.150 moko 10002: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10003: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10004: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.237 moko 10005: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10006: break 2
10007: fi
10008: done
1.150 moko 10009: done
10010: IFS=$as_save_IFS
1.128 moko 10011:
1.237 moko 10012: fi ;;
10013: esac
1.128 moko 10014: fi
10015: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10016: if test -n "$ac_ct_NMEDIT"; then
1.237 moko 10017: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10018: printf "%s\n" "$ac_ct_NMEDIT" >&6; }
1.128 moko 10019: else
1.237 moko 10020: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021: printf "%s\n" "no" >&6; }
1.128 moko 10022: fi
10023:
1.150 moko 10024: if test "x$ac_ct_NMEDIT" = x; then
10025: NMEDIT=":"
10026: else
10027: case $cross_compiling:$ac_tool_warned in
10028: yes:)
1.237 moko 10029: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10030: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10031: ac_tool_warned=yes ;;
10032: esac
10033: NMEDIT=$ac_ct_NMEDIT
10034: fi
1.128 moko 10035: else
10036: NMEDIT="$ac_cv_prog_NMEDIT"
10037: fi
10038:
10039: if test -n "$ac_tool_prefix"; then
10040: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10041: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.237 moko 10042: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10043: printf %s "checking for $ac_word... " >&6; }
10044: if test ${ac_cv_prog_LIPO+y}
10045: then :
10046: printf %s "(cached) " >&6
10047: else case e in #(
10048: e) if test -n "$LIPO"; then
1.128 moko 10049: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10050: else
10051: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052: for as_dir in $PATH
10053: do
10054: IFS=$as_save_IFS
1.237 moko 10055: case $as_dir in #(((
10056: '') as_dir=./ ;;
10057: */) ;;
10058: *) as_dir=$as_dir/ ;;
10059: esac
1.150 moko 10060: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10061: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10062: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.237 moko 10063: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10064: break 2
10065: fi
10066: done
1.150 moko 10067: done
10068: IFS=$as_save_IFS
1.128 moko 10069:
1.237 moko 10070: fi ;;
10071: esac
1.128 moko 10072: fi
10073: LIPO=$ac_cv_prog_LIPO
10074: if test -n "$LIPO"; then
1.237 moko 10075: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10076: printf "%s\n" "$LIPO" >&6; }
1.128 moko 10077: else
1.237 moko 10078: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079: printf "%s\n" "no" >&6; }
1.128 moko 10080: fi
10081:
1.150 moko 10082:
1.128 moko 10083: fi
10084: if test -z "$ac_cv_prog_LIPO"; then
10085: ac_ct_LIPO=$LIPO
10086: # Extract the first word of "lipo", so it can be a program name with args.
10087: set dummy lipo; ac_word=$2
1.237 moko 10088: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089: printf %s "checking for $ac_word... " >&6; }
10090: if test ${ac_cv_prog_ac_ct_LIPO+y}
10091: then :
10092: printf %s "(cached) " >&6
10093: else case e in #(
10094: e) if test -n "$ac_ct_LIPO"; then
1.128 moko 10095: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10096: else
10097: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098: for as_dir in $PATH
10099: do
10100: IFS=$as_save_IFS
1.237 moko 10101: case $as_dir in #(((
10102: '') as_dir=./ ;;
10103: */) ;;
10104: *) as_dir=$as_dir/ ;;
10105: esac
1.150 moko 10106: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10107: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10108: ac_cv_prog_ac_ct_LIPO="lipo"
1.237 moko 10109: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10110: break 2
10111: fi
10112: done
1.150 moko 10113: done
10114: IFS=$as_save_IFS
1.128 moko 10115:
1.237 moko 10116: fi ;;
10117: esac
1.128 moko 10118: fi
10119: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10120: if test -n "$ac_ct_LIPO"; then
1.237 moko 10121: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10122: printf "%s\n" "$ac_ct_LIPO" >&6; }
1.128 moko 10123: else
1.237 moko 10124: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125: printf "%s\n" "no" >&6; }
1.128 moko 10126: fi
10127:
1.150 moko 10128: if test "x$ac_ct_LIPO" = x; then
10129: LIPO=":"
10130: else
10131: case $cross_compiling:$ac_tool_warned in
10132: yes:)
1.237 moko 10133: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10134: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10135: ac_tool_warned=yes ;;
10136: esac
10137: LIPO=$ac_ct_LIPO
10138: fi
1.128 moko 10139: else
10140: LIPO="$ac_cv_prog_LIPO"
10141: fi
10142:
10143: if test -n "$ac_tool_prefix"; then
10144: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10145: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.237 moko 10146: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147: printf %s "checking for $ac_word... " >&6; }
10148: if test ${ac_cv_prog_OTOOL+y}
10149: then :
10150: printf %s "(cached) " >&6
10151: else case e in #(
10152: e) if test -n "$OTOOL"; then
1.128 moko 10153: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10154: else
10155: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156: for as_dir in $PATH
10157: do
10158: IFS=$as_save_IFS
1.237 moko 10159: case $as_dir in #(((
10160: '') as_dir=./ ;;
10161: */) ;;
10162: *) as_dir=$as_dir/ ;;
10163: esac
1.150 moko 10164: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10165: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10166: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.237 moko 10167: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10168: break 2
10169: fi
10170: done
1.150 moko 10171: done
10172: IFS=$as_save_IFS
1.128 moko 10173:
1.237 moko 10174: fi ;;
10175: esac
1.128 moko 10176: fi
10177: OTOOL=$ac_cv_prog_OTOOL
10178: if test -n "$OTOOL"; then
1.237 moko 10179: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10180: printf "%s\n" "$OTOOL" >&6; }
1.128 moko 10181: else
1.237 moko 10182: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183: printf "%s\n" "no" >&6; }
1.128 moko 10184: fi
10185:
1.150 moko 10186:
1.128 moko 10187: fi
10188: if test -z "$ac_cv_prog_OTOOL"; then
10189: ac_ct_OTOOL=$OTOOL
10190: # Extract the first word of "otool", so it can be a program name with args.
10191: set dummy otool; ac_word=$2
1.237 moko 10192: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193: printf %s "checking for $ac_word... " >&6; }
10194: if test ${ac_cv_prog_ac_ct_OTOOL+y}
10195: then :
10196: printf %s "(cached) " >&6
10197: else case e in #(
10198: e) if test -n "$ac_ct_OTOOL"; then
1.128 moko 10199: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10200: else
10201: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202: for as_dir in $PATH
10203: do
10204: IFS=$as_save_IFS
1.237 moko 10205: case $as_dir in #(((
10206: '') as_dir=./ ;;
10207: */) ;;
10208: *) as_dir=$as_dir/ ;;
10209: esac
1.150 moko 10210: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10211: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10212: ac_cv_prog_ac_ct_OTOOL="otool"
1.237 moko 10213: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10214: break 2
10215: fi
10216: done
1.150 moko 10217: done
10218: IFS=$as_save_IFS
1.128 moko 10219:
1.237 moko 10220: fi ;;
10221: esac
1.128 moko 10222: fi
10223: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10224: if test -n "$ac_ct_OTOOL"; then
1.237 moko 10225: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10226: printf "%s\n" "$ac_ct_OTOOL" >&6; }
1.128 moko 10227: else
1.237 moko 10228: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10229: printf "%s\n" "no" >&6; }
1.128 moko 10230: fi
10231:
1.150 moko 10232: if test "x$ac_ct_OTOOL" = x; then
10233: OTOOL=":"
10234: else
10235: case $cross_compiling:$ac_tool_warned in
10236: yes:)
1.237 moko 10237: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10238: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10239: ac_tool_warned=yes ;;
10240: esac
10241: OTOOL=$ac_ct_OTOOL
10242: fi
1.128 moko 10243: else
10244: OTOOL="$ac_cv_prog_OTOOL"
10245: fi
10246:
10247: if test -n "$ac_tool_prefix"; then
10248: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10249: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.237 moko 10250: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251: printf %s "checking for $ac_word... " >&6; }
10252: if test ${ac_cv_prog_OTOOL64+y}
10253: then :
10254: printf %s "(cached) " >&6
10255: else case e in #(
10256: e) if test -n "$OTOOL64"; then
1.128 moko 10257: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10258: else
10259: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260: for as_dir in $PATH
10261: do
10262: IFS=$as_save_IFS
1.237 moko 10263: case $as_dir in #(((
10264: '') as_dir=./ ;;
10265: */) ;;
10266: *) as_dir=$as_dir/ ;;
10267: esac
1.150 moko 10268: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10269: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10270: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.237 moko 10271: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10272: break 2
10273: fi
10274: done
1.150 moko 10275: done
10276: IFS=$as_save_IFS
1.128 moko 10277:
1.237 moko 10278: fi ;;
10279: esac
1.128 moko 10280: fi
10281: OTOOL64=$ac_cv_prog_OTOOL64
10282: if test -n "$OTOOL64"; then
1.237 moko 10283: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10284: printf "%s\n" "$OTOOL64" >&6; }
1.128 moko 10285: else
1.237 moko 10286: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10287: printf "%s\n" "no" >&6; }
1.128 moko 10288: fi
10289:
1.150 moko 10290:
1.128 moko 10291: fi
10292: if test -z "$ac_cv_prog_OTOOL64"; then
10293: ac_ct_OTOOL64=$OTOOL64
10294: # Extract the first word of "otool64", so it can be a program name with args.
10295: set dummy otool64; ac_word=$2
1.237 moko 10296: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10297: printf %s "checking for $ac_word... " >&6; }
10298: if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10299: then :
10300: printf %s "(cached) " >&6
10301: else case e in #(
10302: e) if test -n "$ac_ct_OTOOL64"; then
1.128 moko 10303: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10304: else
10305: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306: for as_dir in $PATH
10307: do
10308: IFS=$as_save_IFS
1.237 moko 10309: case $as_dir in #(((
10310: '') as_dir=./ ;;
10311: */) ;;
10312: *) as_dir=$as_dir/ ;;
10313: esac
1.150 moko 10314: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10315: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10316: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.237 moko 10317: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10318: break 2
10319: fi
10320: done
1.150 moko 10321: done
10322: IFS=$as_save_IFS
1.128 moko 10323:
1.237 moko 10324: fi ;;
10325: esac
1.128 moko 10326: fi
10327: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10328: if test -n "$ac_ct_OTOOL64"; then
1.237 moko 10329: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10330: printf "%s\n" "$ac_ct_OTOOL64" >&6; }
1.128 moko 10331: else
1.237 moko 10332: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333: printf "%s\n" "no" >&6; }
1.128 moko 10334: fi
10335:
1.150 moko 10336: if test "x$ac_ct_OTOOL64" = x; then
10337: OTOOL64=":"
10338: else
10339: case $cross_compiling:$ac_tool_warned in
10340: yes:)
1.237 moko 10341: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10342: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10343: ac_tool_warned=yes ;;
10344: esac
10345: OTOOL64=$ac_ct_OTOOL64
10346: fi
1.128 moko 10347: else
10348: OTOOL64="$ac_cv_prog_OTOOL64"
10349: fi
10350:
10351:
10352:
10353:
10354:
10355:
10356:
10357:
10358:
10359:
10360:
10361:
10362:
10363:
10364:
10365:
10366:
10367:
10368:
10369:
10370:
10371:
10372:
10373:
10374:
10375:
10376:
1.237 moko 10377: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10378: printf %s "checking for -single_module linker flag... " >&6; }
10379: if test ${lt_cv_apple_cc_single_mod+y}
10380: then :
10381: printf %s "(cached) " >&6
10382: else case e in #(
10383: e) lt_cv_apple_cc_single_mod=no
10384: if test -z "$LT_MULTI_MODULE"; then
1.128 moko 10385: # By default we will add the -single_module flag. You can override
10386: # by either setting the environment variable LT_MULTI_MODULE
10387: # non-empty at configure time, or by adding -multi_module to the
10388: # link flags.
10389: rm -rf libconftest.dylib*
10390: echo "int foo(void){return 1;}" > conftest.c
10391: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10392: -dynamiclib -Wl,-single_module conftest.c" >&5
10393: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10394: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10395: _lt_result=$?
10396: # If there is a non-empty error log, and "single_module"
10397: # appears in it, assume the flag caused a linker warning
10398: if test -s conftest.err && $GREP single_module conftest.err; then
10399: cat conftest.err >&5
10400: # Otherwise, if the output was created with a 0 exit code from
10401: # the compiler, it worked.
1.237 moko 10402: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1.128 moko 10403: lt_cv_apple_cc_single_mod=yes
10404: else
10405: cat conftest.err >&5
10406: fi
10407: rm -rf libconftest.dylib*
10408: rm -f conftest.*
1.237 moko 10409: fi ;;
10410: esac
10411: fi
10412: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10413: printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10414:
10415: # Feature test to disable chained fixups since it is not
10416: # compatible with '-undefined dynamic_lookup'
10417: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
10418: printf %s "checking for -no_fixup_chains linker flag... " >&6; }
10419: if test ${lt_cv_support_no_fixup_chains+y}
10420: then :
10421: printf %s "(cached) " >&6
10422: else case e in #(
10423: e) save_LDFLAGS=$LDFLAGS
10424: LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
10425: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426: /* end confdefs.h. */
10427:
10428: int
10429: main (void)
10430: {
10431:
10432: ;
10433: return 0;
10434: }
10435: _ACEOF
10436: if ac_fn_c_try_link "$LINENO"
10437: then :
10438: lt_cv_support_no_fixup_chains=yes
10439: else case e in #(
10440: e) lt_cv_support_no_fixup_chains=no
10441: ;;
10442: esac
10443: fi
10444: rm -f core conftest.err conftest.$ac_objext conftest.beam \
10445: conftest$ac_exeext conftest.$ac_ext
10446: LDFLAGS=$save_LDFLAGS
10447:
10448: ;;
10449: esac
1.128 moko 10450: fi
1.237 moko 10451: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10452: printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
1.128 moko 10453:
1.237 moko 10454: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10455: printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10456: if test ${lt_cv_ld_exported_symbols_list+y}
10457: then :
10458: printf %s "(cached) " >&6
10459: else case e in #(
10460: e) lt_cv_ld_exported_symbols_list=no
1.128 moko 10461: save_LDFLAGS=$LDFLAGS
10462: echo "_main" > conftest.sym
10463: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 10464: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10465: /* end confdefs.h. */
10466:
10467: int
1.237 moko 10468: main (void)
1.128 moko 10469: {
10470:
10471: ;
10472: return 0;
10473: }
10474: _ACEOF
1.237 moko 10475: if ac_fn_c_try_link "$LINENO"
10476: then :
1.128 moko 10477: lt_cv_ld_exported_symbols_list=yes
1.237 moko 10478: else case e in #(
10479: e) lt_cv_ld_exported_symbols_list=no ;;
10480: esac
1.128 moko 10481: fi
1.237 moko 10482: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 10483: conftest$ac_exeext conftest.$ac_ext
1.237 moko 10484: LDFLAGS=$save_LDFLAGS
10485: ;;
10486: esac
1.128 moko 10487: fi
1.237 moko 10488: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10489: printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 10490:
1.237 moko 10491: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10492: printf %s "checking for -force_load linker flag... " >&6; }
10493: if test ${lt_cv_ld_force_load+y}
10494: then :
10495: printf %s "(cached) " >&6
10496: else case e in #(
10497: e) lt_cv_ld_force_load=no
1.128 moko 10498: cat > conftest.c << _LT_EOF
10499: int forced_loaded() { return 2;}
10500: _LT_EOF
10501: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10502: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
1.237 moko 10503: echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10504: $AR $AR_FLAGS libconftest.a conftest.o 2>&5
1.128 moko 10505: echo "$RANLIB libconftest.a" >&5
10506: $RANLIB libconftest.a 2>&5
10507: cat > conftest.c << _LT_EOF
1.237 moko 10508: int main(void) { return 0;}
1.128 moko 10509: _LT_EOF
10510: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10511: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10512: _lt_result=$?
10513: if test -s conftest.err && $GREP force_load conftest.err; then
10514: cat conftest.err >&5
1.237 moko 10515: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1.128 moko 10516: lt_cv_ld_force_load=yes
10517: else
10518: cat conftest.err >&5
10519: fi
10520: rm -f conftest.err libconftest.a conftest conftest.c
10521: rm -rf conftest.dSYM
1.237 moko 10522: ;;
10523: esac
1.128 moko 10524: fi
1.237 moko 10525: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10526: printf "%s\n" "$lt_cv_ld_force_load" >&6; }
1.128 moko 10527: case $host_os in
10528: rhapsody* | darwin1.[012])
1.237 moko 10529: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1.128 moko 10530: darwin1.*)
1.237 moko 10531: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10532: darwin*)
10533: case $MACOSX_DEPLOYMENT_TARGET,$host in
10534: 10.[012],*|,*powerpc*-darwin[5-8]*)
10535: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10536: *)
10537: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10538: if test yes = "$lt_cv_support_no_fixup_chains"; then
10539: as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10540: fi
10541: ;;
1.128 moko 10542: esac
10543: ;;
10544: esac
1.237 moko 10545: if test yes = "$lt_cv_apple_cc_single_mod"; then
1.128 moko 10546: _lt_dar_single_mod='$single_module'
10547: fi
1.237 moko 10548: _lt_dar_needs_single_mod=no
10549: case $host_os in
10550: rhapsody* | darwin1.*)
10551: _lt_dar_needs_single_mod=yes ;;
10552: darwin*)
10553: # When targeting Mac OS X 10.4 (darwin 8) or later,
10554: # -single_module is the default and -multi_module is unsupported.
10555: # The toolchain on macOS 10.14 (darwin 18) and later cannot
10556: # target any OS version that needs -single_module.
10557: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10558: 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10559: _lt_dar_needs_single_mod=yes ;;
10560: esac
10561: ;;
10562: esac
10563: if test yes = "$lt_cv_ld_exported_symbols_list"; then
10564: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1.128 moko 10565: else
1.237 moko 10566: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1.128 moko 10567: fi
1.237 moko 10568: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1.128 moko 10569: _lt_dsymutil='~$DSYMUTIL $lib || :'
10570: else
10571: _lt_dsymutil=
10572: fi
10573: ;;
10574: esac
10575:
1.237 moko 10576: # func_munge_path_list VARIABLE PATH
10577: # -----------------------------------
10578: # VARIABLE is name of variable containing _space_ separated list of
10579: # directories to be munged by the contents of PATH, which is string
10580: # having a format:
10581: # "DIR[:DIR]:"
10582: # string "DIR[ DIR]" will be prepended to VARIABLE
10583: # ":DIR[:DIR]"
10584: # string "DIR[ DIR]" will be appended to VARIABLE
10585: # "DIRP[:DIRP]::[DIRA:]DIRA"
10586: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10587: # "DIRA[ DIRA]" will be appended to VARIABLE
10588: # "DIR[:DIR]"
10589: # VARIABLE will be replaced by "DIR[ DIR]"
10590: func_munge_path_list ()
10591: {
10592: case x$2 in
10593: x)
10594: ;;
10595: *:)
10596: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10597: ;;
10598: x:*)
10599: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10600: ;;
10601: *::*)
10602: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10603: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10604: ;;
10605: *)
10606: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10607: ;;
10608: esac
10609: }
10610:
10611: ac_header= ac_cache=
10612: for ac_item in $ac_header_c_list
1.128 moko 10613: do
1.237 moko 10614: if test $ac_cache; then
10615: ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
10616: if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
10617: printf "%s\n" "#define $ac_item 1" >> confdefs.h
10618: fi
10619: ac_header= ac_cache=
10620: elif test $ac_header; then
10621: ac_cache=$ac_item
10622: else
10623: ac_header=$ac_item
10624: fi
10625: done
10626:
10627:
10628:
1.150 moko 10629:
1.128 moko 10630:
10631:
10632:
10633:
1.237 moko 10634: if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
10635: then :
1.150 moko 10636:
1.237 moko 10637: printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
1.128 moko 10638:
10639: fi
1.237 moko 10640: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10641: "
10642: if test "x$ac_cv_header_dlfcn_h" = xyes
10643: then :
10644: printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
1.150 moko 10645:
1.128 moko 10646: fi
10647:
10648:
10649:
10650:
1.237 moko 10651: func_stripname_cnf ()
1.128 moko 10652: {
1.237 moko 10653: case $2 in
10654: .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10655: *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
1.150 moko 10656: esac
10657: } # func_stripname_cnf
1.128 moko 10658:
10659:
10660:
10661:
10662:
10663: # Set options
10664: enable_dlopen=yes
10665: enable_win32_dll=yes
10666:
10667: case $host in
1.237 moko 10668: *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
1.128 moko 10669: if test -n "$ac_tool_prefix"; then
10670: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10671: set dummy ${ac_tool_prefix}as; ac_word=$2
1.237 moko 10672: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10673: printf %s "checking for $ac_word... " >&6; }
10674: if test ${ac_cv_prog_AS+y}
10675: then :
10676: printf %s "(cached) " >&6
10677: else case e in #(
10678: e) if test -n "$AS"; then
1.128 moko 10679: ac_cv_prog_AS="$AS" # Let the user override the test.
10680: else
10681: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682: for as_dir in $PATH
10683: do
10684: IFS=$as_save_IFS
1.237 moko 10685: case $as_dir in #(((
10686: '') as_dir=./ ;;
10687: */) ;;
10688: *) as_dir=$as_dir/ ;;
10689: esac
1.150 moko 10690: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10691: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10692: ac_cv_prog_AS="${ac_tool_prefix}as"
1.237 moko 10693: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10694: break 2
10695: fi
10696: done
1.150 moko 10697: done
10698: IFS=$as_save_IFS
1.128 moko 10699:
1.237 moko 10700: fi ;;
10701: esac
1.128 moko 10702: fi
10703: AS=$ac_cv_prog_AS
10704: if test -n "$AS"; then
1.237 moko 10705: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10706: printf "%s\n" "$AS" >&6; }
1.128 moko 10707: else
1.237 moko 10708: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10709: printf "%s\n" "no" >&6; }
1.128 moko 10710: fi
10711:
1.150 moko 10712:
1.128 moko 10713: fi
10714: if test -z "$ac_cv_prog_AS"; then
10715: ac_ct_AS=$AS
10716: # Extract the first word of "as", so it can be a program name with args.
10717: set dummy as; ac_word=$2
1.237 moko 10718: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10719: printf %s "checking for $ac_word... " >&6; }
10720: if test ${ac_cv_prog_ac_ct_AS+y}
10721: then :
10722: printf %s "(cached) " >&6
10723: else case e in #(
10724: e) if test -n "$ac_ct_AS"; then
1.128 moko 10725: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10726: else
10727: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728: for as_dir in $PATH
10729: do
10730: IFS=$as_save_IFS
1.237 moko 10731: case $as_dir in #(((
10732: '') as_dir=./ ;;
10733: */) ;;
10734: *) as_dir=$as_dir/ ;;
10735: esac
1.150 moko 10736: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10737: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10738: ac_cv_prog_ac_ct_AS="as"
1.237 moko 10739: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10740: break 2
10741: fi
10742: done
1.150 moko 10743: done
10744: IFS=$as_save_IFS
1.128 moko 10745:
1.237 moko 10746: fi ;;
10747: esac
1.128 moko 10748: fi
10749: ac_ct_AS=$ac_cv_prog_ac_ct_AS
10750: if test -n "$ac_ct_AS"; then
1.237 moko 10751: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10752: printf "%s\n" "$ac_ct_AS" >&6; }
1.128 moko 10753: else
1.237 moko 10754: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755: printf "%s\n" "no" >&6; }
1.128 moko 10756: fi
10757:
1.150 moko 10758: if test "x$ac_ct_AS" = x; then
10759: AS="false"
10760: else
10761: case $cross_compiling:$ac_tool_warned in
10762: yes:)
1.237 moko 10763: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10764: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10765: ac_tool_warned=yes ;;
10766: esac
10767: AS=$ac_ct_AS
10768: fi
1.128 moko 10769: else
10770: AS="$ac_cv_prog_AS"
10771: fi
10772:
10773: if test -n "$ac_tool_prefix"; then
10774: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10775: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.237 moko 10776: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777: printf %s "checking for $ac_word... " >&6; }
10778: if test ${ac_cv_prog_DLLTOOL+y}
10779: then :
10780: printf %s "(cached) " >&6
10781: else case e in #(
10782: e) if test -n "$DLLTOOL"; then
1.128 moko 10783: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10784: else
10785: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786: for as_dir in $PATH
10787: do
10788: IFS=$as_save_IFS
1.237 moko 10789: case $as_dir in #(((
10790: '') as_dir=./ ;;
10791: */) ;;
10792: *) as_dir=$as_dir/ ;;
10793: esac
1.150 moko 10794: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10795: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10796: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.237 moko 10797: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10798: break 2
10799: fi
10800: done
1.150 moko 10801: done
10802: IFS=$as_save_IFS
1.128 moko 10803:
1.237 moko 10804: fi ;;
10805: esac
1.128 moko 10806: fi
10807: DLLTOOL=$ac_cv_prog_DLLTOOL
10808: if test -n "$DLLTOOL"; then
1.237 moko 10809: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10810: printf "%s\n" "$DLLTOOL" >&6; }
1.128 moko 10811: else
1.237 moko 10812: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813: printf "%s\n" "no" >&6; }
1.128 moko 10814: fi
10815:
1.150 moko 10816:
1.128 moko 10817: fi
10818: if test -z "$ac_cv_prog_DLLTOOL"; then
10819: ac_ct_DLLTOOL=$DLLTOOL
10820: # Extract the first word of "dlltool", so it can be a program name with args.
10821: set dummy dlltool; ac_word=$2
1.237 moko 10822: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10823: printf %s "checking for $ac_word... " >&6; }
10824: if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10825: then :
10826: printf %s "(cached) " >&6
10827: else case e in #(
10828: e) if test -n "$ac_ct_DLLTOOL"; then
1.128 moko 10829: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10830: else
10831: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832: for as_dir in $PATH
10833: do
10834: IFS=$as_save_IFS
1.237 moko 10835: case $as_dir in #(((
10836: '') as_dir=./ ;;
10837: */) ;;
10838: *) as_dir=$as_dir/ ;;
10839: esac
1.150 moko 10840: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10841: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10842: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.237 moko 10843: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10844: break 2
10845: fi
10846: done
1.150 moko 10847: done
10848: IFS=$as_save_IFS
1.128 moko 10849:
1.237 moko 10850: fi ;;
10851: esac
1.128 moko 10852: fi
10853: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10854: if test -n "$ac_ct_DLLTOOL"; then
1.237 moko 10855: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10856: printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
1.128 moko 10857: else
1.237 moko 10858: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10859: printf "%s\n" "no" >&6; }
1.128 moko 10860: fi
10861:
1.150 moko 10862: if test "x$ac_ct_DLLTOOL" = x; then
10863: DLLTOOL="false"
10864: else
10865: case $cross_compiling:$ac_tool_warned in
10866: yes:)
1.237 moko 10867: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10868: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10869: ac_tool_warned=yes ;;
10870: esac
10871: DLLTOOL=$ac_ct_DLLTOOL
10872: fi
1.128 moko 10873: else
10874: DLLTOOL="$ac_cv_prog_DLLTOOL"
10875: fi
10876:
10877: if test -n "$ac_tool_prefix"; then
10878: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10879: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.237 moko 10880: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10881: printf %s "checking for $ac_word... " >&6; }
10882: if test ${ac_cv_prog_OBJDUMP+y}
10883: then :
10884: printf %s "(cached) " >&6
10885: else case e in #(
10886: e) if test -n "$OBJDUMP"; then
1.128 moko 10887: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10888: else
10889: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10890: for as_dir in $PATH
10891: do
10892: IFS=$as_save_IFS
1.237 moko 10893: case $as_dir in #(((
10894: '') as_dir=./ ;;
10895: */) ;;
10896: *) as_dir=$as_dir/ ;;
10897: esac
1.150 moko 10898: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10899: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10900: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.237 moko 10901: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10902: break 2
10903: fi
10904: done
1.150 moko 10905: done
10906: IFS=$as_save_IFS
1.128 moko 10907:
1.237 moko 10908: fi ;;
10909: esac
1.128 moko 10910: fi
10911: OBJDUMP=$ac_cv_prog_OBJDUMP
10912: if test -n "$OBJDUMP"; then
1.237 moko 10913: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10914: printf "%s\n" "$OBJDUMP" >&6; }
1.128 moko 10915: else
1.237 moko 10916: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917: printf "%s\n" "no" >&6; }
1.128 moko 10918: fi
10919:
1.150 moko 10920:
1.128 moko 10921: fi
10922: if test -z "$ac_cv_prog_OBJDUMP"; then
10923: ac_ct_OBJDUMP=$OBJDUMP
10924: # Extract the first word of "objdump", so it can be a program name with args.
10925: set dummy objdump; ac_word=$2
1.237 moko 10926: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10927: printf %s "checking for $ac_word... " >&6; }
10928: if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
10929: then :
10930: printf %s "(cached) " >&6
10931: else case e in #(
10932: e) if test -n "$ac_ct_OBJDUMP"; then
1.128 moko 10933: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10934: else
10935: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936: for as_dir in $PATH
10937: do
10938: IFS=$as_save_IFS
1.237 moko 10939: case $as_dir in #(((
10940: '') as_dir=./ ;;
10941: */) ;;
10942: *) as_dir=$as_dir/ ;;
10943: esac
1.150 moko 10944: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 moko 10945: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10946: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.237 moko 10947: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10948: break 2
10949: fi
10950: done
1.150 moko 10951: done
10952: IFS=$as_save_IFS
1.128 moko 10953:
1.237 moko 10954: fi ;;
10955: esac
1.128 moko 10956: fi
10957: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10958: if test -n "$ac_ct_OBJDUMP"; then
1.237 moko 10959: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10960: printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
1.128 moko 10961: else
1.237 moko 10962: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963: printf "%s\n" "no" >&6; }
1.128 moko 10964: fi
10965:
1.150 moko 10966: if test "x$ac_ct_OBJDUMP" = x; then
10967: OBJDUMP="false"
10968: else
10969: case $cross_compiling:$ac_tool_warned in
10970: yes:)
1.237 moko 10971: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10972: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10973: ac_tool_warned=yes ;;
10974: esac
10975: OBJDUMP=$ac_ct_OBJDUMP
10976: fi
1.128 moko 10977: else
10978: OBJDUMP="$ac_cv_prog_OBJDUMP"
10979: fi
10980:
10981: ;;
10982: esac
10983:
10984: test -z "$AS" && AS=as
10985:
10986:
10987:
10988:
10989:
10990: test -z "$DLLTOOL" && DLLTOOL=dlltool
10991:
10992:
10993:
10994:
10995:
10996: test -z "$OBJDUMP" && OBJDUMP=objdump
10997:
10998:
10999:
11000:
1.237 moko 11001: # Check whether --enable-pic was given.
11002: if test ${enable_pic+y}
11003: then :
11004: enableval=$enable_pic; lt_p=${PACKAGE-default}
11005: case $enableval in
11006: yes|no) pic_mode=$enableval ;;
11007: *)
11008: pic_mode=default
11009: # Look at the argument we got. We use all the common list separators.
11010: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11011: for lt_pkg in $enableval; do
11012: IFS=$lt_save_ifs
11013: if test "X$lt_pkg" = "X$lt_p"; then
11014: pic_mode=yes
11015: fi
11016: done
11017: IFS=$lt_save_ifs
11018: ;;
11019: esac
11020: else case e in #(
11021: e) # Check whether --with-pic was given.
11022: if test ${with_pic+y}
11023: then :
1.150 moko 11024: withval=$with_pic; lt_p=${PACKAGE-default}
1.237 moko 11025: case $withval in
11026: yes|no) pic_mode=$withval ;;
11027: *)
11028: pic_mode=default
11029: # Look at the argument we got. We use all the common list separators.
11030: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11031: for lt_pkg in $withval; do
11032: IFS=$lt_save_ifs
11033: if test "X$lt_pkg" = "X$lt_p"; then
11034: pic_mode=yes
11035: fi
11036: done
11037: IFS=$lt_save_ifs
11038: ;;
11039: esac
11040: else case e in #(
11041: e) pic_mode=no ;;
11042: esac
1.150 moko 11043: fi
11044:
1.237 moko 11045: ;;
11046: esac
11047: fi
1.145 moko 11048:
11049:
11050:
11051:
11052:
11053:
11054:
1.128 moko 11055:
11056:
11057:
11058:
1.150 moko 11059: # Check whether --enable-shared was given.
1.237 moko 11060: if test ${enable_shared+y}
11061: then :
1.150 moko 11062: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 11063: case $enableval in
11064: yes) enable_shared=yes ;;
11065: no) enable_shared=no ;;
11066: *)
11067: enable_shared=no
11068: # Look at the argument we got. We use all the common list separators.
1.237 moko 11069: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.128 moko 11070: for pkg in $enableval; do
1.237 moko 11071: IFS=$lt_save_ifs
1.128 moko 11072: if test "X$pkg" = "X$p"; then
11073: enable_shared=yes
11074: fi
11075: done
1.237 moko 11076: IFS=$lt_save_ifs
1.128 moko 11077: ;;
11078: esac
1.237 moko 11079: else case e in #(
11080: e) enable_shared=yes ;;
11081: esac
1.150 moko 11082: fi
11083:
1.128 moko 11084:
11085:
11086:
11087:
11088:
11089:
11090:
11091:
1.150 moko 11092: # Check whether --enable-static was given.
1.237 moko 11093: if test ${enable_static+y}
11094: then :
1.150 moko 11095: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 11096: case $enableval in
11097: yes) enable_static=yes ;;
11098: no) enable_static=no ;;
11099: *)
11100: enable_static=no
11101: # Look at the argument we got. We use all the common list separators.
1.237 moko 11102: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.138 moko 11103: for pkg in $enableval; do
1.237 moko 11104: IFS=$lt_save_ifs
1.138 moko 11105: if test "X$pkg" = "X$p"; then
11106: enable_static=yes
11107: fi
11108: done
1.237 moko 11109: IFS=$lt_save_ifs
1.138 moko 11110: ;;
11111: esac
1.237 moko 11112: else case e in #(
11113: e) enable_static=yes ;;
11114: esac
1.150 moko 11115: fi
11116:
1.138 moko 11117:
11118:
11119:
11120:
11121:
11122:
11123:
1.128 moko 11124:
11125:
1.150 moko 11126: # Check whether --enable-fast-install was given.
1.237 moko 11127: if test ${enable_fast_install+y}
11128: then :
1.150 moko 11129: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 11130: case $enableval in
11131: yes) enable_fast_install=yes ;;
11132: no) enable_fast_install=no ;;
11133: *)
11134: enable_fast_install=no
11135: # Look at the argument we got. We use all the common list separators.
1.237 moko 11136: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.128 moko 11137: for pkg in $enableval; do
1.237 moko 11138: IFS=$lt_save_ifs
1.128 moko 11139: if test "X$pkg" = "X$p"; then
11140: enable_fast_install=yes
11141: fi
11142: done
1.237 moko 11143: IFS=$lt_save_ifs
1.128 moko 11144: ;;
11145: esac
1.237 moko 11146: else case e in #(
11147: e) enable_fast_install=yes ;;
11148: esac
11149: fi
11150:
11151:
11152:
11153:
11154:
11155:
11156:
11157:
11158: shared_archive_member_spec=
11159: case $host,$enable_shared in
11160: power*-*-aix[5-9]*,yes)
11161: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11162: printf %s "checking which variant of shared library versioning to provide... " >&6; }
11163: # Check whether --enable-aix-soname was given.
11164: if test ${enable_aix_soname+y}
11165: then :
11166: enableval=$enable_aix_soname; case $enableval in
11167: aix|svr4|both)
11168: ;;
11169: *)
11170: as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
11171: ;;
11172: esac
11173: lt_cv_with_aix_soname=$enable_aix_soname
11174: else case e in #(
11175: e) # Check whether --with-aix-soname was given.
11176: if test ${with_aix_soname+y}
11177: then :
11178: withval=$with_aix_soname; case $withval in
11179: aix|svr4|both)
11180: ;;
11181: *)
11182: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11183: ;;
11184: esac
11185: lt_cv_with_aix_soname=$with_aix_soname
11186: else case e in #(
11187: e) if test ${lt_cv_with_aix_soname+y}
11188: then :
11189: printf %s "(cached) " >&6
11190: else case e in #(
11191: e) lt_cv_with_aix_soname=aix ;;
11192: esac
11193: fi
11194: ;;
11195: esac
11196: fi
11197:
11198: enable_aix_soname=$lt_cv_with_aix_soname ;;
11199: esac
1.150 moko 11200: fi
11201:
1.237 moko 11202: with_aix_soname=$enable_aix_soname
11203: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11204: printf "%s\n" "$with_aix_soname" >&6; }
11205: if test aix != "$with_aix_soname"; then
11206: # For the AIX way of multilib, we name the shared archive member
11207: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11208: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11209: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11210: # the AIX toolchain works better with OBJECT_MODE set (default 32).
11211: if test 64 = "${OBJECT_MODE-32}"; then
11212: shared_archive_member_spec=shr_64
11213: else
11214: shared_archive_member_spec=shr
11215: fi
11216: fi
11217: ;;
11218: *)
11219: with_aix_soname=aix
11220: ;;
11221: esac
1.128 moko 11222:
11223:
11224:
11225:
11226:
11227:
11228:
11229:
11230:
11231:
11232: # This can be used to rebuild libtool when needed
1.237 moko 11233: LIBTOOL_DEPS=$ltmain
1.128 moko 11234:
11235: # Always use our own libtool.
11236: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11237:
11238:
11239:
11240:
11241:
11242:
11243:
11244:
11245:
11246:
11247:
11248:
11249:
11250:
11251:
11252:
11253:
11254:
11255:
11256:
11257:
11258:
11259:
11260:
11261:
11262:
11263:
11264:
11265:
11266:
11267: test -z "$LN_S" && LN_S="ln -s"
11268:
11269:
11270:
11271:
11272:
11273:
11274:
11275:
11276:
11277:
11278:
11279:
11280:
11281:
1.237 moko 11282: if test -n "${ZSH_VERSION+set}"; then
1.128 moko 11283: setopt NO_GLOB_SUBST
11284: fi
11285:
1.237 moko 11286: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11287: printf %s "checking for objdir... " >&6; }
11288: if test ${lt_cv_objdir+y}
11289: then :
11290: printf %s "(cached) " >&6
11291: else case e in #(
11292: e) rm -f .libs 2>/dev/null
1.128 moko 11293: mkdir .libs 2>/dev/null
11294: if test -d .libs; then
11295: lt_cv_objdir=.libs
11296: else
11297: # MS-DOS does not allow filenames that begin with a dot.
11298: lt_cv_objdir=_libs
11299: fi
1.237 moko 11300: rmdir .libs 2>/dev/null ;;
11301: esac
1.128 moko 11302: fi
1.237 moko 11303: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11304: printf "%s\n" "$lt_cv_objdir" >&6; }
1.128 moko 11305: objdir=$lt_cv_objdir
11306:
11307:
11308:
11309:
11310:
1.237 moko 11311: printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
1.128 moko 11312:
11313:
11314:
11315:
11316: case $host_os in
11317: aix3*)
11318: # AIX sometimes has problems with the GCC collect2 program. For some
11319: # reason, if we set the COLLECT_NAMES environment variable, the problems
11320: # vanish in a puff of smoke.
1.237 moko 11321: if test set != "${COLLECT_NAMES+set}"; then
1.128 moko 11322: COLLECT_NAMES=
11323: export COLLECT_NAMES
11324: fi
11325: ;;
11326: esac
11327:
11328: # Global variables:
11329: ofile=libtool
11330: can_build_shared=yes
11331:
1.237 moko 11332: # All known linkers require a '.a' archive for static linking (except MSVC and
11333: # ICC, which need '.lib').
1.128 moko 11334: libext=a
11335:
1.237 moko 11336: with_gnu_ld=$lt_cv_prog_gnu_ld
1.128 moko 11337:
1.237 moko 11338: old_CC=$CC
11339: old_CFLAGS=$CFLAGS
1.128 moko 11340:
11341: # Set sane defaults for various variables
11342: test -z "$CC" && CC=cc
11343: test -z "$LTCC" && LTCC=$CC
11344: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11345: test -z "$LD" && LD=ld
11346: test -z "$ac_objext" && ac_objext=o
11347:
1.237 moko 11348: func_cc_basename $compiler
11349: cc_basename=$func_cc_basename_result
1.128 moko 11350:
11351:
11352: # Only perform the check for file, if the check method requires it
11353: test -z "$MAGIC_CMD" && MAGIC_CMD=file
11354: case $deplibs_check_method in
11355: file_magic*)
11356: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.237 moko 11357: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11358: printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11359: if test ${lt_cv_path_MAGIC_CMD+y}
11360: then :
11361: printf %s "(cached) " >&6
11362: else case e in #(
11363: e) case $MAGIC_CMD in
1.128 moko 11364: [\\/*] | ?:[\\/]*)
1.237 moko 11365: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.128 moko 11366: ;;
11367: *)
1.237 moko 11368: lt_save_MAGIC_CMD=$MAGIC_CMD
11369: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 11370: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11371: for ac_dir in $ac_dummy; do
1.237 moko 11372: IFS=$lt_save_ifs
1.128 moko 11373: test -z "$ac_dir" && ac_dir=.
1.237 moko 11374: if test -f "$ac_dir/${ac_tool_prefix}file"; then
11375: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
1.128 moko 11376: if test -n "$file_magic_test_file"; then
11377: case $deplibs_check_method in
11378: "file_magic "*)
11379: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.237 moko 11380: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11381: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11382: $EGREP "$file_magic_regex" > /dev/null; then
11383: :
11384: else
11385: cat <<_LT_EOF 1>&2
11386:
11387: *** Warning: the command libtool uses to detect shared libraries,
11388: *** $file_magic_cmd, produces output that libtool cannot recognize.
11389: *** The result is that libtool may fail to recognize shared libraries
11390: *** as such. This will affect the creation of libtool libraries that
11391: *** depend on shared libraries, but programs linked with such libtool
11392: *** libraries will work regardless of this problem. Nevertheless, you
11393: *** may want to report the problem to your system manager and/or to
11394: *** bug-libtool@gnu.org
11395:
11396: _LT_EOF
11397: fi ;;
11398: esac
11399: fi
11400: break
11401: fi
11402: done
1.237 moko 11403: IFS=$lt_save_ifs
11404: MAGIC_CMD=$lt_save_MAGIC_CMD
1.128 moko 11405: ;;
1.237 moko 11406: esac ;;
1.128 moko 11407: esac
11408: fi
11409:
1.237 moko 11410: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11411: if test -n "$MAGIC_CMD"; then
1.237 moko 11412: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11413: printf "%s\n" "$MAGIC_CMD" >&6; }
1.128 moko 11414: else
1.237 moko 11415: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416: printf "%s\n" "no" >&6; }
1.128 moko 11417: fi
11418:
11419:
11420:
11421:
11422:
11423: if test -z "$lt_cv_path_MAGIC_CMD"; then
11424: if test -n "$ac_tool_prefix"; then
1.237 moko 11425: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11426: printf %s "checking for file... " >&6; }
11427: if test ${lt_cv_path_MAGIC_CMD+y}
11428: then :
11429: printf %s "(cached) " >&6
11430: else case e in #(
11431: e) case $MAGIC_CMD in
1.128 moko 11432: [\\/*] | ?:[\\/]*)
1.237 moko 11433: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.128 moko 11434: ;;
11435: *)
1.237 moko 11436: lt_save_MAGIC_CMD=$MAGIC_CMD
11437: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 11438: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11439: for ac_dir in $ac_dummy; do
1.237 moko 11440: IFS=$lt_save_ifs
1.128 moko 11441: test -z "$ac_dir" && ac_dir=.
1.237 moko 11442: if test -f "$ac_dir/file"; then
11443: lt_cv_path_MAGIC_CMD=$ac_dir/"file"
1.128 moko 11444: if test -n "$file_magic_test_file"; then
11445: case $deplibs_check_method in
11446: "file_magic "*)
11447: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.237 moko 11448: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11449: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11450: $EGREP "$file_magic_regex" > /dev/null; then
11451: :
11452: else
11453: cat <<_LT_EOF 1>&2
11454:
11455: *** Warning: the command libtool uses to detect shared libraries,
11456: *** $file_magic_cmd, produces output that libtool cannot recognize.
11457: *** The result is that libtool may fail to recognize shared libraries
11458: *** as such. This will affect the creation of libtool libraries that
11459: *** depend on shared libraries, but programs linked with such libtool
11460: *** libraries will work regardless of this problem. Nevertheless, you
11461: *** may want to report the problem to your system manager and/or to
11462: *** bug-libtool@gnu.org
11463:
11464: _LT_EOF
11465: fi ;;
11466: esac
11467: fi
11468: break
11469: fi
11470: done
1.237 moko 11471: IFS=$lt_save_ifs
11472: MAGIC_CMD=$lt_save_MAGIC_CMD
1.128 moko 11473: ;;
1.237 moko 11474: esac ;;
1.128 moko 11475: esac
11476: fi
11477:
1.237 moko 11478: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11479: if test -n "$MAGIC_CMD"; then
1.237 moko 11480: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11481: printf "%s\n" "$MAGIC_CMD" >&6; }
1.128 moko 11482: else
1.237 moko 11483: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484: printf "%s\n" "no" >&6; }
1.128 moko 11485: fi
11486:
11487:
11488: else
11489: MAGIC_CMD=:
11490: fi
11491: fi
11492:
11493: fi
11494: ;;
11495: esac
11496:
11497: # Use C for the default configuration in the libtool script
11498:
1.237 moko 11499: lt_save_CC=$CC
1.128 moko 11500: ac_ext=c
11501: ac_cpp='$CPP $CPPFLAGS'
11502: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11503: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11504: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11505:
11506:
11507: # Source file extension for C test sources.
11508: ac_ext=c
11509:
11510: # Object file extension for compiled C test sources.
11511: objext=o
11512: objext=$objext
11513:
11514: # Code to be used in simple compile tests
11515: lt_simple_compile_test_code="int some_variable = 0;"
11516:
11517: # Code to be used in simple link tests
1.237 moko 11518: lt_simple_link_test_code='int main(void){return(0);}'
1.128 moko 11519:
11520:
11521:
11522:
11523:
11524:
11525:
11526: # If no C compiler was specified, use CC.
11527: LTCC=${LTCC-"$CC"}
11528:
11529: # If no C compiler flags were specified, use CFLAGS.
11530: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11531:
11532: # Allow CC to be a program name with arguments.
11533: compiler=$CC
11534:
11535: # Save the default compiler, since it gets overwritten when the other
11536: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11537: compiler_DEFAULT=$CC
11538:
11539: # save warnings/boilerplate of simple test code
11540: ac_outfile=conftest.$ac_objext
11541: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11542: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11543: _lt_compiler_boilerplate=`cat conftest.err`
11544: $RM conftest*
11545:
11546: ac_outfile=conftest.$ac_objext
11547: echo "$lt_simple_link_test_code" >conftest.$ac_ext
11548: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11549: _lt_linker_boilerplate=`cat conftest.err`
11550: $RM -r conftest*
11551:
11552:
11553: ## CAVEAT EMPTOR:
11554: ## There is no encapsulation within the following macros, do not change
11555: ## the running order or otherwise move them around unless you know exactly
11556: ## what you are doing...
11557: if test -n "$compiler"; then
11558:
11559: lt_prog_compiler_no_builtin_flag=
11560:
1.237 moko 11561: if test yes = "$GCC"; then
1.128 moko 11562: case $cc_basename in
11563: nvcc*)
11564: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11565: *)
11566: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11567: esac
11568:
1.237 moko 11569: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11570: printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11571: if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11572: then :
11573: printf %s "(cached) " >&6
11574: else case e in #(
11575: e) lt_cv_prog_compiler_rtti_exceptions=no
1.128 moko 11576: ac_outfile=conftest.$ac_objext
11577: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.237 moko 11578: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
1.128 moko 11579: # Insert the option either (1) after the last *FLAGS variable, or
11580: # (2) before a word containing "conftest.", or (3) at the end.
11581: # Note that $ac_compile itself does not contain backslashes and begins
11582: # with a dollar sign (not a hyphen), so the echo should work correctly.
11583: # The option is referenced via a variable to avoid confusing sed.
11584: lt_compile=`echo "$ac_compile" | $SED \
11585: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11586: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11587: -e 's:$: $lt_compiler_flag:'`
11588: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11589: (eval "$lt_compile" 2>conftest.err)
11590: ac_status=$?
11591: cat conftest.err >&5
11592: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593: if (exit $ac_status) && test -s "$ac_outfile"; then
11594: # The compiler can only warn and ignore the option if not recognized
11595: # So say no if there are warnings other than the usual output.
11596: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11597: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11598: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11599: lt_cv_prog_compiler_rtti_exceptions=yes
11600: fi
11601: fi
11602: $RM conftest*
1.237 moko 11603: ;;
11604: esac
1.128 moko 11605: fi
1.237 moko 11606: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11607: printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 11608:
1.237 moko 11609: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
1.128 moko 11610: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11611: else
11612: :
11613: fi
11614:
11615: fi
11616:
11617:
11618:
11619:
11620:
11621:
11622: lt_prog_compiler_wl=
11623: lt_prog_compiler_pic=
11624: lt_prog_compiler_static=
11625:
11626:
1.237 moko 11627: if test yes = "$GCC"; then
1.128 moko 11628: lt_prog_compiler_wl='-Wl,'
11629: lt_prog_compiler_static='-static'
11630:
11631: case $host_os in
11632: aix*)
11633: # All AIX code is PIC.
1.237 moko 11634: if test ia64 = "$host_cpu"; then
1.128 moko 11635: # AIX 5 now supports IA64 processor
11636: lt_prog_compiler_static='-Bstatic'
11637: fi
1.237 moko 11638: lt_prog_compiler_pic='-fPIC'
1.128 moko 11639: ;;
11640:
11641: amigaos*)
11642: case $host_cpu in
11643: powerpc)
11644: # see comment about AmigaOS4 .so support
11645: lt_prog_compiler_pic='-fPIC'
11646: ;;
11647: m68k)
11648: # FIXME: we need at least 68020 code to build shared libraries, but
1.237 moko 11649: # adding the '-m68020' flag to GCC prevents building anything better,
11650: # like '-m68040'.
1.128 moko 11651: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11652: ;;
11653: esac
11654: ;;
11655:
11656: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11657: # PIC is the default for these OSes.
11658: ;;
11659:
1.237 moko 11660: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
1.128 moko 11661: # This hack is so that the source file can tell whether it is being
11662: # built for inclusion in a dll (and should export symbols for example).
11663: # Although the cygwin gcc ignores -fPIC, still need this for old-style
11664: # (--disable-auto-import) libraries
11665: lt_prog_compiler_pic='-DDLL_EXPORT'
1.237 moko 11666: case $host_os in
11667: os2*)
11668: lt_prog_compiler_static='$wl-static'
11669: ;;
11670: esac
1.128 moko 11671: ;;
11672:
11673: darwin* | rhapsody*)
11674: # PIC is the default on this platform
11675: # Common symbols not allowed in MH_DYLIB files
11676: lt_prog_compiler_pic='-fno-common'
11677: ;;
11678:
11679: haiku*)
11680: # PIC is the default for Haiku.
11681: # The "-static" flag exists, but is broken.
11682: lt_prog_compiler_static=
11683: ;;
11684:
11685: hpux*)
11686: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11687: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11688: # sets the default TLS model and affects inlining.
11689: case $host_cpu in
11690: hppa*64*)
11691: # +Z the default
11692: ;;
11693: *)
11694: lt_prog_compiler_pic='-fPIC'
11695: ;;
11696: esac
11697: ;;
11698:
11699: interix[3-9]*)
11700: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11701: # Instead, we relocate shared libraries at runtime.
11702: ;;
11703:
11704: msdosdjgpp*)
11705: # Just because we use GCC doesn't mean we suddenly get shared libraries
11706: # on systems that don't support them.
11707: lt_prog_compiler_can_build_shared=no
11708: enable_shared=no
11709: ;;
11710:
11711: *nto* | *qnx*)
11712: # QNX uses GNU C++, but need to define -shared option too, otherwise
11713: # it will coredump.
11714: lt_prog_compiler_pic='-fPIC -shared'
11715: ;;
11716:
11717: sysv4*MP*)
11718: if test -d /usr/nec; then
11719: lt_prog_compiler_pic=-Kconform_pic
11720: fi
11721: ;;
11722:
11723: *)
11724: lt_prog_compiler_pic='-fPIC'
11725: ;;
11726: esac
11727:
11728: case $cc_basename in
11729: nvcc*) # Cuda Compiler Driver 2.2
11730: lt_prog_compiler_wl='-Xlinker '
11731: if test -n "$lt_prog_compiler_pic"; then
11732: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11733: fi
11734: ;;
11735: esac
11736: else
11737: # PORTME Check for flag to pass linker flags through the system compiler.
11738: case $host_os in
11739: aix*)
11740: lt_prog_compiler_wl='-Wl,'
1.237 moko 11741: if test ia64 = "$host_cpu"; then
1.128 moko 11742: # AIX 5 now supports IA64 processor
11743: lt_prog_compiler_static='-Bstatic'
11744: else
11745: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11746: fi
11747: ;;
11748:
1.237 moko 11749: darwin* | rhapsody*)
11750: # PIC is the default on this platform
11751: # Common symbols not allowed in MH_DYLIB files
11752: lt_prog_compiler_pic='-fno-common'
11753: case $cc_basename in
11754: nagfor*)
11755: # NAG Fortran compiler
11756: lt_prog_compiler_wl='-Wl,-Wl,,'
11757: lt_prog_compiler_pic='-PIC'
11758: lt_prog_compiler_static='-Bstatic'
11759: ;;
11760: esac
11761: ;;
11762:
11763: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
1.128 moko 11764: # This hack is so that the source file can tell whether it is being
11765: # built for inclusion in a dll (and should export symbols for example).
11766: lt_prog_compiler_pic='-DDLL_EXPORT'
1.237 moko 11767: case $host_os in
11768: os2*)
11769: lt_prog_compiler_static='$wl-static'
11770: ;;
11771: esac
1.128 moko 11772: ;;
11773:
11774: hpux9* | hpux10* | hpux11*)
11775: lt_prog_compiler_wl='-Wl,'
11776: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11777: # not for PA HP-UX.
11778: case $host_cpu in
11779: hppa*64*|ia64*)
11780: # +Z the default
11781: ;;
11782: *)
11783: lt_prog_compiler_pic='+Z'
11784: ;;
11785: esac
11786: # Is there a better lt_prog_compiler_static that works with the bundled CC?
1.237 moko 11787: lt_prog_compiler_static='$wl-a ${wl}archive'
1.128 moko 11788: ;;
11789:
11790: irix5* | irix6* | nonstopux*)
11791: lt_prog_compiler_wl='-Wl,'
11792: # PIC (with -KPIC) is the default.
11793: lt_prog_compiler_static='-non_shared'
11794: ;;
11795:
1.237 moko 11796: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 11797: case $cc_basename in
1.237 moko 11798: # old Intel for x86_64, which still supported -KPIC.
1.128 moko 11799: ecc*)
11800: lt_prog_compiler_wl='-Wl,'
11801: lt_prog_compiler_pic='-KPIC'
11802: lt_prog_compiler_static='-static'
11803: ;;
1.237 moko 11804: *flang* | ftn | f18* | f95*)
11805: # Flang compiler.
11806: lt_prog_compiler_wl='-Wl,'
11807: lt_prog_compiler_pic='-fPIC'
11808: lt_prog_compiler_static='-static'
11809: ;;
11810: # flang / f18. f95 an alias for gfortran or flang on Debian
11811: flang* | f18* | f95*)
11812: lt_prog_compiler_wl='-Wl,'
11813: lt_prog_compiler_pic='-fPIC'
11814: lt_prog_compiler_static='-static'
11815: ;;
1.128 moko 11816: # icc used to be incompatible with GCC.
11817: # ICC 10 doesn't accept -KPIC any more.
11818: icc* | ifort*)
11819: lt_prog_compiler_wl='-Wl,'
11820: lt_prog_compiler_pic='-fPIC'
11821: lt_prog_compiler_static='-static'
11822: ;;
11823: # Lahey Fortran 8.1.
11824: lf95*)
11825: lt_prog_compiler_wl='-Wl,'
11826: lt_prog_compiler_pic='--shared'
11827: lt_prog_compiler_static='--static'
11828: ;;
11829: nagfor*)
11830: # NAG Fortran compiler
11831: lt_prog_compiler_wl='-Wl,-Wl,,'
11832: lt_prog_compiler_pic='-PIC'
11833: lt_prog_compiler_static='-Bstatic'
11834: ;;
1.237 moko 11835: tcc*)
11836: # Fabrice Bellard et al's Tiny C Compiler
11837: lt_prog_compiler_wl='-Wl,'
11838: lt_prog_compiler_pic='-fPIC'
11839: lt_prog_compiler_static='-static'
11840: ;;
1.128 moko 11841: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11842: # Portland Group compilers (*not* the Pentium gcc compiler,
11843: # which looks to be a dead project)
11844: lt_prog_compiler_wl='-Wl,'
11845: lt_prog_compiler_pic='-fpic'
11846: lt_prog_compiler_static='-Bstatic'
11847: ;;
11848: ccc*)
11849: lt_prog_compiler_wl='-Wl,'
11850: # All Alpha code is PIC.
11851: lt_prog_compiler_static='-non_shared'
11852: ;;
11853: xl* | bgxl* | bgf* | mpixl*)
11854: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11855: lt_prog_compiler_wl='-Wl,'
11856: lt_prog_compiler_pic='-qpic'
11857: lt_prog_compiler_static='-qstaticlink'
11858: ;;
11859: *)
1.237 moko 11860: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 11861: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11862: # Sun Fortran 8.3 passes all unrecognized flags to the linker
11863: lt_prog_compiler_pic='-KPIC'
11864: lt_prog_compiler_static='-Bstatic'
11865: lt_prog_compiler_wl=''
11866: ;;
11867: *Sun\ F* | *Sun*Fortran*)
11868: lt_prog_compiler_pic='-KPIC'
11869: lt_prog_compiler_static='-Bstatic'
11870: lt_prog_compiler_wl='-Qoption ld '
11871: ;;
11872: *Sun\ C*)
11873: # Sun C 5.9
11874: lt_prog_compiler_pic='-KPIC'
11875: lt_prog_compiler_static='-Bstatic'
11876: lt_prog_compiler_wl='-Wl,'
11877: ;;
11878: *Intel*\ [CF]*Compiler*)
11879: lt_prog_compiler_wl='-Wl,'
11880: lt_prog_compiler_pic='-fPIC'
11881: lt_prog_compiler_static='-static'
11882: ;;
11883: *Portland\ Group*)
11884: lt_prog_compiler_wl='-Wl,'
11885: lt_prog_compiler_pic='-fpic'
11886: lt_prog_compiler_static='-Bstatic'
11887: ;;
11888: esac
11889: ;;
11890: esac
11891: ;;
11892:
11893: newsos6)
11894: lt_prog_compiler_pic='-KPIC'
11895: lt_prog_compiler_static='-Bstatic'
11896: ;;
11897:
1.237 moko 11898: *-mlibc)
11899: lt_prog_compiler_wl='-Wl,'
11900: lt_prog_compiler_pic='-fPIC'
11901: lt_prog_compiler_static='-static'
11902: ;;
11903:
1.128 moko 11904: *nto* | *qnx*)
11905: # QNX uses GNU C++, but need to define -shared option too, otherwise
11906: # it will coredump.
11907: lt_prog_compiler_pic='-fPIC -shared'
11908: ;;
11909:
11910: osf3* | osf4* | osf5*)
11911: lt_prog_compiler_wl='-Wl,'
11912: # All OSF/1 code is PIC.
11913: lt_prog_compiler_static='-non_shared'
11914: ;;
11915:
11916: rdos*)
11917: lt_prog_compiler_static='-non_shared'
11918: ;;
11919:
1.237 moko 11920: serenity*)
11921: ;;
11922:
1.128 moko 11923: solaris*)
11924: lt_prog_compiler_pic='-KPIC'
11925: lt_prog_compiler_static='-Bstatic'
11926: case $cc_basename in
11927: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11928: lt_prog_compiler_wl='-Qoption ld ';;
11929: *)
11930: lt_prog_compiler_wl='-Wl,';;
11931: esac
11932: ;;
11933:
11934: sunos4*)
11935: lt_prog_compiler_wl='-Qoption ld '
11936: lt_prog_compiler_pic='-PIC'
11937: lt_prog_compiler_static='-Bstatic'
11938: ;;
11939:
11940: sysv4 | sysv4.2uw2* | sysv4.3*)
11941: lt_prog_compiler_wl='-Wl,'
11942: lt_prog_compiler_pic='-KPIC'
11943: lt_prog_compiler_static='-Bstatic'
11944: ;;
11945:
11946: sysv4*MP*)
1.237 moko 11947: if test -d /usr/nec; then
1.128 moko 11948: lt_prog_compiler_pic='-Kconform_pic'
11949: lt_prog_compiler_static='-Bstatic'
11950: fi
11951: ;;
11952:
11953: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11954: lt_prog_compiler_wl='-Wl,'
11955: lt_prog_compiler_pic='-KPIC'
11956: lt_prog_compiler_static='-Bstatic'
11957: ;;
11958:
11959: unicos*)
11960: lt_prog_compiler_wl='-Wl,'
11961: lt_prog_compiler_can_build_shared=no
11962: ;;
11963:
11964: uts4*)
11965: lt_prog_compiler_pic='-pic'
11966: lt_prog_compiler_static='-Bstatic'
11967: ;;
11968:
11969: *)
11970: lt_prog_compiler_can_build_shared=no
11971: ;;
11972: esac
11973: fi
11974:
11975: case $host_os in
1.237 moko 11976: # For platforms that do not support PIC, -DPIC is meaningless:
1.128 moko 11977: *djgpp*)
11978: lt_prog_compiler_pic=
11979: ;;
11980: *)
11981: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11982: ;;
11983: esac
11984:
1.237 moko 11985: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11986: printf %s "checking for $compiler option to produce PIC... " >&6; }
11987: if test ${lt_cv_prog_compiler_pic+y}
11988: then :
11989: printf %s "(cached) " >&6
11990: else case e in #(
11991: e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11992: esac
1.128 moko 11993: fi
1.237 moko 11994: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11995: printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 11996: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11997:
11998: #
11999: # Check to make sure the PIC flag actually works.
12000: #
12001: if test -n "$lt_prog_compiler_pic"; then
1.237 moko 12002: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12003: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12004: if test ${lt_cv_prog_compiler_pic_works+y}
12005: then :
12006: printf %s "(cached) " >&6
12007: else case e in #(
12008: e) lt_cv_prog_compiler_pic_works=no
1.128 moko 12009: ac_outfile=conftest.$ac_objext
12010: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.237 moko 12011: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
1.128 moko 12012: # Insert the option either (1) after the last *FLAGS variable, or
12013: # (2) before a word containing "conftest.", or (3) at the end.
12014: # Note that $ac_compile itself does not contain backslashes and begins
12015: # with a dollar sign (not a hyphen), so the echo should work correctly.
12016: # The option is referenced via a variable to avoid confusing sed.
12017: lt_compile=`echo "$ac_compile" | $SED \
12018: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12019: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12020: -e 's:$: $lt_compiler_flag:'`
12021: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12022: (eval "$lt_compile" 2>conftest.err)
12023: ac_status=$?
12024: cat conftest.err >&5
12025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026: if (exit $ac_status) && test -s "$ac_outfile"; then
12027: # The compiler can only warn and ignore the option if not recognized
12028: # So say no if there are warnings other than the usual output.
12029: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12030: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12031: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12032: lt_cv_prog_compiler_pic_works=yes
12033: fi
12034: fi
12035: $RM conftest*
1.237 moko 12036: ;;
12037: esac
1.128 moko 12038: fi
1.237 moko 12039: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12040: printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 12041:
1.237 moko 12042: if test yes = "$lt_cv_prog_compiler_pic_works"; then
1.128 moko 12043: case $lt_prog_compiler_pic in
12044: "" | " "*) ;;
12045: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12046: esac
12047: else
12048: lt_prog_compiler_pic=
12049: lt_prog_compiler_can_build_shared=no
12050: fi
12051:
12052: fi
12053:
12054:
12055:
12056:
12057:
12058:
12059:
12060:
12061:
12062:
12063:
12064: #
12065: # Check to make sure the static flag actually works.
12066: #
12067: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.237 moko 12068: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12069: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12070: if test ${lt_cv_prog_compiler_static_works+y}
12071: then :
12072: printf %s "(cached) " >&6
12073: else case e in #(
12074: e) lt_cv_prog_compiler_static_works=no
12075: save_LDFLAGS=$LDFLAGS
1.128 moko 12076: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12077: echo "$lt_simple_link_test_code" > conftest.$ac_ext
12078: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12079: # The linker can only warn and ignore the option if not recognized
12080: # So say no if there are warnings
12081: if test -s conftest.err; then
12082: # Append any errors to the config.log.
12083: cat conftest.err 1>&5
12084: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12085: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12086: if diff conftest.exp conftest.er2 >/dev/null; then
12087: lt_cv_prog_compiler_static_works=yes
12088: fi
12089: else
12090: lt_cv_prog_compiler_static_works=yes
12091: fi
12092: fi
12093: $RM -r conftest*
1.237 moko 12094: LDFLAGS=$save_LDFLAGS
12095: ;;
12096: esac
1.128 moko 12097: fi
1.237 moko 12098: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12099: printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 12100:
1.237 moko 12101: if test yes = "$lt_cv_prog_compiler_static_works"; then
1.128 moko 12102: :
12103: else
12104: lt_prog_compiler_static=
12105: fi
12106:
12107:
12108:
12109:
12110:
12111:
12112:
1.237 moko 12113: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12114: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12115: if test ${lt_cv_prog_compiler_c_o+y}
12116: then :
12117: printf %s "(cached) " >&6
12118: else case e in #(
12119: e) lt_cv_prog_compiler_c_o=no
1.128 moko 12120: $RM -r conftest 2>/dev/null
12121: mkdir conftest
12122: cd conftest
12123: mkdir out
12124: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12125:
12126: lt_compiler_flag="-o out/conftest2.$ac_objext"
12127: # Insert the option either (1) after the last *FLAGS variable, or
12128: # (2) before a word containing "conftest.", or (3) at the end.
12129: # Note that $ac_compile itself does not contain backslashes and begins
12130: # with a dollar sign (not a hyphen), so the echo should work correctly.
12131: lt_compile=`echo "$ac_compile" | $SED \
12132: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12133: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12134: -e 's:$: $lt_compiler_flag:'`
12135: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12136: (eval "$lt_compile" 2>out/conftest.err)
12137: ac_status=$?
12138: cat out/conftest.err >&5
12139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140: if (exit $ac_status) && test -s out/conftest2.$ac_objext
12141: then
12142: # The compiler can only warn and ignore the option if not recognized
12143: # So say no if there are warnings
12144: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12145: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12146: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12147: lt_cv_prog_compiler_c_o=yes
12148: fi
12149: fi
12150: chmod u+w . 2>&5
12151: $RM conftest*
12152: # SGI C++ compiler will create directory out/ii_files/ for
12153: # template instantiation
12154: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12155: $RM out/* && rmdir out
12156: cd ..
12157: $RM -r conftest
12158: $RM conftest*
1.237 moko 12159: ;;
12160: esac
1.128 moko 12161: fi
1.237 moko 12162: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12163: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 12164:
12165:
12166:
12167:
12168:
12169:
1.237 moko 12170: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12171: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12172: if test ${lt_cv_prog_compiler_c_o+y}
12173: then :
12174: printf %s "(cached) " >&6
12175: else case e in #(
12176: e) lt_cv_prog_compiler_c_o=no
1.128 moko 12177: $RM -r conftest 2>/dev/null
12178: mkdir conftest
12179: cd conftest
12180: mkdir out
12181: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12182:
12183: lt_compiler_flag="-o out/conftest2.$ac_objext"
12184: # Insert the option either (1) after the last *FLAGS variable, or
12185: # (2) before a word containing "conftest.", or (3) at the end.
12186: # Note that $ac_compile itself does not contain backslashes and begins
12187: # with a dollar sign (not a hyphen), so the echo should work correctly.
12188: lt_compile=`echo "$ac_compile" | $SED \
12189: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12190: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12191: -e 's:$: $lt_compiler_flag:'`
12192: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12193: (eval "$lt_compile" 2>out/conftest.err)
12194: ac_status=$?
12195: cat out/conftest.err >&5
12196: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197: if (exit $ac_status) && test -s out/conftest2.$ac_objext
12198: then
12199: # The compiler can only warn and ignore the option if not recognized
12200: # So say no if there are warnings
12201: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12202: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12203: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12204: lt_cv_prog_compiler_c_o=yes
12205: fi
12206: fi
12207: chmod u+w . 2>&5
12208: $RM conftest*
12209: # SGI C++ compiler will create directory out/ii_files/ for
12210: # template instantiation
12211: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12212: $RM out/* && rmdir out
12213: cd ..
12214: $RM -r conftest
12215: $RM conftest*
1.237 moko 12216: ;;
12217: esac
1.128 moko 12218: fi
1.237 moko 12219: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12220: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 12221:
12222:
12223:
12224:
1.237 moko 12225: hard_links=nottested
12226: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
1.128 moko 12227: # do not overwrite the value of need_locks provided by the user
1.237 moko 12228: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12229: printf %s "checking if we can lock with hard links... " >&6; }
1.128 moko 12230: hard_links=yes
12231: $RM conftest*
12232: ln conftest.a conftest.b 2>/dev/null && hard_links=no
12233: touch conftest.a
12234: ln conftest.a conftest.b 2>&5 || hard_links=no
12235: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.237 moko 12236: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12237: printf "%s\n" "$hard_links" >&6; }
12238: if test no = "$hard_links"; then
12239: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12240: printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1.128 moko 12241: need_locks=warn
12242: fi
12243: else
12244: need_locks=no
12245: fi
12246:
12247:
12248:
12249:
12250:
12251:
1.237 moko 12252: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12253: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 12254:
12255: runpath_var=
12256: allow_undefined_flag=
12257: always_export_symbols=no
12258: archive_cmds=
12259: archive_expsym_cmds=
12260: compiler_needs_object=no
12261: enable_shared_with_static_runtimes=no
12262: export_dynamic_flag_spec=
12263: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12264: hardcode_automatic=no
12265: hardcode_direct=no
12266: hardcode_direct_absolute=no
12267: hardcode_libdir_flag_spec=
12268: hardcode_libdir_separator=
12269: hardcode_minus_L=no
12270: hardcode_shlibpath_var=unsupported
12271: inherit_rpath=no
12272: link_all_deplibs=unknown
12273: module_cmds=
12274: module_expsym_cmds=
12275: old_archive_from_new_cmds=
12276: old_archive_from_expsyms_cmds=
12277: thread_safe_flag_spec=
12278: whole_archive_flag_spec=
12279: # include_expsyms should be a list of space-separated symbols to be *always*
12280: # included in the symbol list
12281: include_expsyms=
12282: # exclude_expsyms can be an extended regexp of symbols to exclude
1.237 moko 12283: # it will be wrapped by ' (' and ')$', so one must not match beginning or
12284: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12285: # as well as any symbol that contains 'd'.
1.128 moko 12286: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12287: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12288: # platforms (ab)use it in PIC code, but their linkers get confused if
12289: # the symbol is explicitly referenced. Since portable code cannot
12290: # rely on this symbol name, it's probably fine to never include it in
12291: # preloaded symbol tables.
12292: # Exclude shared library initialization/finalization symbols.
12293: extract_expsyms_cmds=
12294:
12295: case $host_os in
1.237 moko 12296: cygwin* | mingw* | windows* | pw32* | cegcc*)
12297: # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
1.128 moko 12298: # When not using gcc, we currently assume that we are using
1.237 moko 12299: # Microsoft Visual C++ or Intel C++ Compiler.
12300: if test yes != "$GCC"; then
1.128 moko 12301: with_gnu_ld=no
12302: fi
12303: ;;
12304: interix*)
1.237 moko 12305: # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
1.128 moko 12306: with_gnu_ld=yes
12307: ;;
1.237 moko 12308: linux* | k*bsd*-gnu | gnu*)
12309: link_all_deplibs=no
1.128 moko 12310: ;;
12311: esac
12312:
12313: ld_shlibs=yes
12314:
12315: # On some targets, GNU ld is compatible enough with the native linker
12316: # that we're better off using the native interface for both.
12317: lt_use_gnu_ld_interface=no
1.237 moko 12318: if test yes = "$with_gnu_ld"; then
1.128 moko 12319: case $host_os in
12320: aix*)
12321: # The AIX port of GNU ld has always aspired to compatibility
12322: # with the native linker. However, as the warning in the GNU ld
12323: # block says, versions before 2.19.5* couldn't really create working
12324: # shared libraries, regardless of the interface used.
12325: case `$LD -v 2>&1` in
12326: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12327: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12328: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12329: *)
12330: lt_use_gnu_ld_interface=yes
12331: ;;
12332: esac
12333: ;;
12334: *)
12335: lt_use_gnu_ld_interface=yes
12336: ;;
12337: esac
12338: fi
12339:
1.237 moko 12340: if test yes = "$lt_use_gnu_ld_interface"; then
1.128 moko 12341: # If archive_cmds runs LD, not CC, wlarc should be empty
1.237 moko 12342: wlarc='$wl'
1.128 moko 12343:
12344: # Set some defaults for GNU ld with shared library support. These
12345: # are reset later if shared libraries are not supported. Putting them
12346: # here allows them to be overridden if necessary.
12347: runpath_var=LD_RUN_PATH
1.237 moko 12348: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12349: export_dynamic_flag_spec='$wl--export-dynamic'
1.128 moko 12350: # ancient GNU ld didn't support --whole-archive et. al.
12351: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
1.237 moko 12352: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.128 moko 12353: else
12354: whole_archive_flag_spec=
12355: fi
12356: supports_anon_versioning=no
1.237 moko 12357: case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
1.128 moko 12358: *GNU\ gold*) supports_anon_versioning=yes ;;
12359: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12360: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12361: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12362: *\ 2.11.*) ;; # other 2.11 versions
12363: *) supports_anon_versioning=yes ;;
12364: esac
12365:
12366: # See if GNU ld supports shared libraries.
12367: case $host_os in
12368: aix[3-9]*)
12369: # On AIX/PPC, the GNU linker is very broken
1.237 moko 12370: if test ia64 != "$host_cpu"; then
1.128 moko 12371: ld_shlibs=no
12372: cat <<_LT_EOF 1>&2
12373:
12374: *** Warning: the GNU linker, at least up to release 2.19, is reported
12375: *** to be unable to reliably create shared libraries on AIX.
12376: *** Therefore, libtool is disabling shared libraries support. If you
12377: *** really care for shared libraries, you may want to install binutils
12378: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12379: *** You will then need to restart the configuration process.
12380:
12381: _LT_EOF
12382: fi
12383: ;;
12384:
12385: amigaos*)
12386: case $host_cpu in
12387: powerpc)
12388: # see comment about AmigaOS4 .so support
1.237 moko 12389: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12390: archive_expsym_cmds=''
12391: ;;
12392: m68k)
12393: 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)'
12394: hardcode_libdir_flag_spec='-L$libdir'
12395: hardcode_minus_L=yes
12396: ;;
12397: esac
12398: ;;
12399:
12400: beos*)
12401: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12402: allow_undefined_flag=unsupported
12403: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12404: # support --undefined. This deserves some investigation. FIXME
1.237 moko 12405: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12406: else
12407: ld_shlibs=no
12408: fi
12409: ;;
12410:
1.237 moko 12411: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 12412: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12413: # as there is no search path for DLLs.
12414: hardcode_libdir_flag_spec='-L$libdir'
1.237 moko 12415: export_dynamic_flag_spec='$wl--export-all-symbols'
1.128 moko 12416: allow_undefined_flag=unsupported
12417: always_export_symbols=no
12418: enable_shared_with_static_runtimes=yes
12419: 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'
12420: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
1.237 moko 12421: file_list_spec='@'
1.128 moko 12422:
12423: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
1.237 moko 12424: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12425: # If the export-symbols file already is a .def file, use it as
12426: # is; otherwise, prepend EXPORTS...
12427: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12428: cp $export_symbols $output_objdir/$soname.def;
12429: else
12430: echo EXPORTS > $output_objdir/$soname.def;
12431: cat $export_symbols >> $output_objdir/$soname.def;
12432: fi~
12433: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
1.128 moko 12434: else
12435: ld_shlibs=no
12436: fi
12437: ;;
12438:
12439: haiku*)
1.237 moko 12440: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12441: link_all_deplibs=no
12442: ;;
12443:
12444: os2*)
12445: hardcode_libdir_flag_spec='-L$libdir'
12446: hardcode_minus_L=yes
12447: allow_undefined_flag=unsupported
12448: shrext_cmds=.dll
12449: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12450: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12451: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12452: $ECHO EXPORTS >> $output_objdir/$libname.def~
12453: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12454: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12455: emximp -o $lib $output_objdir/$libname.def'
12456: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12457: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12458: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12459: $ECHO EXPORTS >> $output_objdir/$libname.def~
12460: prefix_cmds="$SED"~
12461: if test EXPORTS = "`$SED 1q $export_symbols`"; then
12462: prefix_cmds="$prefix_cmds -e 1d";
12463: fi~
12464: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12465: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12466: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12467: emximp -o $lib $output_objdir/$libname.def'
12468: old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12469: enable_shared_with_static_runtimes=yes
12470: file_list_spec='@'
1.128 moko 12471: ;;
12472:
12473: interix[3-9]*)
12474: hardcode_direct=no
12475: hardcode_shlibpath_var=no
1.237 moko 12476: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12477: export_dynamic_flag_spec='$wl-E'
1.128 moko 12478: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12479: # Instead, shared libraries are loaded at an image base (0x10000000 by
12480: # default) and relocated if they conflict, which is a slow very memory
12481: # consuming and fragmenting process. To avoid this, we pick a random,
12482: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12483: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.237 moko 12484: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12485: 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'
1.128 moko 12486: ;;
12487:
12488: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12489: tmp_diet=no
1.237 moko 12490: if test linux-dietlibc = "$host_os"; then
1.128 moko 12491: case $cc_basename in
12492: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12493: esac
12494: fi
12495: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
1.237 moko 12496: && test no = "$tmp_diet"
1.128 moko 12497: then
12498: tmp_addflag=' $pic_flag'
12499: tmp_sharedflag='-shared'
12500: case $cc_basename,$host_cpu in
12501: pgcc*) # Portland Group C compiler
1.237 moko 12502: 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'
1.128 moko 12503: tmp_addflag=' $pic_flag'
12504: ;;
12505: pgf77* | pgf90* | pgf95* | pgfortran*)
12506: # Portland Group f77 and f90 compilers
1.237 moko 12507: 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'
1.128 moko 12508: tmp_addflag=' $pic_flag -Mnomain' ;;
12509: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12510: tmp_addflag=' -i_dynamic' ;;
12511: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12512: tmp_addflag=' -i_dynamic -nofor_main' ;;
12513: ifc* | ifort*) # Intel Fortran compiler
12514: tmp_addflag=' -nofor_main' ;;
12515: lf95*) # Lahey Fortran 8.1
12516: whole_archive_flag_spec=
12517: tmp_sharedflag='--shared' ;;
1.237 moko 12518: nagfor*) # NAGFOR 5.3
12519: tmp_sharedflag='-Wl,-shared' ;;
1.128 moko 12520: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12521: tmp_sharedflag='-qmkshrobj'
12522: tmp_addflag= ;;
12523: nvcc*) # Cuda Compiler Driver 2.2
1.237 moko 12524: 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'
1.128 moko 12525: compiler_needs_object=yes
12526: ;;
12527: esac
1.237 moko 12528: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 12529: *Sun\ C*) # Sun C 5.9
1.237 moko 12530: 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'
1.128 moko 12531: compiler_needs_object=yes
12532: tmp_sharedflag='-G' ;;
12533: *Sun\ F*) # Sun Fortran 8.3
12534: tmp_sharedflag='-G' ;;
12535: esac
1.237 moko 12536: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12537:
1.237 moko 12538: if test yes = "$supports_anon_versioning"; then
1.128 moko 12539: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.237 moko 12540: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12541: echo "local: *; };" >> $output_objdir/$libname.ver~
12542: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1.128 moko 12543: fi
12544:
12545: case $cc_basename in
1.237 moko 12546: tcc*)
12547: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12548: export_dynamic_flag_spec='-rdynamic'
12549: ;;
1.128 moko 12550: xlf* | bgf* | bgxlf* | mpixlf*)
12551: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12552: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
1.237 moko 12553: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 12554: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
1.237 moko 12555: if test yes = "$supports_anon_versioning"; then
1.128 moko 12556: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.237 moko 12557: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12558: echo "local: *; };" >> $output_objdir/$libname.ver~
12559: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
1.128 moko 12560: fi
12561: ;;
12562: esac
12563: else
12564: ld_shlibs=no
12565: fi
12566: ;;
12567:
1.237 moko 12568: *-mlibc)
12569: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12570: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12571: ;;
12572:
12573: netbsd* | netbsdelf*-gnu)
1.128 moko 12574: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12575: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12576: wlarc=
12577: else
1.237 moko 12578: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12579: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 12580: fi
12581: ;;
12582:
12583: solaris*)
12584: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12585: ld_shlibs=no
12586: cat <<_LT_EOF 1>&2
12587:
12588: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12589: *** create shared libraries on Solaris systems. Therefore, libtool
12590: *** is disabling shared libraries support. We urge you to upgrade GNU
12591: *** binutils to release 2.9.1 or newer. Another option is to modify
12592: *** your PATH or compiler configuration so that the native linker is
12593: *** used, and then restart.
12594:
12595: _LT_EOF
12596: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.237 moko 12597: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12598: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 12599: else
12600: ld_shlibs=no
12601: fi
12602: ;;
12603:
12604: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12605: case `$LD -v 2>&1` in
12606: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12607: ld_shlibs=no
12608: cat <<_LT_EOF 1>&2
12609:
1.237 moko 12610: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
1.128 moko 12611: *** reliably create shared libraries on SCO systems. Therefore, libtool
12612: *** is disabling shared libraries support. We urge you to upgrade GNU
12613: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12614: *** your PATH or compiler configuration so that the native linker is
12615: *** used, and then restart.
12616:
12617: _LT_EOF
12618: ;;
12619: *)
12620: # For security reasons, it is highly recommended that you always
12621: # use absolute paths for naming shared libraries, and exclude the
12622: # DT_RUNPATH tag from executables and libraries. But doing so
12623: # requires that you compile everything twice, which is a pain.
12624: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.237 moko 12625: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12626: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12627: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 12628: else
12629: ld_shlibs=no
12630: fi
12631: ;;
12632: esac
12633: ;;
12634:
12635: sunos4*)
12636: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12637: wlarc=
12638: hardcode_direct=yes
12639: hardcode_shlibpath_var=no
12640: ;;
12641:
12642: *)
12643: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.237 moko 12644: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12645: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
1.128 moko 12646: else
12647: ld_shlibs=no
12648: fi
12649: ;;
12650: esac
12651:
1.237 moko 12652: if test no = "$ld_shlibs"; then
1.128 moko 12653: runpath_var=
12654: hardcode_libdir_flag_spec=
12655: export_dynamic_flag_spec=
12656: whole_archive_flag_spec=
12657: fi
12658: else
12659: # PORTME fill in a description of your system's linker (not GNU ld)
12660: case $host_os in
12661: aix3*)
12662: allow_undefined_flag=unsupported
12663: always_export_symbols=yes
12664: 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'
12665: # Note: this linker hardcodes the directories in LIBPATH if there
12666: # are no directories specified by -L.
12667: hardcode_minus_L=yes
1.237 moko 12668: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
1.128 moko 12669: # Neither direct hardcoding nor static linking is supported with a
12670: # broken collect2.
12671: hardcode_direct=unsupported
12672: fi
12673: ;;
12674:
12675: aix[4-9]*)
1.237 moko 12676: if test ia64 = "$host_cpu"; then
1.128 moko 12677: # On IA64, the linker does run time linking by default, so we don't
12678: # have to do anything special.
12679: aix_use_runtimelinking=no
12680: exp_sym_flag='-Bexport'
1.237 moko 12681: no_entry_flag=
1.128 moko 12682: else
12683: # If we're using GNU nm, then we don't want the "-C" option.
1.237 moko 12684: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12685: # Without the "-l" option, or with the "-B" option, AIX nm treats
12686: # weak defined symbols like other global defined symbols, whereas
12687: # GNU nm marks them as "W".
12688: # While the 'weak' keyword is ignored in the Export File, we need
12689: # it in the Import File for the 'aix-soname' feature, so we have
12690: # to replace the "-B" option with "-P" for AIX nm.
1.128 moko 12691: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1.237 moko 12692: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1.128 moko 12693: else
1.237 moko 12694: export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1.128 moko 12695: fi
12696: aix_use_runtimelinking=no
12697:
12698: # Test if we are trying to use run time linking or normal
12699: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.237 moko 12700: # have runtime linking enabled, and use it for executables.
12701: # For shared libraries, we enable/disable runtime linking
12702: # depending on the kind of the shared library created -
12703: # when "with_aix_soname,aix_use_runtimelinking" is:
12704: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12705: # "aix,yes" lib.so shared, rtl:yes, for executables
12706: # lib.a static archive
12707: # "both,no" lib.so.V(shr.o) shared, rtl:yes
12708: # lib.a(lib.so.V) shared, rtl:no, for executables
12709: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12710: # lib.a(lib.so.V) shared, rtl:no
12711: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12712: # lib.a static archive
1.128 moko 12713: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12714: for ld_flag in $LDFLAGS; do
1.237 moko 12715: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
1.128 moko 12716: aix_use_runtimelinking=yes
12717: break
12718: fi
12719: done
1.237 moko 12720: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12721: # With aix-soname=svr4, we create the lib.so.V shared archives only,
12722: # so we don't have lib.a shared libs to link our executables.
12723: # We have to force runtime linking in this case.
12724: aix_use_runtimelinking=yes
12725: LDFLAGS="$LDFLAGS -Wl,-brtl"
12726: fi
1.128 moko 12727: ;;
12728: esac
12729:
12730: exp_sym_flag='-bexport'
12731: no_entry_flag='-bnoentry'
12732: fi
12733:
12734: # When large executables or shared objects are built, AIX ld can
12735: # have problems creating the table of contents. If linking a library
12736: # or program results in "error TOC overflow" add -mminimal-toc to
12737: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12738: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12739:
12740: archive_cmds=''
12741: hardcode_direct=yes
12742: hardcode_direct_absolute=yes
12743: hardcode_libdir_separator=':'
12744: link_all_deplibs=yes
1.237 moko 12745: file_list_spec='$wl-f,'
12746: case $with_aix_soname,$aix_use_runtimelinking in
12747: aix,*) ;; # traditional, no import file
12748: svr4,* | *,yes) # use import file
12749: # The Import File defines what to hardcode.
12750: hardcode_direct=no
12751: hardcode_direct_absolute=no
12752: ;;
12753: esac
1.128 moko 12754:
1.237 moko 12755: if test yes = "$GCC"; then
1.128 moko 12756: case $host_os in aix4.[012]|aix4.[012].*)
12757: # We only want to do this on AIX 4.2 and lower, the check
12758: # below for broken collect2 doesn't work under 4.3+
1.237 moko 12759: collect2name=`$CC -print-prog-name=collect2`
1.128 moko 12760: if test -f "$collect2name" &&
12761: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12762: then
12763: # We have reworked collect2
12764: :
12765: else
12766: # We have old collect2
12767: hardcode_direct=unsupported
12768: # It fails to find uninstalled libraries when the uninstalled
12769: # path is not listed in the libpath. Setting hardcode_minus_L
12770: # to unsupported forces relinking
12771: hardcode_minus_L=yes
12772: hardcode_libdir_flag_spec='-L$libdir'
12773: hardcode_libdir_separator=
12774: fi
12775: ;;
12776: esac
12777: shared_flag='-shared'
1.237 moko 12778: if test yes = "$aix_use_runtimelinking"; then
12779: shared_flag="$shared_flag "'$wl-G'
1.128 moko 12780: fi
1.237 moko 12781: # Need to ensure runtime linking is disabled for the traditional
12782: # shared library, or the linker may eventually find shared libraries
12783: # /with/ Import File - we do not want to mix them.
12784: shared_flag_aix='-shared'
12785: shared_flag_svr4='-shared $wl-G'
1.128 moko 12786: else
12787: # not using gcc
1.237 moko 12788: if test ia64 = "$host_cpu"; then
1.128 moko 12789: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12790: # chokes on -Wl,-G. The following line is correct:
12791: shared_flag='-G'
12792: else
1.237 moko 12793: if test yes = "$aix_use_runtimelinking"; then
12794: shared_flag='$wl-G'
1.128 moko 12795: else
1.237 moko 12796: shared_flag='$wl-bM:SRE'
1.128 moko 12797: fi
1.237 moko 12798: shared_flag_aix='$wl-bM:SRE'
12799: shared_flag_svr4='$wl-G'
1.128 moko 12800: fi
12801: fi
12802:
1.237 moko 12803: export_dynamic_flag_spec='$wl-bexpall'
1.128 moko 12804: # It seems that -bexpall does not export symbols beginning with
12805: # underscore (_), so it is better to generate a list of symbols to export.
12806: always_export_symbols=yes
1.237 moko 12807: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1.128 moko 12808: # Warning - without using the other runtime loading flags (-brtl),
12809: # -berok will link without error, but may produce a broken library.
12810: allow_undefined_flag='-berok'
12811: # Determine the default libpath from the value encoded in an
12812: # empty executable.
1.237 moko 12813: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 12814: aix_libpath=$lt_cv_aix_libpath
12815: else
1.237 moko 12816: if test ${lt_cv_aix_libpath_+y}
12817: then :
12818: printf %s "(cached) " >&6
12819: else case e in #(
12820: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12821: /* end confdefs.h. */
12822:
12823: int
1.237 moko 12824: main (void)
1.128 moko 12825: {
12826:
12827: ;
12828: return 0;
12829: }
12830: _ACEOF
1.237 moko 12831: if ac_fn_c_try_link "$LINENO"
12832: then :
1.128 moko 12833:
12834: lt_aix_libpath_sed='
12835: /Import File Strings/,/^$/ {
12836: /^0/ {
12837: s/^0 *\([^ ]*\) *$/\1/
12838: p
12839: }
12840: }'
12841: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12842: # Check for a 64-bit object if we didn't find anything.
12843: if test -z "$lt_cv_aix_libpath_"; then
12844: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12845: fi
12846: fi
1.237 moko 12847: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 12848: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12849: if test -z "$lt_cv_aix_libpath_"; then
1.237 moko 12850: lt_cv_aix_libpath_=/usr/lib:/lib
1.128 moko 12851: fi
1.237 moko 12852: ;;
12853: esac
1.128 moko 12854: fi
12855:
12856: aix_libpath=$lt_cv_aix_libpath_
12857: fi
12858:
1.237 moko 12859: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12860: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
1.128 moko 12861: else
1.237 moko 12862: if test ia64 = "$host_cpu"; then
12863: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
1.128 moko 12864: allow_undefined_flag="-z nodefs"
1.237 moko 12865: 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"
1.128 moko 12866: else
12867: # Determine the default libpath from the value encoded in an
12868: # empty executable.
1.237 moko 12869: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 12870: aix_libpath=$lt_cv_aix_libpath
12871: else
1.237 moko 12872: if test ${lt_cv_aix_libpath_+y}
12873: then :
12874: printf %s "(cached) " >&6
12875: else case e in #(
12876: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12877: /* end confdefs.h. */
12878:
12879: int
1.237 moko 12880: main (void)
1.128 moko 12881: {
12882:
12883: ;
12884: return 0;
12885: }
12886: _ACEOF
1.237 moko 12887: if ac_fn_c_try_link "$LINENO"
12888: then :
1.128 moko 12889:
12890: lt_aix_libpath_sed='
12891: /Import File Strings/,/^$/ {
12892: /^0/ {
12893: s/^0 *\([^ ]*\) *$/\1/
12894: p
12895: }
12896: }'
12897: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12898: # Check for a 64-bit object if we didn't find anything.
12899: if test -z "$lt_cv_aix_libpath_"; then
12900: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12901: fi
12902: fi
1.237 moko 12903: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 12904: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12905: if test -z "$lt_cv_aix_libpath_"; then
1.237 moko 12906: lt_cv_aix_libpath_=/usr/lib:/lib
1.128 moko 12907: fi
1.237 moko 12908: ;;
12909: esac
1.128 moko 12910: fi
12911:
12912: aix_libpath=$lt_cv_aix_libpath_
12913: fi
12914:
1.237 moko 12915: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
1.128 moko 12916: # Warning - without using the other run time loading flags,
12917: # -berok will link without error, but may produce a broken library.
1.237 moko 12918: no_undefined_flag=' $wl-bernotok'
12919: allow_undefined_flag=' $wl-berok'
12920: if test yes = "$with_gnu_ld"; then
1.128 moko 12921: # We only use this code for GNU lds that support --whole-archive.
1.237 moko 12922: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
1.128 moko 12923: else
12924: # Exported symbols can be pulled into shared objects from archives
12925: whole_archive_flag_spec='$convenience'
12926: fi
12927: archive_cmds_need_lc=yes
1.237 moko 12928: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12929: # -brtl affects multiple linker settings, -berok does not and is overridden later
12930: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12931: if test svr4 != "$with_aix_soname"; then
12932: # This is similar to how AIX traditionally builds its shared libraries.
12933: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12934: fi
12935: if test aix != "$with_aix_soname"; then
12936: archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12937: else
12938: # used by -dlpreopen to get the symbols
12939: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12940: fi
12941: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
1.128 moko 12942: fi
12943: fi
12944: ;;
12945:
12946: amigaos*)
12947: case $host_cpu in
12948: powerpc)
12949: # see comment about AmigaOS4 .so support
1.237 moko 12950: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12951: archive_expsym_cmds=''
12952: ;;
12953: m68k)
12954: 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)'
12955: hardcode_libdir_flag_spec='-L$libdir'
12956: hardcode_minus_L=yes
12957: ;;
12958: esac
12959: ;;
12960:
12961: bsdi[45]*)
12962: export_dynamic_flag_spec=-rdynamic
12963: ;;
12964:
1.237 moko 12965: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 12966: # When not using gcc, we currently assume that we are using
1.237 moko 12967: # Microsoft Visual C++ or Intel C++ Compiler.
1.128 moko 12968: # hardcode_libdir_flag_spec is actually meaningless, as there is
12969: # no search path for DLLs.
12970: case $cc_basename in
1.237 moko 12971: cl* | icl*)
12972: # Native MSVC or ICC
1.128 moko 12973: hardcode_libdir_flag_spec=' '
12974: allow_undefined_flag=unsupported
12975: always_export_symbols=yes
12976: file_list_spec='@'
12977: # Tell ltmain to make .lib files, not .a files.
12978: libext=lib
12979: # Tell ltmain to make .dll files, not .so files.
1.237 moko 12980: shrext_cmds=.dll
1.128 moko 12981: # FIXME: Setting linknames here is a bad hack.
1.237 moko 12982: archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12983: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12984: cp "$export_symbols" "$output_objdir/$soname.def";
12985: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12986: else
12987: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12988: fi~
12989: $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12990: linknames='
1.128 moko 12991: # The linker will not automatically build a static lib if we build a DLL.
12992: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12993: enable_shared_with_static_runtimes=yes
12994: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12995: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12996: # Don't use ranlib
12997: old_postinstall_cmds='chmod 644 $oldlib'
12998: postlink_cmds='lt_outputfile="@OUTPUT@"~
1.237 moko 12999: lt_tool_outputfile="@TOOL_OUTPUT@"~
13000: case $lt_outputfile in
13001: *.exe|*.EXE) ;;
13002: *)
13003: lt_outputfile=$lt_outputfile.exe
13004: lt_tool_outputfile=$lt_tool_outputfile.exe
13005: ;;
13006: esac~
13007: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13008: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13009: $RM "$lt_outputfile.manifest";
13010: fi'
1.128 moko 13011: ;;
13012: *)
1.237 moko 13013: # Assume MSVC and ICC wrapper
1.128 moko 13014: hardcode_libdir_flag_spec=' '
13015: allow_undefined_flag=unsupported
13016: # Tell ltmain to make .lib files, not .a files.
13017: libext=lib
13018: # Tell ltmain to make .dll files, not .so files.
1.237 moko 13019: shrext_cmds=.dll
1.128 moko 13020: # FIXME: Setting linknames here is a bad hack.
13021: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13022: # The linker will automatically build a .lib file if we build a DLL.
13023: old_archive_from_new_cmds='true'
13024: # FIXME: Should let the user specify the lib program.
13025: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13026: enable_shared_with_static_runtimes=yes
13027: ;;
13028: esac
13029: ;;
13030:
13031: darwin* | rhapsody*)
13032:
13033:
13034: archive_cmds_need_lc=no
13035: hardcode_direct=no
13036: hardcode_automatic=yes
13037: hardcode_shlibpath_var=unsupported
1.237 moko 13038: if test yes = "$lt_cv_ld_force_load"; then
13039: 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.128 moko 13040:
13041: else
13042: whole_archive_flag_spec=''
13043: fi
13044: link_all_deplibs=yes
1.237 moko 13045: allow_undefined_flag=$_lt_dar_allow_undefined
1.128 moko 13046: case $cc_basename in
1.237 moko 13047: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1.128 moko 13048: *) _lt_dar_can_shared=$GCC ;;
13049: esac
1.237 moko 13050: if test yes = "$_lt_dar_can_shared"; then
1.128 moko 13051: output_verbose_link_cmd=func_echo_all
1.237 moko 13052: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13053: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13054: 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"
13055: 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"
1.128 moko 13056:
13057: else
13058: ld_shlibs=no
13059: fi
13060:
13061: ;;
13062:
13063: dgux*)
13064: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13065: hardcode_libdir_flag_spec='-L$libdir'
13066: hardcode_shlibpath_var=no
13067: ;;
13068:
13069: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13070: # support. Future versions do this automatically, but an explicit c++rt0.o
13071: # does not break anything, and helps significantly (at the cost of a little
13072: # extra space).
13073: freebsd2.2*)
13074: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13075: hardcode_libdir_flag_spec='-R$libdir'
13076: hardcode_direct=yes
13077: hardcode_shlibpath_var=no
13078: ;;
13079:
13080: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13081: freebsd2.*)
13082: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13083: hardcode_direct=yes
13084: hardcode_minus_L=yes
13085: hardcode_shlibpath_var=no
13086: ;;
13087:
13088: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.237 moko 13089: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 13090: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13091: hardcode_libdir_flag_spec='-R$libdir'
13092: hardcode_direct=yes
13093: hardcode_shlibpath_var=no
13094: ;;
13095:
13096: hpux9*)
1.237 moko 13097: if test yes = "$GCC"; then
13098: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.128 moko 13099: else
1.237 moko 13100: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.128 moko 13101: fi
1.237 moko 13102: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.128 moko 13103: hardcode_libdir_separator=:
13104: hardcode_direct=yes
13105:
13106: # hardcode_minus_L: Not really in the search PATH,
13107: # but as the default location of the library.
13108: hardcode_minus_L=yes
1.237 moko 13109: export_dynamic_flag_spec='$wl-E'
1.128 moko 13110: ;;
13111:
13112: hpux10*)
1.237 moko 13113: if test yes,no = "$GCC,$with_gnu_ld"; then
13114: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13115: else
13116: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13117: fi
1.237 moko 13118: if test no = "$with_gnu_ld"; then
13119: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.128 moko 13120: hardcode_libdir_separator=:
13121: hardcode_direct=yes
13122: hardcode_direct_absolute=yes
1.237 moko 13123: export_dynamic_flag_spec='$wl-E'
1.128 moko 13124: # hardcode_minus_L: Not really in the search PATH,
13125: # but as the default location of the library.
13126: hardcode_minus_L=yes
13127: fi
13128: ;;
13129:
13130: hpux11*)
1.237 moko 13131: if test yes,no = "$GCC,$with_gnu_ld"; then
1.128 moko 13132: case $host_cpu in
13133: hppa*64*)
1.237 moko 13134: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13135: ;;
13136: ia64*)
1.237 moko 13137: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13138: ;;
13139: *)
1.237 moko 13140: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13141: ;;
13142: esac
13143: else
13144: case $host_cpu in
13145: hppa*64*)
1.237 moko 13146: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13147: ;;
13148: ia64*)
1.237 moko 13149: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13150: ;;
13151: *)
13152:
13153: # Older versions of the 11.00 compiler do not understand -b yet
13154: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.237 moko 13155: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13156: printf %s "checking if $CC understands -b... " >&6; }
13157: if test ${lt_cv_prog_compiler__b+y}
13158: then :
13159: printf %s "(cached) " >&6
13160: else case e in #(
13161: e) lt_cv_prog_compiler__b=no
13162: save_LDFLAGS=$LDFLAGS
1.128 moko 13163: LDFLAGS="$LDFLAGS -b"
13164: echo "$lt_simple_link_test_code" > conftest.$ac_ext
13165: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13166: # The linker can only warn and ignore the option if not recognized
13167: # So say no if there are warnings
13168: if test -s conftest.err; then
13169: # Append any errors to the config.log.
13170: cat conftest.err 1>&5
13171: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13172: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13173: if diff conftest.exp conftest.er2 >/dev/null; then
13174: lt_cv_prog_compiler__b=yes
13175: fi
13176: else
13177: lt_cv_prog_compiler__b=yes
13178: fi
13179: fi
13180: $RM -r conftest*
1.237 moko 13181: LDFLAGS=$save_LDFLAGS
13182: ;;
13183: esac
1.128 moko 13184: fi
1.237 moko 13185: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13186: printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 13187:
1.237 moko 13188: if test yes = "$lt_cv_prog_compiler__b"; then
13189: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13190: else
13191: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13192: fi
13193:
13194: ;;
13195: esac
13196: fi
1.237 moko 13197: if test no = "$with_gnu_ld"; then
13198: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.128 moko 13199: hardcode_libdir_separator=:
13200:
13201: case $host_cpu in
13202: hppa*64*|ia64*)
13203: hardcode_direct=no
13204: hardcode_shlibpath_var=no
13205: ;;
13206: *)
13207: hardcode_direct=yes
13208: hardcode_direct_absolute=yes
1.237 moko 13209: export_dynamic_flag_spec='$wl-E'
1.128 moko 13210:
13211: # hardcode_minus_L: Not really in the search PATH,
13212: # but as the default location of the library.
13213: hardcode_minus_L=yes
13214: ;;
13215: esac
13216: fi
13217: ;;
13218:
13219: irix5* | irix6* | nonstopux*)
1.237 moko 13220: if test yes = "$GCC"; then
13221: 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'
1.128 moko 13222: # Try to use the -exported_symbol ld option, if it does not
13223: # work, assume that -exports_file does not work either and
13224: # implicitly export all symbols.
13225: # This should be the same for all languages, so no per-tag cache variable.
1.237 moko 13226: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13227: printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13228: if test ${lt_cv_irix_exported_symbol+y}
13229: then :
13230: printf %s "(cached) " >&6
13231: else case e in #(
13232: e) save_LDFLAGS=$LDFLAGS
13233: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1.150 moko 13234: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13235: /* end confdefs.h. */
13236: int foo (void) { return 0; }
13237: _ACEOF
1.237 moko 13238: if ac_fn_c_try_link "$LINENO"
13239: then :
1.128 moko 13240: lt_cv_irix_exported_symbol=yes
1.237 moko 13241: else case e in #(
13242: e) lt_cv_irix_exported_symbol=no ;;
13243: esac
1.128 moko 13244: fi
1.237 moko 13245: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 13246: conftest$ac_exeext conftest.$ac_ext
1.237 moko 13247: LDFLAGS=$save_LDFLAGS ;;
13248: esac
1.128 moko 13249: fi
1.237 moko 13250: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13251: printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13252: if test yes = "$lt_cv_irix_exported_symbol"; then
13253: 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'
1.128 moko 13254: fi
1.237 moko 13255: link_all_deplibs=no
1.128 moko 13256: else
1.237 moko 13257: 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'
13258: 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'
1.128 moko 13259: fi
13260: archive_cmds_need_lc='no'
1.237 moko 13261: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13262: hardcode_libdir_separator=:
13263: inherit_rpath=yes
13264: link_all_deplibs=yes
13265: ;;
13266:
1.237 moko 13267: linux*)
13268: case $cc_basename in
13269: tcc*)
13270: # Fabrice Bellard et al's Tiny C Compiler
13271: ld_shlibs=yes
13272: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13273: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13274: ;;
13275: esac
13276: ;;
13277:
13278: *-mlibc)
13279: ;;
13280:
13281: netbsd* | netbsdelf*-gnu)
1.128 moko 13282: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13283: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13284: else
13285: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13286: fi
13287: hardcode_libdir_flag_spec='-R$libdir'
13288: hardcode_direct=yes
13289: hardcode_shlibpath_var=no
13290: ;;
13291:
13292: newsos6)
13293: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13294: hardcode_direct=yes
1.237 moko 13295: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13296: hardcode_libdir_separator=:
13297: hardcode_shlibpath_var=no
13298: ;;
13299:
13300: *nto* | *qnx*)
13301: ;;
13302:
13303: openbsd*)
13304: if test -f /usr/libexec/ld.so; then
13305: hardcode_direct=yes
13306: hardcode_shlibpath_var=no
13307: hardcode_direct_absolute=yes
1.237 moko 13308: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1.128 moko 13309: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.237 moko 13310: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13311: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13312: export_dynamic_flag_spec='$wl-E'
1.128 moko 13313: else
1.237 moko 13314: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13315: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
1.128 moko 13316: fi
13317: else
13318: ld_shlibs=no
13319: fi
13320: ;;
13321:
13322: os2*)
13323: hardcode_libdir_flag_spec='-L$libdir'
13324: hardcode_minus_L=yes
13325: allow_undefined_flag=unsupported
1.237 moko 13326: shrext_cmds=.dll
13327: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13328: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13329: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13330: $ECHO EXPORTS >> $output_objdir/$libname.def~
13331: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13332: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13333: emximp -o $lib $output_objdir/$libname.def'
13334: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13335: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13336: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13337: $ECHO EXPORTS >> $output_objdir/$libname.def~
13338: prefix_cmds="$SED"~
13339: if test EXPORTS = "`$SED 1q $export_symbols`"; then
13340: prefix_cmds="$prefix_cmds -e 1d";
13341: fi~
13342: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13343: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13344: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13345: emximp -o $lib $output_objdir/$libname.def'
13346: old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13347: enable_shared_with_static_runtimes=yes
13348: file_list_spec='@'
1.128 moko 13349: ;;
13350:
13351: osf3*)
1.237 moko 13352: if test yes = "$GCC"; then
13353: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13354: 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'
1.128 moko 13355: else
13356: allow_undefined_flag=' -expect_unresolved \*'
1.237 moko 13357: 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'
1.128 moko 13358: fi
13359: archive_cmds_need_lc='no'
1.237 moko 13360: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13361: hardcode_libdir_separator=:
13362: ;;
13363:
13364: osf4* | osf5*) # as osf3* with the addition of -msym flag
1.237 moko 13365: if test yes = "$GCC"; then
13366: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13367: 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'
13368: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13369: else
13370: allow_undefined_flag=' -expect_unresolved \*'
1.237 moko 13371: 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'
1.128 moko 13372: 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~
1.237 moko 13373: $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'
1.128 moko 13374:
13375: # Both c and cxx compiler support -rpath directly
13376: hardcode_libdir_flag_spec='-rpath $libdir'
13377: fi
13378: archive_cmds_need_lc='no'
13379: hardcode_libdir_separator=:
13380: ;;
13381:
1.237 moko 13382: serenity*)
13383: ;;
13384:
1.128 moko 13385: solaris*)
13386: no_undefined_flag=' -z defs'
1.237 moko 13387: if test yes = "$GCC"; then
13388: wlarc='$wl'
13389: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13390: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 13391: $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'
1.128 moko 13392: else
13393: case `$CC -V 2>&1` in
13394: *"Compilers 5.0"*)
13395: wlarc=''
1.237 moko 13396: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.128 moko 13397: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 13398: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
1.128 moko 13399: ;;
13400: *)
1.237 moko 13401: wlarc='$wl'
13402: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13403: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 13404: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1.128 moko 13405: ;;
13406: esac
13407: fi
13408: hardcode_libdir_flag_spec='-R$libdir'
13409: hardcode_shlibpath_var=no
13410: case $host_os in
13411: solaris2.[0-5] | solaris2.[0-5].*) ;;
13412: *)
13413: # The compiler driver will combine and reorder linker options,
1.237 moko 13414: # but understands '-z linker_flag'. GCC discards it without '$wl',
1.128 moko 13415: # but is careful enough not to reorder.
13416: # Supported since Solaris 2.6 (maybe 2.5.1?)
1.237 moko 13417: if test yes = "$GCC"; then
13418: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1.128 moko 13419: else
13420: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13421: fi
13422: ;;
13423: esac
13424: link_all_deplibs=yes
13425: ;;
13426:
13427: sunos4*)
1.237 moko 13428: if test sequent = "$host_vendor"; then
1.128 moko 13429: # Use $CC to link under sequent, because it throws in some extra .o
13430: # files that make .init and .fini sections work.
1.237 moko 13431: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13432: else
13433: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13434: fi
13435: hardcode_libdir_flag_spec='-L$libdir'
13436: hardcode_direct=yes
13437: hardcode_minus_L=yes
13438: hardcode_shlibpath_var=no
13439: ;;
13440:
13441: sysv4)
13442: case $host_vendor in
13443: sni)
13444: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13445: hardcode_direct=yes # is this really true???
13446: ;;
13447: siemens)
13448: ## LD is ld it makes a PLAMLIB
13449: ## CC just makes a GrossModule.
13450: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13451: reload_cmds='$CC -r -o $output$reload_objs'
13452: hardcode_direct=no
13453: ;;
13454: motorola)
13455: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13456: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13457: ;;
13458: esac
13459: runpath_var='LD_RUN_PATH'
13460: hardcode_shlibpath_var=no
13461: ;;
13462:
13463: sysv4.3*)
13464: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13465: hardcode_shlibpath_var=no
13466: export_dynamic_flag_spec='-Bexport'
13467: ;;
13468:
13469: sysv4*MP*)
13470: if test -d /usr/nec; then
13471: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472: hardcode_shlibpath_var=no
13473: runpath_var=LD_RUN_PATH
13474: hardcode_runpath_var=yes
13475: ld_shlibs=yes
13476: fi
13477: ;;
13478:
13479: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.237 moko 13480: no_undefined_flag='$wl-z,text'
1.128 moko 13481: archive_cmds_need_lc=no
13482: hardcode_shlibpath_var=no
13483: runpath_var='LD_RUN_PATH'
13484:
1.237 moko 13485: if test yes = "$GCC"; then
13486: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13487: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13488: else
1.237 moko 13489: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13491: fi
13492: ;;
13493:
13494: sysv5* | sco3.2v5* | sco5v6*)
1.237 moko 13495: # Note: We CANNOT use -z defs as we might desire, because we do not
1.128 moko 13496: # link with -lc, and that would cause any symbols used from libc to
13497: # always be unresolved, which means just about no library would
13498: # ever link correctly. If we're not using GNU ld we use -z text
13499: # though, which does catch some bad symbols but isn't as heavy-handed
13500: # as -z defs.
1.237 moko 13501: no_undefined_flag='$wl-z,text'
13502: allow_undefined_flag='$wl-z,nodefs'
1.128 moko 13503: archive_cmds_need_lc=no
13504: hardcode_shlibpath_var=no
1.237 moko 13505: hardcode_libdir_flag_spec='$wl-R,$libdir'
1.128 moko 13506: hardcode_libdir_separator=':'
13507: link_all_deplibs=yes
1.237 moko 13508: export_dynamic_flag_spec='$wl-Bexport'
1.128 moko 13509: runpath_var='LD_RUN_PATH'
13510:
1.237 moko 13511: if test yes = "$GCC"; then
13512: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13513: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13514: else
1.237 moko 13515: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13516: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13517: fi
13518: ;;
13519:
13520: uts4*)
13521: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13522: hardcode_libdir_flag_spec='-L$libdir'
13523: hardcode_shlibpath_var=no
13524: ;;
13525:
13526: *)
13527: ld_shlibs=no
13528: ;;
13529: esac
13530:
1.237 moko 13531: if test sni = "$host_vendor"; then
1.128 moko 13532: case $host in
13533: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.237 moko 13534: export_dynamic_flag_spec='$wl-Blargedynsym'
1.128 moko 13535: ;;
13536: esac
13537: fi
13538: fi
13539:
1.237 moko 13540: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13541: printf "%s\n" "$ld_shlibs" >&6; }
13542: test no = "$ld_shlibs" && can_build_shared=no
1.128 moko 13543:
13544: with_gnu_ld=$with_gnu_ld
13545:
13546:
13547:
13548:
13549:
13550:
13551:
13552:
13553:
13554:
13555:
13556:
13557:
13558:
13559:
13560: #
13561: # Do we need to explicitly link libc?
13562: #
13563: case "x$archive_cmds_need_lc" in
13564: x|xyes)
13565: # Assume -lc should be added
13566: archive_cmds_need_lc=yes
13567:
1.237 moko 13568: if test yes,yes = "$GCC,$enable_shared"; then
1.128 moko 13569: case $archive_cmds in
13570: *'~'*)
13571: # FIXME: we may have to deal with multi-command sequences.
13572: ;;
13573: '$CC '*)
13574: # Test whether the compiler implicitly links with -lc since on some
13575: # systems, -lgcc has to come before -lc. If gcc already passes -lc
13576: # to ld, don't add -lc before -lgcc.
1.237 moko 13577: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13578: printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13579: if test ${lt_cv_archive_cmds_need_lc+y}
13580: then :
13581: printf %s "(cached) " >&6
13582: else case e in #(
13583: e) $RM conftest*
1.128 moko 13584: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13585:
1.150 moko 13586: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 13587: (eval $ac_compile) 2>&5
13588: ac_status=$?
1.237 moko 13589: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 13590: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 13591: soname=conftest
13592: lib=conftest
13593: libobjs=conftest.$ac_objext
13594: deplibs=
13595: wl=$lt_prog_compiler_wl
13596: pic_flag=$lt_prog_compiler_pic
13597: compiler_flags=-v
13598: linker_flags=-v
13599: verstring=
13600: output_objdir=.
13601: libname=conftest
13602: lt_save_allow_undefined_flag=$allow_undefined_flag
13603: allow_undefined_flag=
1.150 moko 13604: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 13605: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13606: ac_status=$?
1.237 moko 13607: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 13608: test $ac_status = 0; }
1.128 moko 13609: then
13610: lt_cv_archive_cmds_need_lc=no
13611: else
13612: lt_cv_archive_cmds_need_lc=yes
13613: fi
13614: allow_undefined_flag=$lt_save_allow_undefined_flag
13615: else
13616: cat conftest.err 1>&5
13617: fi
13618: $RM conftest*
1.237 moko 13619: ;;
13620: esac
1.128 moko 13621: fi
1.237 moko 13622: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13623: printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 13624: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13625: ;;
13626: esac
13627: fi
13628: ;;
13629: esac
13630:
13631:
13632:
13633:
13634:
13635:
13636:
13637:
13638:
13639:
13640:
13641:
13642:
13643:
13644:
13645:
13646:
13647:
13648:
13649:
13650:
13651:
13652:
13653:
13654:
13655:
13656:
13657:
13658:
13659:
13660:
13661:
13662:
13663:
13664:
13665:
13666:
13667:
13668:
13669:
13670:
13671:
13672:
13673:
13674:
13675:
13676:
13677:
13678:
13679:
13680:
13681:
13682:
13683:
13684:
13685:
13686:
13687:
13688:
13689:
13690:
13691:
13692:
13693:
13694:
13695:
13696:
13697:
13698:
13699:
13700:
13701:
13702:
13703:
13704:
13705:
13706:
13707:
13708:
13709:
13710:
13711:
13712:
13713:
13714:
13715:
13716:
13717:
13718:
13719:
13720:
13721:
13722:
13723:
13724:
13725:
13726:
13727:
13728:
13729:
13730:
13731:
13732:
13733:
13734:
13735:
13736:
13737:
13738:
13739:
13740:
13741:
13742:
13743:
13744:
13745:
13746:
13747:
13748:
13749:
13750:
13751:
13752:
13753:
13754:
13755:
13756:
13757:
13758:
13759:
13760:
13761:
13762:
13763:
13764:
13765:
13766:
13767:
13768:
13769:
13770:
13771:
13772:
13773:
13774:
13775:
13776:
13777:
13778:
13779:
13780:
13781:
1.237 moko 13782: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13783: printf %s "checking dynamic linker characteristics... " >&6; }
1.128 moko 13784:
1.237 moko 13785: if test yes = "$GCC"; then
1.128 moko 13786: case $host_os in
1.237 moko 13787: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13788: *) lt_awk_arg='/^libraries:/' ;;
1.128 moko 13789: esac
13790: case $host_os in
1.237 moko 13791: mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13792: *) lt_sed_strip_eq='s|=/|/|g' ;;
1.128 moko 13793: esac
13794: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13795: case $lt_search_path_spec in
13796: *\;*)
13797: # if the path contains ";" then we assume it to be the separator
13798: # otherwise default to the standard path separator (i.e. ":") - it is
13799: # assumed that no part of a normal pathname contains ";" but that should
13800: # okay in the real world where ";" in dirpaths is itself problematic.
13801: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13802: ;;
13803: *)
13804: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13805: ;;
13806: esac
13807: # Ok, now we have the path, separated by spaces, we can step through it
1.237 moko 13808: # and add multilib dir if necessary...
1.128 moko 13809: lt_tmp_lt_search_path_spec=
1.237 moko 13810: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13811: # ...but if some path component already ends with the multilib dir we assume
13812: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13813: case "$lt_multi_os_dir; $lt_search_path_spec " in
13814: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13815: lt_multi_os_dir=
13816: ;;
13817: esac
1.128 moko 13818: for lt_sys_path in $lt_search_path_spec; do
1.237 moko 13819: if test -d "$lt_sys_path$lt_multi_os_dir"; then
13820: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13821: elif test -n "$lt_multi_os_dir"; then
1.128 moko 13822: test -d "$lt_sys_path" && \
13823: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13824: fi
13825: done
13826: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1.237 moko 13827: BEGIN {RS = " "; FS = "/|\n";} {
13828: lt_foo = "";
13829: lt_count = 0;
1.128 moko 13830: for (lt_i = NF; lt_i > 0; lt_i--) {
13831: if ($lt_i != "" && $lt_i != ".") {
13832: if ($lt_i == "..") {
13833: lt_count++;
13834: } else {
13835: if (lt_count == 0) {
1.237 moko 13836: lt_foo = "/" $lt_i lt_foo;
1.128 moko 13837: } else {
13838: lt_count--;
13839: }
13840: }
13841: }
13842: }
13843: if (lt_foo != "") { lt_freq[lt_foo]++; }
13844: if (lt_freq[lt_foo] == 1) { print lt_foo; }
13845: }'`
13846: # AWK program above erroneously prepends '/' to C:/dos/paths
13847: # for these hosts.
13848: case $host_os in
1.237 moko 13849: mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13850: $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
1.128 moko 13851: esac
13852: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13853: else
13854: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13855: fi
13856: library_names_spec=
13857: libname_spec='lib$name'
13858: soname_spec=
1.237 moko 13859: shrext_cmds=.so
1.128 moko 13860: postinstall_cmds=
13861: postuninstall_cmds=
13862: finish_cmds=
13863: finish_eval=
13864: shlibpath_var=
13865: shlibpath_overrides_runpath=unknown
13866: version_type=none
13867: dynamic_linker="$host_os ld.so"
13868: sys_lib_dlsearch_path_spec="/lib /usr/lib"
13869: need_lib_prefix=unknown
13870: hardcode_into_libs=no
13871:
13872: # when you set need_version to no, make sure it does not cause -set_version
13873: # flags to be left without arguments
13874: need_version=unknown
13875:
1.237 moko 13876:
13877:
1.128 moko 13878: case $host_os in
13879: aix3*)
13880: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 13881: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1.128 moko 13882: shlibpath_var=LIBPATH
13883:
13884: # AIX 3 has no versioning support, so we append a major version to the name.
1.237 moko 13885: soname_spec='$libname$release$shared_ext$major'
1.128 moko 13886: ;;
13887:
13888: aix[4-9]*)
13889: version_type=linux # correct to gnu/linux during the next big refactor
13890: need_lib_prefix=no
13891: need_version=no
13892: hardcode_into_libs=yes
1.237 moko 13893: if test ia64 = "$host_cpu"; then
1.128 moko 13894: # AIX 5 supports IA64
1.237 moko 13895: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1.128 moko 13896: shlibpath_var=LD_LIBRARY_PATH
13897: else
13898: # With GCC up to 2.95.x, collect2 would create an import file
13899: # for dependence libraries. The import file would start with
1.237 moko 13900: # the line '#! .'. This would cause the generated library to
13901: # depend on '.', always an invalid library. This was fixed in
1.128 moko 13902: # development snapshots of GCC prior to 3.0.
13903: case $host_os in
13904: aix4 | aix4.[01] | aix4.[01].*)
13905: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13906: echo ' yes '
1.237 moko 13907: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1.128 moko 13908: :
13909: else
13910: can_build_shared=no
13911: fi
13912: ;;
13913: esac
1.237 moko 13914: # Using Import Files as archive members, it is possible to support
13915: # filename-based versioning of shared library archives on AIX. While
13916: # this would work for both with and without runtime linking, it will
13917: # prevent static linking of such archives. So we do filename-based
13918: # shared library versioning with .so extension only, which is used
13919: # when both runtime linking and shared linking is enabled.
13920: # Unfortunately, runtime linking may impact performance, so we do
13921: # not want this to be the default eventually. Also, we use the
13922: # versioned .so libs for executables only if there is the -brtl
13923: # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13924: # To allow for filename-based versioning support, we need to create
13925: # libNAME.so.V as an archive file, containing:
13926: # *) an Import File, referring to the versioned filename of the
13927: # archive as well as the shared archive member, telling the
13928: # bitwidth (32 or 64) of that shared object, and providing the
13929: # list of exported symbols of that shared object, eventually
13930: # decorated with the 'weak' keyword
13931: # *) the shared object with the F_LOADONLY flag set, to really avoid
13932: # it being seen by the linker.
13933: # At run time we better use the real file rather than another symlink,
13934: # but for link time we create the symlink libNAME.so -> libNAME.so.V
13935:
13936: case $with_aix_soname,$aix_use_runtimelinking in
13937: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1.128 moko 13938: # soname into executable. Probably we can add versioning support to
13939: # collect2, so additional links can be useful in future.
1.237 moko 13940: aix,yes) # traditional libtool
13941: dynamic_linker='AIX unversionable lib.so'
1.128 moko 13942: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13943: # instead of lib<name>.a to let people know that these are not
13944: # typical AIX shared libraries.
1.237 moko 13945: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13946: ;;
13947: aix,no) # traditional AIX only
13948: dynamic_linker='AIX lib.a(lib.so.V)'
1.128 moko 13949: # We preserve .a as extension for shared libraries through AIX4.2
13950: # and later when we are not doing run time linking.
1.237 moko 13951: library_names_spec='$libname$release.a $libname.a'
13952: soname_spec='$libname$release$shared_ext$major'
13953: ;;
13954: svr4,*) # full svr4 only
13955: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13956: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13957: # We do not specify a path in Import Files, so LIBPATH fires.
13958: shlibpath_overrides_runpath=yes
13959: ;;
13960: *,yes) # both, prefer svr4
13961: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13962: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13963: # unpreferred sharedlib libNAME.a needs extra handling
13964: postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13965: postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13966: # We do not specify a path in Import Files, so LIBPATH fires.
13967: shlibpath_overrides_runpath=yes
13968: ;;
13969: *,no) # both, prefer aix
13970: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13971: library_names_spec='$libname$release.a $libname.a'
13972: soname_spec='$libname$release$shared_ext$major'
13973: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13974: postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13975: postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13976: ;;
13977: esac
1.128 moko 13978: shlibpath_var=LIBPATH
13979: fi
13980: ;;
13981:
13982: amigaos*)
13983: case $host_cpu in
13984: powerpc)
13985: # Since July 2007 AmigaOS4 officially supports .so libraries.
13986: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
1.237 moko 13987: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 13988: ;;
13989: m68k)
13990: library_names_spec='$libname.ixlibrary $libname.a'
13991: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.237 moko 13992: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1.128 moko 13993: ;;
13994: esac
13995: ;;
13996:
13997: beos*)
1.237 moko 13998: library_names_spec='$libname$shared_ext'
1.128 moko 13999: dynamic_linker="$host_os ld.so"
14000: shlibpath_var=LIBRARY_PATH
14001: ;;
14002:
14003: bsdi[45]*)
14004: version_type=linux # correct to gnu/linux during the next big refactor
14005: need_version=no
1.237 moko 14006: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14007: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14008: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14009: shlibpath_var=LD_LIBRARY_PATH
14010: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14011: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14012: # the default ld.so.conf also contains /usr/contrib/lib and
14013: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14014: # libtool to hard-code these into programs
14015: ;;
14016:
1.237 moko 14017: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 14018: version_type=windows
1.237 moko 14019: shrext_cmds=.dll
1.128 moko 14020: need_version=no
14021: need_lib_prefix=no
14022:
14023: case $GCC,$cc_basename in
14024: yes,*)
14025: # gcc
14026: library_names_spec='$libname.dll.a'
14027: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 moko 14028: # If user builds GCC with multilib enabled,
14029: # it should just install on $(libdir)
14030: # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
14031: if test xyes = x"$multilib"; then
14032: postinstall_cmds='base_file=`basename \$file`~
14033: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14034: dldir=$destdir/`dirname \$dlpath`~
14035: $install_prog $dir/$dlname $destdir/$dlname~
14036: chmod a+x $destdir/$dlname~
14037: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14038: eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
14039: fi'
14040: else
14041: postinstall_cmds='base_file=`basename \$file`~
14042: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14043: dldir=$destdir/`dirname \$dlpath`~
14044: test -d \$dldir || mkdir -p \$dldir~
14045: $install_prog $dir/$dlname \$dldir/$dlname~
14046: chmod a+x \$dldir/$dlname~
14047: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14048: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14049: fi'
14050: fi
1.128 moko 14051: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14052: dlpath=$dir/\$dldll~
14053: $RM \$dlpath'
14054: shlibpath_overrides_runpath=yes
14055:
14056: case $host_os in
14057: cygwin*)
14058: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.237 moko 14059: soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 14060:
14061: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14062: ;;
1.237 moko 14063: mingw* | windows* | cegcc*)
1.128 moko 14064: # MinGW DLLs use traditional 'lib' prefix
1.237 moko 14065: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 14066: ;;
14067: pw32*)
14068: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.237 moko 14069: library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 14070: ;;
14071: esac
14072: dynamic_linker='Win32 ld.exe'
14073: ;;
14074:
1.237 moko 14075: *,cl* | *,icl*)
14076: # Native MSVC or ICC
1.128 moko 14077: libname_spec='$name'
1.237 moko 14078: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14079: library_names_spec='$libname.dll.lib'
1.128 moko 14080:
14081: case $build_os in
1.237 moko 14082: mingw* | windows*)
1.128 moko 14083: sys_lib_search_path_spec=
14084: lt_save_ifs=$IFS
14085: IFS=';'
14086: for lt_path in $LIB
14087: do
14088: IFS=$lt_save_ifs
14089: # Let DOS variable expansion print the short 8.3 style file name.
14090: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14091: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14092: done
14093: IFS=$lt_save_ifs
14094: # Convert to MSYS style.
1.237 moko 14095: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1.128 moko 14096: ;;
14097: cygwin*)
14098: # Convert to unix form, then to dos form, then back to unix form
14099: # but this time dos style (no spaces!) so that the unix form looks
14100: # like /cygdrive/c/PROGRA~1:/cygdr...
14101: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14102: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14103: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14104: ;;
14105: *)
1.237 moko 14106: sys_lib_search_path_spec=$LIB
1.128 moko 14107: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14108: # It is most probably a Windows format PATH.
14109: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14110: else
14111: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14112: fi
14113: # FIXME: find the short name or the path components, as spaces are
14114: # common. (e.g. "Program Files" -> "PROGRA~1")
14115: ;;
14116: esac
14117:
14118: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 moko 14119: postinstall_cmds='base_file=`basename \$file`~
14120: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1.128 moko 14121: dldir=$destdir/`dirname \$dlpath`~
14122: test -d \$dldir || mkdir -p \$dldir~
14123: $install_prog $dir/$dlname \$dldir/$dlname'
14124: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14125: dlpath=$dir/\$dldll~
14126: $RM \$dlpath'
14127: shlibpath_overrides_runpath=yes
14128: dynamic_linker='Win32 link.exe'
14129: ;;
14130:
14131: *)
1.237 moko 14132: # Assume MSVC and ICC wrapper
14133: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1.128 moko 14134: dynamic_linker='Win32 ld.exe'
14135: ;;
14136: esac
14137: # FIXME: first we should search . and the directory the executable is in
14138: shlibpath_var=PATH
14139: ;;
14140:
14141: darwin* | rhapsody*)
14142: dynamic_linker="$host_os dyld"
14143: version_type=darwin
14144: need_lib_prefix=no
14145: need_version=no
1.237 moko 14146: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14147: soname_spec='$libname$release$major$shared_ext'
1.128 moko 14148: shlibpath_overrides_runpath=yes
14149: shlibpath_var=DYLD_LIBRARY_PATH
14150: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14151:
14152: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14153: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14154: ;;
14155:
14156: dgux*)
14157: version_type=linux # correct to gnu/linux during the next big refactor
14158: need_lib_prefix=no
14159: need_version=no
1.237 moko 14160: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14161: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14162: shlibpath_var=LD_LIBRARY_PATH
14163: ;;
14164:
1.237 moko 14165: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 14166: # DragonFly does not have aout. When/if they implement a new
14167: # versioning mechanism, adjust this.
14168: if test -x /usr/bin/objformat; then
14169: objformat=`/usr/bin/objformat`
14170: else
14171: case $host_os in
14172: freebsd[23].*) objformat=aout ;;
14173: *) objformat=elf ;;
14174: esac
14175: fi
14176: version_type=freebsd-$objformat
14177: case $version_type in
14178: freebsd-elf*)
1.237 moko 14179: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14180: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14181: need_version=no
14182: need_lib_prefix=no
14183: ;;
14184: freebsd-*)
1.237 moko 14185: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14186: need_version=yes
14187: ;;
14188: esac
1.237 moko 14189: case $host_cpu in
14190: powerpc64)
14191: # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
14192: # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
14193: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194: /* end confdefs.h. */
14195: int test_pointer_size[sizeof (void *) - 5];
14196:
14197: _ACEOF
14198: if ac_fn_c_try_compile "$LINENO"
14199: then :
1.128 moko 14200: shlibpath_var=LD_LIBRARY_PATH
1.237 moko 14201: else case e in #(
14202: e) shlibpath_var=LD_32_LIBRARY_PATH ;;
14203: esac
14204: fi
14205: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14206: ;;
14207: *)
14208: shlibpath_var=LD_LIBRARY_PATH
14209: ;;
14210: esac
1.128 moko 14211: case $host_os in
14212: freebsd2.*)
14213: shlibpath_overrides_runpath=yes
14214: ;;
14215: freebsd3.[01]* | freebsdelf3.[01]*)
14216: shlibpath_overrides_runpath=yes
14217: hardcode_into_libs=yes
14218: ;;
14219: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14220: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14221: shlibpath_overrides_runpath=no
14222: hardcode_into_libs=yes
14223: ;;
14224: *) # from 4.6 on, and DragonFly
14225: shlibpath_overrides_runpath=yes
14226: hardcode_into_libs=yes
14227: ;;
14228: esac
14229: ;;
14230:
14231: haiku*)
14232: version_type=linux # correct to gnu/linux during the next big refactor
14233: need_lib_prefix=no
14234: need_version=no
14235: dynamic_linker="$host_os runtime_loader"
1.237 moko 14236: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14237: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14238: shlibpath_var=LIBRARY_PATH
1.237 moko 14239: shlibpath_overrides_runpath=no
14240: sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
14241: sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
14242: hardcode_into_libs=no
1.128 moko 14243: ;;
14244:
14245: hpux9* | hpux10* | hpux11*)
14246: # Give a soname corresponding to the major version so that dld.sl refuses to
14247: # link against other versions.
14248: version_type=sunos
14249: need_lib_prefix=no
14250: need_version=no
14251: case $host_cpu in
14252: ia64*)
14253: shrext_cmds='.so'
14254: hardcode_into_libs=yes
14255: dynamic_linker="$host_os dld.so"
14256: shlibpath_var=LD_LIBRARY_PATH
14257: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 moko 14258: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14259: soname_spec='$libname$release$shared_ext$major'
14260: if test 32 = "$HPUX_IA64_MODE"; then
1.128 moko 14261: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.237 moko 14262: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1.128 moko 14263: else
14264: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.237 moko 14265: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1.128 moko 14266: fi
14267: ;;
14268: hppa*64*)
14269: shrext_cmds='.sl'
14270: hardcode_into_libs=yes
14271: dynamic_linker="$host_os dld.sl"
14272: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14273: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 moko 14274: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14275: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14276: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14277: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14278: ;;
14279: *)
14280: shrext_cmds='.sl'
14281: dynamic_linker="$host_os dld.sl"
14282: shlibpath_var=SHLIB_PATH
14283: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.237 moko 14284: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14285: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14286: ;;
14287: esac
14288: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14289: postinstall_cmds='chmod 555 $lib'
14290: # or fails outright, so override atomically:
14291: install_override_mode=555
14292: ;;
14293:
14294: interix[3-9]*)
14295: version_type=linux # correct to gnu/linux during the next big refactor
14296: need_lib_prefix=no
14297: need_version=no
1.237 moko 14298: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14299: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14300: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14301: shlibpath_var=LD_LIBRARY_PATH
14302: shlibpath_overrides_runpath=no
14303: hardcode_into_libs=yes
14304: ;;
14305:
14306: irix5* | irix6* | nonstopux*)
14307: case $host_os in
14308: nonstopux*) version_type=nonstopux ;;
14309: *)
1.237 moko 14310: if test yes = "$lt_cv_prog_gnu_ld"; then
1.128 moko 14311: version_type=linux # correct to gnu/linux during the next big refactor
14312: else
14313: version_type=irix
14314: fi ;;
14315: esac
14316: need_lib_prefix=no
14317: need_version=no
1.237 moko 14318: soname_spec='$libname$release$shared_ext$major'
14319: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1.128 moko 14320: case $host_os in
14321: irix5* | nonstopux*)
14322: libsuff= shlibsuff=
14323: ;;
14324: *)
14325: case $LD in # libtool.m4 will add one of these switches to LD
14326: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14327: libsuff= shlibsuff= libmagic=32-bit;;
14328: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14329: libsuff=32 shlibsuff=N32 libmagic=N32;;
14330: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14331: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14332: *) libsuff= shlibsuff= libmagic=never-match;;
14333: esac
14334: ;;
14335: esac
14336: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14337: shlibpath_overrides_runpath=no
1.237 moko 14338: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14339: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1.128 moko 14340: hardcode_into_libs=yes
14341: ;;
14342:
14343: # No shared lib support for Linux oldld, aout, or coff.
14344: linux*oldld* | linux*aout* | linux*coff*)
14345: dynamic_linker=no
14346: ;;
14347:
1.237 moko 14348: linux*android*)
14349: version_type=none # Android doesn't support versioned libraries.
14350: need_lib_prefix=no
14351: need_version=no
14352: library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14353: soname_spec='$libname$release$shared_ext'
14354: finish_cmds=
14355: shlibpath_var=LD_LIBRARY_PATH
14356: shlibpath_overrides_runpath=yes
14357:
14358: # This implies no fast_install, which is unacceptable.
14359: # Some rework will be needed to allow for fast_install
14360: # before this can be enabled.
14361: hardcode_into_libs=yes
14362:
14363: dynamic_linker='Android linker'
14364: # -rpath works at least for libraries that are not overridden by
14365: # libraries installed in system locations.
14366: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14367: ;;
14368:
1.128 moko 14369: # This must be glibc/ELF.
1.237 moko 14370: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 14371: version_type=linux # correct to gnu/linux during the next big refactor
14372: need_lib_prefix=no
14373: need_version=no
1.237 moko 14374: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14375: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14376: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14377: shlibpath_var=LD_LIBRARY_PATH
14378: shlibpath_overrides_runpath=no
14379:
14380: # Some binutils ld are patched to set DT_RUNPATH
1.237 moko 14381: if test ${lt_cv_shlibpath_overrides_runpath+y}
14382: then :
14383: printf %s "(cached) " >&6
14384: else case e in #(
14385: e) lt_cv_shlibpath_overrides_runpath=no
1.128 moko 14386: save_LDFLAGS=$LDFLAGS
14387: save_libdir=$libdir
14388: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14389: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 14390: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 14391: /* end confdefs.h. */
14392:
14393: int
1.237 moko 14394: main (void)
1.128 moko 14395: {
14396:
14397: ;
14398: return 0;
14399: }
14400: _ACEOF
1.237 moko 14401: if ac_fn_c_try_link "$LINENO"
14402: then :
14403: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14404: then :
1.128 moko 14405: lt_cv_shlibpath_overrides_runpath=yes
14406: fi
14407: fi
1.237 moko 14408: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 14409: conftest$ac_exeext conftest.$ac_ext
1.128 moko 14410: LDFLAGS=$save_LDFLAGS
14411: libdir=$save_libdir
1.237 moko 14412: ;;
14413: esac
1.128 moko 14414: fi
14415:
14416: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14417:
14418: # This implies no fast_install, which is unacceptable.
14419: # Some rework will be needed to allow for fast_install
14420: # before this can be enabled.
14421: hardcode_into_libs=yes
14422:
1.237 moko 14423: # Ideally, we could use ldconfig to report *all* directories which are
14424: # searched for libraries, however this is still not possible. Aside from not
14425: # being certain /sbin/ldconfig is available, command
14426: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14427: # even though it is searched at run-time. Try to do the best guess by
14428: # appending ld.so.conf contents (and includes) to the search path.
1.128 moko 14429: if test -f /etc/ld.so.conf; then
14430: 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' ' '`
14431: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14432: fi
14433:
14434: # We used to test for /lib/ld.so.1 and disable shared libraries on
14435: # powerpc, because MkLinux only supported shared libraries with the
14436: # GNU dynamic linker. Since this was broken with cross compilers,
14437: # most powerpc-linux boxes support dynamic linking these days and
14438: # people can always --disable-shared, the test was removed, and we
14439: # assume the GNU/Linux dynamic linker is in use.
14440: dynamic_linker='GNU/Linux ld.so'
14441: ;;
14442:
1.237 moko 14443: netbsdelf*-gnu)
14444: version_type=linux
14445: need_lib_prefix=no
14446: need_version=no
14447: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14448: soname_spec='$libname$release$shared_ext$major'
14449: shlibpath_var=LD_LIBRARY_PATH
14450: shlibpath_overrides_runpath=no
14451: hardcode_into_libs=yes
14452: dynamic_linker='NetBSD ld.elf_so'
14453: ;;
14454:
14455: netbsdelf*-gnu)
14456: version_type=linux
14457: need_lib_prefix=no
14458: need_version=no
14459: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14460: soname_spec='${libname}${release}${shared_ext}$major'
14461: shlibpath_var=LD_LIBRARY_PATH
14462: shlibpath_overrides_runpath=no
14463: hardcode_into_libs=yes
14464: dynamic_linker='NetBSD ld.elf_so'
14465: ;;
14466:
1.128 moko 14467: netbsd*)
14468: version_type=sunos
14469: need_lib_prefix=no
14470: need_version=no
14471: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.237 moko 14472: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14473: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14474: dynamic_linker='NetBSD (a.out) ld.so'
14475: else
1.237 moko 14476: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14477: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14478: dynamic_linker='NetBSD ld.elf_so'
14479: fi
14480: shlibpath_var=LD_LIBRARY_PATH
14481: shlibpath_overrides_runpath=yes
14482: hardcode_into_libs=yes
14483: ;;
14484:
1.237 moko 14485: *-mlibc)
14486: version_type=linux # correct to gnu/linux during the next big refactor
14487: need_lib_prefix=no
14488: need_version=no
14489: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14490: soname_spec='$libname$release$shared_ext$major'
14491: dynamic_linker='mlibc ld.so'
14492: shlibpath_var=LD_LIBRARY_PATH
14493: shlibpath_overrides_runpath=no
14494: hardcode_into_libs=yes
14495: ;;
14496:
1.128 moko 14497: newsos6)
14498: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 14499: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 14500: shlibpath_var=LD_LIBRARY_PATH
14501: shlibpath_overrides_runpath=yes
14502: ;;
14503:
14504: *nto* | *qnx*)
14505: version_type=qnx
14506: need_lib_prefix=no
14507: need_version=no
1.237 moko 14508: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14509: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14510: shlibpath_var=LD_LIBRARY_PATH
14511: shlibpath_overrides_runpath=no
14512: hardcode_into_libs=yes
14513: dynamic_linker='ldqnx.so'
14514: ;;
14515:
14516: openbsd*)
14517: version_type=sunos
1.237 moko 14518: sys_lib_dlsearch_path_spec=/usr/lib
1.128 moko 14519: need_lib_prefix=no
1.237 moko 14520: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14521: need_version=no
14522: else
14523: need_version=yes
14524: fi
14525: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14526: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14527: shlibpath_var=LD_LIBRARY_PATH
1.237 moko 14528: shlibpath_overrides_runpath=yes
1.128 moko 14529: ;;
14530:
14531: os2*)
14532: libname_spec='$name'
1.237 moko 14533: version_type=windows
14534: shrext_cmds=.dll
14535: need_version=no
1.128 moko 14536: need_lib_prefix=no
1.237 moko 14537: # OS/2 can only load a DLL with a base name of 8 characters or less.
14538: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14539: v=$($ECHO $release$versuffix | tr -d .-);
14540: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14541: $ECHO $n$v`$shared_ext'
14542: library_names_spec='${libname}_dll.$libext'
1.128 moko 14543: dynamic_linker='OS/2 ld.exe'
1.237 moko 14544: shlibpath_var=BEGINLIBPATH
14545: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14546: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14547: postinstall_cmds='base_file=`basename \$file`~
14548: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14549: dldir=$destdir/`dirname \$dlpath`~
14550: test -d \$dldir || mkdir -p \$dldir~
14551: $install_prog $dir/$dlname \$dldir/$dlname~
14552: chmod a+x \$dldir/$dlname~
14553: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14554: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14555: fi'
14556: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14557: dlpath=$dir/\$dldll~
14558: $RM \$dlpath'
1.128 moko 14559: ;;
14560:
14561: osf3* | osf4* | osf5*)
14562: version_type=osf
14563: need_lib_prefix=no
14564: need_version=no
1.237 moko 14565: soname_spec='$libname$release$shared_ext$major'
14566: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 14567: shlibpath_var=LD_LIBRARY_PATH
14568: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.237 moko 14569: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.128 moko 14570: ;;
14571:
14572: rdos*)
14573: dynamic_linker=no
14574: ;;
14575:
1.237 moko 14576: serenity*)
14577: version_type=linux # correct to gnu/linux during the next big refactor
14578: need_lib_prefix=no
14579: need_version=no
14580: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14581: soname_spec='$libname$release$shared_ext$major'
14582: shlibpath_var=LD_LIBRARY_PATH
14583: shlibpath_overrides_runpath=no
14584: dynamic_linker='SerenityOS LibELF'
14585: ;;
14586:
1.128 moko 14587: solaris*)
14588: version_type=linux # correct to gnu/linux during the next big refactor
14589: need_lib_prefix=no
14590: need_version=no
1.237 moko 14591: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14592: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14593: shlibpath_var=LD_LIBRARY_PATH
14594: shlibpath_overrides_runpath=yes
14595: hardcode_into_libs=yes
14596: # ldd complains unless libraries are executable
14597: postinstall_cmds='chmod +x $lib'
14598: ;;
14599:
14600: sunos4*)
14601: version_type=sunos
1.237 moko 14602: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14603: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14604: shlibpath_var=LD_LIBRARY_PATH
14605: shlibpath_overrides_runpath=yes
1.237 moko 14606: if test yes = "$with_gnu_ld"; then
1.128 moko 14607: need_lib_prefix=no
14608: fi
14609: need_version=yes
14610: ;;
14611:
14612: sysv4 | sysv4.3*)
14613: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 14614: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14615: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14616: shlibpath_var=LD_LIBRARY_PATH
14617: case $host_vendor in
14618: sni)
14619: shlibpath_overrides_runpath=no
14620: need_lib_prefix=no
14621: runpath_var=LD_RUN_PATH
14622: ;;
14623: siemens)
14624: need_lib_prefix=no
14625: ;;
14626: motorola)
14627: need_lib_prefix=no
14628: need_version=no
14629: shlibpath_overrides_runpath=no
14630: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14631: ;;
14632: esac
14633: ;;
14634:
14635: sysv4*MP*)
1.237 moko 14636: if test -d /usr/nec; then
1.128 moko 14637: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 14638: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14639: soname_spec='$libname$shared_ext.$major'
1.128 moko 14640: shlibpath_var=LD_LIBRARY_PATH
14641: fi
14642: ;;
14643:
14644: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.237 moko 14645: version_type=sco
1.128 moko 14646: need_lib_prefix=no
14647: need_version=no
1.237 moko 14648: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14649: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14650: shlibpath_var=LD_LIBRARY_PATH
14651: shlibpath_overrides_runpath=yes
14652: hardcode_into_libs=yes
1.237 moko 14653: if test yes = "$with_gnu_ld"; then
1.128 moko 14654: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14655: else
14656: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14657: case $host_os in
14658: sco3.2v5*)
14659: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14660: ;;
14661: esac
14662: fi
14663: sys_lib_dlsearch_path_spec='/usr/lib'
14664: ;;
14665:
14666: tpf*)
14667: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14668: version_type=linux # correct to gnu/linux during the next big refactor
14669: need_lib_prefix=no
14670: need_version=no
1.237 moko 14671: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 14672: shlibpath_var=LD_LIBRARY_PATH
14673: shlibpath_overrides_runpath=no
14674: hardcode_into_libs=yes
14675: ;;
14676:
14677: uts4*)
14678: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 14679: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14680: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14681: shlibpath_var=LD_LIBRARY_PATH
14682: ;;
14683:
1.237 moko 14684: emscripten*)
14685: version_type=none
14686: need_lib_prefix=no
14687: need_version=no
14688: library_names_spec='$libname$release$shared_ext'
14689: soname_spec='$libname$release$shared_ext'
14690: finish_cmds=
14691: dynamic_linker="Emscripten linker"
14692: lt_prog_compiler_wl=
14693: lt_prog_compiler_pic=
14694: lt_prog_compiler_static=
1.128 moko 14695:
14696:
1.237 moko 14697: if test yes = "$GCC"; then
14698: lt_prog_compiler_wl='-Wl,'
14699: lt_prog_compiler_static='-static'
1.128 moko 14700:
1.237 moko 14701: case $host_os in
14702: aix*)
14703: # All AIX code is PIC.
14704: if test ia64 = "$host_cpu"; then
14705: # AIX 5 now supports IA64 processor
14706: lt_prog_compiler_static='-Bstatic'
14707: fi
14708: lt_prog_compiler_pic='-fPIC'
14709: ;;
1.128 moko 14710:
1.237 moko 14711: amigaos*)
14712: case $host_cpu in
14713: powerpc)
14714: # see comment about AmigaOS4 .so support
14715: lt_prog_compiler_pic='-fPIC'
14716: ;;
14717: m68k)
14718: # FIXME: we need at least 68020 code to build shared libraries, but
14719: # adding the '-m68020' flag to GCC prevents building anything better,
14720: # like '-m68040'.
14721: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14722: ;;
14723: esac
14724: ;;
1.128 moko 14725:
1.237 moko 14726: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14727: # PIC is the default for these OSes.
14728: ;;
1.128 moko 14729:
1.237 moko 14730: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14731: # This hack is so that the source file can tell whether it is being
14732: # built for inclusion in a dll (and should export symbols for example).
14733: # Although the cygwin gcc ignores -fPIC, still need this for old-style
14734: # (--disable-auto-import) libraries
14735: lt_prog_compiler_pic='-DDLL_EXPORT'
14736: case $host_os in
14737: os2*)
14738: lt_prog_compiler_static='$wl-static'
14739: ;;
14740: esac
14741: ;;
1.128 moko 14742:
1.237 moko 14743: darwin* | rhapsody*)
14744: # PIC is the default on this platform
14745: # Common symbols not allowed in MH_DYLIB files
14746: lt_prog_compiler_pic='-fno-common'
14747: ;;
1.128 moko 14748:
1.237 moko 14749: haiku*)
14750: # PIC is the default for Haiku.
14751: # The "-static" flag exists, but is broken.
14752: lt_prog_compiler_static=
14753: ;;
1.128 moko 14754:
1.237 moko 14755: hpux*)
14756: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14757: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14758: # sets the default TLS model and affects inlining.
14759: case $host_cpu in
14760: hppa*64*)
14761: # +Z the default
14762: ;;
14763: *)
14764: lt_prog_compiler_pic='-fPIC'
14765: ;;
14766: esac
14767: ;;
1.128 moko 14768:
1.237 moko 14769: interix[3-9]*)
14770: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14771: # Instead, we relocate shared libraries at runtime.
14772: ;;
1.128 moko 14773:
1.237 moko 14774: msdosdjgpp*)
14775: # Just because we use GCC doesn't mean we suddenly get shared libraries
14776: # on systems that don't support them.
14777: lt_prog_compiler_can_build_shared=no
14778: enable_shared=no
14779: ;;
1.128 moko 14780:
1.237 moko 14781: *nto* | *qnx*)
14782: # QNX uses GNU C++, but need to define -shared option too, otherwise
14783: # it will coredump.
14784: lt_prog_compiler_pic='-fPIC -shared'
14785: ;;
1.128 moko 14786:
1.237 moko 14787: sysv4*MP*)
14788: if test -d /usr/nec; then
14789: lt_prog_compiler_pic=-Kconform_pic
14790: fi
14791: ;;
1.128 moko 14792:
1.237 moko 14793: *)
14794: lt_prog_compiler_pic='-fPIC'
14795: ;;
14796: esac
1.128 moko 14797:
1.237 moko 14798: case $cc_basename in
14799: nvcc*) # Cuda Compiler Driver 2.2
14800: lt_prog_compiler_wl='-Xlinker '
14801: if test -n "$lt_prog_compiler_pic"; then
14802: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14803: fi
14804: ;;
14805: esac
14806: else
14807: # PORTME Check for flag to pass linker flags through the system compiler.
14808: case $host_os in
14809: aix*)
14810: lt_prog_compiler_wl='-Wl,'
14811: if test ia64 = "$host_cpu"; then
14812: # AIX 5 now supports IA64 processor
14813: lt_prog_compiler_static='-Bstatic'
14814: else
14815: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14816: fi
14817: ;;
1.128 moko 14818:
1.237 moko 14819: darwin* | rhapsody*)
14820: # PIC is the default on this platform
14821: # Common symbols not allowed in MH_DYLIB files
14822: lt_prog_compiler_pic='-fno-common'
14823: case $cc_basename in
14824: nagfor*)
14825: # NAG Fortran compiler
14826: lt_prog_compiler_wl='-Wl,-Wl,,'
14827: lt_prog_compiler_pic='-PIC'
14828: lt_prog_compiler_static='-Bstatic'
14829: ;;
14830: esac
14831: ;;
1.128 moko 14832:
1.237 moko 14833: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14834: # This hack is so that the source file can tell whether it is being
14835: # built for inclusion in a dll (and should export symbols for example).
14836: lt_prog_compiler_pic='-DDLL_EXPORT'
14837: case $host_os in
14838: os2*)
14839: lt_prog_compiler_static='$wl-static'
14840: ;;
14841: esac
14842: ;;
1.128 moko 14843:
1.237 moko 14844: hpux9* | hpux10* | hpux11*)
14845: lt_prog_compiler_wl='-Wl,'
14846: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14847: # not for PA HP-UX.
14848: case $host_cpu in
14849: hppa*64*|ia64*)
14850: # +Z the default
14851: ;;
14852: *)
14853: lt_prog_compiler_pic='+Z'
14854: ;;
14855: esac
14856: # Is there a better lt_prog_compiler_static that works with the bundled CC?
14857: lt_prog_compiler_static='$wl-a ${wl}archive'
14858: ;;
1.128 moko 14859:
1.237 moko 14860: irix5* | irix6* | nonstopux*)
14861: lt_prog_compiler_wl='-Wl,'
14862: # PIC (with -KPIC) is the default.
14863: lt_prog_compiler_static='-non_shared'
14864: ;;
1.128 moko 14865:
1.237 moko 14866: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14867: case $cc_basename in
14868: # old Intel for x86_64, which still supported -KPIC.
14869: ecc*)
14870: lt_prog_compiler_wl='-Wl,'
14871: lt_prog_compiler_pic='-KPIC'
14872: lt_prog_compiler_static='-static'
14873: ;;
14874: *flang* | ftn | f18* | f95*)
14875: # Flang compiler.
14876: lt_prog_compiler_wl='-Wl,'
14877: lt_prog_compiler_pic='-fPIC'
14878: lt_prog_compiler_static='-static'
14879: ;;
14880: # flang / f18. f95 an alias for gfortran or flang on Debian
14881: flang* | f18* | f95*)
14882: lt_prog_compiler_wl='-Wl,'
14883: lt_prog_compiler_pic='-fPIC'
14884: lt_prog_compiler_static='-static'
14885: ;;
14886: # icc used to be incompatible with GCC.
14887: # ICC 10 doesn't accept -KPIC any more.
14888: icc* | ifort*)
14889: lt_prog_compiler_wl='-Wl,'
14890: lt_prog_compiler_pic='-fPIC'
14891: lt_prog_compiler_static='-static'
14892: ;;
14893: # Lahey Fortran 8.1.
14894: lf95*)
14895: lt_prog_compiler_wl='-Wl,'
14896: lt_prog_compiler_pic='--shared'
14897: lt_prog_compiler_static='--static'
14898: ;;
14899: nagfor*)
14900: # NAG Fortran compiler
14901: lt_prog_compiler_wl='-Wl,-Wl,,'
14902: lt_prog_compiler_pic='-PIC'
14903: lt_prog_compiler_static='-Bstatic'
14904: ;;
14905: tcc*)
14906: # Fabrice Bellard et al's Tiny C Compiler
14907: lt_prog_compiler_wl='-Wl,'
14908: lt_prog_compiler_pic='-fPIC'
14909: lt_prog_compiler_static='-static'
14910: ;;
14911: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14912: # Portland Group compilers (*not* the Pentium gcc compiler,
14913: # which looks to be a dead project)
14914: lt_prog_compiler_wl='-Wl,'
14915: lt_prog_compiler_pic='-fpic'
14916: lt_prog_compiler_static='-Bstatic'
14917: ;;
14918: ccc*)
14919: lt_prog_compiler_wl='-Wl,'
14920: # All Alpha code is PIC.
14921: lt_prog_compiler_static='-non_shared'
14922: ;;
14923: xl* | bgxl* | bgf* | mpixl*)
14924: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14925: lt_prog_compiler_wl='-Wl,'
14926: lt_prog_compiler_pic='-qpic'
14927: lt_prog_compiler_static='-qstaticlink'
14928: ;;
14929: *)
14930: case `$CC -V 2>&1 | $SED 5q` in
14931: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14932: # Sun Fortran 8.3 passes all unrecognized flags to the linker
14933: lt_prog_compiler_pic='-KPIC'
14934: lt_prog_compiler_static='-Bstatic'
14935: lt_prog_compiler_wl=''
14936: ;;
14937: *Sun\ F* | *Sun*Fortran*)
14938: lt_prog_compiler_pic='-KPIC'
14939: lt_prog_compiler_static='-Bstatic'
14940: lt_prog_compiler_wl='-Qoption ld '
14941: ;;
14942: *Sun\ C*)
14943: # Sun C 5.9
14944: lt_prog_compiler_pic='-KPIC'
14945: lt_prog_compiler_static='-Bstatic'
14946: lt_prog_compiler_wl='-Wl,'
14947: ;;
14948: *Intel*\ [CF]*Compiler*)
14949: lt_prog_compiler_wl='-Wl,'
14950: lt_prog_compiler_pic='-fPIC'
14951: lt_prog_compiler_static='-static'
14952: ;;
14953: *Portland\ Group*)
14954: lt_prog_compiler_wl='-Wl,'
14955: lt_prog_compiler_pic='-fpic'
14956: lt_prog_compiler_static='-Bstatic'
14957: ;;
14958: esac
14959: ;;
14960: esac
14961: ;;
1.128 moko 14962:
1.237 moko 14963: newsos6)
14964: lt_prog_compiler_pic='-KPIC'
14965: lt_prog_compiler_static='-Bstatic'
14966: ;;
1.128 moko 14967:
1.237 moko 14968: *-mlibc)
14969: lt_prog_compiler_wl='-Wl,'
14970: lt_prog_compiler_pic='-fPIC'
14971: lt_prog_compiler_static='-static'
14972: ;;
1.128 moko 14973:
1.237 moko 14974: *nto* | *qnx*)
14975: # QNX uses GNU C++, but need to define -shared option too, otherwise
14976: # it will coredump.
14977: lt_prog_compiler_pic='-fPIC -shared'
14978: ;;
1.128 moko 14979:
1.237 moko 14980: osf3* | osf4* | osf5*)
14981: lt_prog_compiler_wl='-Wl,'
14982: # All OSF/1 code is PIC.
14983: lt_prog_compiler_static='-non_shared'
14984: ;;
1.128 moko 14985:
1.237 moko 14986: rdos*)
14987: lt_prog_compiler_static='-non_shared'
14988: ;;
1.128 moko 14989:
1.237 moko 14990: serenity*)
14991: ;;
14992:
14993: solaris*)
14994: lt_prog_compiler_pic='-KPIC'
14995: lt_prog_compiler_static='-Bstatic'
14996: case $cc_basename in
14997: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14998: lt_prog_compiler_wl='-Qoption ld ';;
14999: *)
15000: lt_prog_compiler_wl='-Wl,';;
15001: esac
15002: ;;
15003:
15004: sunos4*)
15005: lt_prog_compiler_wl='-Qoption ld '
15006: lt_prog_compiler_pic='-PIC'
15007: lt_prog_compiler_static='-Bstatic'
15008: ;;
15009:
15010: sysv4 | sysv4.2uw2* | sysv4.3*)
15011: lt_prog_compiler_wl='-Wl,'
15012: lt_prog_compiler_pic='-KPIC'
15013: lt_prog_compiler_static='-Bstatic'
15014: ;;
15015:
15016: sysv4*MP*)
15017: if test -d /usr/nec; then
15018: lt_prog_compiler_pic='-Kconform_pic'
15019: lt_prog_compiler_static='-Bstatic'
15020: fi
15021: ;;
15022:
15023: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15024: lt_prog_compiler_wl='-Wl,'
15025: lt_prog_compiler_pic='-KPIC'
15026: lt_prog_compiler_static='-Bstatic'
15027: ;;
15028:
15029: unicos*)
15030: lt_prog_compiler_wl='-Wl,'
15031: lt_prog_compiler_can_build_shared=no
15032: ;;
15033:
15034: uts4*)
15035: lt_prog_compiler_pic='-pic'
15036: lt_prog_compiler_static='-Bstatic'
15037: ;;
15038:
15039: *)
15040: lt_prog_compiler_can_build_shared=no
15041: ;;
15042: esac
15043: fi
15044:
15045: case $host_os in
15046: # For platforms that do not support PIC, -DPIC is meaningless:
15047: *djgpp*)
15048: lt_prog_compiler_pic=
15049: ;;
15050: *)
15051: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15052: ;;
15053: esac
15054:
15055: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15056: printf %s "checking for $compiler option to produce PIC... " >&6; }
15057: if test ${lt_cv_prog_compiler_pic+y}
15058: then :
15059: printf %s "(cached) " >&6
15060: else case e in #(
15061: e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
15062: esac
15063: fi
15064: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15065: printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15066: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15067:
15068: #
15069: # Check to make sure the PIC flag actually works.
15070: #
15071: if test -n "$lt_prog_compiler_pic"; then
15072: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15073: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15074: if test ${lt_cv_prog_compiler_pic_works+y}
15075: then :
15076: printf %s "(cached) " >&6
15077: else case e in #(
15078: e) lt_cv_prog_compiler_pic_works=no
15079: ac_outfile=conftest.$ac_objext
15080: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15081: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15082: # Insert the option either (1) after the last *FLAGS variable, or
15083: # (2) before a word containing "conftest.", or (3) at the end.
15084: # Note that $ac_compile itself does not contain backslashes and begins
15085: # with a dollar sign (not a hyphen), so the echo should work correctly.
15086: # The option is referenced via a variable to avoid confusing sed.
15087: lt_compile=`echo "$ac_compile" | $SED \
15088: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15089: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15090: -e 's:$: $lt_compiler_flag:'`
15091: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15092: (eval "$lt_compile" 2>conftest.err)
15093: ac_status=$?
15094: cat conftest.err >&5
15095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096: if (exit $ac_status) && test -s "$ac_outfile"; then
15097: # The compiler can only warn and ignore the option if not recognized
15098: # So say no if there are warnings other than the usual output.
15099: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15100: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15101: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15102: lt_cv_prog_compiler_pic_works=yes
15103: fi
15104: fi
15105: $RM conftest*
15106: ;;
15107: esac
15108: fi
15109: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15110: printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15111:
15112: if test yes = "$lt_cv_prog_compiler_pic_works"; then
15113: case $lt_prog_compiler_pic in
15114: "" | " "*) ;;
15115: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15116: esac
15117: else
15118: lt_prog_compiler_pic=
15119: lt_prog_compiler_can_build_shared=no
15120: fi
15121:
15122: fi
15123:
15124:
15125:
15126:
15127:
15128: #
15129: # Check to make sure the static flag actually works.
15130: #
15131: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15132: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15133: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15134: if test ${lt_cv_prog_compiler_static_works+y}
15135: then :
15136: printf %s "(cached) " >&6
15137: else case e in #(
15138: e) lt_cv_prog_compiler_static_works=no
15139: save_LDFLAGS=$LDFLAGS
15140: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15141: echo "$lt_simple_link_test_code" > conftest.$ac_ext
15142: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15143: # The linker can only warn and ignore the option if not recognized
15144: # So say no if there are warnings
15145: if test -s conftest.err; then
15146: # Append any errors to the config.log.
15147: cat conftest.err 1>&5
15148: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15149: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15150: if diff conftest.exp conftest.er2 >/dev/null; then
15151: lt_cv_prog_compiler_static_works=yes
15152: fi
15153: else
15154: lt_cv_prog_compiler_static_works=yes
15155: fi
15156: fi
15157: $RM -r conftest*
15158: LDFLAGS=$save_LDFLAGS
15159: ;;
15160: esac
15161: fi
15162: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15163: printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15164:
15165: if test yes = "$lt_cv_prog_compiler_static_works"; then
15166: :
15167: else
15168: lt_prog_compiler_static=
15169: fi
15170:
15171:
15172:
15173: ='-fPIC'
15174: archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
15175: archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
15176: archive_cmds_need_lc=no
15177: no_undefined_flag=
15178: ;;
15179:
15180: *)
15181: dynamic_linker=no
15182: ;;
15183: esac
15184: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15185: printf "%s\n" "$dynamic_linker" >&6; }
15186: test no = "$dynamic_linker" && can_build_shared=no
15187:
15188: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15189: if test yes = "$GCC"; then
15190: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15191: fi
15192:
15193: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15194: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15195: fi
15196:
15197: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15198: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15199: fi
15200:
15201: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15202: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15203:
15204: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15205: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15206:
15207: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15208: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
1.128 moko 15209:
15210:
15211:
15212:
15213:
15214:
15215:
15216:
15217:
15218:
15219:
15220:
15221:
15222:
15223:
15224:
15225:
15226:
15227:
15228:
15229:
15230:
15231:
15232:
15233:
15234:
15235:
15236:
15237:
15238:
15239:
15240:
15241:
15242:
15243:
15244:
15245:
15246:
15247:
15248:
15249:
15250:
15251:
15252:
15253:
15254:
15255:
15256:
15257:
15258:
15259:
15260:
15261:
15262:
15263:
15264:
15265:
15266:
15267:
15268:
15269:
15270:
15271:
15272:
15273:
15274:
15275:
15276:
1.237 moko 15277:
15278:
15279:
15280:
15281:
15282:
15283:
15284:
15285:
15286:
15287:
15288:
15289:
15290:
15291:
15292:
15293:
15294:
15295:
15296:
15297:
15298:
15299:
15300:
15301:
15302:
15303:
15304:
15305:
15306: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15307: printf %s "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 15308: hardcode_action=
15309: if test -n "$hardcode_libdir_flag_spec" ||
15310: test -n "$runpath_var" ||
1.237 moko 15311: test yes = "$hardcode_automatic"; then
1.128 moko 15312:
15313: # We can hardcode non-existent directories.
1.237 moko 15314: if test no != "$hardcode_direct" &&
1.128 moko 15315: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15316: # have to relink, otherwise we might link with an installed library
15317: # when we should be linking with a yet-to-be-installed one
1.237 moko 15318: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15319: test no != "$hardcode_minus_L"; then
1.128 moko 15320: # Linking always hardcodes the temporary library directory.
15321: hardcode_action=relink
15322: else
15323: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15324: hardcode_action=immediate
15325: fi
15326: else
15327: # We cannot hardcode anything, or else we can only hardcode existing
15328: # directories.
15329: hardcode_action=unsupported
15330: fi
1.237 moko 15331: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15332: printf "%s\n" "$hardcode_action" >&6; }
1.128 moko 15333:
1.237 moko 15334: if test relink = "$hardcode_action" ||
15335: test yes = "$inherit_rpath"; then
1.128 moko 15336: # Fast installation is not supported
15337: enable_fast_install=no
1.237 moko 15338: elif test yes = "$shlibpath_overrides_runpath" ||
15339: test no = "$enable_shared"; then
1.128 moko 15340: # Fast installation is not necessary
15341: enable_fast_install=needless
15342: fi
15343:
15344:
15345:
15346:
15347:
15348:
1.237 moko 15349: if test yes != "$enable_dlopen"; then
1.128 moko 15350: enable_dlopen=unknown
15351: enable_dlopen_self=unknown
15352: enable_dlopen_self_static=unknown
15353: else
15354: lt_cv_dlopen=no
15355: lt_cv_dlopen_libs=
15356:
15357: case $host_os in
15358: beos*)
1.237 moko 15359: lt_cv_dlopen=load_add_on
1.128 moko 15360: lt_cv_dlopen_libs=
15361: lt_cv_dlopen_self=yes
15362: ;;
15363:
1.237 moko 15364: mingw* | windows* | pw32* | cegcc*)
15365: lt_cv_dlopen=LoadLibrary
1.128 moko 15366: lt_cv_dlopen_libs=
15367: ;;
15368:
15369: cygwin*)
1.237 moko 15370: lt_cv_dlopen=dlopen
1.128 moko 15371: lt_cv_dlopen_libs=
15372: ;;
15373:
15374: darwin*)
1.237 moko 15375: # if libdl is installed we need to link against it
15376: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15377: printf %s "checking for dlopen in -ldl... " >&6; }
15378: if test ${ac_cv_lib_dl_dlopen+y}
15379: then :
15380: printf %s "(cached) " >&6
15381: else case e in #(
15382: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15383: LIBS="-ldl $LIBS"
1.150 moko 15384: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15385: /* end confdefs.h. */
15386:
1.150 moko 15387: /* Override any GCC internal prototype to avoid an error.
15388: Use char because int might match the return type of a GCC
1.237 moko 15389: builtin and then its argument prototype would still apply.
15390: The 'extern "C"' is for builds by C++ compilers;
15391: although this is not generally supported in C code supporting it here
15392: has little cost and some practical benefit (sr 110532). */
1.128 moko 15393: #ifdef __cplusplus
15394: extern "C"
15395: #endif
1.237 moko 15396: char dlopen (void);
1.128 moko 15397: int
1.237 moko 15398: main (void)
1.128 moko 15399: {
1.150 moko 15400: return dlopen ();
1.128 moko 15401: ;
15402: return 0;
15403: }
15404: _ACEOF
1.237 moko 15405: if ac_fn_c_try_link "$LINENO"
15406: then :
1.128 moko 15407: ac_cv_lib_dl_dlopen=yes
1.237 moko 15408: else case e in #(
15409: e) ac_cv_lib_dl_dlopen=no ;;
15410: esac
1.128 moko 15411: fi
1.237 moko 15412: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15413: conftest$ac_exeext conftest.$ac_ext
1.237 moko 15414: LIBS=$ac_check_lib_save_LIBS ;;
15415: esac
1.128 moko 15416: fi
1.237 moko 15417: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15418: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15419: if test "x$ac_cv_lib_dl_dlopen" = xyes
15420: then :
15421: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15422: else case e in #(
15423: e)
15424: lt_cv_dlopen=dyld
1.128 moko 15425: lt_cv_dlopen_libs=
15426: lt_cv_dlopen_self=yes
1.237 moko 15427: ;;
15428: esac
15429: fi
1.128 moko 15430:
1.237 moko 15431: ;;
1.128 moko 15432:
1.237 moko 15433: tpf*)
15434: # Don't try to run any link tests for TPF. We know it's impossible
15435: # because TPF is a cross-compiler, and we know how we open DSOs.
15436: lt_cv_dlopen=dlopen
15437: lt_cv_dlopen_libs=
15438: lt_cv_dlopen_self=no
1.128 moko 15439: ;;
15440:
15441: *)
1.150 moko 15442: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.237 moko 15443: if test "x$ac_cv_func_shl_load" = xyes
15444: then :
15445: lt_cv_dlopen=shl_load
15446: else case e in #(
15447: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15448: printf %s "checking for shl_load in -ldld... " >&6; }
15449: if test ${ac_cv_lib_dld_shl_load+y}
15450: then :
15451: printf %s "(cached) " >&6
15452: else case e in #(
15453: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15454: LIBS="-ldld $LIBS"
1.150 moko 15455: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15456: /* end confdefs.h. */
15457:
1.150 moko 15458: /* Override any GCC internal prototype to avoid an error.
15459: Use char because int might match the return type of a GCC
1.237 moko 15460: builtin and then its argument prototype would still apply.
15461: The 'extern "C"' is for builds by C++ compilers;
15462: although this is not generally supported in C code supporting it here
15463: has little cost and some practical benefit (sr 110532). */
1.128 moko 15464: #ifdef __cplusplus
15465: extern "C"
15466: #endif
1.237 moko 15467: char shl_load (void);
1.128 moko 15468: int
1.237 moko 15469: main (void)
1.128 moko 15470: {
1.150 moko 15471: return shl_load ();
1.128 moko 15472: ;
15473: return 0;
15474: }
15475: _ACEOF
1.237 moko 15476: if ac_fn_c_try_link "$LINENO"
15477: then :
1.128 moko 15478: ac_cv_lib_dld_shl_load=yes
1.237 moko 15479: else case e in #(
15480: e) ac_cv_lib_dld_shl_load=no ;;
15481: esac
1.128 moko 15482: fi
1.237 moko 15483: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15484: conftest$ac_exeext conftest.$ac_ext
1.237 moko 15485: LIBS=$ac_check_lib_save_LIBS ;;
15486: esac
1.128 moko 15487: fi
1.237 moko 15488: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15489: printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15490: if test "x$ac_cv_lib_dld_shl_load" = xyes
15491: then :
15492: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15493: else case e in #(
15494: e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15495: if test "x$ac_cv_func_dlopen" = xyes
15496: then :
15497: lt_cv_dlopen=dlopen
15498: else case e in #(
15499: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15500: printf %s "checking for dlopen in -ldl... " >&6; }
15501: if test ${ac_cv_lib_dl_dlopen+y}
15502: then :
15503: printf %s "(cached) " >&6
15504: else case e in #(
15505: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15506: LIBS="-ldl $LIBS"
1.150 moko 15507: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15508: /* end confdefs.h. */
15509:
1.150 moko 15510: /* Override any GCC internal prototype to avoid an error.
15511: Use char because int might match the return type of a GCC
1.237 moko 15512: builtin and then its argument prototype would still apply.
15513: The 'extern "C"' is for builds by C++ compilers;
15514: although this is not generally supported in C code supporting it here
15515: has little cost and some practical benefit (sr 110532). */
1.128 moko 15516: #ifdef __cplusplus
15517: extern "C"
15518: #endif
1.237 moko 15519: char dlopen (void);
1.128 moko 15520: int
1.237 moko 15521: main (void)
1.128 moko 15522: {
1.150 moko 15523: return dlopen ();
1.128 moko 15524: ;
15525: return 0;
15526: }
15527: _ACEOF
1.237 moko 15528: if ac_fn_c_try_link "$LINENO"
15529: then :
1.128 moko 15530: ac_cv_lib_dl_dlopen=yes
1.237 moko 15531: else case e in #(
15532: e) ac_cv_lib_dl_dlopen=no ;;
15533: esac
1.128 moko 15534: fi
1.237 moko 15535: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15536: conftest$ac_exeext conftest.$ac_ext
1.237 moko 15537: LIBS=$ac_check_lib_save_LIBS ;;
15538: esac
1.128 moko 15539: fi
1.237 moko 15540: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15541: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15542: if test "x$ac_cv_lib_dl_dlopen" = xyes
15543: then :
15544: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15545: else case e in #(
15546: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15547: printf %s "checking for dlopen in -lsvld... " >&6; }
15548: if test ${ac_cv_lib_svld_dlopen+y}
15549: then :
15550: printf %s "(cached) " >&6
15551: else case e in #(
15552: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15553: LIBS="-lsvld $LIBS"
1.150 moko 15554: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15555: /* end confdefs.h. */
15556:
1.150 moko 15557: /* Override any GCC internal prototype to avoid an error.
15558: Use char because int might match the return type of a GCC
1.237 moko 15559: builtin and then its argument prototype would still apply.
15560: The 'extern "C"' is for builds by C++ compilers;
15561: although this is not generally supported in C code supporting it here
15562: has little cost and some practical benefit (sr 110532). */
1.128 moko 15563: #ifdef __cplusplus
15564: extern "C"
15565: #endif
1.237 moko 15566: char dlopen (void);
1.128 moko 15567: int
1.237 moko 15568: main (void)
1.128 moko 15569: {
1.150 moko 15570: return dlopen ();
1.128 moko 15571: ;
15572: return 0;
15573: }
15574: _ACEOF
1.237 moko 15575: if ac_fn_c_try_link "$LINENO"
15576: then :
1.128 moko 15577: ac_cv_lib_svld_dlopen=yes
1.237 moko 15578: else case e in #(
15579: e) ac_cv_lib_svld_dlopen=no ;;
15580: esac
1.128 moko 15581: fi
1.237 moko 15582: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15583: conftest$ac_exeext conftest.$ac_ext
1.237 moko 15584: LIBS=$ac_check_lib_save_LIBS ;;
15585: esac
1.128 moko 15586: fi
1.237 moko 15587: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15588: printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15589: if test "x$ac_cv_lib_svld_dlopen" = xyes
15590: then :
15591: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15592: else case e in #(
15593: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15594: printf %s "checking for dld_link in -ldld... " >&6; }
15595: if test ${ac_cv_lib_dld_dld_link+y}
15596: then :
15597: printf %s "(cached) " >&6
15598: else case e in #(
15599: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15600: LIBS="-ldld $LIBS"
1.150 moko 15601: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15602: /* end confdefs.h. */
15603:
1.150 moko 15604: /* Override any GCC internal prototype to avoid an error.
15605: Use char because int might match the return type of a GCC
1.237 moko 15606: builtin and then its argument prototype would still apply.
15607: The 'extern "C"' is for builds by C++ compilers;
15608: although this is not generally supported in C code supporting it here
15609: has little cost and some practical benefit (sr 110532). */
1.128 moko 15610: #ifdef __cplusplus
15611: extern "C"
15612: #endif
1.237 moko 15613: char dld_link (void);
1.128 moko 15614: int
1.237 moko 15615: main (void)
1.128 moko 15616: {
1.150 moko 15617: return dld_link ();
1.128 moko 15618: ;
15619: return 0;
15620: }
15621: _ACEOF
1.237 moko 15622: if ac_fn_c_try_link "$LINENO"
15623: then :
1.128 moko 15624: ac_cv_lib_dld_dld_link=yes
1.237 moko 15625: else case e in #(
15626: e) ac_cv_lib_dld_dld_link=no ;;
15627: esac
1.150 moko 15628: fi
1.237 moko 15629: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15630: conftest$ac_exeext conftest.$ac_ext
1.237 moko 15631: LIBS=$ac_check_lib_save_LIBS ;;
15632: esac
1.128 moko 15633: fi
1.237 moko 15634: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15635: printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15636: if test "x$ac_cv_lib_dld_dld_link" = xyes
15637: then :
15638: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1.128 moko 15639: fi
15640:
1.237 moko 15641: ;;
15642: esac
1.128 moko 15643: fi
15644:
1.237 moko 15645: ;;
15646: esac
1.128 moko 15647: fi
15648:
1.237 moko 15649: ;;
15650: esac
1.128 moko 15651: fi
15652:
1.237 moko 15653: ;;
15654: esac
1.128 moko 15655: fi
15656:
1.237 moko 15657: ;;
15658: esac
1.128 moko 15659: fi
15660:
15661: ;;
15662: esac
15663:
1.237 moko 15664: if test no = "$lt_cv_dlopen"; then
15665: enable_dlopen=no
15666: else
1.128 moko 15667: enable_dlopen=yes
15668: fi
15669:
15670: case $lt_cv_dlopen in
15671: dlopen)
1.237 moko 15672: save_CPPFLAGS=$CPPFLAGS
15673: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.128 moko 15674:
1.237 moko 15675: save_LDFLAGS=$LDFLAGS
1.128 moko 15676: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15677:
1.237 moko 15678: save_LIBS=$LIBS
1.128 moko 15679: LIBS="$lt_cv_dlopen_libs $LIBS"
15680:
1.237 moko 15681: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15682: printf %s "checking whether a program can dlopen itself... " >&6; }
15683: if test ${lt_cv_dlopen_self+y}
15684: then :
15685: printf %s "(cached) " >&6
15686: else case e in #(
15687: e) if test yes = "$cross_compiling"; then :
1.128 moko 15688: lt_cv_dlopen_self=cross
15689: else
15690: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15691: lt_status=$lt_dlunknown
15692: cat > conftest.$ac_ext <<_LT_EOF
15693: #line $LINENO "configure"
15694: #include "confdefs.h"
15695:
15696: #if HAVE_DLFCN_H
15697: #include <dlfcn.h>
15698: #endif
15699:
15700: #include <stdio.h>
15701:
15702: #ifdef RTLD_GLOBAL
15703: # define LT_DLGLOBAL RTLD_GLOBAL
15704: #else
15705: # ifdef DL_GLOBAL
15706: # define LT_DLGLOBAL DL_GLOBAL
15707: # else
15708: # define LT_DLGLOBAL 0
15709: # endif
15710: #endif
15711:
15712: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15713: find out it does not work in some platform. */
15714: #ifndef LT_DLLAZY_OR_NOW
15715: # ifdef RTLD_LAZY
15716: # define LT_DLLAZY_OR_NOW RTLD_LAZY
15717: # else
15718: # ifdef DL_LAZY
15719: # define LT_DLLAZY_OR_NOW DL_LAZY
15720: # else
15721: # ifdef RTLD_NOW
15722: # define LT_DLLAZY_OR_NOW RTLD_NOW
15723: # else
15724: # ifdef DL_NOW
15725: # define LT_DLLAZY_OR_NOW DL_NOW
15726: # else
15727: # define LT_DLLAZY_OR_NOW 0
15728: # endif
15729: # endif
15730: # endif
15731: # endif
15732: #endif
15733:
1.237 moko 15734: /* When -fvisibility=hidden is used, assume the code has been annotated
1.128 moko 15735: correspondingly for the symbols needed. */
1.237 moko 15736: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15737: int fnord (void) __attribute__((visibility("default")));
1.128 moko 15738: #endif
15739:
1.237 moko 15740: int fnord (void) { return 42; }
15741: int main (void)
1.128 moko 15742: {
15743: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15744: int status = $lt_dlunknown;
15745:
15746: if (self)
15747: {
15748: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15749: else
15750: {
15751: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15752: else puts (dlerror ());
15753: }
15754: /* dlclose (self); */
15755: }
15756: else
15757: puts (dlerror ());
15758:
15759: return status;
15760: }
15761: _LT_EOF
1.150 moko 15762: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 15763: (eval $ac_link) 2>&5
15764: ac_status=$?
1.237 moko 15765: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15766: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.128 moko 15767: (./conftest; exit; ) >&5 2>/dev/null
15768: lt_status=$?
15769: case x$lt_status in
15770: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15771: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15772: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15773: esac
15774: else :
15775: # compilation failed
15776: lt_cv_dlopen_self=no
15777: fi
15778: fi
15779: rm -fr conftest*
15780:
1.237 moko 15781: ;;
15782: esac
1.128 moko 15783: fi
1.237 moko 15784: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15785: printf "%s\n" "$lt_cv_dlopen_self" >&6; }
1.128 moko 15786:
1.237 moko 15787: if test yes = "$lt_cv_dlopen_self"; then
1.128 moko 15788: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.237 moko 15789: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15790: printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15791: if test ${lt_cv_dlopen_self_static+y}
15792: then :
15793: printf %s "(cached) " >&6
15794: else case e in #(
15795: e) if test yes = "$cross_compiling"; then :
1.128 moko 15796: lt_cv_dlopen_self_static=cross
15797: else
15798: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15799: lt_status=$lt_dlunknown
15800: cat > conftest.$ac_ext <<_LT_EOF
15801: #line $LINENO "configure"
15802: #include "confdefs.h"
15803:
15804: #if HAVE_DLFCN_H
15805: #include <dlfcn.h>
15806: #endif
15807:
15808: #include <stdio.h>
15809:
15810: #ifdef RTLD_GLOBAL
15811: # define LT_DLGLOBAL RTLD_GLOBAL
15812: #else
15813: # ifdef DL_GLOBAL
15814: # define LT_DLGLOBAL DL_GLOBAL
15815: # else
15816: # define LT_DLGLOBAL 0
15817: # endif
15818: #endif
15819:
15820: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15821: find out it does not work in some platform. */
15822: #ifndef LT_DLLAZY_OR_NOW
15823: # ifdef RTLD_LAZY
15824: # define LT_DLLAZY_OR_NOW RTLD_LAZY
15825: # else
15826: # ifdef DL_LAZY
15827: # define LT_DLLAZY_OR_NOW DL_LAZY
15828: # else
15829: # ifdef RTLD_NOW
15830: # define LT_DLLAZY_OR_NOW RTLD_NOW
15831: # else
15832: # ifdef DL_NOW
15833: # define LT_DLLAZY_OR_NOW DL_NOW
15834: # else
15835: # define LT_DLLAZY_OR_NOW 0
15836: # endif
15837: # endif
15838: # endif
15839: # endif
15840: #endif
15841:
1.237 moko 15842: /* When -fvisibility=hidden is used, assume the code has been annotated
1.128 moko 15843: correspondingly for the symbols needed. */
1.237 moko 15844: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15845: int fnord (void) __attribute__((visibility("default")));
1.128 moko 15846: #endif
15847:
1.237 moko 15848: int fnord (void) { return 42; }
15849: int main (void)
1.128 moko 15850: {
15851: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15852: int status = $lt_dlunknown;
15853:
15854: if (self)
15855: {
15856: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15857: else
15858: {
15859: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15860: else puts (dlerror ());
15861: }
15862: /* dlclose (self); */
15863: }
15864: else
15865: puts (dlerror ());
15866:
15867: return status;
15868: }
15869: _LT_EOF
1.150 moko 15870: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 15871: (eval $ac_link) 2>&5
15872: ac_status=$?
1.237 moko 15873: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15874: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.128 moko 15875: (./conftest; exit; ) >&5 2>/dev/null
15876: lt_status=$?
15877: case x$lt_status in
15878: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15879: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15880: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15881: esac
15882: else :
15883: # compilation failed
15884: lt_cv_dlopen_self_static=no
15885: fi
15886: fi
15887: rm -fr conftest*
15888:
1.237 moko 15889: ;;
15890: esac
1.128 moko 15891: fi
1.237 moko 15892: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15893: printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 15894: fi
15895:
1.237 moko 15896: CPPFLAGS=$save_CPPFLAGS
15897: LDFLAGS=$save_LDFLAGS
15898: LIBS=$save_LIBS
1.128 moko 15899: ;;
15900: esac
15901:
15902: case $lt_cv_dlopen_self in
15903: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15904: *) enable_dlopen_self=unknown ;;
15905: esac
15906:
15907: case $lt_cv_dlopen_self_static in
15908: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15909: *) enable_dlopen_self_static=unknown ;;
15910: esac
15911: fi
15912:
15913:
15914:
15915:
15916:
15917:
15918:
15919:
15920:
15921:
15922:
15923:
15924:
15925:
15926:
15927:
15928:
15929: striplib=
15930: old_striplib=
1.237 moko 15931: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15932: printf %s "checking whether stripping libraries is possible... " >&6; }
15933: if test -z "$STRIP"; then
15934: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15935: printf "%s\n" "no" >&6; }
15936: else
15937: if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15938: old_striplib="$STRIP --strip-debug"
15939: striplib="$STRIP --strip-unneeded"
15940: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15941: printf "%s\n" "yes" >&6; }
15942: else
15943: case $host_os in
15944: darwin*)
15945: # FIXME - insert some real tests, host_os isn't really good enough
1.128 moko 15946: striplib="$STRIP -x"
15947: old_striplib="$STRIP -S"
1.237 moko 15948: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15949: printf "%s\n" "yes" >&6; }
15950: ;;
15951: freebsd*)
15952: if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15953: old_striplib="$STRIP --strip-debug"
15954: striplib="$STRIP --strip-unneeded"
15955: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15956: printf "%s\n" "yes" >&6; }
15957: else
15958: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15959: printf "%s\n" "no" >&6; }
15960: fi
15961: ;;
15962: *)
15963: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15964: printf "%s\n" "no" >&6; }
15965: ;;
15966: esac
15967: fi
1.128 moko 15968: fi
15969:
15970:
15971:
15972:
15973:
15974:
15975:
15976:
15977:
15978:
15979:
15980:
1.237 moko 15981: # Report what library types will actually be built
15982: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15983: printf %s "checking if libtool supports shared libraries... " >&6; }
15984: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15985: printf "%s\n" "$can_build_shared" >&6; }
15986:
15987: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15988: printf %s "checking whether to build shared libraries... " >&6; }
15989: test no = "$can_build_shared" && enable_shared=no
1.128 moko 15990:
15991: # On AIX, shared libraries and static libraries use the same namespace, and
15992: # are all built from PIC.
15993: case $host_os in
15994: aix3*)
1.237 moko 15995: test yes = "$enable_shared" && enable_static=no
1.128 moko 15996: if test -n "$RANLIB"; then
15997: archive_cmds="$archive_cmds~\$RANLIB \$lib"
15998: postinstall_cmds='$RANLIB $lib'
15999: fi
16000: ;;
16001:
16002: aix[4-9]*)
1.237 moko 16003: if test ia64 != "$host_cpu"; then
16004: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16005: yes,aix,yes) ;; # shared object as lib.so file only
16006: yes,svr4,*) ;; # shared object as lib.so archive member only
16007: yes,*) enable_static=no ;; # shared object in lib.a archive as well
16008: esac
1.128 moko 16009: fi
16010: ;;
16011: esac
1.237 moko 16012: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16013: printf "%s\n" "$enable_shared" >&6; }
1.128 moko 16014:
1.237 moko 16015: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16016: printf %s "checking whether to build static libraries... " >&6; }
1.128 moko 16017: # Make sure either enable_shared or enable_static is yes.
1.237 moko 16018: test yes = "$enable_shared" || enable_static=yes
16019: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16020: printf "%s\n" "$enable_static" >&6; }
1.128 moko 16021:
16022:
16023:
16024:
16025: fi
16026: ac_ext=c
16027: ac_cpp='$CPP $CPPFLAGS'
16028: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16029: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16030: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16031:
1.237 moko 16032: CC=$lt_save_CC
1.128 moko 16033:
1.237 moko 16034: if test -n "$CXX" && ( test no != "$CXX" &&
16035: ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16036: (test g++ != "$CXX"))); then
1.150 moko 16037: ac_ext=cpp
1.128 moko 16038: ac_cpp='$CXXCPP $CPPFLAGS'
16039: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16040: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16041: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.237 moko 16042: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16043: printf %s "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 16044: if test -z "$CXXCPP"; then
1.237 moko 16045: if test ${ac_cv_prog_CXXCPP+y}
16046: then :
16047: printf %s "(cached) " >&6
16048: else case e in #(
16049: e) # Double quotes because $CXX needs to be expanded
16050: for CXXCPP in "$CXX -E" cpp /lib/cpp
1.128 moko 16051: do
16052: ac_preproc_ok=false
16053: for ac_cxx_preproc_warn_flag in '' yes
16054: do
16055: # Use a header file that comes with gcc, so configuring glibc
16056: # with a fresh cross-compiler works.
16057: # On the NeXT, cc -E runs the code through the compiler's parser,
16058: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 16059: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16060: /* end confdefs.h. */
1.237 moko 16061: #include <limits.h>
1.128 moko 16062: Syntax error
16063: _ACEOF
1.237 moko 16064: if ac_fn_cxx_try_cpp "$LINENO"
16065: then :
1.150 moko 16066:
1.237 moko 16067: else case e in #(
16068: e) # Broken: fails on valid input.
16069: continue ;;
16070: esac
1.128 moko 16071: fi
1.150 moko 16072: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16073:
1.150 moko 16074: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 16075: # can be detected and how.
1.150 moko 16076: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16077: /* end confdefs.h. */
16078: #include <ac_nonexistent.h>
16079: _ACEOF
1.237 moko 16080: if ac_fn_cxx_try_cpp "$LINENO"
16081: then :
1.128 moko 16082: # Broken: success on invalid input.
16083: continue
1.237 moko 16084: else case e in #(
16085: e) # Passes both tests.
1.128 moko 16086: ac_preproc_ok=:
1.237 moko 16087: break ;;
16088: esac
1.128 moko 16089: fi
1.150 moko 16090: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16091:
16092: done
1.237 moko 16093: # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 16094: rm -f conftest.i conftest.err conftest.$ac_ext
1.237 moko 16095: if $ac_preproc_ok
16096: then :
1.128 moko 16097: break
16098: fi
16099:
16100: done
16101: ac_cv_prog_CXXCPP=$CXXCPP
1.237 moko 16102: ;;
16103: esac
1.128 moko 16104: fi
16105: CXXCPP=$ac_cv_prog_CXXCPP
16106: else
16107: ac_cv_prog_CXXCPP=$CXXCPP
16108: fi
1.237 moko 16109: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16110: printf "%s\n" "$CXXCPP" >&6; }
1.128 moko 16111: ac_preproc_ok=false
16112: for ac_cxx_preproc_warn_flag in '' yes
16113: do
16114: # Use a header file that comes with gcc, so configuring glibc
16115: # with a fresh cross-compiler works.
16116: # On the NeXT, cc -E runs the code through the compiler's parser,
16117: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 16118: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16119: /* end confdefs.h. */
1.237 moko 16120: #include <limits.h>
1.128 moko 16121: Syntax error
16122: _ACEOF
1.237 moko 16123: if ac_fn_cxx_try_cpp "$LINENO"
16124: then :
1.150 moko 16125:
1.237 moko 16126: else case e in #(
16127: e) # Broken: fails on valid input.
16128: continue ;;
16129: esac
1.128 moko 16130: fi
1.150 moko 16131: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16132:
1.150 moko 16133: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 16134: # can be detected and how.
1.150 moko 16135: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16136: /* end confdefs.h. */
16137: #include <ac_nonexistent.h>
16138: _ACEOF
1.237 moko 16139: if ac_fn_cxx_try_cpp "$LINENO"
16140: then :
1.128 moko 16141: # Broken: success on invalid input.
16142: continue
1.237 moko 16143: else case e in #(
16144: e) # Passes both tests.
1.128 moko 16145: ac_preproc_ok=:
1.237 moko 16146: break ;;
16147: esac
1.128 moko 16148: fi
1.150 moko 16149: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16150:
16151: done
1.237 moko 16152: # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 16153: rm -f conftest.i conftest.err conftest.$ac_ext
1.237 moko 16154: if $ac_preproc_ok
16155: then :
1.150 moko 16156:
1.237 moko 16157: else case e in #(
16158: e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16159: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 16160: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
1.237 moko 16161: See 'config.log' for more details" "$LINENO" 5; } ;;
16162: esac
1.128 moko 16163: fi
16164:
16165: ac_ext=c
16166: ac_cpp='$CPP $CPPFLAGS'
16167: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16168: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16169: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16170:
16171: else
16172: _lt_caught_CXX_error=yes
16173: fi
16174:
1.150 moko 16175: ac_ext=cpp
1.128 moko 16176: ac_cpp='$CXXCPP $CPPFLAGS'
16177: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16178: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16179: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16180:
16181: archive_cmds_need_lc_CXX=no
16182: allow_undefined_flag_CXX=
16183: always_export_symbols_CXX=no
16184: archive_expsym_cmds_CXX=
16185: compiler_needs_object_CXX=no
16186: export_dynamic_flag_spec_CXX=
16187: hardcode_direct_CXX=no
16188: hardcode_direct_absolute_CXX=no
16189: hardcode_libdir_flag_spec_CXX=
16190: hardcode_libdir_separator_CXX=
16191: hardcode_minus_L_CXX=no
16192: hardcode_shlibpath_var_CXX=unsupported
16193: hardcode_automatic_CXX=no
16194: inherit_rpath_CXX=no
16195: module_cmds_CXX=
16196: module_expsym_cmds_CXX=
16197: link_all_deplibs_CXX=unknown
16198: old_archive_cmds_CXX=$old_archive_cmds
16199: reload_flag_CXX=$reload_flag
16200: reload_cmds_CXX=$reload_cmds
16201: no_undefined_flag_CXX=
16202: whole_archive_flag_spec_CXX=
16203: enable_shared_with_static_runtimes_CXX=no
16204:
16205: # Source file extension for C++ test sources.
16206: ac_ext=cpp
16207:
16208: # Object file extension for compiled C++ test sources.
16209: objext=o
16210: objext_CXX=$objext
16211:
16212: # No sense in running all these tests if we already determined that
16213: # the CXX compiler isn't working. Some variables (like enable_shared)
16214: # are currently assumed to apply to all compilers on this platform,
16215: # and will be corrupted by setting them based on a non-working compiler.
1.237 moko 16216: if test yes != "$_lt_caught_CXX_error"; then
1.128 moko 16217: # Code to be used in simple compile tests
16218: lt_simple_compile_test_code="int some_variable = 0;"
16219:
16220: # Code to be used in simple link tests
16221: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16222:
16223: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16224:
16225:
16226:
16227:
16228:
16229:
16230: # If no C compiler was specified, use CC.
16231: LTCC=${LTCC-"$CC"}
16232:
16233: # If no C compiler flags were specified, use CFLAGS.
16234: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16235:
16236: # Allow CC to be a program name with arguments.
16237: compiler=$CC
16238:
16239:
16240: # save warnings/boilerplate of simple test code
16241: ac_outfile=conftest.$ac_objext
16242: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16243: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16244: _lt_compiler_boilerplate=`cat conftest.err`
16245: $RM conftest*
16246:
16247: ac_outfile=conftest.$ac_objext
16248: echo "$lt_simple_link_test_code" >conftest.$ac_ext
16249: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16250: _lt_linker_boilerplate=`cat conftest.err`
16251: $RM -r conftest*
16252:
16253:
16254: # Allow CC to be a program name with arguments.
16255: lt_save_CC=$CC
16256: lt_save_CFLAGS=$CFLAGS
16257: lt_save_LD=$LD
16258: lt_save_GCC=$GCC
16259: GCC=$GXX
16260: lt_save_with_gnu_ld=$with_gnu_ld
16261: lt_save_path_LD=$lt_cv_path_LD
16262: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16263: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16264: else
16265: $as_unset lt_cv_prog_gnu_ld
16266: fi
16267: if test -n "${lt_cv_path_LDCXX+set}"; then
16268: lt_cv_path_LD=$lt_cv_path_LDCXX
16269: else
16270: $as_unset lt_cv_path_LD
16271: fi
16272: test -z "${LDCXX+set}" || LD=$LDCXX
16273: CC=${CXX-"c++"}
16274: CFLAGS=$CXXFLAGS
16275: compiler=$CC
16276: compiler_CXX=$CC
1.237 moko 16277: func_cc_basename $compiler
16278: cc_basename=$func_cc_basename_result
1.128 moko 16279:
16280:
16281: if test -n "$compiler"; then
16282: # We don't want -fno-exception when compiling C++ code, so set the
16283: # no_builtin_flag separately
1.237 moko 16284: if test yes = "$GXX"; then
1.128 moko 16285: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16286: else
16287: lt_prog_compiler_no_builtin_flag_CXX=
16288: fi
16289:
1.237 moko 16290: if test yes = "$GXX"; then
1.128 moko 16291: # Set up default GNU C++ configuration
16292:
16293:
16294:
1.150 moko 16295: # Check whether --with-gnu-ld was given.
1.237 moko 16296: if test ${with_gnu_ld+y}
16297: then :
16298: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16299: else case e in #(
16300: e) with_gnu_ld=no ;;
16301: esac
1.150 moko 16302: fi
16303:
1.128 moko 16304: ac_prog=ld
1.237 moko 16305: if test yes = "$GCC"; then
1.128 moko 16306: # Check if gcc -print-prog-name=ld gives a path.
1.237 moko 16307: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16308: printf %s "checking for ld used by $CC... " >&6; }
1.128 moko 16309: case $host in
1.237 moko 16310: *-*-mingw* | *-*-windows*)
16311: # gcc leaves a trailing carriage return, which upsets mingw
1.128 moko 16312: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16313: *)
16314: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16315: esac
16316: case $ac_prog in
16317: # Accept absolute paths.
16318: [\\/]* | ?:[\\/]*)
16319: re_direlt='/[^/][^/]*/\.\./'
16320: # Canonicalize the pathname of ld
16321: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16322: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16323: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16324: done
1.237 moko 16325: test -z "$LD" && LD=$ac_prog
1.128 moko 16326: ;;
16327: "")
16328: # If it fails, then pretend we aren't using GCC.
16329: ac_prog=ld
16330: ;;
16331: *)
16332: # If it is relative, then search for the first ld in PATH.
16333: with_gnu_ld=unknown
16334: ;;
16335: esac
1.237 moko 16336: elif test yes = "$with_gnu_ld"; then
16337: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16338: printf %s "checking for GNU ld... " >&6; }
16339: else
16340: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16341: printf %s "checking for non-GNU ld... " >&6; }
16342: fi
16343: if test ${lt_cv_path_LD+y}
16344: then :
16345: printf %s "(cached) " >&6
16346: else case e in #(
16347: e) if test -z "$LD"; then
16348: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 16349: for ac_dir in $PATH; do
1.237 moko 16350: IFS=$lt_save_ifs
1.128 moko 16351: test -z "$ac_dir" && ac_dir=.
16352: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.237 moko 16353: lt_cv_path_LD=$ac_dir/$ac_prog
1.128 moko 16354: # Check to see if the program is GNU ld. I'd rather use --version,
16355: # but apparently some variants of GNU ld only accept -v.
16356: # Break only if it was the GNU/non-GNU ld that we prefer.
16357: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16358: *GNU* | *'with BFD'*)
1.237 moko 16359: test no != "$with_gnu_ld" && break
1.128 moko 16360: ;;
16361: *)
1.237 moko 16362: test yes != "$with_gnu_ld" && break
1.128 moko 16363: ;;
16364: esac
16365: fi
16366: done
1.237 moko 16367: IFS=$lt_save_ifs
1.128 moko 16368: else
1.237 moko 16369: lt_cv_path_LD=$LD # Let the user override the test with a path.
16370: fi ;;
16371: esac
1.128 moko 16372: fi
16373:
1.237 moko 16374: LD=$lt_cv_path_LD
1.128 moko 16375: if test -n "$LD"; then
1.237 moko 16376: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16377: printf "%s\n" "$LD" >&6; }
1.128 moko 16378: else
1.237 moko 16379: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380: printf "%s\n" "no" >&6; }
1.128 moko 16381: fi
1.150 moko 16382: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1.237 moko 16383: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16384: printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16385: if test ${lt_cv_prog_gnu_ld+y}
16386: then :
16387: printf %s "(cached) " >&6
16388: else case e in #(
16389: e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.128 moko 16390: case `$LD -v 2>&1 </dev/null` in
16391: *GNU* | *'with BFD'*)
16392: lt_cv_prog_gnu_ld=yes
16393: ;;
16394: *)
16395: lt_cv_prog_gnu_ld=no
16396: ;;
1.237 moko 16397: esac ;;
1.128 moko 16398: esac
16399: fi
1.237 moko 16400: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16401: printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 16402: with_gnu_ld=$lt_cv_prog_gnu_ld
16403:
16404:
16405:
16406:
16407:
16408:
16409:
16410: # Check if GNU C++ uses GNU ld as the underlying linker, since the
16411: # archiving commands below assume that GNU ld is being used.
1.237 moko 16412: if test yes = "$with_gnu_ld"; then
16413: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16414: 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'
1.128 moko 16415:
1.237 moko 16416: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16417: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1.128 moko 16418:
16419: # If archive_cmds runs LD, not CC, wlarc should be empty
16420: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16421: # investigate it a little bit more. (MM)
1.237 moko 16422: wlarc='$wl'
1.128 moko 16423:
16424: # ancient GNU ld didn't support --whole-archive et. al.
1.237 moko 16425: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16426: whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.128 moko 16427: else
16428: whole_archive_flag_spec_CXX=
16429: fi
16430: else
16431: with_gnu_ld=no
16432: wlarc=
16433:
16434: # A generic and very simple default shared library creation
16435: # command for GNU C++ for the case where it uses the native
16436: # linker, instead of GNU ld. If possible, this setting should
16437: # overridden to take advantage of the native linker features on
16438: # the platform it is being used on.
16439: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16440: fi
16441:
16442: # Commands to make compiler produce verbose output that lists
16443: # what "hidden" libraries, object files and flags are used when
16444: # linking a shared library.
1.237 moko 16445: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 16446:
16447: else
16448: GXX=no
16449: with_gnu_ld=no
16450: wlarc=
16451: fi
16452:
16453: # PORTME: fill in a description of your system's C++ link characteristics
1.237 moko 16454: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16455: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 16456: ld_shlibs_CXX=yes
16457: case $host_os in
16458: aix3*)
16459: # FIXME: insert proper C++ library support
16460: ld_shlibs_CXX=no
16461: ;;
16462: aix[4-9]*)
1.237 moko 16463: if test ia64 = "$host_cpu"; then
1.128 moko 16464: # On IA64, the linker does run time linking by default, so we don't
16465: # have to do anything special.
16466: aix_use_runtimelinking=no
16467: exp_sym_flag='-Bexport'
1.237 moko 16468: no_entry_flag=
1.128 moko 16469: else
16470: aix_use_runtimelinking=no
16471:
16472: # Test if we are trying to use run time linking or normal
16473: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.237 moko 16474: # have runtime linking enabled, and use it for executables.
16475: # For shared libraries, we enable/disable runtime linking
16476: # depending on the kind of the shared library created -
16477: # when "with_aix_soname,aix_use_runtimelinking" is:
16478: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16479: # "aix,yes" lib.so shared, rtl:yes, for executables
16480: # lib.a static archive
16481: # "both,no" lib.so.V(shr.o) shared, rtl:yes
16482: # lib.a(lib.so.V) shared, rtl:no, for executables
16483: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16484: # lib.a(lib.so.V) shared, rtl:no
16485: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16486: # lib.a static archive
1.128 moko 16487: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16488: for ld_flag in $LDFLAGS; do
16489: case $ld_flag in
16490: *-brtl*)
16491: aix_use_runtimelinking=yes
16492: break
16493: ;;
16494: esac
16495: done
1.237 moko 16496: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16497: # With aix-soname=svr4, we create the lib.so.V shared archives only,
16498: # so we don't have lib.a shared libs to link our executables.
16499: # We have to force runtime linking in this case.
16500: aix_use_runtimelinking=yes
16501: LDFLAGS="$LDFLAGS -Wl,-brtl"
16502: fi
1.128 moko 16503: ;;
16504: esac
16505:
16506: exp_sym_flag='-bexport'
16507: no_entry_flag='-bnoentry'
16508: fi
16509:
16510: # When large executables or shared objects are built, AIX ld can
16511: # have problems creating the table of contents. If linking a library
16512: # or program results in "error TOC overflow" add -mminimal-toc to
16513: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16514: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16515:
16516: archive_cmds_CXX=''
16517: hardcode_direct_CXX=yes
16518: hardcode_direct_absolute_CXX=yes
16519: hardcode_libdir_separator_CXX=':'
16520: link_all_deplibs_CXX=yes
1.237 moko 16521: file_list_spec_CXX='$wl-f,'
16522: case $with_aix_soname,$aix_use_runtimelinking in
16523: aix,*) ;; # no import file
16524: svr4,* | *,yes) # use import file
16525: # The Import File defines what to hardcode.
16526: hardcode_direct_CXX=no
16527: hardcode_direct_absolute_CXX=no
16528: ;;
16529: esac
1.128 moko 16530:
1.237 moko 16531: if test yes = "$GXX"; then
1.128 moko 16532: case $host_os in aix4.[012]|aix4.[012].*)
16533: # We only want to do this on AIX 4.2 and lower, the check
16534: # below for broken collect2 doesn't work under 4.3+
1.237 moko 16535: collect2name=`$CC -print-prog-name=collect2`
1.128 moko 16536: if test -f "$collect2name" &&
16537: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16538: then
16539: # We have reworked collect2
16540: :
16541: else
16542: # We have old collect2
16543: hardcode_direct_CXX=unsupported
16544: # It fails to find uninstalled libraries when the uninstalled
16545: # path is not listed in the libpath. Setting hardcode_minus_L
16546: # to unsupported forces relinking
16547: hardcode_minus_L_CXX=yes
16548: hardcode_libdir_flag_spec_CXX='-L$libdir'
16549: hardcode_libdir_separator_CXX=
16550: fi
16551: esac
16552: shared_flag='-shared'
1.237 moko 16553: if test yes = "$aix_use_runtimelinking"; then
16554: shared_flag=$shared_flag' $wl-G'
1.128 moko 16555: fi
1.237 moko 16556: # Need to ensure runtime linking is disabled for the traditional
16557: # shared library, or the linker may eventually find shared libraries
16558: # /with/ Import File - we do not want to mix them.
16559: shared_flag_aix='-shared'
16560: shared_flag_svr4='-shared $wl-G'
1.128 moko 16561: else
16562: # not using gcc
1.237 moko 16563: if test ia64 = "$host_cpu"; then
1.128 moko 16564: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16565: # chokes on -Wl,-G. The following line is correct:
16566: shared_flag='-G'
16567: else
1.237 moko 16568: if test yes = "$aix_use_runtimelinking"; then
16569: shared_flag='$wl-G'
1.128 moko 16570: else
1.237 moko 16571: shared_flag='$wl-bM:SRE'
1.128 moko 16572: fi
1.237 moko 16573: shared_flag_aix='$wl-bM:SRE'
16574: shared_flag_svr4='$wl-G'
1.128 moko 16575: fi
16576: fi
16577:
1.237 moko 16578: export_dynamic_flag_spec_CXX='$wl-bexpall'
1.128 moko 16579: # It seems that -bexpall does not export symbols beginning with
16580: # underscore (_), so it is better to generate a list of symbols to
16581: # export.
16582: always_export_symbols_CXX=yes
1.237 moko 16583: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1.128 moko 16584: # Warning - without using the other runtime loading flags (-brtl),
16585: # -berok will link without error, but may produce a broken library.
1.237 moko 16586: # The "-G" linker flag allows undefined symbols.
16587: no_undefined_flag_CXX='-bernotok'
1.128 moko 16588: # Determine the default libpath from the value encoded in an empty
16589: # executable.
1.237 moko 16590: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 16591: aix_libpath=$lt_cv_aix_libpath
16592: else
1.237 moko 16593: if test ${lt_cv_aix_libpath__CXX+y}
16594: then :
16595: printf %s "(cached) " >&6
16596: else case e in #(
16597: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16598: /* end confdefs.h. */
16599:
16600: int
1.237 moko 16601: main (void)
1.128 moko 16602: {
16603:
16604: ;
16605: return 0;
16606: }
16607: _ACEOF
1.237 moko 16608: if ac_fn_cxx_try_link "$LINENO"
16609: then :
1.128 moko 16610:
16611: lt_aix_libpath_sed='
16612: /Import File Strings/,/^$/ {
16613: /^0/ {
16614: s/^0 *\([^ ]*\) *$/\1/
16615: p
16616: }
16617: }'
16618: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16619: # Check for a 64-bit object if we didn't find anything.
16620: if test -z "$lt_cv_aix_libpath__CXX"; then
16621: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16622: fi
16623: fi
1.237 moko 16624: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 16625: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16626: if test -z "$lt_cv_aix_libpath__CXX"; then
1.237 moko 16627: lt_cv_aix_libpath__CXX=/usr/lib:/lib
1.128 moko 16628: fi
1.237 moko 16629: ;;
16630: esac
1.128 moko 16631: fi
16632:
16633: aix_libpath=$lt_cv_aix_libpath__CXX
16634: fi
16635:
1.237 moko 16636: hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
1.128 moko 16637:
1.237 moko 16638: archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
1.128 moko 16639: else
1.237 moko 16640: if test ia64 = "$host_cpu"; then
16641: hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
1.128 moko 16642: allow_undefined_flag_CXX="-z nodefs"
1.237 moko 16643: 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"
1.128 moko 16644: else
16645: # Determine the default libpath from the value encoded in an
16646: # empty executable.
1.237 moko 16647: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 16648: aix_libpath=$lt_cv_aix_libpath
16649: else
1.237 moko 16650: if test ${lt_cv_aix_libpath__CXX+y}
16651: then :
16652: printf %s "(cached) " >&6
16653: else case e in #(
16654: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16655: /* end confdefs.h. */
16656:
16657: int
1.237 moko 16658: main (void)
1.128 moko 16659: {
16660:
16661: ;
16662: return 0;
16663: }
16664: _ACEOF
1.237 moko 16665: if ac_fn_cxx_try_link "$LINENO"
16666: then :
1.128 moko 16667:
16668: lt_aix_libpath_sed='
16669: /Import File Strings/,/^$/ {
16670: /^0/ {
16671: s/^0 *\([^ ]*\) *$/\1/
16672: p
16673: }
16674: }'
16675: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16676: # Check for a 64-bit object if we didn't find anything.
16677: if test -z "$lt_cv_aix_libpath__CXX"; then
16678: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16679: fi
16680: fi
1.237 moko 16681: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 16682: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16683: if test -z "$lt_cv_aix_libpath__CXX"; then
1.237 moko 16684: lt_cv_aix_libpath__CXX=/usr/lib:/lib
1.128 moko 16685: fi
1.237 moko 16686: ;;
16687: esac
1.128 moko 16688: fi
16689:
16690: aix_libpath=$lt_cv_aix_libpath__CXX
16691: fi
16692:
1.237 moko 16693: hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
1.128 moko 16694: # Warning - without using the other run time loading flags,
16695: # -berok will link without error, but may produce a broken library.
1.237 moko 16696: no_undefined_flag_CXX=' $wl-bernotok'
16697: allow_undefined_flag_CXX=' $wl-berok'
16698: if test yes = "$with_gnu_ld"; then
1.128 moko 16699: # We only use this code for GNU lds that support --whole-archive.
1.237 moko 16700: whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1.128 moko 16701: else
16702: # Exported symbols can be pulled into shared objects from archives
16703: whole_archive_flag_spec_CXX='$convenience'
16704: fi
16705: archive_cmds_need_lc_CXX=yes
1.237 moko 16706: archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16707: # -brtl affects multiple linker settings, -berok does not and is overridden later
16708: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16709: if test svr4 != "$with_aix_soname"; then
16710: # This is similar to how AIX traditionally builds its shared
16711: # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16712: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16713: fi
16714: if test aix != "$with_aix_soname"; then
16715: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16716: else
16717: # used by -dlpreopen to get the symbols
16718: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16719: fi
16720: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
1.128 moko 16721: fi
16722: fi
16723: ;;
16724:
16725: beos*)
16726: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16727: allow_undefined_flag_CXX=unsupported
16728: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16729: # support --undefined. This deserves some investigation. FIXME
1.237 moko 16730: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 16731: else
16732: ld_shlibs_CXX=no
16733: fi
16734: ;;
16735:
16736: chorus*)
16737: case $cc_basename in
16738: *)
16739: # FIXME: insert proper C++ library support
16740: ld_shlibs_CXX=no
16741: ;;
16742: esac
16743: ;;
16744:
1.237 moko 16745: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 16746: case $GXX,$cc_basename in
1.237 moko 16747: ,cl* | no,cl* | ,icl* | no,icl*)
16748: # Native MSVC or ICC
1.128 moko 16749: # hardcode_libdir_flag_spec is actually meaningless, as there is
16750: # no search path for DLLs.
16751: hardcode_libdir_flag_spec_CXX=' '
16752: allow_undefined_flag_CXX=unsupported
16753: always_export_symbols_CXX=yes
16754: file_list_spec_CXX='@'
16755: # Tell ltmain to make .lib files, not .a files.
16756: libext=lib
16757: # Tell ltmain to make .dll files, not .so files.
1.237 moko 16758: shrext_cmds=.dll
1.128 moko 16759: # FIXME: Setting linknames here is a bad hack.
1.237 moko 16760: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16761: archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16762: cp "$export_symbols" "$output_objdir/$soname.def";
16763: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16764: else
16765: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16766: fi~
16767: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16768: linknames='
1.128 moko 16769: # The linker will not automatically build a static lib if we build a DLL.
16770: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16771: enable_shared_with_static_runtimes_CXX=yes
16772: # Don't use ranlib
16773: old_postinstall_cmds_CXX='chmod 644 $oldlib'
16774: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
1.237 moko 16775: lt_tool_outputfile="@TOOL_OUTPUT@"~
16776: case $lt_outputfile in
16777: *.exe|*.EXE) ;;
16778: *)
16779: lt_outputfile=$lt_outputfile.exe
16780: lt_tool_outputfile=$lt_tool_outputfile.exe
16781: ;;
16782: esac~
16783: func_to_tool_file "$lt_outputfile"~
16784: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16785: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16786: $RM "$lt_outputfile.manifest";
16787: fi'
1.128 moko 16788: ;;
16789: *)
16790: # g++
16791: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16792: # as there is no search path for DLLs.
16793: hardcode_libdir_flag_spec_CXX='-L$libdir'
1.237 moko 16794: export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
1.128 moko 16795: allow_undefined_flag_CXX=unsupported
16796: always_export_symbols_CXX=no
16797: enable_shared_with_static_runtimes_CXX=yes
1.237 moko 16798: file_list_spec_CXX='@'
1.128 moko 16799:
16800: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
1.237 moko 16801: 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'
16802: # If the export-symbols file already is a .def file, use it as
16803: # is; otherwise, prepend EXPORTS...
16804: archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16805: cp $export_symbols $output_objdir/$soname.def;
16806: else
16807: echo EXPORTS > $output_objdir/$soname.def;
16808: cat $export_symbols >> $output_objdir/$soname.def;
16809: fi~
16810: $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'
1.128 moko 16811: else
16812: ld_shlibs_CXX=no
16813: fi
16814: ;;
16815: esac
16816: ;;
16817: darwin* | rhapsody*)
16818:
16819:
16820: archive_cmds_need_lc_CXX=no
16821: hardcode_direct_CXX=no
16822: hardcode_automatic_CXX=yes
16823: hardcode_shlibpath_var_CXX=unsupported
1.237 moko 16824: if test yes = "$lt_cv_ld_force_load"; then
16825: 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.128 moko 16826:
16827: else
16828: whole_archive_flag_spec_CXX=''
16829: fi
16830: link_all_deplibs_CXX=yes
1.237 moko 16831: allow_undefined_flag_CXX=$_lt_dar_allow_undefined
1.128 moko 16832: case $cc_basename in
1.237 moko 16833: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1.128 moko 16834: *) _lt_dar_can_shared=$GCC ;;
16835: esac
1.237 moko 16836: if test yes = "$_lt_dar_can_shared"; then
1.128 moko 16837: output_verbose_link_cmd=func_echo_all
1.237 moko 16838: 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"
16839: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16840: 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"
16841: 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"
16842: if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
16843: 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"
16844: 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"
1.128 moko 16845: fi
16846:
16847: else
16848: ld_shlibs_CXX=no
16849: fi
16850:
16851: ;;
16852:
1.237 moko 16853: os2*)
16854: hardcode_libdir_flag_spec_CXX='-L$libdir'
16855: hardcode_minus_L_CXX=yes
16856: allow_undefined_flag_CXX=unsupported
16857: shrext_cmds=.dll
16858: archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16859: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16860: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16861: $ECHO EXPORTS >> $output_objdir/$libname.def~
16862: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16863: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16864: emximp -o $lib $output_objdir/$libname.def'
16865: archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16866: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16867: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16868: $ECHO EXPORTS >> $output_objdir/$libname.def~
16869: prefix_cmds="$SED"~
16870: if test EXPORTS = "`$SED 1q $export_symbols`"; then
16871: prefix_cmds="$prefix_cmds -e 1d";
16872: fi~
16873: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16874: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16875: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16876: emximp -o $lib $output_objdir/$libname.def'
16877: old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16878: enable_shared_with_static_runtimes_CXX=yes
16879: file_list_spec_CXX='@'
16880: ;;
16881:
1.128 moko 16882: dgux*)
16883: case $cc_basename in
16884: ec++*)
16885: # FIXME: insert proper C++ library support
16886: ld_shlibs_CXX=no
16887: ;;
16888: ghcx*)
16889: # Green Hills C++ Compiler
16890: # FIXME: insert proper C++ library support
16891: ld_shlibs_CXX=no
16892: ;;
16893: *)
16894: # FIXME: insert proper C++ library support
16895: ld_shlibs_CXX=no
16896: ;;
16897: esac
16898: ;;
16899:
16900: freebsd2.*)
16901: # C++ shared libraries reported to be fairly broken before
16902: # switch to ELF
16903: ld_shlibs_CXX=no
16904: ;;
16905:
16906: freebsd-elf*)
16907: archive_cmds_need_lc_CXX=no
16908: ;;
16909:
1.237 moko 16910: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 16911: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16912: # conventions
16913: ld_shlibs_CXX=yes
16914: ;;
16915:
16916: haiku*)
1.237 moko 16917: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16918: link_all_deplibs_CXX=no
1.128 moko 16919: ;;
16920:
16921: hpux9*)
1.237 moko 16922: hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1.128 moko 16923: hardcode_libdir_separator_CXX=:
1.237 moko 16924: export_dynamic_flag_spec_CXX='$wl-E'
1.128 moko 16925: hardcode_direct_CXX=yes
16926: hardcode_minus_L_CXX=yes # Not in the search PATH,
16927: # but as the default
16928: # location of the library.
16929:
16930: case $cc_basename in
16931: CC*)
16932: # FIXME: insert proper C++ library support
16933: ld_shlibs_CXX=no
16934: ;;
16935: aCC*)
1.237 moko 16936: 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.128 moko 16937: # Commands to make compiler produce verbose output that lists
16938: # what "hidden" libraries, object files and flags are used when
16939: # linking a shared library.
16940: #
16941: # There doesn't appear to be a way to prevent this compiler from
16942: # explicitly linking system object files so we need to strip them
16943: # from the output so that they don't get included in the library
16944: # dependencies.
1.237 moko 16945: 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"'
1.128 moko 16946: ;;
16947: *)
1.237 moko 16948: if test yes = "$GXX"; then
16949: 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
1.128 moko 16950: else
16951: # FIXME: insert proper C++ library support
16952: ld_shlibs_CXX=no
16953: fi
16954: ;;
16955: esac
16956: ;;
16957:
16958: hpux10*|hpux11*)
1.237 moko 16959: if test no = "$with_gnu_ld"; then
16960: hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1.128 moko 16961: hardcode_libdir_separator_CXX=:
16962:
16963: case $host_cpu in
16964: hppa*64*|ia64*)
16965: ;;
16966: *)
1.237 moko 16967: export_dynamic_flag_spec_CXX='$wl-E'
1.128 moko 16968: ;;
16969: esac
16970: fi
16971: case $host_cpu in
16972: hppa*64*|ia64*)
16973: hardcode_direct_CXX=no
16974: hardcode_shlibpath_var_CXX=no
16975: ;;
16976: *)
16977: hardcode_direct_CXX=yes
16978: hardcode_direct_absolute_CXX=yes
16979: hardcode_minus_L_CXX=yes # Not in the search PATH,
16980: # but as the default
16981: # location of the library.
16982: ;;
16983: esac
16984:
16985: case $cc_basename in
16986: CC*)
16987: # FIXME: insert proper C++ library support
16988: ld_shlibs_CXX=no
16989: ;;
16990: aCC*)
16991: case $host_cpu in
16992: hppa*64*)
1.237 moko 16993: archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 16994: ;;
16995: ia64*)
1.237 moko 16996: archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 16997: ;;
16998: *)
1.237 moko 16999: archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17000: ;;
17001: esac
17002: # Commands to make compiler produce verbose output that lists
17003: # what "hidden" libraries, object files and flags are used when
17004: # linking a shared library.
17005: #
17006: # There doesn't appear to be a way to prevent this compiler from
17007: # explicitly linking system object files so we need to strip them
17008: # from the output so that they don't get included in the library
17009: # dependencies.
1.237 moko 17010: 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"'
1.128 moko 17011: ;;
17012: *)
1.237 moko 17013: if test yes = "$GXX"; then
17014: if test no = "$with_gnu_ld"; then
1.128 moko 17015: case $host_cpu in
17016: hppa*64*)
1.237 moko 17017: archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17018: ;;
17019: ia64*)
1.237 moko 17020: archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17021: ;;
17022: *)
1.237 moko 17023: 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'
1.128 moko 17024: ;;
17025: esac
17026: fi
17027: else
17028: # FIXME: insert proper C++ library support
17029: ld_shlibs_CXX=no
17030: fi
17031: ;;
17032: esac
17033: ;;
17034:
17035: interix[3-9]*)
17036: hardcode_direct_CXX=no
17037: hardcode_shlibpath_var_CXX=no
1.237 moko 17038: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17039: export_dynamic_flag_spec_CXX='$wl-E'
1.128 moko 17040: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17041: # Instead, shared libraries are loaded at an image base (0x10000000 by
17042: # default) and relocated if they conflict, which is a slow very memory
17043: # consuming and fragmenting process. To avoid this, we pick a random,
17044: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17045: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.237 moko 17046: 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'
17047: 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'
1.128 moko 17048: ;;
17049: irix5* | irix6*)
17050: case $cc_basename in
17051: CC*)
17052: # SGI C++
1.237 moko 17053: 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'
1.128 moko 17054:
17055: # Archives containing C++ object files must be created using
17056: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17057: # necessary to make sure instantiated templates are included
17058: # in the archive.
17059: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17060: ;;
17061: *)
1.237 moko 17062: if test yes = "$GXX"; then
17063: if test no = "$with_gnu_ld"; then
17064: 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'
1.128 moko 17065: else
1.237 moko 17066: 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'
1.128 moko 17067: fi
17068: fi
17069: link_all_deplibs_CXX=yes
17070: ;;
17071: esac
1.237 moko 17072: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1.128 moko 17073: hardcode_libdir_separator_CXX=:
17074: inherit_rpath_CXX=yes
17075: ;;
17076:
1.237 moko 17077: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 17078: case $cc_basename in
17079: KCC*)
17080: # Kuck and Associates, Inc. (KAI) C++ Compiler
17081:
17082: # KCC will only create a shared library if the output file
17083: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17084: # to its proper name (with version) after linking.
1.237 moko 17085: 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'
17086: 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'
1.128 moko 17087: # Commands to make compiler produce verbose output that lists
17088: # what "hidden" libraries, object files and flags are used when
17089: # linking a shared library.
17090: #
17091: # There doesn't appear to be a way to prevent this compiler from
17092: # explicitly linking system object files so we need to strip them
17093: # from the output so that they don't get included in the library
17094: # dependencies.
1.237 moko 17095: 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"'
1.128 moko 17096:
1.237 moko 17097: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17098: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1.128 moko 17099:
17100: # Archives containing C++ object files must be created using
17101: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17102: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17103: ;;
17104: icpc* | ecpc* )
17105: # Intel C++
17106: with_gnu_ld=yes
17107: # version 8.0 and above of icpc choke on multiply defined symbols
17108: # if we add $predep_objects and $postdep_objects, however 7.1 and
17109: # earlier do not add the objects themselves.
17110: case `$CC -V 2>&1` in
17111: *"Version 7."*)
1.237 moko 17112: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17113: 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'
1.128 moko 17114: ;;
17115: *) # Version 8.0 or newer
17116: tmp_idyn=
17117: case $host_cpu in
17118: ia64*) tmp_idyn=' -i_dynamic';;
17119: esac
1.237 moko 17120: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17121: 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'
1.128 moko 17122: ;;
17123: esac
17124: archive_cmds_need_lc_CXX=no
1.237 moko 17125: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17126: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17127: whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1.128 moko 17128: ;;
17129: pgCC* | pgcpp*)
17130: # Portland Group C++ compiler
17131: case `$CC -V` in
17132: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17133: prelink_cmds_CXX='tpldir=Template.dir~
1.237 moko 17134: rm -rf $tpldir~
17135: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17136: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
1.128 moko 17137: old_archive_cmds_CXX='tpldir=Template.dir~
1.237 moko 17138: rm -rf $tpldir~
17139: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17140: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17141: $RANLIB $oldlib'
1.128 moko 17142: archive_cmds_CXX='tpldir=Template.dir~
1.237 moko 17143: rm -rf $tpldir~
17144: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17145: $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 17146: archive_expsym_cmds_CXX='tpldir=Template.dir~
1.237 moko 17147: rm -rf $tpldir~
17148: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17149: $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'
1.128 moko 17150: ;;
17151: *) # Version 6 and above use weak symbols
1.237 moko 17152: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17153: 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'
1.128 moko 17154: ;;
17155: esac
17156:
1.237 moko 17157: hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17158: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17159: 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'
1.128 moko 17160: ;;
17161: cxx*)
17162: # Compaq C++
1.237 moko 17163: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17164: 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'
1.128 moko 17165:
17166: runpath_var=LD_RUN_PATH
17167: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17168: hardcode_libdir_separator_CXX=:
17169:
17170: # Commands to make compiler produce verbose output that lists
17171: # what "hidden" libraries, object files and flags are used when
17172: # linking a shared library.
17173: #
17174: # There doesn't appear to be a way to prevent this compiler from
17175: # explicitly linking system object files so we need to strip them
17176: # from the output so that they don't get included in the library
17177: # dependencies.
1.237 moko 17178: 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'
1.128 moko 17179: ;;
17180: xl* | mpixl* | bgxl*)
17181: # IBM XL 8.0 on PPC, with GNU ld
1.237 moko 17182: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17183: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17184: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17185: if test yes = "$supports_anon_versioning"; then
1.128 moko 17186: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
1.237 moko 17187: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17188: echo "local: *; };" >> $output_objdir/$libname.ver~
17189: $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1.128 moko 17190: fi
17191: ;;
17192: *)
1.237 moko 17193: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 17194: *Sun\ C*)
17195: # Sun C++ 5.9
17196: no_undefined_flag_CXX=' -zdefs'
1.237 moko 17197: archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17198: 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'
1.128 moko 17199: hardcode_libdir_flag_spec_CXX='-R$libdir'
1.237 moko 17200: 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'
1.128 moko 17201: compiler_needs_object_CXX=yes
17202:
17203: # Not sure whether something based on
17204: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17205: # would be better.
17206: output_verbose_link_cmd='func_echo_all'
17207:
17208: # Archives containing C++ object files must be created using
17209: # "CC -xar", where "CC" is the Sun C++ compiler. This is
17210: # necessary to make sure instantiated templates are included
17211: # in the archive.
17212: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17213: ;;
17214: esac
17215: ;;
17216: esac
17217: ;;
17218:
17219: lynxos*)
17220: # FIXME: insert proper C++ library support
17221: ld_shlibs_CXX=no
17222: ;;
17223:
17224: m88k*)
17225: # FIXME: insert proper C++ library support
17226: ld_shlibs_CXX=no
17227: ;;
17228:
17229: mvs*)
17230: case $cc_basename in
17231: cxx*)
17232: # FIXME: insert proper C++ library support
17233: ld_shlibs_CXX=no
17234: ;;
17235: *)
17236: # FIXME: insert proper C++ library support
17237: ld_shlibs_CXX=no
17238: ;;
17239: esac
17240: ;;
17241:
1.237 moko 17242: *-mlibc)
17243: ld_shlibs_CXX=yes
17244: ;;
17245:
1.128 moko 17246: netbsd*)
17247: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17248: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17249: wlarc=
17250: hardcode_libdir_flag_spec_CXX='-R$libdir'
17251: hardcode_direct_CXX=yes
17252: hardcode_shlibpath_var_CXX=no
17253: fi
17254: # Workaround some broken pre-1.5 toolchains
17255: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17256: ;;
17257:
17258: *nto* | *qnx*)
17259: ld_shlibs_CXX=yes
17260: ;;
17261:
17262: openbsd*)
17263: if test -f /usr/libexec/ld.so; then
17264: hardcode_direct_CXX=yes
17265: hardcode_shlibpath_var_CXX=no
17266: hardcode_direct_absolute_CXX=yes
17267: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1.237 moko 17268: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17269: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17270: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17271: export_dynamic_flag_spec_CXX='$wl-E'
17272: whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.128 moko 17273: fi
17274: output_verbose_link_cmd=func_echo_all
17275: else
17276: ld_shlibs_CXX=no
17277: fi
17278: ;;
17279:
17280: osf3* | osf4* | osf5*)
17281: case $cc_basename in
17282: KCC*)
17283: # Kuck and Associates, Inc. (KAI) C++ Compiler
17284:
17285: # KCC will only create a shared library if the output file
17286: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17287: # to its proper name (with version) after linking.
1.237 moko 17288: 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'
1.128 moko 17289:
1.237 moko 17290: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
1.128 moko 17291: hardcode_libdir_separator_CXX=:
17292:
17293: # Archives containing C++ object files must be created using
17294: # the KAI C++ compiler.
17295: case $host in
17296: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17297: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17298: esac
17299: ;;
17300: RCC*)
17301: # Rational C++ 2.4.1
17302: # FIXME: insert proper C++ library support
17303: ld_shlibs_CXX=no
17304: ;;
17305: cxx*)
17306: case $host in
17307: osf3*)
1.237 moko 17308: allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17309: 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'
17310: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1.128 moko 17311: ;;
17312: *)
17313: allow_undefined_flag_CXX=' -expect_unresolved \*'
1.237 moko 17314: 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'
1.128 moko 17315: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
1.237 moko 17316: echo "-hidden">> $lib.exp~
17317: $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~
17318: $RM $lib.exp'
1.128 moko 17319: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17320: ;;
17321: esac
17322:
17323: hardcode_libdir_separator_CXX=:
17324:
17325: # Commands to make compiler produce verbose output that lists
17326: # what "hidden" libraries, object files and flags are used when
17327: # linking a shared library.
17328: #
17329: # There doesn't appear to be a way to prevent this compiler from
17330: # explicitly linking system object files so we need to strip them
17331: # from the output so that they don't get included in the library
17332: # dependencies.
1.237 moko 17333: 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"'
1.128 moko 17334: ;;
17335: *)
1.237 moko 17336: if test yes,no = "$GXX,$with_gnu_ld"; then
17337: allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
1.128 moko 17338: case $host in
17339: osf3*)
1.237 moko 17340: 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'
1.128 moko 17341: ;;
17342: *)
1.237 moko 17343: 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'
1.128 moko 17344: ;;
17345: esac
17346:
1.237 moko 17347: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1.128 moko 17348: hardcode_libdir_separator_CXX=:
17349:
17350: # Commands to make compiler produce verbose output that lists
17351: # what "hidden" libraries, object files and flags are used when
17352: # linking a shared library.
1.237 moko 17353: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 17354:
17355: else
17356: # FIXME: insert proper C++ library support
17357: ld_shlibs_CXX=no
17358: fi
17359: ;;
17360: esac
17361: ;;
17362:
17363: psos*)
17364: # FIXME: insert proper C++ library support
17365: ld_shlibs_CXX=no
17366: ;;
17367:
1.237 moko 17368: serenity*)
17369: ;;
17370:
1.128 moko 17371: sunos4*)
17372: case $cc_basename in
17373: CC*)
17374: # Sun C++ 4.x
17375: # FIXME: insert proper C++ library support
17376: ld_shlibs_CXX=no
17377: ;;
17378: lcc*)
17379: # Lucid
17380: # FIXME: insert proper C++ library support
17381: ld_shlibs_CXX=no
17382: ;;
17383: *)
17384: # FIXME: insert proper C++ library support
17385: ld_shlibs_CXX=no
17386: ;;
17387: esac
17388: ;;
17389:
17390: solaris*)
17391: case $cc_basename in
17392: CC* | sunCC*)
17393: # Sun C++ 4.2, 5.x and Centerline C++
17394: archive_cmds_need_lc_CXX=yes
17395: no_undefined_flag_CXX=' -zdefs'
1.237 moko 17396: archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17397: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 17398: $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'
1.128 moko 17399:
17400: hardcode_libdir_flag_spec_CXX='-R$libdir'
17401: hardcode_shlibpath_var_CXX=no
17402: case $host_os in
17403: solaris2.[0-5] | solaris2.[0-5].*) ;;
17404: *)
17405: # The compiler driver will combine and reorder linker options,
1.237 moko 17406: # but understands '-z linker_flag'.
1.128 moko 17407: # Supported since Solaris 2.6 (maybe 2.5.1?)
17408: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17409: ;;
17410: esac
17411: link_all_deplibs_CXX=yes
17412:
17413: output_verbose_link_cmd='func_echo_all'
17414:
17415: # Archives containing C++ object files must be created using
17416: # "CC -xar", where "CC" is the Sun C++ compiler. This is
17417: # necessary to make sure instantiated templates are included
17418: # in the archive.
17419: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17420: ;;
17421: gcx*)
17422: # Green Hills C++ Compiler
1.237 moko 17423: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1.128 moko 17424:
17425: # The C++ compiler must be used to create the archive.
17426: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17427: ;;
17428: *)
17429: # GNU C++ compiler with Solaris linker
1.237 moko 17430: if test yes,no = "$GXX,$with_gnu_ld"; then
17431: no_undefined_flag_CXX=' $wl-z ${wl}defs'
1.128 moko 17432: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
1.237 moko 17433: archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1.128 moko 17434: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 17435: $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1.128 moko 17436:
17437: # Commands to make compiler produce verbose output that lists
17438: # what "hidden" libraries, object files and flags are used when
17439: # linking a shared library.
1.237 moko 17440: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 17441: else
1.237 moko 17442: # g++ 2.7 appears to require '-G' NOT '-shared' on this
1.128 moko 17443: # platform.
1.237 moko 17444: archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1.128 moko 17445: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 moko 17446: $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1.128 moko 17447:
17448: # Commands to make compiler produce verbose output that lists
17449: # what "hidden" libraries, object files and flags are used when
17450: # linking a shared library.
1.237 moko 17451: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 17452: fi
17453:
1.237 moko 17454: hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
1.128 moko 17455: case $host_os in
17456: solaris2.[0-5] | solaris2.[0-5].*) ;;
17457: *)
1.237 moko 17458: whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1.128 moko 17459: ;;
17460: esac
17461: fi
17462: ;;
17463: esac
17464: ;;
17465:
17466: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.237 moko 17467: no_undefined_flag_CXX='$wl-z,text'
1.128 moko 17468: archive_cmds_need_lc_CXX=no
17469: hardcode_shlibpath_var_CXX=no
17470: runpath_var='LD_RUN_PATH'
17471:
17472: case $cc_basename in
17473: CC*)
1.237 moko 17474: archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17475: archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17476: ;;
17477: *)
1.237 moko 17478: archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17479: archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17480: ;;
17481: esac
17482: ;;
17483:
17484: sysv5* | sco3.2v5* | sco5v6*)
1.237 moko 17485: # Note: We CANNOT use -z defs as we might desire, because we do not
1.128 moko 17486: # link with -lc, and that would cause any symbols used from libc to
17487: # always be unresolved, which means just about no library would
17488: # ever link correctly. If we're not using GNU ld we use -z text
17489: # though, which does catch some bad symbols but isn't as heavy-handed
17490: # as -z defs.
1.237 moko 17491: no_undefined_flag_CXX='$wl-z,text'
17492: allow_undefined_flag_CXX='$wl-z,nodefs'
1.128 moko 17493: archive_cmds_need_lc_CXX=no
17494: hardcode_shlibpath_var_CXX=no
1.237 moko 17495: hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
1.128 moko 17496: hardcode_libdir_separator_CXX=':'
17497: link_all_deplibs_CXX=yes
1.237 moko 17498: export_dynamic_flag_spec_CXX='$wl-Bexport'
1.128 moko 17499: runpath_var='LD_RUN_PATH'
17500:
17501: case $cc_basename in
17502: CC*)
1.237 moko 17503: archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17504: archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17505: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
1.237 moko 17506: '"$old_archive_cmds_CXX"
1.128 moko 17507: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
1.237 moko 17508: '"$reload_cmds_CXX"
1.128 moko 17509: ;;
17510: *)
1.237 moko 17511: archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17512: archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17513: ;;
17514: esac
17515: ;;
17516:
17517: tandem*)
17518: case $cc_basename in
17519: NCC*)
17520: # NonStop-UX NCC 3.20
17521: # FIXME: insert proper C++ library support
17522: ld_shlibs_CXX=no
17523: ;;
17524: *)
17525: # FIXME: insert proper C++ library support
17526: ld_shlibs_CXX=no
17527: ;;
17528: esac
17529: ;;
17530:
17531: vxworks*)
17532: # FIXME: insert proper C++ library support
17533: ld_shlibs_CXX=no
17534: ;;
17535:
17536: *)
17537: # FIXME: insert proper C++ library support
17538: ld_shlibs_CXX=no
17539: ;;
17540: esac
17541:
1.237 moko 17542: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17543: printf "%s\n" "$ld_shlibs_CXX" >&6; }
17544: test no = "$ld_shlibs_CXX" && can_build_shared=no
1.128 moko 17545:
1.237 moko 17546: GCC_CXX=$GXX
17547: LD_CXX=$LD
1.128 moko 17548:
17549: ## CAVEAT EMPTOR:
17550: ## There is no encapsulation within the following macros, do not change
17551: ## the running order or otherwise move them around unless you know exactly
17552: ## what you are doing...
17553: # Dependencies to place before and after the object being linked:
17554: predep_objects_CXX=
17555: postdep_objects_CXX=
17556: predeps_CXX=
17557: postdeps_CXX=
17558: compiler_lib_search_path_CXX=
17559:
17560: cat > conftest.$ac_ext <<_LT_EOF
17561: class Foo
17562: {
17563: public:
17564: Foo (void) { a = 0; }
17565: private:
17566: int a;
17567: };
17568: _LT_EOF
17569:
17570:
17571: _lt_libdeps_save_CFLAGS=$CFLAGS
17572: case "$CC $CFLAGS " in #(
17573: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17574: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17575: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17576: esac
17577:
1.150 moko 17578: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 17579: (eval $ac_compile) 2>&5
17580: ac_status=$?
1.237 moko 17581: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 17582: test $ac_status = 0; }; then
1.128 moko 17583: # Parse the compiler output and extract the necessary
17584: # objects, libraries and library flags.
17585:
17586: # Sentinel used to keep track of whether or not we are before
17587: # the conftest object file.
17588: pre_test_object_deps_done=no
17589:
17590: for p in `eval "$output_verbose_link_cmd"`; do
1.237 moko 17591: case $prev$p in
1.128 moko 17592:
17593: -L* | -R* | -l*)
1.237 moko 17594: # Some compilers place space between "-{L,R,l}" and the path.
1.128 moko 17595: # Remove the space.
1.237 moko 17596: if test x-L = x"$p" ||
17597: test x-R = x"$p" ||
17598: test x-l = x"$p"; then
1.128 moko 17599: prev=$p
17600: continue
17601: fi
17602:
17603: # Expand the sysroot to ease extracting the directories later.
17604: if test -z "$prev"; then
17605: case $p in
17606: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17607: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17608: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17609: esac
17610: fi
17611: case $p in
17612: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17613: esac
1.237 moko 17614: if test no = "$pre_test_object_deps_done"; then
17615: case $prev in
1.128 moko 17616: -L | -R)
17617: # Internal compiler library paths should come after those
17618: # provided the user. The postdeps already come after the
17619: # user supplied libs so there is no need to process them.
17620: if test -z "$compiler_lib_search_path_CXX"; then
1.237 moko 17621: compiler_lib_search_path_CXX=$prev$p
1.128 moko 17622: else
1.237 moko 17623: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
1.128 moko 17624: fi
17625: ;;
17626: # The "-l" case would never come before the object being
17627: # linked, so don't bother handling this case.
17628: esac
17629: else
17630: if test -z "$postdeps_CXX"; then
1.237 moko 17631: postdeps_CXX=$prev$p
1.128 moko 17632: else
1.237 moko 17633: postdeps_CXX="${postdeps_CXX} $prev$p"
1.128 moko 17634: fi
17635: fi
17636: prev=
17637: ;;
17638:
17639: *.lto.$objext) ;; # Ignore GCC LTO objects
17640: *.$objext)
17641: # This assumes that the test object file only shows up
17642: # once in the compiler output.
17643: if test "$p" = "conftest.$objext"; then
17644: pre_test_object_deps_done=yes
17645: continue
17646: fi
17647:
1.237 moko 17648: if test no = "$pre_test_object_deps_done"; then
1.128 moko 17649: if test -z "$predep_objects_CXX"; then
1.237 moko 17650: predep_objects_CXX=$p
1.128 moko 17651: else
17652: predep_objects_CXX="$predep_objects_CXX $p"
17653: fi
17654: else
17655: if test -z "$postdep_objects_CXX"; then
1.237 moko 17656: postdep_objects_CXX=$p
1.128 moko 17657: else
17658: postdep_objects_CXX="$postdep_objects_CXX $p"
17659: fi
17660: fi
17661: ;;
17662:
17663: *) ;; # Ignore the rest.
17664:
17665: esac
17666: done
17667:
17668: # Clean up.
17669: rm -f a.out a.exe
17670: else
17671: echo "libtool.m4: error: problem compiling CXX test program"
17672: fi
17673:
17674: $RM -f confest.$objext
17675: CFLAGS=$_lt_libdeps_save_CFLAGS
17676:
17677: # PORTME: override above test on systems where it is broken
17678: case $host_os in
17679: interix[3-9]*)
17680: # Interix 3.5 installs completely hosed .la files for C++, so rather than
17681: # hack all around it, let's just trust "g++" to DTRT.
17682: predep_objects_CXX=
17683: postdep_objects_CXX=
17684: postdeps_CXX=
17685: ;;
1.237 moko 17686: esac
1.128 moko 17687:
17688:
1.237 moko 17689: case " $postdeps_CXX " in
17690: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17691: esac
1.128 moko 17692: compiler_lib_search_dirs_CXX=
17693: if test -n "${compiler_lib_search_path_CXX}"; then
1.237 moko 17694: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
1.128 moko 17695: fi
17696:
17697:
17698:
17699:
17700:
17701:
17702:
17703:
17704:
17705:
17706:
17707:
17708:
17709:
17710:
17711:
17712:
17713:
17714:
17715:
17716:
17717:
17718:
17719:
17720:
17721:
17722:
17723:
17724:
17725:
17726:
17727: lt_prog_compiler_wl_CXX=
17728: lt_prog_compiler_pic_CXX=
17729: lt_prog_compiler_static_CXX=
17730:
17731:
17732: # C++ specific cases for pic, static, wl, etc.
1.237 moko 17733: if test yes = "$GXX"; then
1.128 moko 17734: lt_prog_compiler_wl_CXX='-Wl,'
17735: lt_prog_compiler_static_CXX='-static'
17736:
17737: case $host_os in
17738: aix*)
17739: # All AIX code is PIC.
1.237 moko 17740: if test ia64 = "$host_cpu"; then
1.128 moko 17741: # AIX 5 now supports IA64 processor
17742: lt_prog_compiler_static_CXX='-Bstatic'
17743: fi
1.237 moko 17744: lt_prog_compiler_pic_CXX='-fPIC'
1.128 moko 17745: ;;
17746:
17747: amigaos*)
17748: case $host_cpu in
17749: powerpc)
17750: # see comment about AmigaOS4 .so support
17751: lt_prog_compiler_pic_CXX='-fPIC'
17752: ;;
17753: m68k)
17754: # FIXME: we need at least 68020 code to build shared libraries, but
1.237 moko 17755: # adding the '-m68020' flag to GCC prevents building anything better,
17756: # like '-m68040'.
1.128 moko 17757: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17758: ;;
17759: esac
17760: ;;
17761:
17762: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17763: # PIC is the default for these OSes.
17764: ;;
1.237 moko 17765: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
1.128 moko 17766: # This hack is so that the source file can tell whether it is being
17767: # built for inclusion in a dll (and should export symbols for example).
17768: # Although the cygwin gcc ignores -fPIC, still need this for old-style
17769: # (--disable-auto-import) libraries
17770: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
1.237 moko 17771: case $host_os in
17772: os2*)
17773: lt_prog_compiler_static_CXX='$wl-static'
17774: ;;
17775: esac
1.128 moko 17776: ;;
17777: darwin* | rhapsody*)
17778: # PIC is the default on this platform
17779: # Common symbols not allowed in MH_DYLIB files
17780: lt_prog_compiler_pic_CXX='-fno-common'
17781: ;;
17782: *djgpp*)
17783: # DJGPP does not support shared libraries at all
17784: lt_prog_compiler_pic_CXX=
17785: ;;
17786: haiku*)
17787: # PIC is the default for Haiku.
17788: # The "-static" flag exists, but is broken.
17789: lt_prog_compiler_static_CXX=
17790: ;;
17791: interix[3-9]*)
17792: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17793: # Instead, we relocate shared libraries at runtime.
17794: ;;
17795: sysv4*MP*)
17796: if test -d /usr/nec; then
17797: lt_prog_compiler_pic_CXX=-Kconform_pic
17798: fi
17799: ;;
17800: hpux*)
17801: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17802: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17803: # sets the default TLS model and affects inlining.
17804: case $host_cpu in
17805: hppa*64*)
17806: ;;
17807: *)
17808: lt_prog_compiler_pic_CXX='-fPIC'
17809: ;;
17810: esac
17811: ;;
17812: *qnx* | *nto*)
17813: # QNX uses GNU C++, but need to define -shared option too, otherwise
17814: # it will coredump.
17815: lt_prog_compiler_pic_CXX='-fPIC -shared'
17816: ;;
17817: *)
17818: lt_prog_compiler_pic_CXX='-fPIC'
17819: ;;
17820: esac
17821: else
17822: case $host_os in
17823: aix[4-9]*)
17824: # All AIX code is PIC.
1.237 moko 17825: if test ia64 = "$host_cpu"; then
1.128 moko 17826: # AIX 5 now supports IA64 processor
17827: lt_prog_compiler_static_CXX='-Bstatic'
17828: else
17829: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17830: fi
17831: ;;
17832: chorus*)
17833: case $cc_basename in
17834: cxch68*)
17835: # Green Hills C++ Compiler
17836: # _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"
17837: ;;
17838: esac
17839: ;;
1.237 moko 17840: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
1.128 moko 17841: # This hack is so that the source file can tell whether it is being
17842: # built for inclusion in a dll (and should export symbols for example).
17843: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17844: ;;
17845: dgux*)
17846: case $cc_basename in
17847: ec++*)
17848: lt_prog_compiler_pic_CXX='-KPIC'
17849: ;;
17850: ghcx*)
17851: # Green Hills C++ Compiler
17852: lt_prog_compiler_pic_CXX='-pic'
17853: ;;
17854: *)
17855: ;;
17856: esac
17857: ;;
1.237 moko 17858: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 17859: # FreeBSD uses GNU C++
17860: ;;
17861: hpux9* | hpux10* | hpux11*)
17862: case $cc_basename in
17863: CC*)
17864: lt_prog_compiler_wl_CXX='-Wl,'
1.237 moko 17865: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17866: if test ia64 != "$host_cpu"; then
1.128 moko 17867: lt_prog_compiler_pic_CXX='+Z'
17868: fi
17869: ;;
17870: aCC*)
17871: lt_prog_compiler_wl_CXX='-Wl,'
1.237 moko 17872: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
1.128 moko 17873: case $host_cpu in
17874: hppa*64*|ia64*)
17875: # +Z the default
17876: ;;
17877: *)
17878: lt_prog_compiler_pic_CXX='+Z'
17879: ;;
17880: esac
17881: ;;
17882: *)
17883: ;;
17884: esac
17885: ;;
17886: interix*)
17887: # This is c89, which is MS Visual C++ (no shared libs)
17888: # Anyone wants to do a port?
17889: ;;
17890: irix5* | irix6* | nonstopux*)
17891: case $cc_basename in
17892: CC*)
17893: lt_prog_compiler_wl_CXX='-Wl,'
17894: lt_prog_compiler_static_CXX='-non_shared'
17895: # CC pic flag -KPIC is the default.
17896: ;;
17897: *)
17898: ;;
17899: esac
17900: ;;
1.237 moko 17901: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 17902: case $cc_basename in
17903: KCC*)
17904: # KAI C++ Compiler
17905: lt_prog_compiler_wl_CXX='--backend -Wl,'
17906: lt_prog_compiler_pic_CXX='-fPIC'
17907: ;;
17908: ecpc* )
1.237 moko 17909: # old Intel C++ for x86_64, which still supported -KPIC.
1.128 moko 17910: lt_prog_compiler_wl_CXX='-Wl,'
17911: lt_prog_compiler_pic_CXX='-KPIC'
17912: lt_prog_compiler_static_CXX='-static'
17913: ;;
17914: icpc* )
17915: # Intel C++, used to be incompatible with GCC.
17916: # ICC 10 doesn't accept -KPIC any more.
17917: lt_prog_compiler_wl_CXX='-Wl,'
17918: lt_prog_compiler_pic_CXX='-fPIC'
17919: lt_prog_compiler_static_CXX='-static'
17920: ;;
17921: pgCC* | pgcpp*)
17922: # Portland Group C++ compiler
17923: lt_prog_compiler_wl_CXX='-Wl,'
17924: lt_prog_compiler_pic_CXX='-fpic'
17925: lt_prog_compiler_static_CXX='-Bstatic'
17926: ;;
17927: cxx*)
17928: # Compaq C++
17929: # Make sure the PIC flag is empty. It appears that all Alpha
17930: # Linux and Compaq Tru64 Unix objects are PIC.
17931: lt_prog_compiler_pic_CXX=
17932: lt_prog_compiler_static_CXX='-non_shared'
17933: ;;
17934: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17935: # IBM XL 8.0, 9.0 on PPC and BlueGene
17936: lt_prog_compiler_wl_CXX='-Wl,'
17937: lt_prog_compiler_pic_CXX='-qpic'
17938: lt_prog_compiler_static_CXX='-qstaticlink'
17939: ;;
17940: *)
1.237 moko 17941: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 17942: *Sun\ C*)
17943: # Sun C++ 5.9
17944: lt_prog_compiler_pic_CXX='-KPIC'
17945: lt_prog_compiler_static_CXX='-Bstatic'
17946: lt_prog_compiler_wl_CXX='-Qoption ld '
17947: ;;
17948: esac
17949: ;;
17950: esac
17951: ;;
17952: lynxos*)
17953: ;;
17954: m88k*)
17955: ;;
17956: mvs*)
17957: case $cc_basename in
17958: cxx*)
17959: lt_prog_compiler_pic_CXX='-W c,exportall'
17960: ;;
17961: *)
17962: ;;
17963: esac
17964: ;;
1.237 moko 17965: netbsd* | netbsdelf*-gnu)
17966: ;;
17967: *-mlibc)
1.128 moko 17968: ;;
17969: *qnx* | *nto*)
17970: # QNX uses GNU C++, but need to define -shared option too, otherwise
17971: # it will coredump.
17972: lt_prog_compiler_pic_CXX='-fPIC -shared'
17973: ;;
17974: osf3* | osf4* | osf5*)
17975: case $cc_basename in
17976: KCC*)
17977: lt_prog_compiler_wl_CXX='--backend -Wl,'
17978: ;;
17979: RCC*)
17980: # Rational C++ 2.4.1
17981: lt_prog_compiler_pic_CXX='-pic'
17982: ;;
17983: cxx*)
17984: # Digital/Compaq C++
17985: lt_prog_compiler_wl_CXX='-Wl,'
17986: # Make sure the PIC flag is empty. It appears that all Alpha
17987: # Linux and Compaq Tru64 Unix objects are PIC.
17988: lt_prog_compiler_pic_CXX=
17989: lt_prog_compiler_static_CXX='-non_shared'
17990: ;;
17991: *)
17992: ;;
17993: esac
17994: ;;
17995: psos*)
17996: ;;
1.237 moko 17997: serenity*)
17998: ;;
1.128 moko 17999: solaris*)
18000: case $cc_basename in
18001: CC* | sunCC*)
18002: # Sun C++ 4.2, 5.x and Centerline C++
18003: lt_prog_compiler_pic_CXX='-KPIC'
18004: lt_prog_compiler_static_CXX='-Bstatic'
18005: lt_prog_compiler_wl_CXX='-Qoption ld '
18006: ;;
18007: gcx*)
18008: # Green Hills C++ Compiler
18009: lt_prog_compiler_pic_CXX='-PIC'
18010: ;;
18011: *)
18012: ;;
18013: esac
18014: ;;
18015: sunos4*)
18016: case $cc_basename in
18017: CC*)
18018: # Sun C++ 4.x
18019: lt_prog_compiler_pic_CXX='-pic'
18020: lt_prog_compiler_static_CXX='-Bstatic'
18021: ;;
18022: lcc*)
18023: # Lucid
18024: lt_prog_compiler_pic_CXX='-pic'
18025: ;;
18026: *)
18027: ;;
18028: esac
18029: ;;
18030: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18031: case $cc_basename in
18032: CC*)
18033: lt_prog_compiler_wl_CXX='-Wl,'
18034: lt_prog_compiler_pic_CXX='-KPIC'
18035: lt_prog_compiler_static_CXX='-Bstatic'
18036: ;;
18037: esac
18038: ;;
18039: tandem*)
18040: case $cc_basename in
18041: NCC*)
18042: # NonStop-UX NCC 3.20
18043: lt_prog_compiler_pic_CXX='-KPIC'
18044: ;;
18045: *)
18046: ;;
18047: esac
18048: ;;
18049: vxworks*)
18050: ;;
18051: *)
18052: lt_prog_compiler_can_build_shared_CXX=no
18053: ;;
18054: esac
18055: fi
18056:
18057: case $host_os in
1.237 moko 18058: # For platforms that do not support PIC, -DPIC is meaningless:
1.128 moko 18059: *djgpp*)
18060: lt_prog_compiler_pic_CXX=
18061: ;;
18062: *)
18063: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18064: ;;
18065: esac
18066:
1.237 moko 18067: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18068: printf %s "checking for $compiler option to produce PIC... " >&6; }
18069: if test ${lt_cv_prog_compiler_pic_CXX+y}
18070: then :
18071: printf %s "(cached) " >&6
18072: else case e in #(
18073: e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18074: esac
1.128 moko 18075: fi
1.237 moko 18076: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18077: printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 18078: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18079:
18080: #
18081: # Check to make sure the PIC flag actually works.
18082: #
18083: if test -n "$lt_prog_compiler_pic_CXX"; then
1.237 moko 18084: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18085: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18086: if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18087: then :
18088: printf %s "(cached) " >&6
18089: else case e in #(
18090: e) lt_cv_prog_compiler_pic_works_CXX=no
1.128 moko 18091: ac_outfile=conftest.$ac_objext
18092: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.237 moko 18093: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
1.128 moko 18094: # Insert the option either (1) after the last *FLAGS variable, or
18095: # (2) before a word containing "conftest.", or (3) at the end.
18096: # Note that $ac_compile itself does not contain backslashes and begins
18097: # with a dollar sign (not a hyphen), so the echo should work correctly.
18098: # The option is referenced via a variable to avoid confusing sed.
18099: lt_compile=`echo "$ac_compile" | $SED \
18100: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18101: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18102: -e 's:$: $lt_compiler_flag:'`
18103: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18104: (eval "$lt_compile" 2>conftest.err)
18105: ac_status=$?
18106: cat conftest.err >&5
18107: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108: if (exit $ac_status) && test -s "$ac_outfile"; then
18109: # The compiler can only warn and ignore the option if not recognized
18110: # So say no if there are warnings other than the usual output.
18111: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18112: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18113: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18114: lt_cv_prog_compiler_pic_works_CXX=yes
18115: fi
18116: fi
18117: $RM conftest*
1.237 moko 18118: ;;
18119: esac
1.128 moko 18120: fi
1.237 moko 18121: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18122: printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 18123:
1.237 moko 18124: if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
1.128 moko 18125: case $lt_prog_compiler_pic_CXX in
18126: "" | " "*) ;;
18127: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18128: esac
18129: else
18130: lt_prog_compiler_pic_CXX=
18131: lt_prog_compiler_can_build_shared_CXX=no
18132: fi
18133:
18134: fi
18135:
18136:
18137:
18138:
18139:
18140: #
18141: # Check to make sure the static flag actually works.
18142: #
18143: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.237 moko 18144: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18145: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18146: if test ${lt_cv_prog_compiler_static_works_CXX+y}
18147: then :
18148: printf %s "(cached) " >&6
18149: else case e in #(
18150: e) lt_cv_prog_compiler_static_works_CXX=no
18151: save_LDFLAGS=$LDFLAGS
1.128 moko 18152: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18153: echo "$lt_simple_link_test_code" > conftest.$ac_ext
18154: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18155: # The linker can only warn and ignore the option if not recognized
18156: # So say no if there are warnings
18157: if test -s conftest.err; then
18158: # Append any errors to the config.log.
18159: cat conftest.err 1>&5
18160: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18161: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18162: if diff conftest.exp conftest.er2 >/dev/null; then
18163: lt_cv_prog_compiler_static_works_CXX=yes
18164: fi
18165: else
18166: lt_cv_prog_compiler_static_works_CXX=yes
18167: fi
18168: fi
18169: $RM -r conftest*
1.237 moko 18170: LDFLAGS=$save_LDFLAGS
18171: ;;
18172: esac
1.128 moko 18173: fi
1.237 moko 18174: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18175: printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 18176:
1.237 moko 18177: if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
1.128 moko 18178: :
18179: else
18180: lt_prog_compiler_static_CXX=
18181: fi
18182:
18183:
18184:
18185:
1.237 moko 18186: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18187: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18188: if test ${lt_cv_prog_compiler_c_o_CXX+y}
18189: then :
18190: printf %s "(cached) " >&6
18191: else case e in #(
18192: e) lt_cv_prog_compiler_c_o_CXX=no
1.128 moko 18193: $RM -r conftest 2>/dev/null
18194: mkdir conftest
18195: cd conftest
18196: mkdir out
18197: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18198:
18199: lt_compiler_flag="-o out/conftest2.$ac_objext"
18200: # Insert the option either (1) after the last *FLAGS variable, or
18201: # (2) before a word containing "conftest.", or (3) at the end.
18202: # Note that $ac_compile itself does not contain backslashes and begins
18203: # with a dollar sign (not a hyphen), so the echo should work correctly.
18204: lt_compile=`echo "$ac_compile" | $SED \
18205: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18206: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18207: -e 's:$: $lt_compiler_flag:'`
18208: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18209: (eval "$lt_compile" 2>out/conftest.err)
18210: ac_status=$?
18211: cat out/conftest.err >&5
18212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213: if (exit $ac_status) && test -s out/conftest2.$ac_objext
18214: then
18215: # The compiler can only warn and ignore the option if not recognized
18216: # So say no if there are warnings
18217: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18218: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18219: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18220: lt_cv_prog_compiler_c_o_CXX=yes
18221: fi
18222: fi
18223: chmod u+w . 2>&5
18224: $RM conftest*
18225: # SGI C++ compiler will create directory out/ii_files/ for
18226: # template instantiation
18227: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18228: $RM out/* && rmdir out
18229: cd ..
18230: $RM -r conftest
18231: $RM conftest*
1.237 moko 18232: ;;
18233: esac
1.128 moko 18234: fi
1.237 moko 18235: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18236: printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 18237:
18238:
18239:
1.237 moko 18240: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18241: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18242: if test ${lt_cv_prog_compiler_c_o_CXX+y}
18243: then :
18244: printf %s "(cached) " >&6
18245: else case e in #(
18246: e) lt_cv_prog_compiler_c_o_CXX=no
1.128 moko 18247: $RM -r conftest 2>/dev/null
18248: mkdir conftest
18249: cd conftest
18250: mkdir out
18251: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18252:
18253: lt_compiler_flag="-o out/conftest2.$ac_objext"
18254: # Insert the option either (1) after the last *FLAGS variable, or
18255: # (2) before a word containing "conftest.", or (3) at the end.
18256: # Note that $ac_compile itself does not contain backslashes and begins
18257: # with a dollar sign (not a hyphen), so the echo should work correctly.
18258: lt_compile=`echo "$ac_compile" | $SED \
18259: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18260: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18261: -e 's:$: $lt_compiler_flag:'`
18262: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18263: (eval "$lt_compile" 2>out/conftest.err)
18264: ac_status=$?
18265: cat out/conftest.err >&5
18266: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267: if (exit $ac_status) && test -s out/conftest2.$ac_objext
18268: then
18269: # The compiler can only warn and ignore the option if not recognized
18270: # So say no if there are warnings
18271: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18272: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18273: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18274: lt_cv_prog_compiler_c_o_CXX=yes
18275: fi
18276: fi
18277: chmod u+w . 2>&5
18278: $RM conftest*
18279: # SGI C++ compiler will create directory out/ii_files/ for
18280: # template instantiation
18281: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18282: $RM out/* && rmdir out
18283: cd ..
18284: $RM -r conftest
18285: $RM conftest*
1.237 moko 18286: ;;
18287: esac
1.128 moko 18288: fi
1.237 moko 18289: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18290: printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 18291:
18292:
18293:
18294:
1.237 moko 18295: hard_links=nottested
18296: if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
1.128 moko 18297: # do not overwrite the value of need_locks provided by the user
1.237 moko 18298: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18299: printf %s "checking if we can lock with hard links... " >&6; }
1.128 moko 18300: hard_links=yes
18301: $RM conftest*
18302: ln conftest.a conftest.b 2>/dev/null && hard_links=no
18303: touch conftest.a
18304: ln conftest.a conftest.b 2>&5 || hard_links=no
18305: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.237 moko 18306: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18307: printf "%s\n" "$hard_links" >&6; }
18308: if test no = "$hard_links"; then
18309: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18310: printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1.128 moko 18311: need_locks=warn
18312: fi
18313: else
18314: need_locks=no
18315: fi
18316:
18317:
18318:
1.237 moko 18319: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18320: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 18321:
18322: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18323: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18324: case $host_os in
18325: aix[4-9]*)
18326: # If we're using GNU nm, then we don't want the "-C" option.
1.237 moko 18327: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18328: # Without the "-l" option, or with the "-B" option, AIX nm treats
18329: # weak defined symbols like other global defined symbols, whereas
18330: # GNU nm marks them as "W".
18331: # While the 'weak' keyword is ignored in the Export File, we need
18332: # it in the Import File for the 'aix-soname' feature, so we have
18333: # to replace the "-B" option with "-P" for AIX nm.
1.128 moko 18334: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1.237 moko 18335: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
1.128 moko 18336: else
1.237 moko 18337: export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
1.128 moko 18338: fi
18339: ;;
18340: pw32*)
1.237 moko 18341: export_symbols_cmds_CXX=$ltdll_cmds
1.128 moko 18342: ;;
1.237 moko 18343: cygwin* | mingw* | windows* | cegcc*)
1.128 moko 18344: case $cc_basename in
1.237 moko 18345: cl* | icl*)
1.128 moko 18346: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18347: ;;
18348: *)
18349: 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'
18350: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18351: ;;
18352: esac
18353: ;;
1.237 moko 18354: linux* | k*bsd*-gnu | gnu*)
18355: link_all_deplibs_CXX=no
18356: ;;
1.128 moko 18357: *)
18358: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18359: ;;
18360: esac
18361:
1.237 moko 18362: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18363: printf "%s\n" "$ld_shlibs_CXX" >&6; }
18364: test no = "$ld_shlibs_CXX" && can_build_shared=no
1.128 moko 18365:
18366: with_gnu_ld_CXX=$with_gnu_ld
18367:
18368:
18369:
18370:
18371:
18372:
18373: #
18374: # Do we need to explicitly link libc?
18375: #
18376: case "x$archive_cmds_need_lc_CXX" in
18377: x|xyes)
18378: # Assume -lc should be added
18379: archive_cmds_need_lc_CXX=yes
18380:
1.237 moko 18381: if test yes,yes = "$GCC,$enable_shared"; then
1.128 moko 18382: case $archive_cmds_CXX in
18383: *'~'*)
18384: # FIXME: we may have to deal with multi-command sequences.
18385: ;;
18386: '$CC '*)
18387: # Test whether the compiler implicitly links with -lc since on some
18388: # systems, -lgcc has to come before -lc. If gcc already passes -lc
18389: # to ld, don't add -lc before -lgcc.
1.237 moko 18390: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18391: printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18392: if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18393: then :
18394: printf %s "(cached) " >&6
18395: else case e in #(
18396: e) $RM conftest*
1.128 moko 18397: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18398:
1.150 moko 18399: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 18400: (eval $ac_compile) 2>&5
18401: ac_status=$?
1.237 moko 18402: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 18403: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 18404: soname=conftest
18405: lib=conftest
18406: libobjs=conftest.$ac_objext
18407: deplibs=
18408: wl=$lt_prog_compiler_wl_CXX
18409: pic_flag=$lt_prog_compiler_pic_CXX
18410: compiler_flags=-v
18411: linker_flags=-v
18412: verstring=
18413: output_objdir=.
18414: libname=conftest
18415: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18416: allow_undefined_flag_CXX=
1.150 moko 18417: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 18418: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18419: ac_status=$?
1.237 moko 18420: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 18421: test $ac_status = 0; }
1.128 moko 18422: then
18423: lt_cv_archive_cmds_need_lc_CXX=no
18424: else
18425: lt_cv_archive_cmds_need_lc_CXX=yes
18426: fi
18427: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18428: else
18429: cat conftest.err 1>&5
18430: fi
18431: $RM conftest*
1.237 moko 18432: ;;
18433: esac
1.128 moko 18434: fi
1.237 moko 18435: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18436: printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 18437: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18438: ;;
18439: esac
18440: fi
18441: ;;
18442: esac
18443:
18444:
18445:
18446:
18447:
18448:
18449:
18450:
18451:
18452:
18453:
18454:
18455:
18456:
18457:
18458:
18459:
18460:
18461:
18462:
18463:
18464:
18465:
18466:
18467:
18468:
18469:
18470:
18471:
18472:
18473:
18474:
18475:
18476:
18477:
18478:
18479:
18480:
18481:
18482:
18483:
18484:
18485:
18486:
18487:
18488:
18489:
18490:
18491:
18492:
18493:
18494:
18495:
18496:
18497:
18498:
18499:
18500:
18501:
18502:
18503:
18504:
1.237 moko 18505: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18506: printf %s "checking dynamic linker characteristics... " >&6; }
1.128 moko 18507:
18508: library_names_spec=
18509: libname_spec='lib$name'
18510: soname_spec=
1.237 moko 18511: shrext_cmds=.so
1.128 moko 18512: postinstall_cmds=
18513: postuninstall_cmds=
18514: finish_cmds=
18515: finish_eval=
18516: shlibpath_var=
18517: shlibpath_overrides_runpath=unknown
18518: version_type=none
18519: dynamic_linker="$host_os ld.so"
18520: sys_lib_dlsearch_path_spec="/lib /usr/lib"
18521: need_lib_prefix=unknown
18522: hardcode_into_libs=no
18523:
18524: # when you set need_version to no, make sure it does not cause -set_version
18525: # flags to be left without arguments
18526: need_version=unknown
18527:
1.237 moko 18528:
18529:
1.128 moko 18530: case $host_os in
18531: aix3*)
18532: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 18533: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1.128 moko 18534: shlibpath_var=LIBPATH
18535:
18536: # AIX 3 has no versioning support, so we append a major version to the name.
1.237 moko 18537: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18538: ;;
18539:
18540: aix[4-9]*)
18541: version_type=linux # correct to gnu/linux during the next big refactor
18542: need_lib_prefix=no
18543: need_version=no
18544: hardcode_into_libs=yes
1.237 moko 18545: if test ia64 = "$host_cpu"; then
1.128 moko 18546: # AIX 5 supports IA64
1.237 moko 18547: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1.128 moko 18548: shlibpath_var=LD_LIBRARY_PATH
18549: else
18550: # With GCC up to 2.95.x, collect2 would create an import file
18551: # for dependence libraries. The import file would start with
1.237 moko 18552: # the line '#! .'. This would cause the generated library to
18553: # depend on '.', always an invalid library. This was fixed in
1.128 moko 18554: # development snapshots of GCC prior to 3.0.
18555: case $host_os in
18556: aix4 | aix4.[01] | aix4.[01].*)
18557: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18558: echo ' yes '
1.237 moko 18559: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1.128 moko 18560: :
18561: else
18562: can_build_shared=no
18563: fi
18564: ;;
18565: esac
1.237 moko 18566: # Using Import Files as archive members, it is possible to support
18567: # filename-based versioning of shared library archives on AIX. While
18568: # this would work for both with and without runtime linking, it will
18569: # prevent static linking of such archives. So we do filename-based
18570: # shared library versioning with .so extension only, which is used
18571: # when both runtime linking and shared linking is enabled.
18572: # Unfortunately, runtime linking may impact performance, so we do
18573: # not want this to be the default eventually. Also, we use the
18574: # versioned .so libs for executables only if there is the -brtl
18575: # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18576: # To allow for filename-based versioning support, we need to create
18577: # libNAME.so.V as an archive file, containing:
18578: # *) an Import File, referring to the versioned filename of the
18579: # archive as well as the shared archive member, telling the
18580: # bitwidth (32 or 64) of that shared object, and providing the
18581: # list of exported symbols of that shared object, eventually
18582: # decorated with the 'weak' keyword
18583: # *) the shared object with the F_LOADONLY flag set, to really avoid
18584: # it being seen by the linker.
18585: # At run time we better use the real file rather than another symlink,
18586: # but for link time we create the symlink libNAME.so -> libNAME.so.V
18587:
18588: case $with_aix_soname,$aix_use_runtimelinking in
18589: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1.128 moko 18590: # soname into executable. Probably we can add versioning support to
18591: # collect2, so additional links can be useful in future.
1.237 moko 18592: aix,yes) # traditional libtool
18593: dynamic_linker='AIX unversionable lib.so'
1.128 moko 18594: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18595: # instead of lib<name>.a to let people know that these are not
18596: # typical AIX shared libraries.
1.237 moko 18597: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18598: ;;
18599: aix,no) # traditional AIX only
18600: dynamic_linker='AIX lib.a(lib.so.V)'
1.128 moko 18601: # We preserve .a as extension for shared libraries through AIX4.2
18602: # and later when we are not doing run time linking.
1.237 moko 18603: library_names_spec='$libname$release.a $libname.a'
18604: soname_spec='$libname$release$shared_ext$major'
18605: ;;
18606: svr4,*) # full svr4 only
18607: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18608: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18609: # We do not specify a path in Import Files, so LIBPATH fires.
18610: shlibpath_overrides_runpath=yes
18611: ;;
18612: *,yes) # both, prefer svr4
18613: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18614: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18615: # unpreferred sharedlib libNAME.a needs extra handling
18616: postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
18617: postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
18618: # We do not specify a path in Import Files, so LIBPATH fires.
18619: shlibpath_overrides_runpath=yes
18620: ;;
18621: *,no) # both, prefer aix
18622: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18623: library_names_spec='$libname$release.a $libname.a'
18624: soname_spec='$libname$release$shared_ext$major'
18625: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18626: postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
18627: postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
18628: ;;
18629: esac
1.128 moko 18630: shlibpath_var=LIBPATH
18631: fi
18632: ;;
18633:
18634: amigaos*)
18635: case $host_cpu in
18636: powerpc)
18637: # Since July 2007 AmigaOS4 officially supports .so libraries.
18638: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
1.237 moko 18639: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 18640: ;;
18641: m68k)
18642: library_names_spec='$libname.ixlibrary $libname.a'
18643: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.237 moko 18644: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1.128 moko 18645: ;;
18646: esac
18647: ;;
18648:
18649: beos*)
1.237 moko 18650: library_names_spec='$libname$shared_ext'
1.128 moko 18651: dynamic_linker="$host_os ld.so"
18652: shlibpath_var=LIBRARY_PATH
18653: ;;
18654:
18655: bsdi[45]*)
18656: version_type=linux # correct to gnu/linux during the next big refactor
18657: need_version=no
1.237 moko 18658: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18659: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18660: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18661: shlibpath_var=LD_LIBRARY_PATH
18662: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18663: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18664: # the default ld.so.conf also contains /usr/contrib/lib and
18665: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18666: # libtool to hard-code these into programs
18667: ;;
18668:
1.237 moko 18669: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 18670: version_type=windows
1.237 moko 18671: shrext_cmds=.dll
1.128 moko 18672: need_version=no
18673: need_lib_prefix=no
18674:
18675: case $GCC,$cc_basename in
18676: yes,*)
18677: # gcc
18678: library_names_spec='$libname.dll.a'
18679: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 moko 18680: # If user builds GCC with multilib enabled,
18681: # it should just install on $(libdir)
18682: # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
18683: if test xyes = x"$multilib"; then
18684: postinstall_cmds='base_file=`basename \$file`~
18685: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18686: dldir=$destdir/`dirname \$dlpath`~
18687: $install_prog $dir/$dlname $destdir/$dlname~
18688: chmod a+x $destdir/$dlname~
18689: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18690: eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
18691: fi'
18692: else
18693: postinstall_cmds='base_file=`basename \$file`~
18694: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18695: dldir=$destdir/`dirname \$dlpath`~
18696: test -d \$dldir || mkdir -p \$dldir~
18697: $install_prog $dir/$dlname \$dldir/$dlname~
18698: chmod a+x \$dldir/$dlname~
18699: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18700: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18701: fi'
18702: fi
1.128 moko 18703: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18704: dlpath=$dir/\$dldll~
18705: $RM \$dlpath'
18706: shlibpath_overrides_runpath=yes
18707:
18708: case $host_os in
18709: cygwin*)
18710: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.237 moko 18711: soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 18712:
18713: ;;
1.237 moko 18714: mingw* | windows* | cegcc*)
1.128 moko 18715: # MinGW DLLs use traditional 'lib' prefix
1.237 moko 18716: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 18717: ;;
18718: pw32*)
18719: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.237 moko 18720: library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 18721: ;;
18722: esac
18723: dynamic_linker='Win32 ld.exe'
18724: ;;
18725:
1.237 moko 18726: *,cl* | *,icl*)
18727: # Native MSVC or ICC
1.128 moko 18728: libname_spec='$name'
1.237 moko 18729: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18730: library_names_spec='$libname.dll.lib'
1.128 moko 18731:
18732: case $build_os in
1.237 moko 18733: mingw* | windows*)
1.128 moko 18734: sys_lib_search_path_spec=
18735: lt_save_ifs=$IFS
18736: IFS=';'
18737: for lt_path in $LIB
18738: do
18739: IFS=$lt_save_ifs
18740: # Let DOS variable expansion print the short 8.3 style file name.
18741: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18742: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18743: done
18744: IFS=$lt_save_ifs
18745: # Convert to MSYS style.
1.237 moko 18746: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
1.128 moko 18747: ;;
18748: cygwin*)
18749: # Convert to unix form, then to dos form, then back to unix form
18750: # but this time dos style (no spaces!) so that the unix form looks
18751: # like /cygdrive/c/PROGRA~1:/cygdr...
18752: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18753: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18754: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18755: ;;
18756: *)
1.237 moko 18757: sys_lib_search_path_spec=$LIB
1.128 moko 18758: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18759: # It is most probably a Windows format PATH.
18760: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18761: else
18762: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18763: fi
18764: # FIXME: find the short name or the path components, as spaces are
18765: # common. (e.g. "Program Files" -> "PROGRA~1")
18766: ;;
18767: esac
18768:
18769: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 moko 18770: postinstall_cmds='base_file=`basename \$file`~
18771: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1.128 moko 18772: dldir=$destdir/`dirname \$dlpath`~
18773: test -d \$dldir || mkdir -p \$dldir~
18774: $install_prog $dir/$dlname \$dldir/$dlname'
18775: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18776: dlpath=$dir/\$dldll~
18777: $RM \$dlpath'
18778: shlibpath_overrides_runpath=yes
18779: dynamic_linker='Win32 link.exe'
18780: ;;
18781:
18782: *)
1.237 moko 18783: # Assume MSVC and ICC wrapper
18784: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1.128 moko 18785: dynamic_linker='Win32 ld.exe'
18786: ;;
18787: esac
18788: # FIXME: first we should search . and the directory the executable is in
18789: shlibpath_var=PATH
18790: ;;
18791:
18792: darwin* | rhapsody*)
18793: dynamic_linker="$host_os dyld"
18794: version_type=darwin
18795: need_lib_prefix=no
18796: need_version=no
1.237 moko 18797: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18798: soname_spec='$libname$release$major$shared_ext'
1.128 moko 18799: shlibpath_overrides_runpath=yes
18800: shlibpath_var=DYLD_LIBRARY_PATH
18801: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18802:
18803: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18804: ;;
18805:
18806: dgux*)
18807: version_type=linux # correct to gnu/linux during the next big refactor
18808: need_lib_prefix=no
18809: need_version=no
1.237 moko 18810: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18811: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18812: shlibpath_var=LD_LIBRARY_PATH
18813: ;;
18814:
1.237 moko 18815: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 18816: # DragonFly does not have aout. When/if they implement a new
18817: # versioning mechanism, adjust this.
18818: if test -x /usr/bin/objformat; then
18819: objformat=`/usr/bin/objformat`
18820: else
18821: case $host_os in
18822: freebsd[23].*) objformat=aout ;;
18823: *) objformat=elf ;;
18824: esac
18825: fi
18826: version_type=freebsd-$objformat
18827: case $version_type in
18828: freebsd-elf*)
1.237 moko 18829: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18830: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18831: need_version=no
18832: need_lib_prefix=no
18833: ;;
18834: freebsd-*)
1.237 moko 18835: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 18836: need_version=yes
18837: ;;
18838: esac
1.237 moko 18839: case $host_cpu in
18840: powerpc64)
18841: # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
18842: # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
18843: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844: /* end confdefs.h. */
18845: int test_pointer_size[sizeof (void *) - 5];
18846:
18847: _ACEOF
18848: if ac_fn_cxx_try_compile "$LINENO"
18849: then :
1.128 moko 18850: shlibpath_var=LD_LIBRARY_PATH
1.237 moko 18851: else case e in #(
18852: e) shlibpath_var=LD_32_LIBRARY_PATH ;;
18853: esac
18854: fi
18855: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18856: ;;
18857: *)
18858: shlibpath_var=LD_LIBRARY_PATH
18859: ;;
18860: esac
1.128 moko 18861: case $host_os in
18862: freebsd2.*)
18863: shlibpath_overrides_runpath=yes
18864: ;;
18865: freebsd3.[01]* | freebsdelf3.[01]*)
18866: shlibpath_overrides_runpath=yes
18867: hardcode_into_libs=yes
18868: ;;
18869: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18870: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18871: shlibpath_overrides_runpath=no
18872: hardcode_into_libs=yes
18873: ;;
18874: *) # from 4.6 on, and DragonFly
18875: shlibpath_overrides_runpath=yes
18876: hardcode_into_libs=yes
18877: ;;
18878: esac
18879: ;;
18880:
18881: haiku*)
18882: version_type=linux # correct to gnu/linux during the next big refactor
18883: need_lib_prefix=no
18884: need_version=no
18885: dynamic_linker="$host_os runtime_loader"
1.237 moko 18886: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18887: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18888: shlibpath_var=LIBRARY_PATH
1.237 moko 18889: shlibpath_overrides_runpath=no
18890: sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
18891: sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
18892: hardcode_into_libs=no
1.128 moko 18893: ;;
18894:
18895: hpux9* | hpux10* | hpux11*)
18896: # Give a soname corresponding to the major version so that dld.sl refuses to
18897: # link against other versions.
18898: version_type=sunos
18899: need_lib_prefix=no
18900: need_version=no
18901: case $host_cpu in
18902: ia64*)
18903: shrext_cmds='.so'
18904: hardcode_into_libs=yes
18905: dynamic_linker="$host_os dld.so"
18906: shlibpath_var=LD_LIBRARY_PATH
18907: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 moko 18908: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18909: soname_spec='$libname$release$shared_ext$major'
18910: if test 32 = "$HPUX_IA64_MODE"; then
1.128 moko 18911: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.237 moko 18912: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1.128 moko 18913: else
18914: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.237 moko 18915: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1.128 moko 18916: fi
18917: ;;
18918: hppa*64*)
18919: shrext_cmds='.sl'
18920: hardcode_into_libs=yes
18921: dynamic_linker="$host_os dld.sl"
18922: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18923: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 moko 18924: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18925: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18926: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18927: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18928: ;;
18929: *)
18930: shrext_cmds='.sl'
18931: dynamic_linker="$host_os dld.sl"
18932: shlibpath_var=SHLIB_PATH
18933: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.237 moko 18934: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18935: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18936: ;;
18937: esac
18938: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18939: postinstall_cmds='chmod 555 $lib'
18940: # or fails outright, so override atomically:
18941: install_override_mode=555
18942: ;;
18943:
18944: interix[3-9]*)
18945: version_type=linux # correct to gnu/linux during the next big refactor
18946: need_lib_prefix=no
18947: need_version=no
1.237 moko 18948: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18949: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18950: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18951: shlibpath_var=LD_LIBRARY_PATH
18952: shlibpath_overrides_runpath=no
18953: hardcode_into_libs=yes
18954: ;;
18955:
18956: irix5* | irix6* | nonstopux*)
18957: case $host_os in
18958: nonstopux*) version_type=nonstopux ;;
18959: *)
1.237 moko 18960: if test yes = "$lt_cv_prog_gnu_ld"; then
1.128 moko 18961: version_type=linux # correct to gnu/linux during the next big refactor
18962: else
18963: version_type=irix
18964: fi ;;
18965: esac
18966: need_lib_prefix=no
18967: need_version=no
1.237 moko 18968: soname_spec='$libname$release$shared_ext$major'
18969: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1.128 moko 18970: case $host_os in
18971: irix5* | nonstopux*)
18972: libsuff= shlibsuff=
18973: ;;
18974: *)
18975: case $LD in # libtool.m4 will add one of these switches to LD
18976: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18977: libsuff= shlibsuff= libmagic=32-bit;;
18978: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18979: libsuff=32 shlibsuff=N32 libmagic=N32;;
18980: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18981: libsuff=64 shlibsuff=64 libmagic=64-bit;;
18982: *) libsuff= shlibsuff= libmagic=never-match;;
18983: esac
18984: ;;
18985: esac
18986: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18987: shlibpath_overrides_runpath=no
1.237 moko 18988: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18989: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1.128 moko 18990: hardcode_into_libs=yes
18991: ;;
18992:
18993: # No shared lib support for Linux oldld, aout, or coff.
18994: linux*oldld* | linux*aout* | linux*coff*)
18995: dynamic_linker=no
18996: ;;
18997:
1.237 moko 18998: linux*android*)
18999: version_type=none # Android doesn't support versioned libraries.
19000: need_lib_prefix=no
19001: need_version=no
19002: library_names_spec='$libname$release$shared_ext $libname$shared_ext'
19003: soname_spec='$libname$release$shared_ext'
19004: finish_cmds=
19005: shlibpath_var=LD_LIBRARY_PATH
19006: shlibpath_overrides_runpath=yes
19007:
19008: # This implies no fast_install, which is unacceptable.
19009: # Some rework will be needed to allow for fast_install
19010: # before this can be enabled.
19011: hardcode_into_libs=yes
19012:
19013: dynamic_linker='Android linker'
19014: # -rpath works at least for libraries that are not overridden by
19015: # libraries installed in system locations.
19016: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19017: ;;
19018:
1.128 moko 19019: # This must be glibc/ELF.
1.237 moko 19020: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 19021: version_type=linux # correct to gnu/linux during the next big refactor
19022: need_lib_prefix=no
19023: need_version=no
1.237 moko 19024: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19025: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19026: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19027: shlibpath_var=LD_LIBRARY_PATH
19028: shlibpath_overrides_runpath=no
19029:
19030: # Some binutils ld are patched to set DT_RUNPATH
1.237 moko 19031: if test ${lt_cv_shlibpath_overrides_runpath+y}
19032: then :
19033: printf %s "(cached) " >&6
19034: else case e in #(
19035: e) lt_cv_shlibpath_overrides_runpath=no
1.128 moko 19036: save_LDFLAGS=$LDFLAGS
19037: save_libdir=$libdir
19038: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19039: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 19040: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 19041: /* end confdefs.h. */
19042:
19043: int
1.237 moko 19044: main (void)
1.128 moko 19045: {
19046:
19047: ;
19048: return 0;
19049: }
19050: _ACEOF
1.237 moko 19051: if ac_fn_cxx_try_link "$LINENO"
19052: then :
19053: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19054: then :
1.128 moko 19055: lt_cv_shlibpath_overrides_runpath=yes
19056: fi
19057: fi
1.237 moko 19058: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 19059: conftest$ac_exeext conftest.$ac_ext
1.128 moko 19060: LDFLAGS=$save_LDFLAGS
19061: libdir=$save_libdir
1.237 moko 19062: ;;
19063: esac
1.128 moko 19064: fi
19065:
19066: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19067:
19068: # This implies no fast_install, which is unacceptable.
19069: # Some rework will be needed to allow for fast_install
19070: # before this can be enabled.
19071: hardcode_into_libs=yes
19072:
1.237 moko 19073: # Ideally, we could use ldconfig to report *all* directories which are
19074: # searched for libraries, however this is still not possible. Aside from not
19075: # being certain /sbin/ldconfig is available, command
19076: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19077: # even though it is searched at run-time. Try to do the best guess by
19078: # appending ld.so.conf contents (and includes) to the search path.
1.128 moko 19079: if test -f /etc/ld.so.conf; then
19080: 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' ' '`
19081: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19082: fi
19083:
19084: # We used to test for /lib/ld.so.1 and disable shared libraries on
19085: # powerpc, because MkLinux only supported shared libraries with the
19086: # GNU dynamic linker. Since this was broken with cross compilers,
19087: # most powerpc-linux boxes support dynamic linking these days and
19088: # people can always --disable-shared, the test was removed, and we
19089: # assume the GNU/Linux dynamic linker is in use.
19090: dynamic_linker='GNU/Linux ld.so'
19091: ;;
19092:
1.237 moko 19093: netbsdelf*-gnu)
19094: version_type=linux
19095: need_lib_prefix=no
19096: need_version=no
19097: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19098: soname_spec='$libname$release$shared_ext$major'
19099: shlibpath_var=LD_LIBRARY_PATH
19100: shlibpath_overrides_runpath=no
19101: hardcode_into_libs=yes
19102: dynamic_linker='NetBSD ld.elf_so'
19103: ;;
19104:
19105: netbsdelf*-gnu)
19106: version_type=linux
19107: need_lib_prefix=no
19108: need_version=no
19109: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19110: soname_spec='${libname}${release}${shared_ext}$major'
19111: shlibpath_var=LD_LIBRARY_PATH
19112: shlibpath_overrides_runpath=no
19113: hardcode_into_libs=yes
19114: dynamic_linker='NetBSD ld.elf_so'
19115: ;;
19116:
1.128 moko 19117: netbsd*)
19118: version_type=sunos
19119: need_lib_prefix=no
19120: need_version=no
19121: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.237 moko 19122: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19123: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19124: dynamic_linker='NetBSD (a.out) ld.so'
19125: else
1.237 moko 19126: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19127: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19128: dynamic_linker='NetBSD ld.elf_so'
19129: fi
19130: shlibpath_var=LD_LIBRARY_PATH
19131: shlibpath_overrides_runpath=yes
19132: hardcode_into_libs=yes
19133: ;;
19134:
1.237 moko 19135: *-mlibc)
19136: version_type=linux # correct to gnu/linux during the next big refactor
19137: need_lib_prefix=no
19138: need_version=no
19139: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19140: soname_spec='$libname$release$shared_ext$major'
19141: dynamic_linker='mlibc ld.so'
19142: shlibpath_var=LD_LIBRARY_PATH
19143: shlibpath_overrides_runpath=no
19144: hardcode_into_libs=yes
19145: ;;
19146:
1.128 moko 19147: newsos6)
19148: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 19149: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 19150: shlibpath_var=LD_LIBRARY_PATH
19151: shlibpath_overrides_runpath=yes
19152: ;;
19153:
19154: *nto* | *qnx*)
19155: version_type=qnx
19156: need_lib_prefix=no
19157: need_version=no
1.237 moko 19158: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19159: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19160: shlibpath_var=LD_LIBRARY_PATH
19161: shlibpath_overrides_runpath=no
19162: hardcode_into_libs=yes
19163: dynamic_linker='ldqnx.so'
19164: ;;
19165:
19166: openbsd*)
19167: version_type=sunos
1.237 moko 19168: sys_lib_dlsearch_path_spec=/usr/lib
1.128 moko 19169: need_lib_prefix=no
1.237 moko 19170: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19171: need_version=no
19172: else
19173: need_version=yes
19174: fi
19175: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19176: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19177: shlibpath_var=LD_LIBRARY_PATH
1.237 moko 19178: shlibpath_overrides_runpath=yes
1.128 moko 19179: ;;
19180:
19181: os2*)
19182: libname_spec='$name'
1.237 moko 19183: version_type=windows
19184: shrext_cmds=.dll
19185: need_version=no
1.128 moko 19186: need_lib_prefix=no
1.237 moko 19187: # OS/2 can only load a DLL with a base name of 8 characters or less.
19188: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19189: v=$($ECHO $release$versuffix | tr -d .-);
19190: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19191: $ECHO $n$v`$shared_ext'
19192: library_names_spec='${libname}_dll.$libext'
1.128 moko 19193: dynamic_linker='OS/2 ld.exe'
1.237 moko 19194: shlibpath_var=BEGINLIBPATH
19195: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19196: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19197: postinstall_cmds='base_file=`basename \$file`~
19198: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19199: dldir=$destdir/`dirname \$dlpath`~
19200: test -d \$dldir || mkdir -p \$dldir~
19201: $install_prog $dir/$dlname \$dldir/$dlname~
19202: chmod a+x \$dldir/$dlname~
19203: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19204: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19205: fi'
19206: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19207: dlpath=$dir/\$dldll~
19208: $RM \$dlpath'
1.128 moko 19209: ;;
19210:
19211: osf3* | osf4* | osf5*)
19212: version_type=osf
19213: need_lib_prefix=no
19214: need_version=no
1.237 moko 19215: soname_spec='$libname$release$shared_ext$major'
19216: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 19217: shlibpath_var=LD_LIBRARY_PATH
19218: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.237 moko 19219: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.128 moko 19220: ;;
19221:
19222: rdos*)
19223: dynamic_linker=no
19224: ;;
19225:
1.237 moko 19226: serenity*)
19227: version_type=linux # correct to gnu/linux during the next big refactor
19228: need_lib_prefix=no
19229: need_version=no
19230: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19231: soname_spec='$libname$release$shared_ext$major'
19232: shlibpath_var=LD_LIBRARY_PATH
19233: shlibpath_overrides_runpath=no
19234: dynamic_linker='SerenityOS LibELF'
19235: ;;
19236:
1.128 moko 19237: solaris*)
19238: version_type=linux # correct to gnu/linux during the next big refactor
19239: need_lib_prefix=no
19240: need_version=no
1.237 moko 19241: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19242: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19243: shlibpath_var=LD_LIBRARY_PATH
19244: shlibpath_overrides_runpath=yes
19245: hardcode_into_libs=yes
19246: # ldd complains unless libraries are executable
19247: postinstall_cmds='chmod +x $lib'
19248: ;;
19249:
19250: sunos4*)
19251: version_type=sunos
1.237 moko 19252: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19253: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19254: shlibpath_var=LD_LIBRARY_PATH
19255: shlibpath_overrides_runpath=yes
1.237 moko 19256: if test yes = "$with_gnu_ld"; then
1.128 moko 19257: need_lib_prefix=no
19258: fi
19259: need_version=yes
19260: ;;
19261:
19262: sysv4 | sysv4.3*)
19263: version_type=linux # correct to gnu/linux during the next big refactor
1.237 moko 19264: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19265: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19266: shlibpath_var=LD_LIBRARY_PATH
19267: case $host_vendor in
19268: sni)
19269: shlibpath_overrides_runpath=no
19270: need_lib_prefix=no
19271: runpath_var=LD_RUN_PATH
1.237 moko 19272: ;;
19273: siemens)
19274: need_lib_prefix=no
19275: ;;
19276: motorola)
19277: need_lib_prefix=no
19278: need_version=no
19279: shlibpath_overrides_runpath=no
19280: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19281: ;;
19282: esac
19283: ;;
19284:
19285: sysv4*MP*)
19286: if test -d /usr/nec; then
19287: version_type=linux # correct to gnu/linux during the next big refactor
19288: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19289: soname_spec='$libname$shared_ext.$major'
19290: shlibpath_var=LD_LIBRARY_PATH
19291: fi
19292: ;;
19293:
19294: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19295: version_type=sco
19296: need_lib_prefix=no
19297: need_version=no
19298: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19299: soname_spec='$libname$release$shared_ext$major'
19300: shlibpath_var=LD_LIBRARY_PATH
19301: shlibpath_overrides_runpath=yes
19302: hardcode_into_libs=yes
19303: if test yes = "$with_gnu_ld"; then
19304: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19305: else
19306: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19307: case $host_os in
19308: sco3.2v5*)
19309: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19310: ;;
19311: esac
19312: fi
19313: sys_lib_dlsearch_path_spec='/usr/lib'
19314: ;;
19315:
19316: tpf*)
19317: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19318: version_type=linux # correct to gnu/linux during the next big refactor
19319: need_lib_prefix=no
19320: need_version=no
19321: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19322: shlibpath_var=LD_LIBRARY_PATH
19323: shlibpath_overrides_runpath=no
19324: hardcode_into_libs=yes
19325: ;;
19326:
19327: uts4*)
19328: version_type=linux # correct to gnu/linux during the next big refactor
19329: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19330: soname_spec='$libname$release$shared_ext$major'
19331: shlibpath_var=LD_LIBRARY_PATH
19332: ;;
19333:
19334: emscripten*)
19335: version_type=none
19336: need_lib_prefix=no
19337: need_version=no
19338: library_names_spec='$libname$release$shared_ext'
19339: soname_spec='$libname$release$shared_ext'
19340: finish_cmds=
19341: dynamic_linker="Emscripten linker"
19342: lt_prog_compiler_wl_CXX=
19343: lt_prog_compiler_pic_CXX=
19344: lt_prog_compiler_static_CXX=
19345:
19346:
19347: # C++ specific cases for pic, static, wl, etc.
19348: if test yes = "$GXX"; then
19349: lt_prog_compiler_wl_CXX='-Wl,'
19350: lt_prog_compiler_static_CXX='-static'
19351:
19352: case $host_os in
19353: aix*)
19354: # All AIX code is PIC.
19355: if test ia64 = "$host_cpu"; then
19356: # AIX 5 now supports IA64 processor
19357: lt_prog_compiler_static_CXX='-Bstatic'
19358: fi
19359: lt_prog_compiler_pic_CXX='-fPIC'
19360: ;;
19361:
19362: amigaos*)
19363: case $host_cpu in
19364: powerpc)
19365: # see comment about AmigaOS4 .so support
19366: lt_prog_compiler_pic_CXX='-fPIC'
19367: ;;
19368: m68k)
19369: # FIXME: we need at least 68020 code to build shared libraries, but
19370: # adding the '-m68020' flag to GCC prevents building anything better,
19371: # like '-m68040'.
19372: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19373: ;;
19374: esac
19375: ;;
19376:
19377: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19378: # PIC is the default for these OSes.
19379: ;;
19380: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19381: # This hack is so that the source file can tell whether it is being
19382: # built for inclusion in a dll (and should export symbols for example).
19383: # Although the cygwin gcc ignores -fPIC, still need this for old-style
19384: # (--disable-auto-import) libraries
19385: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19386: case $host_os in
19387: os2*)
19388: lt_prog_compiler_static_CXX='$wl-static'
19389: ;;
19390: esac
19391: ;;
19392: darwin* | rhapsody*)
19393: # PIC is the default on this platform
19394: # Common symbols not allowed in MH_DYLIB files
19395: lt_prog_compiler_pic_CXX='-fno-common'
19396: ;;
19397: *djgpp*)
19398: # DJGPP does not support shared libraries at all
19399: lt_prog_compiler_pic_CXX=
19400: ;;
19401: haiku*)
19402: # PIC is the default for Haiku.
19403: # The "-static" flag exists, but is broken.
19404: lt_prog_compiler_static_CXX=
19405: ;;
19406: interix[3-9]*)
19407: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19408: # Instead, we relocate shared libraries at runtime.
19409: ;;
19410: sysv4*MP*)
19411: if test -d /usr/nec; then
19412: lt_prog_compiler_pic_CXX=-Kconform_pic
19413: fi
19414: ;;
19415: hpux*)
19416: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19417: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19418: # sets the default TLS model and affects inlining.
19419: case $host_cpu in
19420: hppa*64*)
19421: ;;
19422: *)
19423: lt_prog_compiler_pic_CXX='-fPIC'
19424: ;;
19425: esac
19426: ;;
19427: *qnx* | *nto*)
19428: # QNX uses GNU C++, but need to define -shared option too, otherwise
19429: # it will coredump.
19430: lt_prog_compiler_pic_CXX='-fPIC -shared'
19431: ;;
19432: *)
19433: lt_prog_compiler_pic_CXX='-fPIC'
19434: ;;
19435: esac
19436: else
19437: case $host_os in
19438: aix[4-9]*)
19439: # All AIX code is PIC.
19440: if test ia64 = "$host_cpu"; then
19441: # AIX 5 now supports IA64 processor
19442: lt_prog_compiler_static_CXX='-Bstatic'
19443: else
19444: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19445: fi
19446: ;;
19447: chorus*)
19448: case $cc_basename in
19449: cxch68*)
19450: # Green Hills C++ Compiler
19451: # _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"
19452: ;;
19453: esac
19454: ;;
19455: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19456: # This hack is so that the source file can tell whether it is being
19457: # built for inclusion in a dll (and should export symbols for example).
19458: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19459: ;;
19460: dgux*)
19461: case $cc_basename in
19462: ec++*)
19463: lt_prog_compiler_pic_CXX='-KPIC'
19464: ;;
19465: ghcx*)
19466: # Green Hills C++ Compiler
19467: lt_prog_compiler_pic_CXX='-pic'
19468: ;;
19469: *)
19470: ;;
19471: esac
19472: ;;
19473: freebsd* | dragonfly* | midnightbsd*)
19474: # FreeBSD uses GNU C++
19475: ;;
19476: hpux9* | hpux10* | hpux11*)
19477: case $cc_basename in
19478: CC*)
19479: lt_prog_compiler_wl_CXX='-Wl,'
19480: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19481: if test ia64 != "$host_cpu"; then
19482: lt_prog_compiler_pic_CXX='+Z'
19483: fi
19484: ;;
19485: aCC*)
19486: lt_prog_compiler_wl_CXX='-Wl,'
19487: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19488: case $host_cpu in
19489: hppa*64*|ia64*)
19490: # +Z the default
19491: ;;
19492: *)
19493: lt_prog_compiler_pic_CXX='+Z'
19494: ;;
19495: esac
19496: ;;
19497: *)
19498: ;;
19499: esac
19500: ;;
19501: interix*)
19502: # This is c89, which is MS Visual C++ (no shared libs)
19503: # Anyone wants to do a port?
19504: ;;
19505: irix5* | irix6* | nonstopux*)
19506: case $cc_basename in
19507: CC*)
19508: lt_prog_compiler_wl_CXX='-Wl,'
19509: lt_prog_compiler_static_CXX='-non_shared'
19510: # CC pic flag -KPIC is the default.
19511: ;;
19512: *)
19513: ;;
19514: esac
19515: ;;
19516: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19517: case $cc_basename in
19518: KCC*)
19519: # KAI C++ Compiler
19520: lt_prog_compiler_wl_CXX='--backend -Wl,'
19521: lt_prog_compiler_pic_CXX='-fPIC'
19522: ;;
19523: ecpc* )
19524: # old Intel C++ for x86_64, which still supported -KPIC.
19525: lt_prog_compiler_wl_CXX='-Wl,'
19526: lt_prog_compiler_pic_CXX='-KPIC'
19527: lt_prog_compiler_static_CXX='-static'
19528: ;;
19529: icpc* )
19530: # Intel C++, used to be incompatible with GCC.
19531: # ICC 10 doesn't accept -KPIC any more.
19532: lt_prog_compiler_wl_CXX='-Wl,'
19533: lt_prog_compiler_pic_CXX='-fPIC'
19534: lt_prog_compiler_static_CXX='-static'
19535: ;;
19536: pgCC* | pgcpp*)
19537: # Portland Group C++ compiler
19538: lt_prog_compiler_wl_CXX='-Wl,'
19539: lt_prog_compiler_pic_CXX='-fpic'
19540: lt_prog_compiler_static_CXX='-Bstatic'
19541: ;;
19542: cxx*)
19543: # Compaq C++
19544: # Make sure the PIC flag is empty. It appears that all Alpha
19545: # Linux and Compaq Tru64 Unix objects are PIC.
19546: lt_prog_compiler_pic_CXX=
19547: lt_prog_compiler_static_CXX='-non_shared'
19548: ;;
19549: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19550: # IBM XL 8.0, 9.0 on PPC and BlueGene
19551: lt_prog_compiler_wl_CXX='-Wl,'
19552: lt_prog_compiler_pic_CXX='-qpic'
19553: lt_prog_compiler_static_CXX='-qstaticlink'
19554: ;;
19555: *)
19556: case `$CC -V 2>&1 | $SED 5q` in
19557: *Sun\ C*)
19558: # Sun C++ 5.9
19559: lt_prog_compiler_pic_CXX='-KPIC'
19560: lt_prog_compiler_static_CXX='-Bstatic'
19561: lt_prog_compiler_wl_CXX='-Qoption ld '
19562: ;;
19563: esac
19564: ;;
19565: esac
19566: ;;
19567: lynxos*)
19568: ;;
19569: m88k*)
19570: ;;
19571: mvs*)
19572: case $cc_basename in
19573: cxx*)
19574: lt_prog_compiler_pic_CXX='-W c,exportall'
19575: ;;
19576: *)
19577: ;;
19578: esac
19579: ;;
19580: netbsd* | netbsdelf*-gnu)
19581: ;;
19582: *-mlibc)
19583: ;;
19584: *qnx* | *nto*)
19585: # QNX uses GNU C++, but need to define -shared option too, otherwise
19586: # it will coredump.
19587: lt_prog_compiler_pic_CXX='-fPIC -shared'
19588: ;;
19589: osf3* | osf4* | osf5*)
19590: case $cc_basename in
19591: KCC*)
19592: lt_prog_compiler_wl_CXX='--backend -Wl,'
19593: ;;
19594: RCC*)
19595: # Rational C++ 2.4.1
19596: lt_prog_compiler_pic_CXX='-pic'
19597: ;;
19598: cxx*)
19599: # Digital/Compaq C++
19600: lt_prog_compiler_wl_CXX='-Wl,'
19601: # Make sure the PIC flag is empty. It appears that all Alpha
19602: # Linux and Compaq Tru64 Unix objects are PIC.
19603: lt_prog_compiler_pic_CXX=
19604: lt_prog_compiler_static_CXX='-non_shared'
19605: ;;
19606: *)
19607: ;;
19608: esac
19609: ;;
19610: psos*)
19611: ;;
19612: serenity*)
19613: ;;
19614: solaris*)
19615: case $cc_basename in
19616: CC* | sunCC*)
19617: # Sun C++ 4.2, 5.x and Centerline C++
19618: lt_prog_compiler_pic_CXX='-KPIC'
19619: lt_prog_compiler_static_CXX='-Bstatic'
19620: lt_prog_compiler_wl_CXX='-Qoption ld '
19621: ;;
19622: gcx*)
19623: # Green Hills C++ Compiler
19624: lt_prog_compiler_pic_CXX='-PIC'
19625: ;;
19626: *)
19627: ;;
19628: esac
19629: ;;
19630: sunos4*)
19631: case $cc_basename in
19632: CC*)
19633: # Sun C++ 4.x
19634: lt_prog_compiler_pic_CXX='-pic'
19635: lt_prog_compiler_static_CXX='-Bstatic'
19636: ;;
19637: lcc*)
19638: # Lucid
19639: lt_prog_compiler_pic_CXX='-pic'
19640: ;;
19641: *)
19642: ;;
19643: esac
19644: ;;
19645: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19646: case $cc_basename in
19647: CC*)
19648: lt_prog_compiler_wl_CXX='-Wl,'
19649: lt_prog_compiler_pic_CXX='-KPIC'
19650: lt_prog_compiler_static_CXX='-Bstatic'
19651: ;;
19652: esac
19653: ;;
19654: tandem*)
19655: case $cc_basename in
19656: NCC*)
19657: # NonStop-UX NCC 3.20
19658: lt_prog_compiler_pic_CXX='-KPIC'
19659: ;;
19660: *)
19661: ;;
19662: esac
19663: ;;
19664: vxworks*)
19665: ;;
19666: *)
19667: lt_prog_compiler_can_build_shared_CXX=no
19668: ;;
19669: esac
19670: fi
19671:
19672: case $host_os in
19673: # For platforms that do not support PIC, -DPIC is meaningless:
19674: *djgpp*)
19675: lt_prog_compiler_pic_CXX=
19676: ;;
19677: *)
19678: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19679: ;;
19680: esac
19681:
19682: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19683: printf %s "checking for $compiler option to produce PIC... " >&6; }
19684: if test ${lt_cv_prog_compiler_pic_CXX+y}
19685: then :
19686: printf %s "(cached) " >&6
19687: else case e in #(
19688: e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
19689: esac
19690: fi
19691: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19692: printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
19693: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19694:
19695: #
19696: # Check to make sure the PIC flag actually works.
19697: #
19698: if test -n "$lt_prog_compiler_pic_CXX"; then
19699: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19700: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19701: if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19702: then :
19703: printf %s "(cached) " >&6
19704: else case e in #(
19705: e) lt_cv_prog_compiler_pic_works_CXX=no
19706: ac_outfile=conftest.$ac_objext
19707: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19708: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19709: # Insert the option either (1) after the last *FLAGS variable, or
19710: # (2) before a word containing "conftest.", or (3) at the end.
19711: # Note that $ac_compile itself does not contain backslashes and begins
19712: # with a dollar sign (not a hyphen), so the echo should work correctly.
19713: # The option is referenced via a variable to avoid confusing sed.
19714: lt_compile=`echo "$ac_compile" | $SED \
19715: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19716: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19717: -e 's:$: $lt_compiler_flag:'`
19718: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19719: (eval "$lt_compile" 2>conftest.err)
19720: ac_status=$?
19721: cat conftest.err >&5
19722: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723: if (exit $ac_status) && test -s "$ac_outfile"; then
19724: # The compiler can only warn and ignore the option if not recognized
19725: # So say no if there are warnings other than the usual output.
19726: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19727: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19728: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19729: lt_cv_prog_compiler_pic_works_CXX=yes
19730: fi
19731: fi
19732: $RM conftest*
19733: ;;
19734: esac
19735: fi
19736: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19737: printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19738:
19739: if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19740: case $lt_prog_compiler_pic_CXX in
19741: "" | " "*) ;;
19742: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19743: esac
19744: else
19745: lt_prog_compiler_pic_CXX=
19746: lt_prog_compiler_can_build_shared_CXX=no
19747: fi
19748:
19749: fi
19750:
19751:
19752:
19753:
19754:
19755: #
19756: # Check to make sure the static flag actually works.
19757: #
19758: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19759: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19760: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19761: if test ${lt_cv_prog_compiler_static_works_CXX+y}
19762: then :
19763: printf %s "(cached) " >&6
19764: else case e in #(
19765: e) lt_cv_prog_compiler_static_works_CXX=no
19766: save_LDFLAGS=$LDFLAGS
19767: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19768: echo "$lt_simple_link_test_code" > conftest.$ac_ext
19769: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19770: # The linker can only warn and ignore the option if not recognized
19771: # So say no if there are warnings
19772: if test -s conftest.err; then
19773: # Append any errors to the config.log.
19774: cat conftest.err 1>&5
19775: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19776: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19777: if diff conftest.exp conftest.er2 >/dev/null; then
19778: lt_cv_prog_compiler_static_works_CXX=yes
19779: fi
19780: else
19781: lt_cv_prog_compiler_static_works_CXX=yes
19782: fi
19783: fi
19784: $RM -r conftest*
19785: LDFLAGS=$save_LDFLAGS
19786: ;;
19787: esac
19788: fi
19789: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19790: printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 19791:
1.237 moko 19792: if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19793: :
19794: else
19795: lt_prog_compiler_static_CXX=
19796: fi
1.128 moko 19797:
19798:
19799:
1.237 moko 19800: ='-fPIC'
19801: archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
19802: archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
19803: archive_cmds_need_lc_CXX=no
19804: no_undefined_flag_CXX=
1.128 moko 19805: ;;
19806:
19807: *)
19808: dynamic_linker=no
19809: ;;
19810: esac
1.237 moko 19811: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19812: printf "%s\n" "$dynamic_linker" >&6; }
19813: test no = "$dynamic_linker" && can_build_shared=no
1.128 moko 19814:
19815: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.237 moko 19816: if test yes = "$GCC"; then
1.128 moko 19817: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19818: fi
19819:
1.237 moko 19820: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19821: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
1.128 moko 19822: fi
1.237 moko 19823:
19824: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19825: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
1.128 moko 19826: fi
19827:
1.237 moko 19828: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19829: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19830:
19831: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19832: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19833:
19834: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19835: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
1.128 moko 19836:
19837:
19838:
19839:
19840:
19841:
19842:
19843:
19844:
19845:
19846:
19847:
19848:
19849:
19850:
19851:
19852:
19853:
19854:
19855:
19856:
19857:
19858:
19859:
19860:
19861:
19862:
19863:
19864:
19865:
19866:
19867:
19868:
19869:
19870:
19871:
19872:
1.237 moko 19873:
19874:
19875:
19876: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19877: printf %s "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 19878: hardcode_action_CXX=
19879: if test -n "$hardcode_libdir_flag_spec_CXX" ||
19880: test -n "$runpath_var_CXX" ||
1.237 moko 19881: test yes = "$hardcode_automatic_CXX"; then
1.128 moko 19882:
19883: # We can hardcode non-existent directories.
1.237 moko 19884: if test no != "$hardcode_direct_CXX" &&
1.128 moko 19885: # If the only mechanism to avoid hardcoding is shlibpath_var, we
19886: # have to relink, otherwise we might link with an installed library
19887: # when we should be linking with a yet-to-be-installed one
1.237 moko 19888: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19889: test no != "$hardcode_minus_L_CXX"; then
1.128 moko 19890: # Linking always hardcodes the temporary library directory.
19891: hardcode_action_CXX=relink
19892: else
19893: # We can link without hardcoding, and we can hardcode nonexisting dirs.
19894: hardcode_action_CXX=immediate
19895: fi
19896: else
19897: # We cannot hardcode anything, or else we can only hardcode existing
19898: # directories.
19899: hardcode_action_CXX=unsupported
19900: fi
1.237 moko 19901: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19902: printf "%s\n" "$hardcode_action_CXX" >&6; }
1.128 moko 19903:
1.237 moko 19904: if test relink = "$hardcode_action_CXX" ||
19905: test yes = "$inherit_rpath_CXX"; then
1.128 moko 19906: # Fast installation is not supported
19907: enable_fast_install=no
1.237 moko 19908: elif test yes = "$shlibpath_overrides_runpath" ||
19909: test no = "$enable_shared"; then
1.128 moko 19910: # Fast installation is not necessary
19911: enable_fast_install=needless
19912: fi
19913:
19914:
19915:
19916:
19917:
19918:
19919:
19920: fi # test -n "$compiler"
19921:
19922: CC=$lt_save_CC
19923: CFLAGS=$lt_save_CFLAGS
19924: LDCXX=$LD
19925: LD=$lt_save_LD
19926: GCC=$lt_save_GCC
19927: with_gnu_ld=$lt_save_with_gnu_ld
19928: lt_cv_path_LDCXX=$lt_cv_path_LD
19929: lt_cv_path_LD=$lt_save_path_LD
19930: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19931: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
1.237 moko 19932: fi # test yes != "$_lt_caught_CXX_error"
1.128 moko 19933:
19934: ac_ext=c
19935: ac_cpp='$CPP $CPPFLAGS'
19936: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19937: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19938: ac_compiler_gnu=$ac_cv_c_compiler_gnu
19939:
19940:
19941:
19942:
19943:
19944:
19945:
19946:
19947:
19948:
19949:
19950:
19951:
19952:
19953:
1.150 moko 19954: ac_config_commands="$ac_config_commands libtool"
1.128 moko 19955:
19956:
19957:
19958:
19959: # Only expand once:
19960:
19961:
1.237 moko 19962: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
19963: printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
19964: if test ${ac_cv_c_undeclared_builtin_options+y}
19965: then :
19966: printf %s "(cached) " >&6
19967: else case e in #(
19968: e) ac_save_CFLAGS=$CFLAGS
19969: ac_cv_c_undeclared_builtin_options='cannot detect'
19970: for ac_arg in '' -fno-builtin; do
19971: CFLAGS="$ac_save_CFLAGS $ac_arg"
19972: # This test program should *not* compile successfully.
19973: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19974: /* end confdefs.h. */
19975:
19976: int
19977: main (void)
19978: {
19979: (void) strchr;
19980: ;
19981: return 0;
19982: }
19983: _ACEOF
19984: if ac_fn_c_try_compile "$LINENO"
19985: then :
19986:
19987: else case e in #(
19988: e) # This test program should compile successfully.
19989: # No library function is consistently available on
19990: # freestanding implementations, so test against a dummy
19991: # declaration. Include always-available headers on the
19992: # off chance that they somehow elicit warnings.
19993: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994: /* end confdefs.h. */
19995: #include <float.h>
19996: #include <limits.h>
19997: #include <stdarg.h>
19998: #include <stddef.h>
19999: extern void ac_decl (int, char *);
20000:
20001: int
20002: main (void)
20003: {
20004: (void) ac_decl (0, (char *) 0);
20005: (void) ac_decl;
20006:
20007: ;
20008: return 0;
20009: }
20010: _ACEOF
20011: if ac_fn_c_try_compile "$LINENO"
20012: then :
20013: if test x"$ac_arg" = x
20014: then :
20015: ac_cv_c_undeclared_builtin_options='none needed'
20016: else case e in #(
20017: e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
20018: esac
20019: fi
20020: break
20021: fi
20022: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20023: esac
20024: fi
20025: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20026: done
20027: CFLAGS=$ac_save_CFLAGS
20028: ;;
20029: esac
20030: fi
20031: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
20032: printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
20033: case $ac_cv_c_undeclared_builtin_options in #(
20034: 'cannot detect') :
20035: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20036: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20037: as_fn_error $? "cannot make $CC report undeclared builtins
20038: See 'config.log' for more details" "$LINENO" 5; } ;; #(
20039: 'none needed') :
20040: ac_c_undeclared_builtin_options='' ;; #(
20041: *) :
20042: ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
20043: esac
1.128 moko 20044:
1.237 moko 20045: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
20046: printf %s "checking what extension is used for runtime loadable modules... " >&6; }
20047: if test ${libltdl_cv_shlibext+y}
20048: then :
20049: printf %s "(cached) " >&6
20050: else case e in #(
20051: e)
1.128 moko 20052: module=yes
20053: eval libltdl_cv_shlibext=$shrext_cmds
20054: module=no
20055: eval libltdl_cv_shrext=$shrext_cmds
1.237 moko 20056: ;;
20057: esac
1.128 moko 20058: fi
1.237 moko 20059: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20060: printf "%s\n" "$libltdl_cv_shlibext" >&6; }
1.128 moko 20061: if test -n "$libltdl_cv_shlibext"; then
20062:
1.237 moko 20063: printf "%s\n" "#define LT_MODULE_EXT \"$libltdl_cv_shlibext\"" >>confdefs.h
1.128 moko 20064:
20065: fi
20066: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20067:
1.237 moko 20068: printf "%s\n" "#define LT_SHARED_EXT \"$libltdl_cv_shrext\"" >>confdefs.h
20069:
20070: fi
20071: if test -n "$shared_archive_member_spec"; then
20072:
20073: printf "%s\n" "#define LT_SHARED_LIB_MEMBER \"($shared_archive_member_spec.o)\"" >>confdefs.h
1.128 moko 20074:
20075: fi
20076:
1.237 moko 20077: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
20078: printf %s "checking what variable specifies run-time module search path... " >&6; }
20079: if test ${lt_cv_module_path_var+y}
20080: then :
20081: printf %s "(cached) " >&6
20082: else case e in #(
20083: e) lt_cv_module_path_var=$shlibpath_var ;;
20084: esac
1.128 moko 20085: fi
1.237 moko 20086: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20087: printf "%s\n" "$lt_cv_module_path_var" >&6; }
1.128 moko 20088: if test -n "$lt_cv_module_path_var"; then
20089:
1.237 moko 20090: printf "%s\n" "#define LT_MODULE_PATH_VAR \"$lt_cv_module_path_var\"" >>confdefs.h
1.128 moko 20091:
20092: fi
20093:
1.237 moko 20094: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20095: printf %s "checking for the default library search path... " >&6; }
20096: if test ${lt_cv_sys_dlsearch_path+y}
20097: then :
20098: printf %s "(cached) " >&6
20099: else case e in #(
20100: e) lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec ;;
20101: esac
1.128 moko 20102: fi
1.237 moko 20103: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20104: printf "%s\n" "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 20105: if test -n "$lt_cv_sys_dlsearch_path"; then
20106: sys_dlsearch_path=
20107: for dir in $lt_cv_sys_dlsearch_path; do
20108: if test -z "$sys_dlsearch_path"; then
1.237 moko 20109: sys_dlsearch_path=$dir
1.128 moko 20110: else
1.237 moko 20111: sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
1.128 moko 20112: fi
20113: done
20114:
1.237 moko 20115: printf "%s\n" "#define LT_DLSEARCH_PATH \"$sys_dlsearch_path\"" >>confdefs.h
1.128 moko 20116:
20117: fi
20118:
20119:
20120: LT_DLLOADERS=
20121:
20122:
20123: ac_ext=c
20124: ac_cpp='$CPP $CPPFLAGS'
20125: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20128:
1.237 moko 20129: lt_dlload_save_LIBS=$LIBS
1.128 moko 20130:
20131: LIBADD_DLOPEN=
1.237 moko 20132: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20133: printf %s "checking for library containing dlopen... " >&6; }
20134: if test ${ac_cv_search_dlopen+y}
20135: then :
20136: printf %s "(cached) " >&6
20137: else case e in #(
20138: e) ac_func_search_save_LIBS=$LIBS
1.150 moko 20139: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 20140: /* end confdefs.h. */
20141:
1.150 moko 20142: /* Override any GCC internal prototype to avoid an error.
20143: Use char because int might match the return type of a GCC
1.237 moko 20144: builtin and then its argument prototype would still apply.
20145: The 'extern "C"' is for builds by C++ compilers;
20146: although this is not generally supported in C code supporting it here
20147: has little cost and some practical benefit (sr 110532). */
1.128 moko 20148: #ifdef __cplusplus
20149: extern "C"
20150: #endif
1.237 moko 20151: char dlopen (void);
1.128 moko 20152: int
1.237 moko 20153: main (void)
1.128 moko 20154: {
1.150 moko 20155: return dlopen ();
1.128 moko 20156: ;
20157: return 0;
20158: }
20159: _ACEOF
1.237 moko 20160: for ac_lib in '' dl
20161: do
1.150 moko 20162: if test -z "$ac_lib"; then
20163: ac_res="none required"
20164: else
20165: ac_res=-l$ac_lib
20166: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20167: fi
1.237 moko 20168: if ac_fn_c_try_link "$LINENO"
20169: then :
1.150 moko 20170: ac_cv_search_dlopen=$ac_res
20171: fi
1.237 moko 20172: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20173: conftest$ac_exeext
1.237 moko 20174: if test ${ac_cv_search_dlopen+y}
20175: then :
1.150 moko 20176: break
1.128 moko 20177: fi
1.150 moko 20178: done
1.237 moko 20179: if test ${ac_cv_search_dlopen+y}
20180: then :
1.128 moko 20181:
1.237 moko 20182: else case e in #(
20183: e) ac_cv_search_dlopen=no ;;
20184: esac
1.128 moko 20185: fi
1.150 moko 20186: rm conftest.$ac_ext
1.237 moko 20187: LIBS=$ac_func_search_save_LIBS ;;
20188: esac
1.128 moko 20189: fi
1.237 moko 20190: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20191: printf "%s\n" "$ac_cv_search_dlopen" >&6; }
1.150 moko 20192: ac_res=$ac_cv_search_dlopen
1.237 moko 20193: if test "$ac_res" != no
20194: then :
1.150 moko 20195: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 20196:
1.237 moko 20197: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 20198:
1.237 moko 20199: if test "$ac_cv_search_dlopen" != "none required"; then
20200: LIBADD_DLOPEN=-ldl
1.128 moko 20201: fi
1.237 moko 20202: libltdl_cv_lib_dl_dlopen=yes
1.128 moko 20203: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
1.237 moko 20204: else case e in #(
20205: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 20206: /* end confdefs.h. */
20207: #if HAVE_DLFCN_H
20208: # include <dlfcn.h>
20209: #endif
20210:
20211: int
1.237 moko 20212: main (void)
1.128 moko 20213: {
20214: dlopen(0, 0);
20215: ;
20216: return 0;
20217: }
20218: _ACEOF
1.237 moko 20219: if ac_fn_c_try_link "$LINENO"
20220: then :
1.128 moko 20221:
1.237 moko 20222: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 20223:
1.237 moko 20224: libltdl_cv_func_dlopen=yes
1.128 moko 20225: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
1.237 moko 20226: else case e in #(
20227: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20228: printf %s "checking for dlopen in -lsvld... " >&6; }
20229: if test ${ac_cv_lib_svld_dlopen+y}
20230: then :
20231: printf %s "(cached) " >&6
20232: else case e in #(
20233: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 20234: LIBS="-lsvld $LIBS"
1.150 moko 20235: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 20236: /* end confdefs.h. */
20237:
1.150 moko 20238: /* Override any GCC internal prototype to avoid an error.
20239: Use char because int might match the return type of a GCC
1.237 moko 20240: builtin and then its argument prototype would still apply.
20241: The 'extern "C"' is for builds by C++ compilers;
20242: although this is not generally supported in C code supporting it here
20243: has little cost and some practical benefit (sr 110532). */
1.128 moko 20244: #ifdef __cplusplus
20245: extern "C"
20246: #endif
1.237 moko 20247: char dlopen (void);
1.128 moko 20248: int
1.237 moko 20249: main (void)
1.128 moko 20250: {
1.150 moko 20251: return dlopen ();
1.128 moko 20252: ;
20253: return 0;
20254: }
20255: _ACEOF
1.237 moko 20256: if ac_fn_c_try_link "$LINENO"
20257: then :
1.128 moko 20258: ac_cv_lib_svld_dlopen=yes
1.237 moko 20259: else case e in #(
20260: e) ac_cv_lib_svld_dlopen=no ;;
20261: esac
1.128 moko 20262: fi
1.237 moko 20263: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20264: conftest$ac_exeext conftest.$ac_ext
1.237 moko 20265: LIBS=$ac_check_lib_save_LIBS ;;
20266: esac
1.128 moko 20267: fi
1.237 moko 20268: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20269: printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
20270: if test "x$ac_cv_lib_svld_dlopen" = xyes
20271: then :
1.128 moko 20272:
1.237 moko 20273: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 20274:
1.237 moko 20275: LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
1.128 moko 20276: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20277: fi
1.237 moko 20278: ;;
20279: esac
1.128 moko 20280: fi
1.237 moko 20281: rm -f core conftest.err conftest.$ac_objext conftest.beam \
20282: conftest$ac_exeext conftest.$ac_ext ;;
20283: esac
1.128 moko 20284: fi
20285:
1.237 moko 20286: if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
1.128 moko 20287: then
1.237 moko 20288: lt_save_LIBS=$LIBS
1.128 moko 20289: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 20290: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
1.237 moko 20291: if test "x$ac_cv_func_dlerror" = xyes
20292: then :
20293: printf "%s\n" "#define HAVE_DLERROR 1" >>confdefs.h
1.128 moko 20294:
20295: fi
20296:
1.237 moko 20297: LIBS=$lt_save_LIBS
1.128 moko 20298: fi
20299:
20300:
20301: LIBADD_SHL_LOAD=
1.150 moko 20302: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.237 moko 20303: if test "x$ac_cv_func_shl_load" = xyes
20304: then :
1.128 moko 20305:
1.237 moko 20306: printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 20307:
20308: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.237 moko 20309: else case e in #(
20310: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20311: printf %s "checking for shl_load in -ldld... " >&6; }
20312: if test ${ac_cv_lib_dld_shl_load+y}
20313: then :
20314: printf %s "(cached) " >&6
20315: else case e in #(
20316: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 20317: LIBS="-ldld $LIBS"
1.150 moko 20318: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 20319: /* end confdefs.h. */
1.10 paf 20320:
1.150 moko 20321: /* Override any GCC internal prototype to avoid an error.
20322: Use char because int might match the return type of a GCC
1.237 moko 20323: builtin and then its argument prototype would still apply.
20324: The 'extern "C"' is for builds by C++ compilers;
20325: although this is not generally supported in C code supporting it here
20326: has little cost and some practical benefit (sr 110532). */
1.66 paf 20327: #ifdef __cplusplus
20328: extern "C"
20329: #endif
1.237 moko 20330: char shl_load (void);
1.66 paf 20331: int
1.237 moko 20332: main (void)
1.66 paf 20333: {
1.150 moko 20334: return shl_load ();
1.66 paf 20335: ;
20336: return 0;
20337: }
20338: _ACEOF
1.237 moko 20339: if ac_fn_c_try_link "$LINENO"
20340: then :
1.66 paf 20341: ac_cv_lib_dld_shl_load=yes
1.237 moko 20342: else case e in #(
20343: e) ac_cv_lib_dld_shl_load=no ;;
20344: esac
1.66 paf 20345: fi
1.237 moko 20346: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20347: conftest$ac_exeext conftest.$ac_ext
1.237 moko 20348: LIBS=$ac_check_lib_save_LIBS ;;
20349: esac
1.66 paf 20350: fi
1.237 moko 20351: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20352: printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
20353: if test "x$ac_cv_lib_dld_shl_load" = xyes
20354: then :
1.1 paf 20355:
1.237 moko 20356: printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 20357:
1.128 moko 20358: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.237 moko 20359: LIBADD_SHL_LOAD=-ldld
1.128 moko 20360: fi
1.237 moko 20361: ;;
20362: esac
1.128 moko 20363: fi
20364:
20365:
20366:
20367: case $host_os in
20368: darwin[1567].*)
20369: # We only want this for pre-Mac OS X 10.4.
1.150 moko 20370: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
1.237 moko 20371: if test "x$ac_cv_func__dyld_func_lookup" = xyes
20372: then :
1.150 moko 20373:
1.237 moko 20374: printf "%s\n" "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 20375:
1.150 moko 20376: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20377: fi
1.128 moko 20378:
1.150 moko 20379: ;;
20380: beos*)
1.128 moko 20381: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20382: ;;
1.237 moko 20383: cygwin* | mingw* | windows* | pw32*)
20384: ac_fn_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20385: " "$ac_c_undeclared_builtin_options" "CFLAGS"
20386: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes
20387: then :
1.150 moko 20388: ac_have_decl=1
1.237 moko 20389: else case e in #(
20390: e) ac_have_decl=0 ;;
20391: esac
1.128 moko 20392: fi
1.237 moko 20393: printf "%s\n" "#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl" >>confdefs.h
1.128 moko 20394:
20395: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20396: ;;
20397: esac
20398:
1.237 moko 20399: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20400: printf %s "checking for dld_link in -ldld... " >&6; }
20401: if test ${ac_cv_lib_dld_dld_link+y}
20402: then :
20403: printf %s "(cached) " >&6
20404: else case e in #(
20405: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 20406: LIBS="-ldld $LIBS"
1.150 moko 20407: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 20408: /* end confdefs.h. */
1.62 paf 20409:
1.150 moko 20410: /* Override any GCC internal prototype to avoid an error.
20411: Use char because int might match the return type of a GCC
1.237 moko 20412: builtin and then its argument prototype would still apply.
20413: The 'extern "C"' is for builds by C++ compilers;
20414: although this is not generally supported in C code supporting it here
20415: has little cost and some practical benefit (sr 110532). */
1.66 paf 20416: #ifdef __cplusplus
20417: extern "C"
20418: #endif
1.237 moko 20419: char dld_link (void);
1.66 paf 20420: int
1.237 moko 20421: main (void)
1.66 paf 20422: {
1.150 moko 20423: return dld_link ();
1.66 paf 20424: ;
20425: return 0;
20426: }
20427: _ACEOF
1.237 moko 20428: if ac_fn_c_try_link "$LINENO"
20429: then :
1.128 moko 20430: ac_cv_lib_dld_dld_link=yes
1.237 moko 20431: else case e in #(
20432: e) ac_cv_lib_dld_dld_link=no ;;
20433: esac
1.128 moko 20434: fi
1.237 moko 20435: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20436: conftest$ac_exeext conftest.$ac_ext
1.237 moko 20437: LIBS=$ac_check_lib_save_LIBS ;;
20438: esac
1.128 moko 20439: fi
1.237 moko 20440: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20441: printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
20442: if test "x$ac_cv_lib_dld_dld_link" = xyes
20443: then :
1.128 moko 20444:
1.237 moko 20445: printf "%s\n" "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 20446:
20447: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20448: fi
20449:
20450:
20451:
20452:
20453: LT_DLPREOPEN=
20454: if test -n "$LT_DLLOADERS"
20455: then
20456: for lt_loader in $LT_DLLOADERS; do
20457: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20458: done
20459:
1.237 moko 20460: printf "%s\n" "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 20461:
20462: fi
20463:
20464:
20465: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20466:
20467:
1.237 moko 20468: LIBS=$lt_dlload_save_LIBS
1.128 moko 20469: ac_ext=c
20470: ac_cpp='$CPP $CPPFLAGS'
20471: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20472: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20473: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20474:
20475:
1.237 moko 20476: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20477: printf %s "checking for _ prefix in compiled symbols... " >&6; }
20478: if test ${lt_cv_sys_symbol_underscore+y}
20479: then :
20480: printf %s "(cached) " >&6
20481: else case e in #(
20482: e) lt_cv_sys_symbol_underscore=no
1.128 moko 20483: cat > conftest.$ac_ext <<_LT_EOF
20484: void nm_test_func(){}
1.237 moko 20485: int main(void){nm_test_func;return 0;}
1.128 moko 20486: _LT_EOF
1.150 moko 20487: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 20488: (eval $ac_compile) 2>&5
20489: ac_status=$?
1.237 moko 20490: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 20491: test $ac_status = 0; }; then
1.128 moko 20492: # Now try to grab the symbols.
20493: ac_nlist=conftest.nm
1.150 moko 20494: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 20495: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20496: ac_status=$?
1.237 moko 20497: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 20498: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 20499: # See whether the symbols have a leading underscore.
20500: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20501: lt_cv_sys_symbol_underscore=yes
20502: else
20503: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20504: :
20505: else
20506: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20507: fi
20508: fi
20509: else
20510: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20511: fi
20512: else
20513: echo "configure: failed program was:" >&5
20514: cat conftest.c >&5
20515: fi
20516: rm -rf conftest*
1.237 moko 20517: ;;
20518: esac
1.66 paf 20519: fi
1.237 moko 20520: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20521: printf "%s\n" "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 20522: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 20523:
1.62 paf 20524:
1.237 moko 20525: if test yes = "$lt_cv_sys_symbol_underscore"; then
20526: if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
20527: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20528: printf %s "checking whether we have to add an underscore for dlsym... " >&6; }
20529: if test ${libltdl_cv_need_uscore+y}
20530: then :
20531: printf %s "(cached) " >&6
20532: else case e in #(
20533: e) libltdl_cv_need_uscore=unknown
20534: dlsym_uscore_save_LIBS=$LIBS
20535: LIBS="$LIBS $LIBADD_DLOPEN"
20536: libname=conftmod # stay within 8.3 filename limits!
20537: cat >$libname.$ac_ext <<_LT_EOF
1.128 moko 20538: #line $LINENO "configure"
20539: #include "confdefs.h"
1.237 moko 20540: /* When -fvisibility=hidden is used, assume the code has been annotated
20541: correspondingly for the symbols needed. */
20542: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20543: int fnord () __attribute__((visibility("default")));
20544: #endif
20545: int fnord () { return 42; }
20546: _LT_EOF
1.128 moko 20547:
1.237 moko 20548: # ltfn_module_cmds module_cmds
20549: # Execute tilde-delimited MODULE_CMDS with environment primed for
20550: # $module_cmds or $archive_cmds type content.
20551: ltfn_module_cmds ()
20552: {( # subshell avoids polluting parent global environment
20553: module_cmds_save_ifs=$IFS; IFS='~'
20554: for cmd in $1; do
20555: IFS=$module_cmds_save_ifs
20556: libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
20557: rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
20558: major=; versuffix=; verstring=; deplibs=
20559: ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
20560: eval $cmd
20561: done
20562: IFS=$module_cmds_save_ifs
20563: )}
20564:
20565: # Compile a loadable module using libtool macro expansion results.
20566: $CC $pic_flag -c $libname.$ac_ext
20567: ltfn_module_cmds "${module_cmds:-$archive_cmds}"
20568:
20569: # Try to fetch fnord with dlsym().
20570: libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
20571: cat >conftest.$ac_ext <<_LT_EOF
20572: #line $LINENO "configure"
20573: #include "confdefs.h"
1.66 paf 20574: #if HAVE_DLFCN_H
1.128 moko 20575: #include <dlfcn.h>
20576: #endif
20577: #include <stdio.h>
1.237 moko 20578: #ifndef RTLD_GLOBAL
1.128 moko 20579: # ifdef DL_GLOBAL
1.237 moko 20580: # define RTLD_GLOBAL DL_GLOBAL
1.128 moko 20581: # else
1.237 moko 20582: # define RTLD_GLOBAL 0
1.128 moko 20583: # endif
20584: #endif
1.237 moko 20585: #ifndef RTLD_NOW
20586: # ifdef DL_NOW
20587: # define RTLD_NOW DL_NOW
1.128 moko 20588: # else
1.237 moko 20589: # define RTLD_NOW 0
1.128 moko 20590: # endif
20591: #endif
1.237 moko 20592: int main (void) {
20593: void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
20594: int status = $libltdl_dlunknown;
20595: if (handle) {
20596: if (dlsym (handle, "fnord"))
20597: status = $libltdl_dlnouscore;
20598: else {
20599: if (dlsym (handle, "_fnord"))
20600: status = $libltdl_dluscore;
1.128 moko 20601: else
1.237 moko 20602: puts (dlerror ());
1.128 moko 20603: }
1.237 moko 20604: dlclose (handle);
20605: } else
1.128 moko 20606: puts (dlerror ());
20607: return status;
1.66 paf 20608: }
1.128 moko 20609: _LT_EOF
1.237 moko 20610: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 20611: (eval $ac_link) 2>&5
1.66 paf 20612: ac_status=$?
1.237 moko 20613: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20614: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20615: (./conftest; exit; ) >&5 2>/dev/null
20616: libltdl_status=$?
20617: case x$libltdl_status in
20618: x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
20619: x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
20620: x*) libltdl_cv_need_uscore=unknown ;;
20621: esac
20622: fi
20623: rm -rf conftest* $libname*
20624: LIBS=$dlsym_uscore_save_LIBS
20625: ;;
20626: esac
1.128 moko 20627: fi
1.237 moko 20628: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20629: printf "%s\n" "$libltdl_cv_need_uscore" >&6; }
1.128 moko 20630: fi
20631: fi
20632:
1.237 moko 20633: if test yes = "$libltdl_cv_need_uscore"; then
1.29 paf 20634:
1.237 moko 20635: printf "%s\n" "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 20636:
1.128 moko 20637: fi
20638:
1.237 moko 20639: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20640: printf %s "checking whether deplibs are loaded by dlopen... " >&6; }
20641: if test ${lt_cv_sys_dlopen_deplibs+y}
20642: then :
20643: printf %s "(cached) " >&6
20644: else case e in #(
20645: e) # PORTME does your system automatically load deplibs for dlopen?
1.128 moko 20646: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20647: # For now, we just catch OSes we know something about -- in the
20648: # future, we'll try test this programmatically.
20649: lt_cv_sys_dlopen_deplibs=unknown
20650: case $host_os in
20651: aix3*|aix4.1.*|aix4.2.*)
20652: # Unknown whether this is true for these versions of AIX, but
1.237 moko 20653: # we want this 'case' here to explicitly catch those versions.
1.128 moko 20654: lt_cv_sys_dlopen_deplibs=unknown
20655: ;;
20656: aix[4-9]*)
20657: lt_cv_sys_dlopen_deplibs=yes
20658: ;;
20659: amigaos*)
20660: case $host_cpu in
20661: powerpc)
20662: lt_cv_sys_dlopen_deplibs=no
20663: ;;
20664: esac
20665: ;;
20666: darwin*)
20667: # Assuming the user has installed a libdl from somewhere, this is true
20668: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20669: lt_cv_sys_dlopen_deplibs=yes
20670: ;;
1.237 moko 20671: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 20672: lt_cv_sys_dlopen_deplibs=yes
20673: ;;
20674: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
20675: # GNU and its variants, using gnu ld.so (Glibc)
20676: lt_cv_sys_dlopen_deplibs=yes
20677: ;;
20678: hpux10*|hpux11*)
20679: lt_cv_sys_dlopen_deplibs=yes
20680: ;;
20681: interix*)
20682: lt_cv_sys_dlopen_deplibs=yes
20683: ;;
20684: irix[12345]*|irix6.[01]*)
20685: # Catch all versions of IRIX before 6.2, and indicate that we don't
20686: # know how it worked for any of those versions.
20687: lt_cv_sys_dlopen_deplibs=unknown
20688: ;;
20689: irix*)
20690: # The case above catches anything before 6.2, and it's known that
20691: # at 6.2 and later dlopen does load deplibs.
20692: lt_cv_sys_dlopen_deplibs=yes
20693: ;;
1.237 moko 20694: *-mlibc)
20695: lt_cv_sys_dlopen_deplibs=yes
20696: ;;
20697: netbsd* | netbsdelf*-gnu)
1.128 moko 20698: lt_cv_sys_dlopen_deplibs=yes
20699: ;;
20700: openbsd*)
20701: lt_cv_sys_dlopen_deplibs=yes
20702: ;;
20703: osf[1234]*)
20704: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20705: # it did *not* use an RPATH in a shared library to find objects the
1.237 moko 20706: # library depends on, so we explicitly say 'no'.
1.128 moko 20707: lt_cv_sys_dlopen_deplibs=no
20708: ;;
20709: osf5.0|osf5.0a|osf5.1)
20710: # dlopen *does* load deplibs and with the right loader patch applied
20711: # it even uses RPATH in a shared library to search for shared objects
20712: # that the library depends on, but there's no easy way to know if that
20713: # patch is installed. Since this is the case, all we can really
20714: # say is unknown -- it depends on the patch being installed. If
1.237 moko 20715: # it is, this changes to 'yes'. Without it, it would be 'no'.
1.128 moko 20716: lt_cv_sys_dlopen_deplibs=unknown
20717: ;;
20718: osf*)
20719: # the two cases above should catch all versions of osf <= 5.1. Read
20720: # the comments above for what we know about them.
20721: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
1.237 moko 20722: # is used to find them so we can finally say 'yes'.
1.128 moko 20723: lt_cv_sys_dlopen_deplibs=yes
20724: ;;
20725: qnx*)
20726: lt_cv_sys_dlopen_deplibs=yes
20727: ;;
20728: solaris*)
20729: lt_cv_sys_dlopen_deplibs=yes
20730: ;;
20731: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20732: libltdl_cv_sys_dlopen_deplibs=yes
20733: ;;
20734: esac
1.237 moko 20735: ;;
20736: esac
1.128 moko 20737: fi
1.237 moko 20738: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20739: printf "%s\n" "$lt_cv_sys_dlopen_deplibs" >&6; }
20740: if test yes != "$lt_cv_sys_dlopen_deplibs"; then
1.128 moko 20741:
1.237 moko 20742: printf "%s\n" "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 20743:
20744: fi
20745:
20746:
1.237 moko 20747: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
1.150 moko 20748: "
1.237 moko 20749: if test "x$ac_cv_header_argz_h" = xyes
20750: then :
20751: printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h
1.128 moko 20752:
1.66 paf 20753: fi
1.62 paf 20754:
1.29 paf 20755:
1.150 moko 20756: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.128 moko 20757: # include <argz.h>
20758: #endif
1.150 moko 20759: "
1.237 moko 20760: if test "x$ac_cv_type_error_t" = xyes
20761: then :
1.29 paf 20762:
1.237 moko 20763: printf "%s\n" "#define HAVE_ERROR_T 1" >>confdefs.h
1.16 paf 20764:
20765:
1.237 moko 20766: else case e in #(
20767: e)
20768: printf "%s\n" "#define error_t int" >>confdefs.h
1.16 paf 20769:
20770:
1.237 moko 20771: printf "%s\n" "#define __error_t_defined 1" >>confdefs.h
20772: ;;
20773: esac
20774: fi
1.12 paf 20775:
20776:
1.237 moko 20777: LT_ARGZ_H=
1.128 moko 20778:
1.237 moko 20779: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert argz_next argz_stringify
1.150 moko 20780: do :
1.237 moko 20781: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
1.150 moko 20782: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.237 moko 20783: if eval test \"x\$"$as_ac_var"\" = x"yes"
20784: then :
1.128 moko 20785: cat >>confdefs.h <<_ACEOF
1.237 moko 20786: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
1.128 moko 20787: _ACEOF
20788:
1.237 moko 20789: else case e in #(
20790: e) LT_ARGZ_H=lt__argz.h;
1.128 moko 20791:
1.237 moko 20792: _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
20793: ;;
20794: esac
1.128 moko 20795: fi
1.237 moko 20796:
1.128 moko 20797: done
20798:
1.237 moko 20799: if test -z "$LT_ARGZ_H"
20800: then :
20801: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20802: printf %s "checking if argz actually works... " >&6; }
20803: if test ${lt_cv_sys_argz_works+y}
20804: then :
20805: printf %s "(cached) " >&6
20806: else case e in #(
20807: e) case $host_os in #(
1.128 moko 20808: *cygwin*)
20809: lt_cv_sys_argz_works=no
1.237 moko 20810: if test no != "$cross_compiling"; then
1.128 moko 20811: lt_cv_sys_argz_works="guessing no"
20812: else
20813: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20814: save_IFS=$IFS
20815: IFS=-.
1.237 moko 20816: set x `uname -r | $SED -e "$lt_sed_extract_leading_digits"`
1.128 moko 20817: IFS=$save_IFS
20818: lt_os_major=${2-0}
20819: lt_os_minor=${3-0}
20820: lt_os_micro=${4-0}
1.237 moko 20821: if test 1 -lt "$lt_os_major" \
20822: || { test 1 -eq "$lt_os_major" \
20823: && { test 5 -lt "$lt_os_minor" \
20824: || { test 5 -eq "$lt_os_minor" \
20825: && test 24 -lt "$lt_os_micro"; }; }; }; then
1.128 moko 20826: lt_cv_sys_argz_works=yes
20827: fi
20828: fi
20829: ;; #(
20830: *) lt_cv_sys_argz_works=yes ;;
1.237 moko 20831: esac ;;
20832: esac
1.128 moko 20833: fi
1.237 moko 20834: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20835: printf "%s\n" "$lt_cv_sys_argz_works" >&6; }
20836: if test yes = "$lt_cv_sys_argz_works"
20837: then :
1.128 moko 20838:
1.237 moko 20839: printf "%s\n" "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 20840:
1.237 moko 20841: else case e in #(
20842: e) LT_ARGZ_H=lt__argz.h
1.128 moko 20843:
20844:
1.237 moko 20845: _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
20846: ;;
20847: esac
1.128 moko 20848: fi
1.62 paf 20849: fi
1.128 moko 20850:
20851:
20852:
1.237 moko 20853: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20854: printf %s "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20855: if test ${libltdl_cv_preloaded_symbols+y}
20856: then :
20857: printf %s "(cached) " >&6
20858: else case e in #(
20859: e) if test -n "$lt_cv_sys_global_symbol_pipe"; then
1.128 moko 20860: libltdl_cv_preloaded_symbols=yes
20861: else
20862: libltdl_cv_preloaded_symbols=no
20863: fi
1.237 moko 20864: ;;
20865: esac
1.62 paf 20866: fi
1.237 moko 20867: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20868: printf "%s\n" "$libltdl_cv_preloaded_symbols" >&6; }
20869: if test yes = "$libltdl_cv_preloaded_symbols"; then
1.128 moko 20870:
1.237 moko 20871: printf "%s\n" "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.66 paf 20872:
20873: fi
20874:
1.150 moko 20875:
20876:
1.128 moko 20877: # Set options
20878:
20879:
20880:
20881:
20882:
20883:
20884:
20885:
20886:
20887:
1.66 paf 20888:
20889:
1.150 moko 20890: # Check whether --with-included_ltdl was given.
1.237 moko 20891: if test ${with_included_ltdl+y}
20892: then :
1.150 moko 20893: withval=$with_included_ltdl;
20894: fi
1.64 paf 20895:
20896:
1.237 moko 20897: if test yes != "$with_included_ltdl"; then
1.128 moko 20898: # We are not being forced to use the included libltdl sources, so
20899: # decide whether there is a useful installed version we can use.
1.150 moko 20900: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 20901:
1.150 moko 20902: "
1.237 moko 20903: if test "x$ac_cv_header_ltdl_h" = xyes
20904: then :
20905: ac_fn_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.128 moko 20906: #include <ltdl.h>
1.237 moko 20907: " "$ac_c_undeclared_builtin_options" "CFLAGS"
20908: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes
20909: then :
20910: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20911: printf %s "checking for lt_dladvise_preload in -lltdl... " >&6; }
20912: if test ${ac_cv_lib_ltdl_lt_dladvise_preload+y}
20913: then :
20914: printf %s "(cached) " >&6
20915: else case e in #(
20916: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 20917: LIBS="-lltdl $LIBS"
1.150 moko 20918: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.79 paf 20919: /* end confdefs.h. */
1.128 moko 20920:
1.150 moko 20921: /* Override any GCC internal prototype to avoid an error.
20922: Use char because int might match the return type of a GCC
1.237 moko 20923: builtin and then its argument prototype would still apply.
20924: The 'extern "C"' is for builds by C++ compilers;
20925: although this is not generally supported in C code supporting it here
20926: has little cost and some practical benefit (sr 110532). */
1.128 moko 20927: #ifdef __cplusplus
20928: extern "C"
20929: #endif
1.237 moko 20930: char lt_dladvise_preload (void);
1.79 paf 20931: int
1.237 moko 20932: main (void)
1.79 paf 20933: {
1.150 moko 20934: return lt_dladvise_preload ();
1.79 paf 20935: ;
20936: return 0;
20937: }
20938: _ACEOF
1.237 moko 20939: if ac_fn_c_try_link "$LINENO"
20940: then :
1.128 moko 20941: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.237 moko 20942: else case e in #(
20943: e) ac_cv_lib_ltdl_lt_dladvise_preload=no ;;
20944: esac
1.128 moko 20945: fi
1.237 moko 20946: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20947: conftest$ac_exeext conftest.$ac_ext
1.237 moko 20948: LIBS=$ac_check_lib_save_LIBS ;;
20949: esac
1.79 paf 20950: fi
1.237 moko 20951: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20952: printf "%s\n" "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
20953: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes
20954: then :
1.128 moko 20955: with_included_ltdl=no
1.237 moko 20956: else case e in #(
20957: e) with_included_ltdl=yes ;;
20958: esac
1.128 moko 20959: fi
20960:
1.237 moko 20961: else case e in #(
20962: e) with_included_ltdl=yes ;;
20963: esac
1.128 moko 20964: fi
1.237 moko 20965: else case e in #(
20966: e) with_included_ltdl=yes ;;
20967: esac
1.79 paf 20968: fi
1.128 moko 20969:
1.79 paf 20970: fi
1.128 moko 20971:
20972:
20973:
20974:
1.150 moko 20975: # Check whether --with-ltdl_include was given.
1.237 moko 20976: if test ${with_ltdl_include+y}
20977: then :
1.150 moko 20978: withval=$with_ltdl_include;
20979: fi
1.128 moko 20980:
20981:
20982: if test -n "$with_ltdl_include"; then
20983: if test -f "$with_ltdl_include/ltdl.h"; then :
20984: else
1.237 moko 20985: as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
1.128 moko 20986: fi
20987: else
20988: with_ltdl_include=no
1.79 paf 20989: fi
1.128 moko 20990:
20991:
1.150 moko 20992: # Check whether --with-ltdl_lib was given.
1.237 moko 20993: if test ${with_ltdl_lib+y}
20994: then :
1.150 moko 20995: withval=$with_ltdl_lib;
20996: fi
1.128 moko 20997:
20998:
20999: if test -n "$with_ltdl_lib"; then
21000: if test -f "$with_ltdl_lib/libltdl.la"; then :
21001: else
1.237 moko 21002: as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
1.128 moko 21003: fi
21004: else
21005: with_ltdl_lib=no
1.79 paf 21006: fi
21007:
1.128 moko 21008: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21009: ,yes,no,no,)
21010: case $enable_ltdl_convenience in
1.150 moko 21011: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.128 moko 21012: "") enable_ltdl_convenience=yes
21013: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21014: esac
1.237 moko 21015: LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.128 moko 21016: LTDLDEPS=$LIBLTDL
1.237 moko 21017: LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
1.128 moko 21018:
21019:
21020:
21021:
21022:
21023: # For backwards non-gettext consistent compatibility...
1.237 moko 21024: INCLTDL=$LTDLINCL
1.128 moko 21025:
1.79 paf 21026:
1.128 moko 21027: ;;
21028: ,no,no,no,)
21029: # If the included ltdl is not to be used, then use the
21030: # preinstalled libltdl we found.
1.79 paf 21031:
1.237 moko 21032: printf "%s\n" "#define HAVE_LTDL 1" >>confdefs.h
1.79 paf 21033:
1.128 moko 21034: LIBLTDL=-lltdl
21035: LTDLDEPS=
21036: LTDLINCL=
21037: ;;
21038: ,no*,no,*)
1.237 moko 21039: as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
1.128 moko 21040: ;;
21041: *) with_included_ltdl=no
21042: LIBLTDL="-L$with_ltdl_lib -lltdl"
21043: LTDLDEPS=
1.237 moko 21044: LTDLINCL=-I$with_ltdl_include
1.128 moko 21045: ;;
21046: esac
1.237 moko 21047: INCLTDL=$LTDLINCL
1.128 moko 21048:
21049: # Report our decision...
1.237 moko 21050: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21051: printf %s "checking where to find libltdl headers... " >&6; }
21052: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21053: printf "%s\n" "$LTDLINCL" >&6; }
21054: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21055: printf %s "checking where to find libltdl library... " >&6; }
21056: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21057: printf "%s\n" "$LIBLTDL" >&6; }
1.128 moko 21058:
21059:
21060:
1.150 moko 21061: # Check whether --enable-ltdl-install was given.
1.237 moko 21062: if test ${enable_ltdl_install+y}
21063: then :
1.150 moko 21064: enableval=$enable_ltdl_install;
21065: fi
1.128 moko 21066:
21067:
1.237 moko 21068: case ,$enable_ltdl_install,$enable_ltdl_convenience in
1.128 moko 21069: *yes*) ;;
21070: *) enable_ltdl_convenience=yes ;;
21071: esac
21072:
1.237 moko 21073: if test no != "${enable_ltdl_install-no}"; then
1.128 moko 21074: INSTALL_LTDL_TRUE=
21075: INSTALL_LTDL_FALSE='#'
21076: else
21077: INSTALL_LTDL_TRUE='#'
21078: INSTALL_LTDL_FALSE=
21079: fi
21080:
1.237 moko 21081: if test no != "${enable_ltdl_convenience-no}"; then
1.128 moko 21082: CONVENIENCE_LTDL_TRUE=
21083: CONVENIENCE_LTDL_FALSE='#'
21084: else
21085: CONVENIENCE_LTDL_TRUE='#'
21086: CONVENIENCE_LTDL_FALSE=
21087: fi
21088:
1.237 moko 21089: if test -n "$LT_ARGZ_H"; then
21090: LTARGZH_EXISTS_TRUE=
21091: LTARGZH_EXISTS_FALSE='#'
21092: else
21093: LTARGZH_EXISTS_TRUE='#'
21094: LTARGZH_EXISTS_FALSE=
21095: fi
21096:
1.128 moko 21097:
21098:
1.150 moko 21099: subdirs="$subdirs src/lib/ltdl"
1.128 moko 21100:
21101:
21102:
21103:
21104: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21105: # the user used. This is so that ltdl.h can pick up the parent projects
21106: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
21107: # definitions required by ltdl.c.
21108: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21109:
21110:
21111:
1.237 moko 21112: ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
21113: "
21114: if test "x$ac_cv_header_unistd_h" = xyes
21115: then :
21116: printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
21117:
21118: fi
21119: ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default
21120: "
21121: if test "x$ac_cv_header_dl_h" = xyes
21122: then :
21123: printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h
21124:
21125: fi
21126: ac_fn_c_check_header_compile "$LINENO" "sys/dl.h" "ac_cv_header_sys_dl_h" "$ac_includes_default
21127: "
21128: if test "x$ac_cv_header_sys_dl_h" = xyes
21129: then :
21130: printf "%s\n" "#define HAVE_SYS_DL_H 1" >>confdefs.h
21131:
21132: fi
21133: ac_fn_c_check_header_compile "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default
21134: "
21135: if test "x$ac_cv_header_dld_h" = xyes
21136: then :
21137: printf "%s\n" "#define HAVE_DLD_H 1" >>confdefs.h
21138:
21139: fi
21140: ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default
21141: "
21142: if test "x$ac_cv_header_mach_o_dyld_h" = xyes
21143: then :
21144: printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h
21145:
21146: fi
21147: ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default
1.150 moko 21148: "
1.237 moko 21149: if test "x$ac_cv_header_dirent_h" = xyes
21150: then :
21151: printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
1.128 moko 21152:
1.150 moko 21153: fi
1.128 moko 21154:
21155:
21156:
1.237 moko 21157: for ac_func in closedir opendir readdir
1.150 moko 21158: do :
1.237 moko 21159: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
1.150 moko 21160: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.237 moko 21161: if eval test \"x\$"$as_ac_var"\" = x"yes"
21162: then :
1.150 moko 21163: cat >>confdefs.h <<_ACEOF
1.237 moko 21164: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
1.150 moko 21165: _ACEOF
1.66 paf 21166:
1.237 moko 21167: else case e in #(
21168: e)
1.66 paf 21169:
1.128 moko 21170: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.237 moko 21171: ;;
21172: esac
21173: fi
1.1 paf 21174:
1.128 moko 21175: done
21176:
1.237 moko 21177: for ac_func in strlcat strlcpy
1.150 moko 21178: do :
1.237 moko 21179: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
1.150 moko 21180: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.237 moko 21181: if eval test \"x\$"$as_ac_var"\" = x"yes"
21182: then :
1.128 moko 21183: cat >>confdefs.h <<_ACEOF
1.237 moko 21184: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
1.128 moko 21185: _ACEOF
21186:
1.237 moko 21187: else case e in #(
21188: e)
1.128 moko 21189:
21190: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
1.237 moko 21191: ;;
21192: esac
21193: fi
1.128 moko 21194:
21195: done
21196:
21197:
1.237 moko 21198: printf "%s\n" "#define LT_LIBEXT \"$libext\"" >>confdefs.h
1.64 paf 21199:
1.128 moko 21200:
21201: name=
21202: eval "lt_libprefix=\"$libname_spec\""
21203:
1.237 moko 21204: printf "%s\n" "#define LT_LIBPREFIX \"$lt_libprefix\"" >>confdefs.h
1.128 moko 21205:
21206:
21207: name=ltdl
21208: eval "LTDLOPEN=\"$libname_spec\""
21209:
21210:
21211:
21212:
21213:
21214:
21215:
21216:
21217: # Only expand once:
21218:
21219:
21220:
21221:
1.237 moko 21222: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21223: printf %s "checking whether byte ordering is bigendian... " >&6; }
21224: if test ${ac_cv_c_bigendian+y}
21225: then :
21226: printf %s "(cached) " >&6
21227: else case e in #(
21228: e) ac_cv_c_bigendian=unknown
1.150 moko 21229: # See if we're dealing with a universal compiler.
21230: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231: /* end confdefs.h. */
21232: #ifndef __APPLE_CC__
21233: not a universal capable compiler
21234: #endif
21235: typedef int dummy;
21236:
21237: _ACEOF
1.237 moko 21238: if ac_fn_c_try_compile "$LINENO"
21239: then :
1.150 moko 21240:
21241: # Check for potential -arch flags. It is not universal unless
21242: # there are at least two -arch flags with different values.
21243: ac_arch=
21244: ac_prev=
21245: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21246: if test -n "$ac_prev"; then
21247: case $ac_word in
21248: i?86 | x86_64 | ppc | ppc64)
21249: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21250: ac_arch=$ac_word
21251: else
21252: ac_cv_c_bigendian=universal
21253: break
21254: fi
21255: ;;
21256: esac
21257: ac_prev=
21258: elif test "x$ac_word" = "x-arch"; then
21259: ac_prev=arch
21260: fi
21261: done
21262: fi
1.237 moko 21263: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 21264: if test $ac_cv_c_bigendian = unknown; then
21265: # See if sys/param.h defines the BYTE_ORDER macro.
21266: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 21267: /* end confdefs.h. */
1.128 moko 21268: #include <sys/types.h>
1.150 moko 21269: #include <sys/param.h>
1.128 moko 21270:
21271: int
1.237 moko 21272: main (void)
1.128 moko 21273: {
1.237 moko 21274: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
21275: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
1.150 moko 21276: && LITTLE_ENDIAN)
21277: bogus endian macros
21278: #endif
1.64 paf 21279:
1.128 moko 21280: ;
21281: return 0;
21282: }
1.66 paf 21283: _ACEOF
1.237 moko 21284: if ac_fn_c_try_compile "$LINENO"
21285: then :
1.128 moko 21286: # It does; now see whether it defined to BIG_ENDIAN or not.
1.150 moko 21287: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 paf 21288: /* end confdefs.h. */
1.128 moko 21289: #include <sys/types.h>
1.150 moko 21290: #include <sys/param.h>
1.64 paf 21291:
21292: int
1.237 moko 21293: main (void)
1.128 moko 21294: {
21295: #if BYTE_ORDER != BIG_ENDIAN
1.150 moko 21296: not big endian
21297: #endif
1.128 moko 21298:
21299: ;
21300: return 0;
1.64 paf 21301: }
21302: _ACEOF
1.237 moko 21303: if ac_fn_c_try_compile "$LINENO"
21304: then :
1.128 moko 21305: ac_cv_c_bigendian=yes
1.237 moko 21306: else case e in #(
21307: e) ac_cv_c_bigendian=no ;;
21308: esac
1.150 moko 21309: fi
1.237 moko 21310: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 21311: fi
1.237 moko 21312: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 21313: fi
21314: if test $ac_cv_c_bigendian = unknown; then
21315: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21316: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21317: /* end confdefs.h. */
21318: #include <limits.h>
1.64 paf 21319:
1.150 moko 21320: int
1.237 moko 21321: main (void)
1.150 moko 21322: {
21323: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21324: bogus endian macros
21325: #endif
1.66 paf 21326:
1.150 moko 21327: ;
21328: return 0;
21329: }
1.62 paf 21330: _ACEOF
1.237 moko 21331: if ac_fn_c_try_compile "$LINENO"
21332: then :
1.150 moko 21333: # It does; now see whether it defined to _BIG_ENDIAN or not.
21334: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 21335: /* end confdefs.h. */
1.150 moko 21336: #include <limits.h>
21337:
1.128 moko 21338: int
1.237 moko 21339: main (void)
1.128 moko 21340: {
1.150 moko 21341: #ifndef _BIG_ENDIAN
21342: not big endian
21343: #endif
21344:
1.128 moko 21345: ;
21346: return 0;
21347: }
1.62 paf 21348: _ACEOF
1.237 moko 21349: if ac_fn_c_try_compile "$LINENO"
21350: then :
1.128 moko 21351: ac_cv_c_bigendian=yes
1.237 moko 21352: else case e in #(
21353: e) ac_cv_c_bigendian=no ;;
21354: esac
1.128 moko 21355: fi
1.237 moko 21356: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 21357: fi
1.237 moko 21358: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 21359: fi
21360: if test $ac_cv_c_bigendian = unknown; then
21361: # Compile a test program.
1.237 moko 21362: if test "$cross_compiling" = yes
21363: then :
1.150 moko 21364: # Try to guess by grepping values from an object file.
21365: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21366: /* end confdefs.h. */
1.237 moko 21367: unsigned short int ascii_mm[] =
1.150 moko 21368: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
1.237 moko 21369: unsigned short int ascii_ii[] =
1.150 moko 21370: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21371: int use_ascii (int i) {
21372: return ascii_mm[i] + ascii_ii[i];
21373: }
1.237 moko 21374: unsigned short int ebcdic_ii[] =
1.150 moko 21375: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
1.237 moko 21376: unsigned short int ebcdic_mm[] =
1.150 moko 21377: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21378: int use_ebcdic (int i) {
21379: return ebcdic_mm[i] + ebcdic_ii[i];
21380: }
1.237 moko 21381: int
21382: main (int argc, char **argv)
21383: {
21384: /* Intimidate the compiler so that it does not
21385: optimize the arrays away. */
21386: char *p = argv[0];
21387: ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
21388: ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
21389: return use_ascii (argc) == use_ebcdic (*p);
21390: }
1.150 moko 21391: _ACEOF
1.237 moko 21392: if ac_fn_c_try_link "$LINENO"
21393: then :
21394: if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
1.150 moko 21395: ac_cv_c_bigendian=yes
21396: fi
1.237 moko 21397: if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
1.150 moko 21398: if test "$ac_cv_c_bigendian" = unknown; then
21399: ac_cv_c_bigendian=no
21400: else
21401: # finding both strings is unlikely to happen, but who knows?
21402: ac_cv_c_bigendian=unknown
21403: fi
21404: fi
1.128 moko 21405: fi
1.237 moko 21406: rm -f core conftest.err conftest.$ac_objext conftest.beam \
21407: conftest$ac_exeext conftest.$ac_ext
21408: else case e in #(
21409: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 21410: /* end confdefs.h. */
1.150 moko 21411: $ac_includes_default
1.128 moko 21412: int
1.237 moko 21413: main (void)
1.128 moko 21414: {
1.150 moko 21415:
21416: /* Are we little or big endian? From Harbison&Steele. */
21417: union
21418: {
21419: long int l;
21420: char c[sizeof (long int)];
21421: } u;
21422: u.l = 1;
21423: return u.c[sizeof (long int) - 1] == 1;
21424:
21425: ;
21426: return 0;
1.128 moko 21427: }
21428: _ACEOF
1.237 moko 21429: if ac_fn_c_try_run "$LINENO"
21430: then :
1.128 moko 21431: ac_cv_c_bigendian=no
1.237 moko 21432: else case e in #(
21433: e) ac_cv_c_bigendian=yes ;;
21434: esac
1.128 moko 21435: fi
1.150 moko 21436: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1.237 moko 21437: conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21438: esac
1.128 moko 21439: fi
1.150 moko 21440:
1.237 moko 21441: fi ;;
21442: esac
1.66 paf 21443: fi
1.237 moko 21444: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21445: printf "%s\n" "$ac_cv_c_bigendian" >&6; }
1.150 moko 21446: case $ac_cv_c_bigendian in #(
21447: yes)
21448:
1.237 moko 21449: printf "%s\n" "#define PA_BIG_ENDIAN /**/" >>confdefs.h
1.150 moko 21450:
21451: ;; #(
21452: no)
1.128 moko 21453:
1.237 moko 21454: printf "%s\n" "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.66 paf 21455:
1.150 moko 21456: ;; #(
21457: universal)
1.128 moko 21458:
1.237 moko 21459: printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.1 paf 21460:
1.150 moko 21461: ;; #(
21462: *)
21463: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
1.128 moko 21464: ;;
1.150 moko 21465: esac
1.66 paf 21466:
21467:
1.150 moko 21468: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.237 moko 21469: if test "x$ac_cv_type_size_t" = xyes
21470: then :
1.62 paf 21471:
1.237 moko 21472: else case e in #(
21473: e)
21474: printf "%s\n" "#define size_t unsigned int" >>confdefs.h
21475: ;;
21476: esac
1.62 paf 21477: fi
1.66 paf 21478:
1.156 moko 21479: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
1.237 moko 21480: if test "x$ac_cv_type_ssize_t" = xyes
21481: then :
1.156 moko 21482:
1.237 moko 21483: else case e in #(
21484: e)
21485: printf "%s\n" "#define ssize_t int" >>confdefs.h
21486: ;;
21487: esac
1.156 moko 21488: fi
21489:
1.159 moko 21490: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
21491: case $ac_cv_c_uint8_t in #(
21492: no|yes) ;; #(
21493: *)
21494:
1.237 moko 21495: printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
1.159 moko 21496:
21497:
1.237 moko 21498: printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
1.159 moko 21499: ;;
21500: esac
21501:
1.165 moko 21502: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
21503: case $ac_cv_c_uint16_t in #(
21504: no|yes) ;; #(
21505: *)
21506:
21507:
1.237 moko 21508: printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
1.165 moko 21509: ;;
21510: esac
21511:
1.156 moko 21512: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
21513: case $ac_cv_c_uint32_t in #(
21514: no|yes) ;; #(
21515: *)
21516:
1.237 moko 21517: printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
1.156 moko 21518:
21519:
1.237 moko 21520: printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
1.156 moko 21521: ;;
21522: esac
1.128 moko 21523:
1.159 moko 21524: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
21525: case $ac_cv_c_uint64_t in #(
21526: no|yes) ;; #(
21527: *)
21528:
1.237 moko 21529: printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
1.159 moko 21530:
21531:
1.237 moko 21532: printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
1.159 moko 21533: ;;
21534: esac
21535:
1.234 moko 21536: ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
21537: case $ac_cv_c_int64_t in #(
21538: no|yes) ;; #(
21539: *)
21540:
1.237 moko 21541: printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
1.234 moko 21542: ;;
21543: esac
21544:
1.159 moko 21545:
1.161 moko 21546: ac_header_dirent=no
21547: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
1.237 moko 21548: as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
21549: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21550: printf %s "checking for $ac_hdr that defines DIR... " >&6; }
21551: if eval test \${$as_ac_Header+y}
21552: then :
21553: printf %s "(cached) " >&6
21554: else case e in #(
21555: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.161 moko 21556: /* end confdefs.h. */
21557: #include <sys/types.h>
21558: #include <$ac_hdr>
21559:
21560: int
1.237 moko 21561: main (void)
1.161 moko 21562: {
21563: if ((DIR *) 0)
21564: return 0;
21565: ;
21566: return 0;
21567: }
21568: _ACEOF
1.237 moko 21569: if ac_fn_c_try_compile "$LINENO"
21570: then :
1.161 moko 21571: eval "$as_ac_Header=yes"
1.237 moko 21572: else case e in #(
21573: e) eval "$as_ac_Header=no" ;;
21574: esac
1.161 moko 21575: fi
1.237 moko 21576: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21577: esac
1.161 moko 21578: fi
21579: eval ac_res=\$$as_ac_Header
1.237 moko 21580: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21581: printf "%s\n" "$ac_res" >&6; }
21582: if eval test \"x\$"$as_ac_Header"\" = x"yes"
21583: then :
1.161 moko 21584: cat >>confdefs.h <<_ACEOF
1.237 moko 21585: #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
1.161 moko 21586: _ACEOF
21587:
21588: ac_header_dirent=$ac_hdr; break
21589: fi
21590:
21591: done
21592: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21593: if test $ac_header_dirent = dirent.h; then
1.237 moko 21594: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21595: printf %s "checking for library containing opendir... " >&6; }
21596: if test ${ac_cv_search_opendir+y}
21597: then :
21598: printf %s "(cached) " >&6
21599: else case e in #(
21600: e) ac_func_search_save_LIBS=$LIBS
1.161 moko 21601: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21602: /* end confdefs.h. */
21603:
21604: /* Override any GCC internal prototype to avoid an error.
21605: Use char because int might match the return type of a GCC
1.237 moko 21606: builtin and then its argument prototype would still apply.
21607: The 'extern "C"' is for builds by C++ compilers;
21608: although this is not generally supported in C code supporting it here
21609: has little cost and some practical benefit (sr 110532). */
1.161 moko 21610: #ifdef __cplusplus
21611: extern "C"
21612: #endif
1.237 moko 21613: char opendir (void);
1.161 moko 21614: int
1.237 moko 21615: main (void)
1.161 moko 21616: {
21617: return opendir ();
21618: ;
21619: return 0;
21620: }
21621: _ACEOF
1.237 moko 21622: for ac_lib in '' dir
21623: do
1.161 moko 21624: if test -z "$ac_lib"; then
21625: ac_res="none required"
21626: else
21627: ac_res=-l$ac_lib
21628: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21629: fi
1.237 moko 21630: if ac_fn_c_try_link "$LINENO"
21631: then :
1.161 moko 21632: ac_cv_search_opendir=$ac_res
21633: fi
1.237 moko 21634: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.161 moko 21635: conftest$ac_exeext
1.237 moko 21636: if test ${ac_cv_search_opendir+y}
21637: then :
1.161 moko 21638: break
21639: fi
21640: done
1.237 moko 21641: if test ${ac_cv_search_opendir+y}
21642: then :
1.161 moko 21643:
1.237 moko 21644: else case e in #(
21645: e) ac_cv_search_opendir=no ;;
21646: esac
1.161 moko 21647: fi
21648: rm conftest.$ac_ext
1.237 moko 21649: LIBS=$ac_func_search_save_LIBS ;;
21650: esac
1.161 moko 21651: fi
1.237 moko 21652: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21653: printf "%s\n" "$ac_cv_search_opendir" >&6; }
1.161 moko 21654: ac_res=$ac_cv_search_opendir
1.237 moko 21655: if test "$ac_res" != no
21656: then :
1.161 moko 21657: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21658:
21659: fi
21660:
21661: else
1.237 moko 21662: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21663: printf %s "checking for library containing opendir... " >&6; }
21664: if test ${ac_cv_search_opendir+y}
21665: then :
21666: printf %s "(cached) " >&6
21667: else case e in #(
21668: e) ac_func_search_save_LIBS=$LIBS
1.161 moko 21669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21670: /* end confdefs.h. */
21671:
21672: /* Override any GCC internal prototype to avoid an error.
21673: Use char because int might match the return type of a GCC
1.237 moko 21674: builtin and then its argument prototype would still apply.
21675: The 'extern "C"' is for builds by C++ compilers;
21676: although this is not generally supported in C code supporting it here
21677: has little cost and some practical benefit (sr 110532). */
1.161 moko 21678: #ifdef __cplusplus
21679: extern "C"
21680: #endif
1.237 moko 21681: char opendir (void);
1.161 moko 21682: int
1.237 moko 21683: main (void)
1.161 moko 21684: {
21685: return opendir ();
21686: ;
21687: return 0;
21688: }
21689: _ACEOF
1.237 moko 21690: for ac_lib in '' x
21691: do
1.161 moko 21692: if test -z "$ac_lib"; then
21693: ac_res="none required"
21694: else
21695: ac_res=-l$ac_lib
21696: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21697: fi
1.237 moko 21698: if ac_fn_c_try_link "$LINENO"
21699: then :
1.161 moko 21700: ac_cv_search_opendir=$ac_res
21701: fi
1.237 moko 21702: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.161 moko 21703: conftest$ac_exeext
1.237 moko 21704: if test ${ac_cv_search_opendir+y}
21705: then :
1.161 moko 21706: break
21707: fi
21708: done
1.237 moko 21709: if test ${ac_cv_search_opendir+y}
21710: then :
1.161 moko 21711:
1.237 moko 21712: else case e in #(
21713: e) ac_cv_search_opendir=no ;;
21714: esac
1.161 moko 21715: fi
21716: rm conftest.$ac_ext
1.237 moko 21717: LIBS=$ac_func_search_save_LIBS ;;
21718: esac
1.161 moko 21719: fi
1.237 moko 21720: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21721: printf "%s\n" "$ac_cv_search_opendir" >&6; }
1.161 moko 21722: ac_res=$ac_cv_search_opendir
1.237 moko 21723: if test "$ac_res" != no
21724: then :
1.161 moko 21725: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21726:
21727: fi
21728:
21729: fi
21730:
21731:
21732:
21733: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
21734: #include <sys/types.h>
21735: #ifdef HAVE_DIRENT_H
21736: # include <dirent.h>
21737: #else
21738: # define dirent direct
21739: # ifdef HAVE_SYS_NDIR_H
21740: # include <sys/ndir.h>
21741: # endif
21742: # ifdef HAVE_SYS_DIR_H
21743: # include <sys/dir.h>
21744: # endif
21745: # ifdef HAVE_NDIR_H
21746: # include <ndir.h>
21747: # endif
21748: #endif
21749:
21750: "
1.237 moko 21751: if test "x$ac_cv_member_struct_dirent_d_type" = xyes
21752: then :
1.161 moko 21753:
1.237 moko 21754: printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
1.161 moko 21755:
21756:
21757: fi
21758:
21759:
1.159 moko 21760:
1.171 moko 21761: # Check whether --enable-largefile was given.
1.237 moko 21762: if test ${enable_largefile+y}
21763: then :
1.171 moko 21764: enableval=$enable_largefile;
21765: fi
1.237 moko 21766: if test "$enable_largefile,$enable_year2038" != no,no
21767: then :
21768: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
21769: printf %s "checking for $CPPFLAGS option for large files... " >&6; }
21770: if test ${ac_cv_sys_largefile_opts+y}
21771: then :
21772: printf %s "(cached) " >&6
21773: else case e in #(
21774: e) ac_save_CPPFLAGS=$CPPFLAGS
21775: ac_opt_found=no
21776: for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
21777: if test x"$ac_opt" != x"none needed"
21778: then :
21779: CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
21780: fi
21781: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.171 moko 21782: /* end confdefs.h. */
21783: #include <sys/types.h>
1.237 moko 21784: #ifndef FTYPE
21785: # define FTYPE off_t
21786: #endif
21787: /* Check that FTYPE can represent 2**63 - 1 correctly.
21788: We can't simply define LARGE_FTYPE to be 9223372036854775807,
1.171 moko 21789: since some C++ compilers masquerading as C compilers
21790: incorrectly reject 9223372036854775807. */
1.237 moko 21791: #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
21792: int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
21793: && LARGE_FTYPE % 2147483647 == 1)
1.171 moko 21794: ? 1 : -1];
21795: int
1.237 moko 21796: main (void)
1.171 moko 21797: {
21798:
21799: ;
21800: return 0;
21801: }
21802: _ACEOF
1.237 moko 21803: if ac_fn_c_try_compile "$LINENO"
21804: then :
21805: if test x"$ac_opt" = x"none needed"
21806: then :
21807: # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
21808: CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
21809: if ac_fn_c_try_compile "$LINENO"
21810: then :
21811:
21812: else case e in #(
21813: e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
21814: if ac_fn_c_try_compile "$LINENO"
21815: then :
21816: ac_opt='-D_FILE_OFFSET_BITS=64'
21817: fi
21818: rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
21819: esac
21820: fi
21821: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.171 moko 21822: fi
1.237 moko 21823: ac_cv_sys_largefile_opts=$ac_opt
21824: ac_opt_found=yes
1.171 moko 21825: fi
1.237 moko 21826: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21827: test $ac_opt_found = no || break
21828: done
21829: CPPFLAGS=$ac_save_CPPFLAGS
21830:
21831: test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
21832: esac
1.171 moko 21833: fi
1.237 moko 21834: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
21835: printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
21836:
21837: ac_have_largefile=yes
21838: case $ac_cv_sys_largefile_opts in #(
21839: "none needed") :
21840: ;; #(
21841: "supported through gnulib") :
21842: ;; #(
21843: "support not detected") :
21844: ac_have_largefile=no ;; #(
21845: "-D_FILE_OFFSET_BITS=64") :
21846:
21847: printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
21848: ;; #(
21849: "-D_LARGE_FILES=1") :
1.171 moko 21850:
1.237 moko 21851: printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
21852: ;; #(
21853: *) :
21854: as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
21855: esac
1.171 moko 21856:
1.237 moko 21857: if test "$enable_year2038" != no
21858: then :
21859: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
21860: printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
21861: if test ${ac_cv_sys_year2038_opts+y}
21862: then :
21863: printf %s "(cached) " >&6
21864: else case e in #(
21865: e) ac_save_CPPFLAGS="$CPPFLAGS"
21866: ac_opt_found=no
21867: for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
21868: if test x"$ac_opt" != x"none needed"
21869: then :
21870: CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
1.171 moko 21871: fi
1.237 moko 21872: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.171 moko 21873: /* end confdefs.h. */
1.237 moko 21874:
21875: #include <time.h>
21876: /* Check that time_t can represent 2**32 - 1 correctly. */
21877: #define LARGE_TIME_T \\
21878: ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
21879: int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
21880: && LARGE_TIME_T % 65537 == 0)
21881: ? 1 : -1];
21882:
1.171 moko 21883: int
1.237 moko 21884: main (void)
1.171 moko 21885: {
21886:
21887: ;
21888: return 0;
21889: }
21890: _ACEOF
1.237 moko 21891: if ac_fn_c_try_compile "$LINENO"
21892: then :
21893: ac_cv_sys_year2038_opts="$ac_opt"
21894: ac_opt_found=yes
1.171 moko 21895: fi
1.237 moko 21896: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21897: test $ac_opt_found = no || break
21898: done
21899: CPPFLAGS="$ac_save_CPPFLAGS"
21900: test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
21901: esac
1.171 moko 21902: fi
1.237 moko 21903: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
21904: printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
21905:
21906: ac_have_year2038=yes
21907: case $ac_cv_sys_year2038_opts in #(
21908: "none needed") :
21909: ;; #(
21910: "support not detected") :
21911: ac_have_year2038=no ;; #(
21912: "-D_TIME_BITS=64") :
21913:
21914: printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
21915: ;; #(
21916: "-D__MINGW_USE_VC2005_COMPAT") :
21917:
21918: printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
21919: ;; #(
21920: "-U_USE_32_BIT_TIME_T"*) :
21921: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21922: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21923: as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
21924: will stop working after mid-January 2038. Remove
21925: _USE_32BIT_TIME_T from the compiler flags.
21926: See 'config.log' for more details" "$LINENO" 5; } ;; #(
21927: *) :
21928: as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
1.171 moko 21929: esac
21930:
21931: fi
21932:
21933: fi
1.237 moko 21934:
21935: ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
21936: if test "x$ac_cv_header_stdio_h" = xyes
21937: then :
21938: printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
21939:
21940: fi
21941: ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21942: if test "x$ac_cv_header_sys_types_h" = xyes
21943: then :
21944: printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
21945:
21946: fi
21947: ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
21948: if test "x$ac_cv_header_sys_stat_h" = xyes
21949: then :
21950: printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
21951:
21952: fi
21953: ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
21954: if test "x$ac_cv_header_stdlib_h" = xyes
21955: then :
21956: printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
21957:
21958: fi
21959: ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
21960: if test "x$ac_cv_header_stddef_h" = xyes
21961: then :
21962: printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
21963:
21964: fi
21965: ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
21966: if test "x$ac_cv_header_memory_h" = xyes
21967: then :
21968: printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
21969:
21970: fi
21971: ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
21972: if test "x$ac_cv_header_string_h" = xyes
21973: then :
21974: printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
21975:
21976: fi
21977: ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
21978: if test "x$ac_cv_header_strings_h" = xyes
21979: then :
21980: printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
21981:
21982: fi
21983: ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21984: if test "x$ac_cv_header_inttypes_h" = xyes
21985: then :
21986: printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
21987:
21988: fi
21989: ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21990: if test "x$ac_cv_header_stdint_h" = xyes
21991: then :
21992: printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
21993:
21994: fi
21995: ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21996: if test "x$ac_cv_header_unistd_h" = xyes
21997: then :
21998: printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
21999:
22000: fi
22001:
22002: ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
22003: if test "x$ac_cv_header_time_h" = xyes
22004: then :
22005: printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
22006:
22007: fi
22008: ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
22009: if test "x$ac_cv_header_sys_time_h" = xyes
22010: then :
22011: printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
22012:
22013: fi
22014: ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
22015: if test "x$ac_cv_header_assert_h" = xyes
22016: then :
22017: printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
22018:
22019: fi
22020: ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
22021: if test "x$ac_cv_header_limits_h" = xyes
22022: then :
22023: printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
22024:
22025: fi
22026: ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
22027: if test "x$ac_cv_header_ctype_h" = xyes
22028: then :
22029: printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
22030:
22031: fi
22032: ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
22033: if test "x$ac_cv_header_math_h" = xyes
22034: then :
22035: printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
22036:
22037: fi
22038: ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
22039: if test "x$ac_cv_header_process_h" = xyes
22040: then :
22041: printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
22042:
22043: fi
22044: ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
22045: if test "x$ac_cv_header_stdarg_h" = xyes
22046: then :
22047: printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
22048:
22049: fi
22050: ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
22051: if test "x$ac_cv_header_setjmp_h" = xyes
22052: then :
22053: printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
22054:
1.171 moko 22055: fi
1.237 moko 22056: ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
22057: if test "x$ac_cv_header_signal_h" = xyes
22058: then :
22059: printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
1.171 moko 22060:
1.237 moko 22061: fi
22062: ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
22063: if test "x$ac_cv_header_pthread_h" = xyes
22064: then :
22065: printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
1.171 moko 22066:
22067: fi
22068:
1.237 moko 22069: ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
22070: if test "x$ac_cv_header_errno_h" = xyes
22071: then :
22072: printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
22073:
22074: fi
22075: ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
22076: if test "x$ac_cv_header_dirent_h" = xyes
22077: then :
22078: printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
1.171 moko 22079:
1.237 moko 22080: fi
22081: ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
22082: if test "x$ac_cv_header_fcntl_h" = xyes
22083: then :
22084: printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
1.159 moko 22085:
22086: fi
1.237 moko 22087: ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
22088: if test "x$ac_cv_header_io_h" = xyes
22089: then :
22090: printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
1.150 moko 22091:
1.237 moko 22092: fi
22093: ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
22094: if test "x$ac_cv_header_sys_file_h" = xyes
22095: then :
22096: printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
1.159 moko 22097:
1.237 moko 22098: fi
22099: ac_fn_c_check_header_compile "$LINENO" "sys/locking.h" "ac_cv_header_sys_locking_h" "$ac_includes_default"
22100: if test "x$ac_cv_header_sys_locking_h" = xyes
22101: then :
22102: printf "%s\n" "#define HAVE_SYS_LOCKING_H 1" >>confdefs.h
1.159 moko 22103:
22104: fi
1.237 moko 22105: ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
22106: if test "x$ac_cv_header_sys_select_h" = xyes
22107: then :
22108: printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
1.159 moko 22109:
1.237 moko 22110: fi
22111: ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
22112: if test "x$ac_cv_header_sys_resource_h" = xyes
22113: then :
22114: printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
1.159 moko 22115:
1.237 moko 22116: fi
22117: ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
22118: if test "x$ac_cv_header_sys_wait_h" = xyes
22119: then :
22120: printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.159 moko 22121:
22122: fi
22123:
1.237 moko 22124: ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
22125: if test "x$ac_cv_header_sys_socket_h" = xyes
22126: then :
22127: printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
22128:
22129: fi
22130: ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
22131: if test "x$ac_cv_header_netinet_in_h" = xyes
22132: then :
22133: printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
1.159 moko 22134:
1.237 moko 22135: fi
22136: ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
22137: if test "x$ac_cv_header_arpa_inet_h" = xyes
22138: then :
22139: printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
1.62 paf 22140:
22141: fi
1.237 moko 22142: ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
22143: if test "x$ac_cv_header_netdb_h" = xyes
22144: then :
22145: printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
1.62 paf 22146:
1.237 moko 22147: fi
1.62 paf 22148:
22149:
22150:
1.66 paf 22151: case "$host" in
1.107 misha 22152: *-freebsd4*)
22153:
1.237 moko 22154: printf "%s\n" "#define FREEBSD4 /**/" >>confdefs.h
1.107 misha 22155:
22156: ;;
1.195 moko 22157: *-freebsd1*)
22158:
1.237 moko 22159: printf "%s\n" "#define FREEBSD1X /**/" >>confdefs.h
1.195 moko 22160:
22161: ;;
1.66 paf 22162: *-sunos5.6* | *-solaris2.6*)
1.237 moko 22163: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
22164: printf %s "checking for main in -lxnet... " >&6; }
22165: if test ${ac_cv_lib_xnet_main+y}
22166: then :
22167: printf %s "(cached) " >&6
22168: else case e in #(
22169: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22170: LIBS="-lxnet $LIBS"
1.150 moko 22171: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22172: /* end confdefs.h. */
22173:
1.66 paf 22174:
22175: int
1.237 moko 22176: main (void)
1.66 paf 22177: {
1.150 moko 22178: return main ();
1.66 paf 22179: ;
22180: return 0;
22181: }
1.62 paf 22182: _ACEOF
1.237 moko 22183: if ac_fn_c_try_link "$LINENO"
22184: then :
1.66 paf 22185: ac_cv_lib_xnet_main=yes
1.237 moko 22186: else case e in #(
22187: e) ac_cv_lib_xnet_main=no ;;
22188: esac
1.62 paf 22189: fi
1.237 moko 22190: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22191: conftest$ac_exeext conftest.$ac_ext
1.237 moko 22192: LIBS=$ac_check_lib_save_LIBS ;;
22193: esac
1.62 paf 22194: fi
1.237 moko 22195: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
22196: printf "%s\n" "$ac_cv_lib_xnet_main" >&6; }
22197: if test "x$ac_cv_lib_xnet_main" = xyes
22198: then :
22199: printf "%s\n" "#define HAVE_LIBXNET 1" >>confdefs.h
1.1 paf 22200:
1.66 paf 22201: LIBS="-lxnet $LIBS"
22202:
1.1 paf 22203: fi
22204:
1.66 paf 22205: ;;
22206: *-sunos5* | *-solaris2*)
1.237 moko 22207: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22208: printf %s "checking for main in -lsocket... " >&6; }
22209: if test ${ac_cv_lib_socket_main+y}
22210: then :
22211: printf %s "(cached) " >&6
22212: else case e in #(
22213: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22214: LIBS="-lsocket $LIBS"
1.150 moko 22215: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22216: /* end confdefs.h. */
1.66 paf 22217:
22218:
1.62 paf 22219: int
1.237 moko 22220: main (void)
1.62 paf 22221: {
1.150 moko 22222: return main ();
1.62 paf 22223: ;
22224: return 0;
22225: }
22226: _ACEOF
1.237 moko 22227: if ac_fn_c_try_link "$LINENO"
22228: then :
1.66 paf 22229: ac_cv_lib_socket_main=yes
1.237 moko 22230: else case e in #(
22231: e) ac_cv_lib_socket_main=no ;;
22232: esac
1.1 paf 22233: fi
1.237 moko 22234: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22235: conftest$ac_exeext conftest.$ac_ext
1.237 moko 22236: LIBS=$ac_check_lib_save_LIBS ;;
22237: esac
1.62 paf 22238: fi
1.237 moko 22239: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22240: printf "%s\n" "$ac_cv_lib_socket_main" >&6; }
22241: if test "x$ac_cv_lib_socket_main" = xyes
22242: then :
22243: printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
1.1 paf 22244:
1.66 paf 22245: LIBS="-lsocket $LIBS"
1.1 paf 22246:
22247: fi
22248:
1.237 moko 22249: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22250: printf %s "checking for main in -lnsl... " >&6; }
22251: if test ${ac_cv_lib_nsl_main+y}
22252: then :
22253: printf %s "(cached) " >&6
22254: else case e in #(
22255: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22256: LIBS="-lnsl $LIBS"
1.150 moko 22257: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22258: /* end confdefs.h. */
1.66 paf 22259:
22260:
1.62 paf 22261: int
1.237 moko 22262: main (void)
1.62 paf 22263: {
1.150 moko 22264: return main ();
1.62 paf 22265: ;
22266: return 0;
22267: }
22268: _ACEOF
1.237 moko 22269: if ac_fn_c_try_link "$LINENO"
22270: then :
1.66 paf 22271: ac_cv_lib_nsl_main=yes
1.237 moko 22272: else case e in #(
22273: e) ac_cv_lib_nsl_main=no ;;
22274: esac
1.30 paf 22275: fi
1.237 moko 22276: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22277: conftest$ac_exeext conftest.$ac_ext
1.237 moko 22278: LIBS=$ac_check_lib_save_LIBS ;;
22279: esac
1.62 paf 22280: fi
1.237 moko 22281: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22282: printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
22283: if test "x$ac_cv_lib_nsl_main" = xyes
22284: then :
22285: printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
1.30 paf 22286:
1.66 paf 22287: LIBS="-lnsl $LIBS"
1.30 paf 22288:
22289: fi
22290:
1.66 paf 22291: ;;
22292: *-nec-sysv4*)
1.237 moko 22293: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22294: printf %s "checking for gethostbyname in -lnsl... " >&6; }
22295: if test ${ac_cv_lib_nsl_gethostbyname+y}
22296: then :
22297: printf %s "(cached) " >&6
22298: else case e in #(
22299: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22300: LIBS="-lnsl $LIBS"
1.150 moko 22301: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22302: /* end confdefs.h. */
1.66 paf 22303:
1.150 moko 22304: /* Override any GCC internal prototype to avoid an error.
22305: Use char because int might match the return type of a GCC
1.237 moko 22306: builtin and then its argument prototype would still apply.
22307: The 'extern "C"' is for builds by C++ compilers;
22308: although this is not generally supported in C code supporting it here
22309: has little cost and some practical benefit (sr 110532). */
1.66 paf 22310: #ifdef __cplusplus
22311: extern "C"
22312: #endif
1.237 moko 22313: char gethostbyname (void);
1.62 paf 22314: int
1.237 moko 22315: main (void)
1.62 paf 22316: {
1.150 moko 22317: return gethostbyname ();
1.62 paf 22318: ;
22319: return 0;
22320: }
22321: _ACEOF
1.237 moko 22322: if ac_fn_c_try_link "$LINENO"
22323: then :
1.66 paf 22324: ac_cv_lib_nsl_gethostbyname=yes
1.237 moko 22325: else case e in #(
22326: e) ac_cv_lib_nsl_gethostbyname=no ;;
22327: esac
1.30 paf 22328: fi
1.237 moko 22329: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22330: conftest$ac_exeext conftest.$ac_ext
1.237 moko 22331: LIBS=$ac_check_lib_save_LIBS ;;
22332: esac
1.62 paf 22333: fi
1.237 moko 22334: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22335: printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
22336: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
22337: then :
22338: printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
1.30 paf 22339:
1.66 paf 22340: LIBS="-lnsl $LIBS"
1.30 paf 22341:
22342: fi
22343:
1.237 moko 22344: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22345: printf %s "checking for socket in -lsocket... " >&6; }
22346: if test ${ac_cv_lib_socket_socket+y}
22347: then :
22348: printf %s "(cached) " >&6
22349: else case e in #(
22350: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22351: LIBS="-lsocket $LIBS"
1.150 moko 22352: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22353: /* end confdefs.h. */
22354:
1.150 moko 22355: /* Override any GCC internal prototype to avoid an error.
22356: Use char because int might match the return type of a GCC
1.237 moko 22357: builtin and then its argument prototype would still apply.
22358: The 'extern "C"' is for builds by C++ compilers;
22359: although this is not generally supported in C code supporting it here
22360: has little cost and some practical benefit (sr 110532). */
1.66 paf 22361: #ifdef __cplusplus
22362: extern "C"
22363: #endif
1.237 moko 22364: char socket (void);
1.62 paf 22365: int
1.237 moko 22366: main (void)
1.62 paf 22367: {
1.150 moko 22368: return socket ();
1.62 paf 22369: ;
22370: return 0;
22371: }
22372: _ACEOF
1.237 moko 22373: if ac_fn_c_try_link "$LINENO"
22374: then :
1.66 paf 22375: ac_cv_lib_socket_socket=yes
1.237 moko 22376: else case e in #(
22377: e) ac_cv_lib_socket_socket=no ;;
22378: esac
1.8 paf 22379: fi
1.237 moko 22380: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22381: conftest$ac_exeext conftest.$ac_ext
1.237 moko 22382: LIBS=$ac_check_lib_save_LIBS ;;
22383: esac
1.8 paf 22384: fi
1.237 moko 22385: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22386: printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
22387: if test "x$ac_cv_lib_socket_socket" = xyes
22388: then :
22389: printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
1.66 paf 22390:
1.128 moko 22391: LIBS="-lsocket $LIBS"
1.66 paf 22392:
1.62 paf 22393: fi
22394:
1.66 paf 22395: ;;
1.128 moko 22396: *-cygwin*)
22397:
1.237 moko 22398: printf "%s\n" "#define WIN32 /**/" >>confdefs.h
1.128 moko 22399:
1.66 paf 22400: ;;
22401: esac
1.1 paf 22402:
1.237 moko 22403: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
22404: printf %s "checking for sin in -lm... " >&6; }
22405: if test ${ac_cv_lib_m_sin+y}
22406: then :
22407: printf %s "(cached) " >&6
22408: else case e in #(
22409: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22410: LIBS="-lm $LIBS"
1.150 moko 22411: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22412: /* end confdefs.h. */
22413:
1.150 moko 22414: /* Override any GCC internal prototype to avoid an error.
22415: Use char because int might match the return type of a GCC
1.237 moko 22416: builtin and then its argument prototype would still apply.
22417: The 'extern "C"' is for builds by C++ compilers;
22418: although this is not generally supported in C code supporting it here
22419: has little cost and some practical benefit (sr 110532). */
1.66 paf 22420: #ifdef __cplusplus
22421: extern "C"
22422: #endif
1.237 moko 22423: char sin (void);
1.62 paf 22424: int
1.237 moko 22425: main (void)
1.62 paf 22426: {
1.150 moko 22427: return sin ();
1.62 paf 22428: ;
22429: return 0;
22430: }
22431: _ACEOF
1.237 moko 22432: if ac_fn_c_try_link "$LINENO"
22433: then :
1.66 paf 22434: ac_cv_lib_m_sin=yes
1.237 moko 22435: else case e in #(
22436: e) ac_cv_lib_m_sin=no ;;
22437: esac
1.62 paf 22438: fi
1.237 moko 22439: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22440: conftest$ac_exeext conftest.$ac_ext
1.237 moko 22441: LIBS=$ac_check_lib_save_LIBS ;;
22442: esac
1.62 paf 22443: fi
1.237 moko 22444: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
22445: printf "%s\n" "$ac_cv_lib_m_sin" >&6; }
22446: if test "x$ac_cv_lib_m_sin" = xyes
22447: then :
22448: printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
1.1 paf 22449:
1.66 paf 22450: LIBS="-lm $LIBS"
1.1 paf 22451:
22452: fi
22453:
1.237 moko 22454: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22455: printf %s "checking for crypt in -lcrypt... " >&6; }
22456: if test ${ac_cv_lib_crypt_crypt+y}
22457: then :
22458: printf %s "(cached) " >&6
22459: else case e in #(
22460: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22461: LIBS="-lcrypt $LIBS"
1.150 moko 22462: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22463: /* end confdefs.h. */
22464:
1.150 moko 22465: /* Override any GCC internal prototype to avoid an error.
22466: Use char because int might match the return type of a GCC
1.237 moko 22467: builtin and then its argument prototype would still apply.
22468: The 'extern "C"' is for builds by C++ compilers;
22469: although this is not generally supported in C code supporting it here
22470: has little cost and some practical benefit (sr 110532). */
1.66 paf 22471: #ifdef __cplusplus
22472: extern "C"
22473: #endif
1.237 moko 22474: char crypt (void);
1.62 paf 22475: int
1.237 moko 22476: main (void)
1.62 paf 22477: {
1.150 moko 22478: return crypt ();
1.62 paf 22479: ;
22480: return 0;
22481: }
22482: _ACEOF
1.237 moko 22483: if ac_fn_c_try_link "$LINENO"
22484: then :
1.66 paf 22485: ac_cv_lib_crypt_crypt=yes
1.237 moko 22486: else case e in #(
22487: e) ac_cv_lib_crypt_crypt=no ;;
22488: esac
1.62 paf 22489: fi
1.237 moko 22490: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22491: conftest$ac_exeext conftest.$ac_ext
1.237 moko 22492: LIBS=$ac_check_lib_save_LIBS ;;
22493: esac
1.62 paf 22494: fi
1.237 moko 22495: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22496: printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
22497: if test "x$ac_cv_lib_crypt_crypt" = xyes
22498: then :
22499: printf "%s\n" "#define HAVE_LIBCRYPT 1" >>confdefs.h
1.1 paf 22500:
1.66 paf 22501: LIBS="-lcrypt $LIBS"
22502:
22503: fi
22504:
22505:
22506:
1.237 moko 22507: ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
22508: if test "x$ac_cv_func_flock" = xyes
22509: then :
22510: printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
22511:
22512: fi
22513: ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
22514: if test "x$ac_cv_func_fcntl" = xyes
22515: then :
22516: printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
22517:
22518: fi
22519: ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf"
22520: if test "x$ac_cv_func_lockf" = xyes
22521: then :
22522: printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h
22523:
22524: fi
22525: ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
22526: if test "x$ac_cv_func_ftruncate" = xyes
22527: then :
22528: printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
22529:
22530: fi
22531: ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
22532: if test "x$ac_cv_func_fchmod" = xyes
22533: then :
22534: printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
22535:
22536: fi
22537:
22538: ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
22539: if test "x$ac_cv_func_getrusage" = xyes
22540: then :
22541: printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
22542:
22543: fi
22544: ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
22545: if test "x$ac_cv_func_gettimeofday" = xyes
22546: then :
22547: printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
22548:
22549: fi
22550: ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22551: if test "x$ac_cv_func_crypt" = xyes
22552: then :
22553: printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h
22554:
22555: fi
22556: ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp"
22557: if test "x$ac_cv_func_sigsetjmp" = xyes
22558: then :
22559: printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
22560:
22561: fi
22562: ac_fn_c_check_func "$LINENO" "siglongjmp" "ac_cv_func_siglongjmp"
22563: if test "x$ac_cv_func_siglongjmp" = xyes
22564: then :
22565: printf "%s\n" "#define HAVE_SIGLONGJMP 1" >>confdefs.h
1.159 moko 22566:
22567: fi
1.237 moko 22568: ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
22569: if test "x$ac_cv_func_unsetenv" = xyes
22570: then :
22571: printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
1.66 paf 22572:
1.237 moko 22573: fi
22574: ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
22575: if test "x$ac_cv_func_syslog" = xyes
22576: then :
22577: printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h
1.1 paf 22578:
1.66 paf 22579: fi
22580:
1.1 paf 22581:
22582:
1.159 moko 22583:
1.67 paf 22584: pa_func=sigsetjmp
1.237 moko 22585: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
22586: printf %s "checking for (maybe built-in) function $pa_func... " >&6; }
1.229 moko 22587:
22588: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 22589: /* end confdefs.h. */
22590:
22591: #ifdef HAVE_SETJMP_H
22592: # include <setjmp.h>
22593: #endif
22594:
22595: int
1.237 moko 22596: main (void)
1.67 paf 22597: {
22598:
22599: $pa_func(0,0);
22600:
22601: ;
22602: return 0;
22603: }
22604: _ACEOF
1.237 moko 22605: if ac_fn_c_try_compile "$LINENO"
22606: then :
22607: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22608: printf "%s\n" "yes" >&6; }
1.67 paf 22609: cat >>confdefs.h <<_ACEOF
1.237 moko 22610: #define `printf "%s\n" "HAVE_$pa_func" | sed "$as_sed_cpp"` 1
1.67 paf 22611: _ACEOF
22612:
22613:
1.237 moko 22614: else case e in #(
22615: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22616: printf "%s\n" "no" >&6; }
1.229 moko 22617:
1.237 moko 22618: ;;
22619: esac
1.67 paf 22620: fi
1.237 moko 22621: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.67 paf 22622:
22623:
22624:
1.159 moko 22625:
1.229 moko 22626:
1.150 moko 22627: ac_ext=cpp
1.67 paf 22628: ac_cpp='$CXXCPP $CPPFLAGS'
22629: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22630: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22631: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22632:
22633:
22634:
1.188 moko 22635: for pa_func in trunc round sign isfinite
1.67 paf 22636: do
22637:
1.237 moko 22638: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
22639: printf %s "checking for (maybe built-in) math function $pa_func... " >&6; }
1.229 moko 22640:
22641: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 22642: /* end confdefs.h. */
22643:
22644: #ifdef HAVE_MATH_H
22645: # include <math.h>
22646: #endif
22647:
22648: int
1.237 moko 22649: main (void)
1.67 paf 22650: {
22651:
22652: double result=$pa_func(1.6);
22653:
22654: ;
22655: return 0;
22656: }
22657: _ACEOF
1.237 moko 22658: if ac_fn_cxx_try_compile "$LINENO"
22659: then :
22660: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22661: printf "%s\n" "yes" >&6; }
1.67 paf 22662: cat >>confdefs.h <<_ACEOF
1.237 moko 22663: #define `printf "%s\n" "HAVE_$pa_func" | sed "$as_sed_cpp"` 1
1.62 paf 22664: _ACEOF
1.66 paf 22665:
1.237 moko 22666: else case e in #(
22667: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22668: printf "%s\n" "no" >&6; }
1.229 moko 22669:
1.237 moko 22670: ;;
22671: esac
1.62 paf 22672: fi
1.237 moko 22673: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 22674:
1.229 moko 22675:
1.150 moko 22676: done
22677:
22678: ac_ext=c
22679: ac_cpp='$CPP $CPPFLAGS'
22680: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22681: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22682: ac_compiler_gnu=$ac_cv_c_compiler_gnu
22683:
22684:
22685:
1.237 moko 22686:
22687: for ac_func in qsort
1.150 moko 22688: do :
22689: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
1.237 moko 22690: if test "x$ac_cv_func_qsort" = xyes
22691: then :
22692: printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
1.1 paf 22693:
1.237 moko 22694: else case e in #(
22695: e) as_fn_error $? "No qsort library function." "$LINENO" 5 ;;
22696: esac
1.1 paf 22697: fi
1.237 moko 22698:
1.66 paf 22699: done
1.1 paf 22700:
22701:
1.62 paf 22702:
1.177 moko 22703: ac_ext=cpp
22704: ac_cpp='$CXXCPP $CPPFLAGS'
22705: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22706: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22707: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22708:
1.237 moko 22709: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
22710: printf %s "checking for timezone variable... " >&6; }
1.229 moko 22711:
22712: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22713: /* end confdefs.h. */
1.66 paf 22714: #include <time.h>
1.62 paf 22715: int
1.237 moko 22716: main (void)
1.62 paf 22717: {
1.177 moko 22718: int test=timezone;
1.62 paf 22719: ;
22720: return 0;
22721: }
22722: _ACEOF
1.237 moko 22723: if ac_fn_cxx_try_compile "$LINENO"
22724: then :
22725: printf "%s\n" "#define HAVE_TIMEZONE 1" >>confdefs.h
22726: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22727: printf "%s\n" "yes" >&6; }
22728: else case e in #(
22729: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22730: printf "%s\n" "no" >&6; }
22731: ;;
22732: esac
1.62 paf 22733: fi
1.237 moko 22734: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.229 moko 22735:
1.177 moko 22736: ac_ext=c
22737: ac_cpp='$CPP $CPPFLAGS'
22738: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22739: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22740: ac_compiler_gnu=$ac_cv_c_compiler_gnu
22741:
1.1 paf 22742:
1.237 moko 22743: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
22744: printf %s "checking for tm_gmtoff in struct tm... " >&6; }
1.229 moko 22745:
22746: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22747: /* end confdefs.h. */
1.66 paf 22748: #include <time.h>
1.62 paf 22749: int
1.237 moko 22750: main (void)
1.62 paf 22751: {
1.176 moko 22752: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 22753: ;
22754: return 0;
22755: }
22756: _ACEOF
1.237 moko 22757: if ac_fn_c_try_compile "$LINENO"
22758: then :
22759: printf "%s\n" "#define HAVE_TM_GMTOFF 1" >>confdefs.h
22760: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22761: printf "%s\n" "yes" >&6; }
22762: else case e in #(
22763: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22764: printf "%s\n" "no" >&6; }
22765: ;;
22766: esac
1.62 paf 22767: fi
1.237 moko 22768: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.62 paf 22769:
1.229 moko 22770:
1.237 moko 22771: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
22772: printf %s "checking for tm_tzadj in struct tm... " >&6; }
1.229 moko 22773:
22774: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22775: /* end confdefs.h. */
1.66 paf 22776: #include <time.h>
1.62 paf 22777: int
1.237 moko 22778: main (void)
1.62 paf 22779: {
1.176 moko 22780: struct tm tm; tm.tm_tzadj=0;
1.62 paf 22781: ;
22782: return 0;
22783: }
22784: _ACEOF
1.237 moko 22785: if ac_fn_c_try_compile "$LINENO"
22786: then :
22787: printf "%s\n" "#define HAVE_TM_TZADJ 1" >>confdefs.h
22788: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22789: printf "%s\n" "yes" >&6; }
22790: else case e in #(
22791: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22792: printf "%s\n" "no" >&6; }
22793: ;;
22794: esac
1.62 paf 22795: fi
1.237 moko 22796: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 paf 22797:
1.229 moko 22798:
1.237 moko 22799: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettid" >&5
22800: printf %s "checking for gettid... " >&6; }
1.229 moko 22801:
22802: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.206 moko 22803: /* end confdefs.h. */
22804:
22805: #include <sys/types.h>
22806: #include <sys/syscall.h>
22807:
22808: int
1.237 moko 22809: main (void)
1.206 moko 22810: {
22811: uint tid=syscall(__NR_gettid);
22812: ;
22813: return 0;
22814: }
22815: _ACEOF
1.237 moko 22816: if ac_fn_c_try_compile "$LINENO"
22817: then :
22818: printf "%s\n" "#define HAVE_GETTID 1" >>confdefs.h
22819: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22820: printf "%s\n" "yes" >&6; }
22821: else case e in #(
22822: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22823: printf "%s\n" "no" >&6; }
22824: ;;
22825: esac
1.206 moko 22826: fi
1.237 moko 22827: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.206 moko 22828:
1.229 moko 22829:
1.237 moko 22830: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
22831: printf %s "checking for TLS... " >&6; }
1.229 moko 22832:
22833: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.208 moko 22834: /* end confdefs.h. */
1.209 moko 22835: __thread int i=0;
1.208 moko 22836: int
1.237 moko 22837: main (void)
1.208 moko 22838: {
1.209 moko 22839:
1.208 moko 22840: ;
22841: return 0;
22842: }
22843: _ACEOF
1.237 moko 22844: if ac_fn_c_try_compile "$LINENO"
22845: then :
22846: printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h
22847: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22848: printf "%s\n" "yes" >&6; }
22849: else case e in #(
22850: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22851: printf "%s\n" "no" >&6; }
22852: ;;
22853: esac
1.208 moko 22854: fi
1.237 moko 22855: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.208 moko 22856:
1.229 moko 22857:
1.237 moko 22858: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 0..9999 year date range support" >&5
22859: printf %s "checking for 0..9999 year date range support... " >&6; }
22860: if test "$cross_compiling" = yes
22861: then :
22862: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22863: printf "%s\n" "no" >&6; }
22864: else case e in #(
22865: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22866: /* end confdefs.h. */
1.176 moko 22867:
22868: #include <string.h>
1.66 paf 22869: #include <time.h>
1.176 moko 22870:
22871: int main() {
22872: struct tm tmL,tmH;
22873: memset(&tmL, 0, sizeof(tmL));
22874: memset(&tmH, 0, sizeof(tmH));
22875: tmL.tm_year=-1900;
22876: tmL.tm_mon=-1;
22877: tmH.tm_year=9999-1900;
22878: tmH.tm_mon=12-1;
22879: tmH.tm_mday=31;
22880: return mktime(&tmL)==-1 || mktime(&tmH)==-1;
1.62 paf 22881: }
1.176 moko 22882:
1.62 paf 22883: _ACEOF
1.237 moko 22884: if ac_fn_c_try_run "$LINENO"
22885: then :
22886: printf "%s\n" "#define PA_DATE64 1" >>confdefs.h
22887: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22888: printf "%s\n" "yes" >&6; }
22889: else case e in #(
22890: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22891: printf "%s\n" "no" >&6; } ;;
22892: esac
1.62 paf 22893: fi
1.176 moko 22894: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1.237 moko 22895: conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
22896: esac
1.176 moko 22897: fi
1.31 paf 22898:
1.1 paf 22899:
22900:
22901:
1.62 paf 22902:
22903:
22904:
1.206 moko 22905:
1.208 moko 22906:
1.150 moko 22907: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 22908:
22909:
1.200 moko 22910: ac_config_files="$ac_config_files Makefile src/Makefile src/types/Makefile src/classes/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/gd/Makefile src/lib/smtp/Makefile src/lib/gc/Makefile src/lib/gc/include/Makefile src/lib/pcre/Makefile src/lib/cord/Makefile src/lib/cord/include/Makefile src/lib/cord/include/private/Makefile src/lib/md5/Makefile src/lib/sdbm/Makefile src/lib/sdbm/pa-include/Makefile src/lib/json/Makefile src/lib/curl/Makefile src/lib/punycode/Makefile src/lib/memcached/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache/Makefile src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile etc/auto.p"
1.62 paf 22911:
22912: cat >confcache <<\_ACEOF
1.1 paf 22913: # This file is a shell script that caches the results of configure
22914: # tests run on this system so they can be shared between configure
1.62 paf 22915: # scripts and configure runs, see configure's option --config-cache.
22916: # It is not useful on other systems. If it contains results you don't
22917: # want to keep, you may remove or edit it.
1.1 paf 22918: #
1.62 paf 22919: # config.status only pays attention to the cache file if you give it
22920: # the --recheck option to rerun configure.
1.1 paf 22921: #
1.237 moko 22922: # 'ac_cv_env_foo' variables (set or unset) will be overridden when
22923: # loading this file, other *unset* 'ac_cv_foo' will be assigned the
1.62 paf 22924: # following values.
22925:
22926: _ACEOF
22927:
1.1 paf 22928: # The following way of writing the cache mishandles newlines in values,
22929: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 22930: # So, we kill variables containing newlines.
1.1 paf 22931: # Ultrix sh set writes to stderr and can't be redirected directly,
22932: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 22933: (
22934: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22935: eval ac_val=\$$ac_var
22936: case $ac_val in #(
22937: *${as_nl}*)
22938: case $ac_var in #(
1.237 moko 22939: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22940: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.150 moko 22941: esac
22942: case $ac_var in #(
22943: _ | IFS | as_nl) ;; #(
22944: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22945: *) { eval $ac_var=; unset $ac_var;} ;;
22946: esac ;;
22947: esac
22948: done
22949:
1.62 paf 22950: (set) 2>&1 |
1.150 moko 22951: case $as_nl`(ac_space=' '; set) 2>&1` in #(
22952: *${as_nl}ac_space=\ *)
1.237 moko 22953: # 'set' does not quote correctly, so add quotes: double-quote
1.150 moko 22954: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 22955: sed -n \
1.86 paf 22956: "s/'/'\\\\''/g;
22957: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 22958: ;; #(
1.62 paf 22959: *)
1.237 moko 22960: # 'set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 22961: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 22962: ;;
1.150 moko 22963: esac |
22964: sort
22965: ) |
1.62 paf 22966: sed '
1.150 moko 22967: /^ac_cv_env_/b end
1.62 paf 22968: t clear
1.150 moko 22969: :clear
1.237 moko 22970: s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1.62 paf 22971: t end
1.150 moko 22972: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22973: :end' >>confcache
22974: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22975: if test -w "$cache_file"; then
22976: if test "x$cache_file" != "x/dev/null"; then
1.237 moko 22977: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22978: printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1.150 moko 22979: if test ! -f "$cache_file" || test -h "$cache_file"; then
22980: cat confcache >"$cache_file"
22981: else
22982: case $cache_file in #(
22983: */* | ?:*)
22984: mv -f confcache "$cache_file"$$ &&
22985: mv -f "$cache_file"$$ "$cache_file" ;; #(
22986: *)
22987: mv -f confcache "$cache_file" ;;
22988: esac
22989: fi
22990: fi
1.1 paf 22991: else
1.237 moko 22992: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22993: printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 22994: fi
22995: fi
22996: rm -f confcache
22997:
22998: test "x$prefix" = xNONE && prefix=$ac_default_prefix
22999: # Let make expand exec_prefix.
23000: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23001:
1.62 paf 23002: DEFS=-DHAVE_CONFIG_H
23003:
23004: ac_libobjs=
23005: ac_ltlibobjs=
1.229 moko 23006: U=
1.62 paf 23007: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23008: # 1. Remove the extension, and $U if already installed.
1.150 moko 23009: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.237 moko 23010: ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1.150 moko 23011: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23012: # will be set to the directory where LIBOBJS objects are built.
23013: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23014: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 23015: done
23016: LIBOBJS=$ac_libobjs
23017:
23018: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 23019:
23020:
1.237 moko 23021: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23022: printf %s "checking that generated files are newer than configure... " >&6; }
1.187 moko 23023: if test -n "$am_sleep_pid"; then
23024: # Hide warnings about reused PIDs.
23025: wait $am_sleep_pid 2>/dev/null
23026: fi
1.237 moko 23027: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23028: printf "%s\n" "done" >&6; }
23029: case $enable_silent_rules in # (((
23030: yes) AM_DEFAULT_VERBOSITY=0;;
23031: no) AM_DEFAULT_VERBOSITY=1;;
23032: esac
23033: if test $am_cv_make_support_nested_variables = yes; then
23034: AM_V='$(V)'
23035: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
23036: else
23037: AM_V=$AM_DEFAULT_VERBOSITY
23038: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
23039: fi
23040:
1.150 moko 23041: if test -n "$EXEEXT"; then
23042: am__EXEEXT_TRUE=
23043: am__EXEEXT_FALSE='#'
23044: else
23045: am__EXEEXT_TRUE='#'
23046: am__EXEEXT_FALSE=
23047: fi
23048:
1.62 paf 23049: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 23050: as_fn_error $? "conditional \"AMDEP\" was never defined.
23051: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 23052: fi
1.66 paf 23053: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 23054: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23055: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 23056: fi
1.66 paf 23057: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 23058: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23059: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 23060: fi
1.122 moko 23061: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 23062: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
23063: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 23064: fi
1.128 moko 23065: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 23066: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
23067: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 23068: fi
23069: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 23070: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
23071: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 23072: fi
1.237 moko 23073: if test -z "${LTARGZH_EXISTS_TRUE}" && test -z "${LTARGZH_EXISTS_FALSE}"; then
23074: as_fn_error $? "conditional \"LTARGZH_EXISTS\" was never defined.
23075: Usually this means the macro was only invoked conditionally." "$LINENO" 5
23076: fi
1.150 moko 23077: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 23078:
23079: _ltdl_libobjs=
23080: _ltdl_ltlibobjs=
23081: if test -n "$_LT_LIBOBJS"; then
23082: # Remove the extension.
23083: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
1.237 moko 23084: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | $SED "$_lt_sed_drop_objext" | sort -u`; do
1.128 moko 23085: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
23086: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
23087: done
23088: fi
23089: ltdl_LIBOBJS=$_ltdl_libobjs
23090:
23091: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
23092:
23093:
1.62 paf 23094:
1.237 moko 23095: # Check whether --enable-year2038 was given.
23096: if test ${enable_year2038+y}
23097: then :
23098: enableval=$enable_year2038;
23099: fi
23100:
1.150 moko 23101:
23102: : "${CONFIG_STATUS=./config.status}"
23103: ac_write_fail=0
1.62 paf 23104: ac_clean_files_save=$ac_clean_files
23105: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.237 moko 23106: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23107: printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1.150 moko 23108: as_write_fail=0
23109: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 23110: #! $SHELL
23111: # Generated by $as_me.
23112: # Run this file to recreate the current configuration.
23113: # Compiler output produced by configure, useful for debugging
23114: # configure, is in config.log if it exists.
23115:
23116: debug=false
23117: ac_cs_recheck=false
23118: ac_cs_silent=false
1.150 moko 23119:
1.62 paf 23120: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 23121: export SHELL
23122: _ASEOF
23123: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23124: ## -------------------- ##
23125: ## M4sh Initialization. ##
23126: ## -------------------- ##
1.62 paf 23127:
1.150 moko 23128: # Be more Bourne compatible
23129: DUALCASE=1; export DUALCASE # for MKS sh
1.237 moko 23130: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23131: then :
1.62 paf 23132: emulate sh
23133: NULLCMD=:
1.150 moko 23134: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 23135: # is contrary to our usage. Disable this feature.
23136: alias -g '${1+"$@"}'='"$@"'
1.150 moko 23137: setopt NO_GLOB_SUBST
1.237 moko 23138: else case e in #(
23139: e) case `(set -o) 2>/dev/null` in #(
1.150 moko 23140: *posix*) :
23141: set -o posix ;; #(
23142: *) :
23143: ;;
1.237 moko 23144: esac ;;
1.150 moko 23145: esac
23146: fi
23147:
23148:
1.237 moko 23149:
23150: # Reset variables that may have inherited troublesome values from
23151: # the environment.
23152:
23153: # IFS needs to be set, to space, tab, and newline, in precisely that order.
23154: # (If _AS_PATH_WALK were called with IFS unset, it would have the
23155: # side effect of setting IFS to empty, thus disabling word splitting.)
23156: # Quoting is to prevent editors from complaining about space-tab.
1.150 moko 23157: as_nl='
23158: '
23159: export as_nl
1.237 moko 23160: IFS=" "" $as_nl"
23161:
23162: PS1='$ '
23163: PS2='> '
23164: PS4='+ '
23165:
23166: # Ensure predictable behavior from utilities with locale-dependent output.
23167: LC_ALL=C
23168: export LC_ALL
23169: LANGUAGE=C
23170: export LANGUAGE
23171:
23172: # We cannot yet rely on "unset" to work, but we need these variables
23173: # to be unset--not just set to an empty or harmless value--now, to
23174: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23175: # also avoids known problems related to "unset" and subshell syntax
23176: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23177: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23178: do eval test \${$as_var+y} \
23179: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23180: done
23181:
23182: # Ensure that fds 0, 1, and 2 are open.
23183: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23184: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23185: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.62 paf 23186:
1.150 moko 23187: # The user is always right.
1.237 moko 23188: if ${PATH_SEPARATOR+false} :; then
1.150 moko 23189: PATH_SEPARATOR=:
23190: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23191: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23192: PATH_SEPARATOR=';'
23193: }
1.62 paf 23194: fi
23195:
23196:
1.150 moko 23197: # Find who we are. Look in the path if we contain no directory separator.
23198: as_myself=
23199: case $0 in #((
23200: *[\\/]* ) as_myself=$0 ;;
23201: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23202: for as_dir in $PATH
23203: do
23204: IFS=$as_save_IFS
1.237 moko 23205: case $as_dir in #(((
23206: '') as_dir=./ ;;
23207: */) ;;
23208: *) as_dir=$as_dir/ ;;
23209: esac
23210: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.150 moko 23211: done
23212: IFS=$as_save_IFS
23213:
23214: ;;
23215: esac
1.237 moko 23216: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.150 moko 23217: # in which case we are not to be found in the path.
23218: if test "x$as_myself" = x; then
23219: as_myself=$0
23220: fi
23221: if test ! -f "$as_myself"; then
1.237 moko 23222: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.150 moko 23223: exit 1
23224: fi
23225:
23226:
23227:
23228: # as_fn_error STATUS ERROR [LINENO LOG_FD]
23229: # ----------------------------------------
23230: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23231: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23232: # script with STATUS, using 1 if that was 0.
23233: as_fn_error ()
23234: {
23235: as_status=$1; test $as_status -eq 0 && as_status=1
23236: if test "$4"; then
23237: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 moko 23238: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.150 moko 23239: fi
1.237 moko 23240: printf "%s\n" "$as_me: error: $2" >&2
1.150 moko 23241: as_fn_exit $as_status
23242: } # as_fn_error
23243:
23244:
23245: # as_fn_set_status STATUS
23246: # -----------------------
23247: # Set $? to STATUS, without forking.
23248: as_fn_set_status ()
23249: {
23250: return $1
23251: } # as_fn_set_status
23252:
23253: # as_fn_exit STATUS
23254: # -----------------
23255: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23256: as_fn_exit ()
23257: {
23258: set +e
23259: as_fn_set_status $1
23260: exit $1
23261: } # as_fn_exit
23262:
23263: # as_fn_unset VAR
23264: # ---------------
23265: # Portably unset VAR.
23266: as_fn_unset ()
23267: {
23268: { eval $1=; unset $1;}
23269: }
23270: as_unset=as_fn_unset
1.237 moko 23271:
1.150 moko 23272: # as_fn_append VAR VALUE
23273: # ----------------------
23274: # Append the text in VALUE to the end of the definition contained in VAR. Take
23275: # advantage of any shell optimizations that allow amortized linear growth over
23276: # repeated appends, instead of the typical quadratic growth present in naive
23277: # implementations.
1.237 moko 23278: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23279: then :
1.150 moko 23280: eval 'as_fn_append ()
23281: {
23282: eval $1+=\$2
23283: }'
1.237 moko 23284: else case e in #(
23285: e) as_fn_append ()
1.150 moko 23286: {
23287: eval $1=\$$1\$2
1.237 moko 23288: } ;;
23289: esac
1.150 moko 23290: fi # as_fn_append
23291:
23292: # as_fn_arith ARG...
23293: # ------------------
23294: # Perform arithmetic evaluation on the ARGs, and store the result in the
23295: # global $as_val. Take advantage of shells that can avoid forks. The arguments
23296: # must be portable across $(()) and expr.
1.237 moko 23297: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23298: then :
1.150 moko 23299: eval 'as_fn_arith ()
23300: {
23301: as_val=$(( $* ))
23302: }'
1.237 moko 23303: else case e in #(
23304: e) as_fn_arith ()
1.150 moko 23305: {
23306: as_val=`expr "$@" || test $? -eq 1`
1.237 moko 23307: } ;;
23308: esac
1.150 moko 23309: fi # as_fn_arith
23310:
1.1 paf 23311:
1.150 moko 23312: if expr a : '\(a\)' >/dev/null 2>&1 &&
23313: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 23314: as_expr=expr
23315: else
23316: as_expr=false
23317: fi
23318:
1.150 moko 23319: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 23320: as_basename=basename
23321: else
23322: as_basename=false
23323: fi
23324:
1.150 moko 23325: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23326: as_dirname=dirname
23327: else
23328: as_dirname=false
23329: fi
1.62 paf 23330:
1.150 moko 23331: as_me=`$as_basename -- "$0" ||
1.62 paf 23332: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23333: X"$0" : 'X\(//\)$' \| \
1.150 moko 23334: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 23335: printf "%s\n" X/"$0" |
1.150 moko 23336: sed '/^.*\/\([^/][^/]*\)\/*$/{
23337: s//\1/
23338: q
23339: }
23340: /^X\/\(\/\/\)$/{
23341: s//\1/
23342: q
23343: }
23344: /^X\/\(\/\).*/{
23345: s//\1/
23346: q
23347: }
23348: s/.*/./; q'`
1.62 paf 23349:
23350: # Avoid depending upon Character Ranges.
23351: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23352: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23353: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23354: as_cr_digits='0123456789'
23355: as_cr_alnum=$as_cr_Letters$as_cr_digits
23356:
1.237 moko 23357:
23358: # Determine whether it's possible to make 'echo' print without a newline.
23359: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23360: # for compatibility with existing Makefiles.
1.150 moko 23361: ECHO_C= ECHO_N= ECHO_T=
23362: case `echo -n x` in #(((((
23363: -n*)
23364: case `echo 'xy\c'` in
23365: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23366: xy) ECHO_C='\c';;
23367: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23368: ECHO_T=' ';;
23369: esac;;
23370: *)
23371: ECHO_N='-n';;
1.62 paf 23372: esac
23373:
1.237 moko 23374: # For backward compatibility with old third-party macros, we provide
23375: # the shell variables $as_echo and $as_echo_n. New code should use
23376: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23377: as_echo='printf %s\n'
23378: as_echo_n='printf %s'
23379:
1.150 moko 23380: rm -f conf$$ conf$$.exe conf$$.file
23381: if test -d conf$$.dir; then
23382: rm -f conf$$.dir/conf$$.file
1.62 paf 23383: else
1.150 moko 23384: rm -f conf$$.dir
23385: mkdir conf$$.dir 2>/dev/null
1.62 paf 23386: fi
1.150 moko 23387: if (echo >conf$$.file) 2>/dev/null; then
23388: if ln -s conf$$.file conf$$ 2>/dev/null; then
23389: as_ln_s='ln -s'
23390: # ... but there are two gotchas:
1.237 moko 23391: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
23392: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
23393: # In both cases, we have to default to 'cp -pR'.
1.150 moko 23394: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 23395: as_ln_s='cp -pR'
1.150 moko 23396: elif ln conf$$.file conf$$ 2>/dev/null; then
23397: as_ln_s=ln
23398: else
1.166 moko 23399: as_ln_s='cp -pR'
1.62 paf 23400: fi
23401: else
1.166 moko 23402: as_ln_s='cp -pR'
1.62 paf 23403: fi
1.150 moko 23404: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23405: rmdir conf$$.dir 2>/dev/null
23406:
23407:
23408: # as_fn_mkdir_p
23409: # -------------
23410: # Create "$as_dir" as a directory, including parents if necessary.
23411: as_fn_mkdir_p ()
23412: {
23413:
23414: case $as_dir in #(
23415: -*) as_dir=./$as_dir;;
23416: esac
23417: test -d "$as_dir" || eval $as_mkdir_p || {
23418: as_dirs=
23419: while :; do
23420: case $as_dir in #(
1.237 moko 23421: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.150 moko 23422: *) as_qdir=$as_dir;;
23423: esac
23424: as_dirs="'$as_qdir' $as_dirs"
23425: as_dir=`$as_dirname -- "$as_dir" ||
23426: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23427: X"$as_dir" : 'X\(//\)[^/]' \| \
23428: X"$as_dir" : 'X\(//\)$' \| \
23429: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 23430: printf "%s\n" X"$as_dir" |
1.150 moko 23431: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23432: s//\1/
23433: q
23434: }
23435: /^X\(\/\/\)[^/].*/{
23436: s//\1/
23437: q
23438: }
23439: /^X\(\/\/\)$/{
23440: s//\1/
23441: q
23442: }
23443: /^X\(\/\).*/{
23444: s//\1/
23445: q
23446: }
23447: s/.*/./; q'`
23448: test -d "$as_dir" && break
23449: done
23450: test -z "$as_dirs" || eval "mkdir $as_dirs"
23451: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23452:
1.62 paf 23453:
1.150 moko 23454: } # as_fn_mkdir_p
1.62 paf 23455: if mkdir -p . 2>/dev/null; then
1.150 moko 23456: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 23457: else
1.86 paf 23458: test -d ./-p && rmdir ./-p
1.62 paf 23459: as_mkdir_p=false
23460: fi
23461:
1.166 moko 23462:
23463: # as_fn_executable_p FILE
23464: # -----------------------
23465: # Test if FILE is an executable regular file.
23466: as_fn_executable_p ()
23467: {
23468: test -f "$1" && test -x "$1"
23469: } # as_fn_executable_p
23470: as_test_x='test -x'
23471: as_executable_p=as_fn_executable_p
1.62 paf 23472:
23473: # Sed expression to map a string onto a valid CPP name.
1.237 moko 23474: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23475: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.62 paf 23476:
23477: # Sed expression to map a string onto a valid variable name.
1.237 moko 23478: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23479: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.62 paf 23480:
23481:
23482: exec 6>&1
1.150 moko 23483: ## ----------------------------------- ##
23484: ## Main body of $CONFIG_STATUS script. ##
23485: ## ----------------------------------- ##
23486: _ASEOF
23487: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 23488:
1.150 moko 23489: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23490: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 23491: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 23492: # values after options handling.
23493: ac_log="
1.230 moko 23494: This file was extended by parser $as_me 3.5.2b, which was
1.237 moko 23495: generated by GNU Autoconf 2.72. Invocation command line was
1.62 paf 23496:
23497: CONFIG_FILES = $CONFIG_FILES
23498: CONFIG_HEADERS = $CONFIG_HEADERS
23499: CONFIG_LINKS = $CONFIG_LINKS
23500: CONFIG_COMMANDS = $CONFIG_COMMANDS
23501: $ $0 $@
23502:
1.150 moko 23503: on `(hostname || uname -n) 2>/dev/null | sed 1q`
23504: "
23505:
1.62 paf 23506: _ACEOF
23507:
1.150 moko 23508: case $ac_config_files in *"
23509: "*) set x $ac_config_files; shift; ac_config_files=$*;;
23510: esac
1.62 paf 23511:
1.150 moko 23512: case $ac_config_headers in *"
23513: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23514: esac
1.62 paf 23515:
23516:
1.150 moko 23517: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23518: # Files that config.status was made for.
23519: config_files="$ac_config_files"
23520: config_headers="$ac_config_headers"
23521: config_commands="$ac_config_commands"
1.62 paf 23522:
1.150 moko 23523: _ACEOF
1.62 paf 23524:
1.150 moko 23525: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 23526: ac_cs_usage="\
1.237 moko 23527: '$as_me' instantiates files and other configuration actions
1.150 moko 23528: from templates according to the current configuration. Unless the files
23529: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 23530:
1.150 moko 23531: Usage: $0 [OPTION]... [TAG]...
1.62 paf 23532:
23533: -h, --help print this help, then exit
1.150 moko 23534: -V, --version print version number and configuration settings, then exit
23535: --config print configuration, then exit
23536: -q, --quiet, --silent
23537: do not print progress messages
1.62 paf 23538: -d, --debug don't remove temporary files
23539: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 23540: --file=FILE[:TEMPLATE]
23541: instantiate the configuration file FILE
23542: --header=FILE[:TEMPLATE]
23543: instantiate the configuration header FILE
1.62 paf 23544:
23545: Configuration files:
23546: $config_files
23547:
23548: Configuration headers:
23549: $config_headers
23550:
23551: Configuration commands:
23552: $config_commands
23553:
1.150 moko 23554: Report bugs to the package provider."
23555:
1.62 paf 23556: _ACEOF
1.237 moko 23557: ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23558: ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1.150 moko 23559: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.237 moko 23560: ac_cs_config='$ac_cs_config_escaped'
1.62 paf 23561: ac_cs_version="\\
1.230 moko 23562: parser config.status 3.5.2b
1.237 moko 23563: configured by $0, generated by GNU Autoconf 2.72,
1.150 moko 23564: with options \\"\$ac_cs_config\\"
1.62 paf 23565:
1.237 moko 23566: Copyright (C) 2023 Free Software Foundation, Inc.
1.62 paf 23567: This config.status script is free software; the Free Software Foundation
23568: gives unlimited permission to copy, distribute and modify it."
1.150 moko 23569:
23570: ac_pwd='$ac_pwd'
23571: srcdir='$srcdir'
23572: INSTALL='$INSTALL'
23573: MKDIR_P='$MKDIR_P'
23574: AWK='$AWK'
23575: test -n "\$AWK" || AWK=awk
1.62 paf 23576: _ACEOF
23577:
1.150 moko 23578: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23579: # The default lists apply if the user does not specify any file.
1.62 paf 23580: ac_need_defaults=:
23581: while test $# != 0
23582: do
23583: case $1 in
1.150 moko 23584: --*=?*)
23585: ac_option=`expr "X$1" : 'X\([^=]*\)='`
23586: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 23587: ac_shift=:
23588: ;;
1.150 moko 23589: --*=)
23590: ac_option=`expr "X$1" : 'X\([^=]*\)='`
23591: ac_optarg=
23592: ac_shift=:
23593: ;;
23594: *)
1.62 paf 23595: ac_option=$1
23596: ac_optarg=$2
23597: ac_shift=shift
23598: ;;
23599: esac
23600:
23601: case $ac_option in
23602: # Handling of the options.
23603: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23604: ac_cs_recheck=: ;;
1.150 moko 23605: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.237 moko 23606: printf "%s\n" "$ac_cs_version"; exit ;;
1.150 moko 23607: --config | --confi | --conf | --con | --co | --c )
1.237 moko 23608: printf "%s\n" "$ac_cs_config"; exit ;;
1.150 moko 23609: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 23610: debug=: ;;
23611: --file | --fil | --fi | --f )
23612: $ac_shift
1.150 moko 23613: case $ac_optarg in
1.237 moko 23614: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 23615: '') as_fn_error $? "missing file argument" ;;
23616: esac
23617: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 23618: ac_need_defaults=false;;
23619: --header | --heade | --head | --hea )
23620: $ac_shift
1.150 moko 23621: case $ac_optarg in
1.237 moko 23622: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 23623: esac
23624: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 23625: ac_need_defaults=false;;
1.150 moko 23626: --he | --h)
23627: # Conflict between --help and --header
1.237 moko 23628: as_fn_error $? "ambiguous option: '$1'
23629: Try '$0 --help' for more information.";;
1.150 moko 23630: --help | --hel | -h )
1.237 moko 23631: printf "%s\n" "$ac_cs_usage"; exit ;;
1.62 paf 23632: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23633: | -silent | --silent | --silen | --sile | --sil | --si | --s)
23634: ac_cs_silent=: ;;
23635:
23636: # This is an error.
1.237 moko 23637: -*) as_fn_error $? "unrecognized option: '$1'
23638: Try '$0 --help' for more information." ;;
1.62 paf 23639:
1.150 moko 23640: *) as_fn_append ac_config_targets " $1"
23641: ac_need_defaults=false ;;
1.62 paf 23642:
23643: esac
23644: shift
23645: done
23646:
23647: ac_configure_extra_args=
23648:
23649: if $ac_cs_silent; then
23650: exec 6>/dev/null
1.150 moko 23651: ac_configure_extra_args="$ac_configure_extra_args --silent"
23652: fi
23653:
23654: _ACEOF
23655: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23656: if \$ac_cs_recheck; then
1.166 moko 23657: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.150 moko 23658: shift
1.237 moko 23659: \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1.150 moko 23660: CONFIG_SHELL='$SHELL'
23661: export CONFIG_SHELL
23662: exec "\$@"
23663: fi
23664:
23665: _ACEOF
23666: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23667: exec 5>>config.log
23668: {
23669: echo
23670: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23671: ## Running $as_me. ##
23672: _ASBOX
1.237 moko 23673: printf "%s\n" "$ac_log"
1.150 moko 23674: } >&5
1.62 paf 23675:
23676: _ACEOF
1.150 moko 23677: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 23678: #
1.150 moko 23679: # INIT-COMMANDS
1.1 paf 23680: #
1.199 moko 23681: AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1.62 paf 23682:
1.128 moko 23683:
23684: # The HP-UX ksh and POSIX shell print the target directory to stdout
23685: # if CDPATH is set.
23686: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23687:
23688: sed_quote_subst='$sed_quote_subst'
23689: double_quote_subst='$double_quote_subst'
23690: delay_variable_subst='$delay_variable_subst'
23691: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23692: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23693: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23694: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23695: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 23696: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 23697: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 23698: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 23699: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
1.237 moko 23700: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1.128 moko 23701: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23702: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23703: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23704: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23705: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23706: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23707: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23708: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23709: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23710: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23711: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23712: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23713: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23714: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23715: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23716: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23717: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23718: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23719: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23720: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23721: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23722: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23723: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23724: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23725: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23726: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23727: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1.237 moko 23728: FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
1.128 moko 23729: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23730: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23731: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23732: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23733: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23734: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1.237 moko 23735: lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
1.128 moko 23736: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23737: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23738: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23739: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23740: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23741: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23742: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23743: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23744: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23745: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23746: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23747: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23748: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23749: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1.237 moko 23750: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1.128 moko 23751: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23752: 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"`'
1.237 moko 23753: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1.128 moko 23754: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23755: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
1.237 moko 23756: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1.128 moko 23757: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23758: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23759: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23760: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23761: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23762: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23763: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23764: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23765: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23766: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23767: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23768: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23769: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23770: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23771: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23772: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23773: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23774: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23775: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23776: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23777: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23778: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23779: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23780: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23781: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23782: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23783: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23784: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23785: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23786: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23787: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23788: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23789: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23790: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23791: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23792: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23793: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23794: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23795: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23796: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23797: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23798: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23799: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23800: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23801: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23802: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23803: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23804: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23805: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23806: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23807: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23808: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23809: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23810: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23811: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23812: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23813: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23814: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23815: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23816: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23817: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23818: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23819: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23820: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
1.237 moko 23821: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23822: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1.128 moko 23823: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23824: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23825: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23826: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23827: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23828: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23829: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23830: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23831: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23832: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23833: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23834: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23835: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23836: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23837: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23838: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23839: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23840: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23841: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23842: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23843: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23844: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23845: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23846: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23847: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23848: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23849: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23850: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23851: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23852: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23853: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23854: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23855: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23856: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23857: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23858: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23859: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23860: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23861: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23862: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23863: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23864: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23865: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23866: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23867: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23868: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23869: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23870: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23871: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23872: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23873: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23874: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23875: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23876: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23877: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23878: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23879: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23880: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23881: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23882: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23883:
23884: LTCC='$LTCC'
23885: LTCFLAGS='$LTCFLAGS'
23886: compiler='$compiler_DEFAULT'
23887:
23888: # A function that is used when there is no print builtin or printf.
23889: func_fallback_echo ()
23890: {
23891: eval 'cat <<_LTECHO_EOF
23892: \$1
23893: _LTECHO_EOF'
23894: }
23895:
23896: # Quote evaled strings.
23897: for var in AS \
23898: DLLTOOL \
23899: OBJDUMP \
23900: SHELL \
23901: ECHO \
23902: PATH_SEPARATOR \
23903: SED \
23904: GREP \
23905: EGREP \
23906: FGREP \
23907: LD \
23908: NM \
23909: LN_S \
23910: lt_SP2NL \
23911: lt_NL2SP \
23912: reload_flag \
1.237 moko 23913: FILECMD \
1.128 moko 23914: deplibs_check_method \
23915: file_magic_cmd \
23916: file_magic_glob \
23917: want_nocaseglob \
23918: sharedlib_from_linklib_cmd \
23919: AR \
23920: archiver_list_spec \
23921: STRIP \
23922: RANLIB \
23923: CC \
23924: CFLAGS \
23925: compiler \
23926: lt_cv_sys_global_symbol_pipe \
23927: lt_cv_sys_global_symbol_to_cdecl \
1.237 moko 23928: lt_cv_sys_global_symbol_to_import \
1.128 moko 23929: lt_cv_sys_global_symbol_to_c_name_address \
23930: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1.237 moko 23931: lt_cv_nm_interface \
1.128 moko 23932: nm_file_list_spec \
1.237 moko 23933: lt_cv_truncate_bin \
1.128 moko 23934: lt_prog_compiler_no_builtin_flag \
23935: lt_prog_compiler_pic \
23936: lt_prog_compiler_wl \
23937: lt_prog_compiler_static \
23938: lt_cv_prog_compiler_c_o \
23939: need_locks \
23940: MANIFEST_TOOL \
23941: DSYMUTIL \
23942: NMEDIT \
23943: LIPO \
23944: OTOOL \
23945: OTOOL64 \
23946: shrext_cmds \
23947: export_dynamic_flag_spec \
23948: whole_archive_flag_spec \
23949: compiler_needs_object \
23950: with_gnu_ld \
23951: allow_undefined_flag \
23952: no_undefined_flag \
23953: hardcode_libdir_flag_spec \
23954: hardcode_libdir_separator \
23955: exclude_expsyms \
23956: include_expsyms \
23957: file_list_spec \
23958: variables_saved_for_relink \
23959: libname_spec \
23960: library_names_spec \
23961: soname_spec \
23962: install_override_mode \
23963: finish_eval \
23964: old_striplib \
23965: striplib \
23966: compiler_lib_search_dirs \
23967: predep_objects \
23968: postdep_objects \
23969: predeps \
23970: postdeps \
23971: compiler_lib_search_path \
23972: LD_CXX \
23973: reload_flag_CXX \
23974: compiler_CXX \
23975: lt_prog_compiler_no_builtin_flag_CXX \
23976: lt_prog_compiler_pic_CXX \
23977: lt_prog_compiler_wl_CXX \
23978: lt_prog_compiler_static_CXX \
23979: lt_cv_prog_compiler_c_o_CXX \
23980: export_dynamic_flag_spec_CXX \
23981: whole_archive_flag_spec_CXX \
23982: compiler_needs_object_CXX \
23983: with_gnu_ld_CXX \
23984: allow_undefined_flag_CXX \
23985: no_undefined_flag_CXX \
23986: hardcode_libdir_flag_spec_CXX \
23987: hardcode_libdir_separator_CXX \
23988: exclude_expsyms_CXX \
23989: include_expsyms_CXX \
23990: file_list_spec_CXX \
23991: compiler_lib_search_dirs_CXX \
23992: predep_objects_CXX \
23993: postdep_objects_CXX \
23994: predeps_CXX \
23995: postdeps_CXX \
23996: compiler_lib_search_path_CXX; do
23997: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23998: *[\\\\\\\`\\"\\\$]*)
1.237 moko 23999: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1.128 moko 24000: ;;
24001: *)
24002: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24003: ;;
24004: esac
24005: done
24006:
24007: # Double-quote double-evaled strings.
24008: for var in reload_cmds \
24009: old_postinstall_cmds \
24010: old_postuninstall_cmds \
24011: old_archive_cmds \
24012: extract_expsyms_cmds \
24013: old_archive_from_new_cmds \
24014: old_archive_from_expsyms_cmds \
24015: archive_cmds \
24016: archive_expsym_cmds \
24017: module_cmds \
24018: module_expsym_cmds \
24019: export_symbols_cmds \
24020: prelink_cmds \
24021: postlink_cmds \
24022: postinstall_cmds \
24023: postuninstall_cmds \
24024: finish_cmds \
24025: sys_lib_search_path_spec \
1.237 moko 24026: configure_time_dlsearch_path \
24027: configure_time_lt_sys_library_path \
1.128 moko 24028: reload_cmds_CXX \
24029: old_archive_cmds_CXX \
24030: old_archive_from_new_cmds_CXX \
24031: old_archive_from_expsyms_cmds_CXX \
24032: archive_cmds_CXX \
24033: archive_expsym_cmds_CXX \
24034: module_cmds_CXX \
24035: module_expsym_cmds_CXX \
24036: export_symbols_cmds_CXX \
24037: prelink_cmds_CXX \
24038: postlink_cmds_CXX; do
24039: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24040: *[\\\\\\\`\\"\\\$]*)
1.237 moko 24041: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1.128 moko 24042: ;;
24043: *)
24044: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24045: ;;
24046: esac
24047: done
24048:
24049: ac_aux_dir='$ac_aux_dir'
24050:
1.237 moko 24051: # See if we are running on zsh, and set the options that allow our
1.128 moko 24052: # commands through without removal of \ escapes INIT.
1.237 moko 24053: if test -n "\${ZSH_VERSION+set}"; then
1.128 moko 24054: setopt NO_GLOB_SUBST
24055: fi
24056:
24057:
24058: PACKAGE='$PACKAGE'
24059: VERSION='$VERSION'
24060: RM='$RM'
24061: ofile='$ofile'
24062:
24063:
24064:
24065:
24066:
24067:
1.62 paf 24068: _ACEOF
24069:
1.150 moko 24070: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 24071:
1.150 moko 24072: # Handling of arguments.
1.62 paf 24073: for ac_config_target in $ac_config_targets
1.1 paf 24074: do
1.150 moko 24075: case $ac_config_target in
24076: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24077: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24078: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
24079: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24080: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24081: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
24082: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
24083: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
24084: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
24085: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
24086: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24087: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
24088: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
24089: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
24090: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
24091: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
24092: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
24093: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
24094: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
24095: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
24096: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
24097: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
24098: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.173 moko 24099: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
24100: "src/lib/punycode/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/punycode/Makefile" ;;
1.150 moko 24101: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
24102: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
24103: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
24104: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
24105: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
24106: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
24107: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
1.200 moko 24108: "etc/auto.p") CONFIG_FILES="$CONFIG_FILES etc/auto.p" ;;
1.150 moko 24109:
1.237 moko 24110: *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
1.1 paf 24111: esac
24112: done
24113:
1.150 moko 24114:
1.62 paf 24115: # If the user did not use the arguments to specify the items to instantiate,
24116: # then the envvar interface is used. Set only those that are not.
24117: # We use the long form for the default assignment because of an extremely
24118: # bizarre bug on SunOS 4.1.3.
24119: if $ac_need_defaults; then
1.237 moko 24120: test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24121: test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24122: test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1.62 paf 24123: fi
24124:
24125: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 24126: # simply because there is no reason against having it here, and in addition,
1.62 paf 24127: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 24128: # Hook for its removal unless debugging.
24129: # Note that there is a small window in which the directory will not be cleaned:
1.237 moko 24130: # after its creation but before its name has been assigned to '$tmp'.
1.62 paf 24131: $debug ||
24132: {
1.150 moko 24133: tmp= ac_tmp=
24134: trap 'exit_status=$?
24135: : "${ac_tmp:=$tmp}"
24136: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24137: ' 0
24138: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 24139: }
24140: # Create a (secure) tmp directory for tmp files.
24141:
24142: {
1.150 moko 24143: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24144: test -d "$tmp"
1.62 paf 24145: } ||
24146: {
1.150 moko 24147: tmp=./conf$$-$RANDOM
24148: (umask 077 && mkdir "$tmp")
24149: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24150: ac_tmp=$tmp
24151:
24152: # Set up the scripts for CONFIG_FILES section.
24153: # No need to generate them if there are no CONFIG_FILES.
1.237 moko 24154: # This happens for instance with './config.status config.h'.
1.150 moko 24155: if test -n "$CONFIG_FILES"; then
24156:
24157:
24158: ac_cr=`echo X | tr X '\015'`
24159: # On cygwin, bash can eat \r inside `` if the user requested igncr.
24160: # But we know of no other shell where ac_cr would be empty at this
24161: # point, so we can use a bashism as a fallback.
24162: if test "x$ac_cr" = x; then
24163: eval ac_cr=\$\'\\r\'
24164: fi
24165: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24166: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24167: ac_cs_awk_cr='\\r'
24168: else
24169: ac_cs_awk_cr=$ac_cr
24170: fi
24171:
24172: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24173: _ACEOF
24174:
24175:
1.62 paf 24176: {
1.150 moko 24177: echo "cat >conf$$subs.awk <<_ACEOF" &&
24178: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24179: echo "_ACEOF"
24180: } >conf$$subs.sh ||
24181: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24182: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24183: ac_delim='%!_!# '
24184: for ac_last_try in false false false false false :; do
24185: . ./conf$$subs.sh ||
24186: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24187:
24188: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24189: if test $ac_delim_n = $ac_delim_num; then
24190: break
24191: elif $ac_last_try; then
24192: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24193: else
24194: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24195: fi
24196: done
24197: rm -f conf$$subs.sh
24198:
24199: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24200: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24201: _ACEOF
24202: sed -n '
24203: h
24204: s/^/S["/; s/!.*/"]=/
24205: p
24206: g
24207: s/^[^!]*!//
24208: :repl
24209: t repl
24210: s/'"$ac_delim"'$//
24211: t delim
24212: :nl
24213: h
24214: s/\(.\{148\}\)..*/\1/
24215: t more1
24216: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24217: p
24218: n
24219: b repl
24220: :more1
24221: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24222: p
24223: g
24224: s/.\{148\}//
24225: t nl
24226: :delim
24227: h
24228: s/\(.\{148\}\)..*/\1/
24229: t more2
24230: s/["\\]/\\&/g; s/^/"/; s/$/"/
24231: p
24232: b
24233: :more2
24234: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24235: p
24236: g
24237: s/.\{148\}//
24238: t delim
24239: ' <conf$$subs.awk | sed '
24240: /^[^""]/{
24241: N
24242: s/\n//
24243: }
24244: ' >>$CONFIG_STATUS || ac_write_fail=1
24245: rm -f conf$$subs.awk
24246: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24247: _ACAWK
24248: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24249: for (key in S) S_is_set[key] = 1
24250: FS = ""
24251:
24252: }
24253: {
24254: line = $ 0
24255: nfields = split(line, field, "@")
24256: substed = 0
24257: len = length(field[1])
24258: for (i = 2; i < nfields; i++) {
24259: key = field[i]
24260: keylen = length(key)
24261: if (S_is_set[key]) {
24262: value = S[key]
24263: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24264: len += length(value) + length(field[++i])
24265: substed = 1
24266: } else
24267: len += 1 + keylen
24268: }
24269:
24270: print line
1.62 paf 24271: }
24272:
1.150 moko 24273: _ACAWK
24274: _ACEOF
24275: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24276: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24277: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24278: else
24279: cat
24280: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24281: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 24282: _ACEOF
1.1 paf 24283:
1.150 moko 24284: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24285: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24286: # trailing colons and then remove the whole line if VPATH becomes empty
24287: # (actually we leave an empty line to preserve line numbers).
24288: if test "x$srcdir" = x.; then
24289: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24290: h
24291: s///
24292: s/^/:/
24293: s/[ ]*$/:/
24294: s/:\$(srcdir):/:/g
24295: s/:\${srcdir}:/:/g
24296: s/:@srcdir@:/:/g
24297: s/^:*//
24298: s/:*$//
24299: x
24300: s/\(=[ ]*\).*/\1/
24301: G
24302: s/\n//
24303: s/^[^=]*=[ ]*$//
24304: }'
24305: fi
1.62 paf 24306:
1.150 moko 24307: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24308: fi # test -n "$CONFIG_FILES"
1.1 paf 24309:
1.150 moko 24310: # Set up the scripts for CONFIG_HEADERS section.
24311: # No need to generate them if there are no CONFIG_HEADERS.
1.237 moko 24312: # This happens for instance with './config.status Makefile'.
1.150 moko 24313: if test -n "$CONFIG_HEADERS"; then
24314: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24315: BEGIN {
24316: _ACEOF
24317:
1.237 moko 24318: # Transform confdefs.h into an awk script 'defines.awk', embedded as
1.150 moko 24319: # here-document in config.status, that substitutes the proper values into
24320: # config.h.in to produce config.h.
24321:
24322: # Create a delimiter string that does not exist in confdefs.h, to ease
24323: # handling of long lines.
24324: ac_delim='%!_!# '
24325: for ac_last_try in false false :; do
24326: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24327: if test -z "$ac_tt"; then
24328: break
24329: elif $ac_last_try; then
24330: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24331: else
24332: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 24333: fi
1.150 moko 24334: done
1.1 paf 24335:
1.150 moko 24336: # For the awk script, D is an array of macro values keyed by name,
24337: # likewise P contains macro parameters if any. Preserve backslash
24338: # newline sequences.
24339:
24340: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24341: sed -n '
24342: s/.\{148\}/&'"$ac_delim"'/g
24343: t rset
24344: :rset
24345: s/^[ ]*#[ ]*define[ ][ ]*/ /
24346: t def
24347: d
24348: :def
24349: s/\\$//
24350: t bsnl
24351: s/["\\]/\\&/g
24352: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24353: D["\1"]=" \3"/p
24354: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24355: d
24356: :bsnl
24357: s/["\\]/\\&/g
24358: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24359: D["\1"]=" \3\\\\\\n"\\/p
24360: t cont
24361: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24362: t cont
24363: d
24364: :cont
24365: n
24366: s/.\{148\}/&'"$ac_delim"'/g
24367: t clear
24368: :clear
24369: s/\\$//
24370: t bsnlc
24371: s/["\\]/\\&/g; s/^/"/; s/$/"/p
24372: d
24373: :bsnlc
24374: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24375: b cont
24376: ' <confdefs.h | sed '
24377: s/'"$ac_delim"'/"\\\
24378: "/g' >>$CONFIG_STATUS || ac_write_fail=1
24379:
24380: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24381: for (key in D) D_is_set[key] = 1
24382: FS = ""
24383: }
24384: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24385: line = \$ 0
24386: split(line, arg, " ")
24387: if (arg[1] == "#") {
24388: defundef = arg[2]
24389: mac1 = arg[3]
24390: } else {
24391: defundef = substr(arg[1], 2)
24392: mac1 = arg[2]
24393: }
24394: split(mac1, mac2, "(") #)
24395: macro = mac2[1]
24396: prefix = substr(line, 1, index(line, defundef) - 1)
24397: if (D_is_set[macro]) {
24398: # Preserve the white space surrounding the "#".
24399: print prefix "define", macro P[macro] D[macro]
24400: next
24401: } else {
24402: # Replace #undef with comments. This is necessary, for example,
24403: # in the case of _POSIX_SOURCE, which is predefined and required
24404: # on some systems where configure will not decide to define it.
24405: if (defundef == "undef") {
24406: print "/*", prefix defundef, macro, "*/"
24407: next
24408: }
24409: }
24410: }
24411: { print }
24412: _ACAWK
1.62 paf 24413: _ACEOF
1.150 moko 24414: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24415: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24416: fi # test -n "$CONFIG_HEADERS"
24417:
24418:
24419: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24420: shift
24421: for ac_tag
24422: do
24423: case $ac_tag in
24424: :[FHLC]) ac_mode=$ac_tag; continue;;
24425: esac
24426: case $ac_mode$ac_tag in
24427: :[FHL]*:*);;
1.237 moko 24428: :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
1.150 moko 24429: :[FH]-) ac_tag=-:-;;
24430: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24431: esac
24432: ac_save_IFS=$IFS
24433: IFS=:
24434: set x $ac_tag
24435: IFS=$ac_save_IFS
24436: shift
24437: ac_file=$1
24438: shift
24439:
24440: case $ac_mode in
24441: :L) ac_source=$1;;
24442: :[FH])
24443: ac_file_inputs=
24444: for ac_f
24445: do
24446: case $ac_f in
24447: -) ac_f="$ac_tmp/stdin";;
24448: *) # Look for the file first in the build tree, then in the source tree
24449: # (if the path is not absolute). The absolute path cannot be DOS-style,
1.237 moko 24450: # because $ac_f cannot contain ':'.
1.150 moko 24451: test -f "$ac_f" ||
24452: case $ac_f in
24453: [\\/$]*) false;;
24454: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24455: esac ||
1.237 moko 24456: as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
1.150 moko 24457: esac
1.237 moko 24458: case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.150 moko 24459: as_fn_append ac_file_inputs " '$ac_f'"
24460: done
24461:
1.237 moko 24462: # Let's still pretend it is 'configure' which instantiates (i.e., don't
1.150 moko 24463: # use $as_me), people would be surprised to read:
24464: # /* config.h. Generated by config.status. */
24465: configure_input='Generated from '`
1.237 moko 24466: printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1.150 moko 24467: `' by configure.'
24468: if test x"$ac_file" != x-; then
24469: configure_input="$ac_file. $configure_input"
1.237 moko 24470: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24471: printf "%s\n" "$as_me: creating $ac_file" >&6;}
1.150 moko 24472: fi
24473: # Neutralize special characters interpreted by sed in replacement strings.
24474: case $configure_input in #(
24475: *\&* | *\|* | *\\* )
1.237 moko 24476: ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1.150 moko 24477: sed 's/[\\\\&|]/\\\\&/g'`;; #(
24478: *) ac_sed_conf_input=$configure_input;;
24479: esac
24480:
24481: case $ac_tag in
24482: *:-:* | *:-) cat >"$ac_tmp/stdin" \
24483: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24484: esac
24485: ;;
1.1 paf 24486: esac
24487:
1.150 moko 24488: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 24489: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 24490: X"$ac_file" : 'X\(//\)[^/]' \| \
24491: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 24492: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 24493: printf "%s\n" X"$ac_file" |
1.150 moko 24494: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24495: s//\1/
24496: q
24497: }
24498: /^X\(\/\/\)[^/].*/{
24499: s//\1/
24500: q
24501: }
24502: /^X\(\/\/\)$/{
24503: s//\1/
24504: q
24505: }
24506: /^X\(\/\).*/{
24507: s//\1/
24508: q
24509: }
24510: s/.*/./; q'`
24511: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 24512: ac_builddir=.
24513:
1.150 moko 24514: case "$ac_dir" in
24515: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24516: *)
1.237 moko 24517: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.150 moko 24518: # A ".." for each directory in $ac_dir_suffix.
1.237 moko 24519: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.150 moko 24520: case $ac_top_builddir_sub in
24521: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24522: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24523: esac ;;
24524: esac
24525: ac_abs_top_builddir=$ac_pwd
24526: ac_abs_builddir=$ac_pwd$ac_dir_suffix
24527: # for backward compatibility:
24528: ac_top_builddir=$ac_top_build_prefix
1.62 paf 24529:
24530: case $srcdir in
1.150 moko 24531: .) # We are building in place.
1.62 paf 24532: ac_srcdir=.
1.150 moko 24533: ac_top_srcdir=$ac_top_builddir_sub
24534: ac_abs_top_srcdir=$ac_pwd ;;
24535: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 24536: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 24537: ac_top_srcdir=$srcdir
24538: ac_abs_top_srcdir=$srcdir ;;
24539: *) # Relative name.
24540: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24541: ac_top_srcdir=$ac_top_build_prefix$srcdir
24542: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 24543: esac
1.150 moko 24544: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 24545:
1.62 paf 24546:
1.150 moko 24547: case $ac_mode in
24548: :F)
24549: #
24550: # CONFIG_FILE
24551: #
1.1 paf 24552:
1.62 paf 24553: case $INSTALL in
24554: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 24555: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 24556: esac
1.150 moko 24557: ac_MKDIR_P=$MKDIR_P
24558: case $MKDIR_P in
24559: [\\/$]* | ?:[\\/]* ) ;;
24560: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24561: esac
24562: _ACEOF
1.1 paf 24563:
1.150 moko 24564: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24565: # If the template does not know about datarootdir, expand it.
24566: # FIXME: This hack should be removed a few years after 2.60.
24567: ac_datarootdir_hack=; ac_datarootdir_seen=
24568: ac_sed_dataroot='
24569: /datarootdir/ {
24570: p
24571: q
24572: }
24573: /@datadir@/p
24574: /@docdir@/p
24575: /@infodir@/p
24576: /@localedir@/p
24577: /@mandir@/p'
24578: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24579: *datarootdir*) ac_datarootdir_seen=yes;;
24580: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.237 moko 24581: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24582: printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.150 moko 24583: _ACEOF
24584: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24585: ac_datarootdir_hack='
24586: s&@datadir@&$datadir&g
24587: s&@docdir@&$docdir&g
24588: s&@infodir@&$infodir&g
24589: s&@localedir@&$localedir&g
24590: s&@mandir@&$mandir&g
24591: s&\\\${datarootdir}&$datarootdir&g' ;;
24592: esac
24593: _ACEOF
1.62 paf 24594:
1.237 moko 24595: # Neutralize VPATH when '$srcdir' = '.'.
1.150 moko 24596: # Shell code in configure.ac might set extrasub.
24597: # FIXME: do we really want to maintain this feature?
24598: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24599: ac_sed_extra="$ac_vpsub
1.62 paf 24600: $extrasub
24601: _ACEOF
1.150 moko 24602: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 24603: :t
24604: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 24605: s|@configure_input@|$ac_sed_conf_input|;t t
24606: s&@top_builddir@&$ac_top_builddir_sub&;t t
24607: s&@top_build_prefix@&$ac_top_build_prefix&;t t
24608: s&@srcdir@&$ac_srcdir&;t t
24609: s&@abs_srcdir@&$ac_abs_srcdir&;t t
24610: s&@top_srcdir@&$ac_top_srcdir&;t t
24611: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24612: s&@builddir@&$ac_builddir&;t t
24613: s&@abs_builddir@&$ac_abs_builddir&;t t
24614: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24615: s&@INSTALL@&$ac_INSTALL&;t t
24616: s&@MKDIR_P@&$ac_MKDIR_P&;t t
24617: $ac_datarootdir_hack
24618: "
24619: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24620: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24621:
24622: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24623: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24624: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24625: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.237 moko 24626: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.150 moko 24627: which seems to be undefined. Please make sure it is defined" >&5
1.237 moko 24628: printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.150 moko 24629: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 24630:
1.150 moko 24631: rm -f "$ac_tmp/stdin"
1.62 paf 24632: case $ac_file in
1.150 moko 24633: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24634: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24635: esac \
24636: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24637: ;;
24638: :H)
24639: #
24640: # CONFIG_HEADER
24641: #
1.62 paf 24642: if test x"$ac_file" != x-; then
1.150 moko 24643: {
1.237 moko 24644: printf "%s\n" "/* $configure_input */" >&1 \
1.150 moko 24645: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24646: } >"$ac_tmp/config.h" \
24647: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24648: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.237 moko 24649: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24650: printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 24651: else
1.150 moko 24652: rm -f "$ac_file"
24653: mv "$ac_tmp/config.h" "$ac_file" \
24654: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 24655: fi
24656: else
1.237 moko 24657: printf "%s\n" "/* $configure_input */" >&1 \
1.150 moko 24658: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24659: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 24660: fi
1.150 moko 24661: # Compute "$ac_file"'s index in $config_headers.
24662: _am_arg="$ac_file"
1.86 paf 24663: _am_stamp_count=1
24664: for _am_header in $config_headers :; do
24665: case $_am_header in
1.150 moko 24666: $_am_arg | $_am_arg:* )
1.86 paf 24667: break ;;
24668: * )
24669: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24670: esac
24671: done
1.150 moko 24672: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24673: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24674: X"$_am_arg" : 'X\(//\)[^/]' \| \
24675: X"$_am_arg" : 'X\(//\)$' \| \
24676: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 24677: printf "%s\n" X"$_am_arg" |
1.150 moko 24678: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24679: s//\1/
24680: q
24681: }
24682: /^X\(\/\/\)[^/].*/{
24683: s//\1/
24684: q
24685: }
24686: /^X\(\/\/\)$/{
24687: s//\1/
24688: q
24689: }
24690: /^X\(\/\).*/{
24691: s//\1/
24692: q
24693: }
24694: s/.*/./; q'`/stamp-h$_am_stamp_count
24695: ;;
1.62 paf 24696:
1.237 moko 24697: :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24698: printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
1.150 moko 24699: ;;
24700: esac
1.86 paf 24701:
1.62 paf 24702:
1.150 moko 24703: case $ac_file$ac_mode in
24704: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.187 moko 24705: # Older Autoconf quotes --file arguments for eval, but not when files
1.150 moko 24706: # are listed without --file. Let's play safe and only enable the eval
24707: # if we detect the quoting.
1.199 moko 24708: # TODO: see whether this extra hack can be removed once we start
24709: # requiring Autoconf 2.70 or later.
24710: case $CONFIG_FILES in #(
24711: *\'*) :
24712: eval set x "$CONFIG_FILES" ;; #(
24713: *) :
24714: set x $CONFIG_FILES ;; #(
24715: *) :
24716: ;;
24717: esac
1.150 moko 24718: shift
1.199 moko 24719: # Used to flag and report bootstrapping failures.
24720: am_rc=0
24721: for am_mf
1.150 moko 24722: do
24723: # Strip MF so we end up with the name of the file.
1.237 moko 24724: am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
1.199 moko 24725: # Check whether this is an Automake generated Makefile which includes
24726: # dependency-tracking related rules and includes.
24727: # Grep'ing the whole file directly is not great: AIX grep has a line
1.150 moko 24728: # limit of 2048, but all sed's we know have understand at least 4000.
1.199 moko 24729: sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24730: || continue
24731: am_dirpart=`$as_dirname -- "$am_mf" ||
24732: $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24733: X"$am_mf" : 'X\(//\)[^/]' \| \
24734: X"$am_mf" : 'X\(//\)$' \| \
24735: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 24736: printf "%s\n" X"$am_mf" |
1.150 moko 24737: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24738: s//\1/
24739: q
24740: }
24741: /^X\(\/\/\)[^/].*/{
24742: s//\1/
24743: q
24744: }
24745: /^X\(\/\/\)$/{
24746: s//\1/
24747: q
24748: }
24749: /^X\(\/\).*/{
24750: s//\1/
24751: q
24752: }
24753: s/.*/./; q'`
1.199 moko 24754: am_filepart=`$as_basename -- "$am_mf" ||
24755: $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24756: X"$am_mf" : 'X\(//\)$' \| \
24757: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.237 moko 24758: printf "%s\n" X/"$am_mf" |
1.199 moko 24759: sed '/^.*\/\([^/][^/]*\)\/*$/{
1.150 moko 24760: s//\1/
24761: q
24762: }
1.199 moko 24763: /^X\/\(\/\/\)$/{
1.150 moko 24764: s//\1/
24765: q
24766: }
1.199 moko 24767: /^X\/\(\/\).*/{
1.150 moko 24768: s//\1/
24769: q
24770: }
24771: s/.*/./; q'`
1.199 moko 24772: { echo "$as_me:$LINENO: cd "$am_dirpart" \
24773: && sed -e '/# am--include-marker/d' "$am_filepart" \
24774: | $MAKE -f - am--depfiles" >&5
24775: (cd "$am_dirpart" \
24776: && sed -e '/# am--include-marker/d' "$am_filepart" \
24777: | $MAKE -f - am--depfiles) >&5 2>&5
24778: ac_status=$?
24779: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780: (exit $ac_status); } || am_rc=$?
1.62 paf 24781: done
1.199 moko 24782: if test $am_rc -ne 0; then
1.237 moko 24783: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24784: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.199 moko 24785: as_fn_error $? "Something went wrong bootstrapping makefile fragments
1.216 moko 24786: for automatic dependency tracking. If GNU make was not used, consider
24787: re-running the configure script with MAKE=\"gmake\" (or whatever is
24788: necessary). You can also try re-running configure with the
1.199 moko 24789: '--disable-dependency-tracking' option to at least be able to build
24790: the package (albeit without support for automatic dependency tracking).
1.237 moko 24791: See 'config.log' for more details" "$LINENO" 5; }
1.199 moko 24792: fi
24793: { am_dirpart=; unset am_dirpart;}
24794: { am_filepart=; unset am_filepart;}
24795: { am_mf=; unset am_mf;}
24796: { am_rc=; unset am_rc;}
24797: rm -f conftest-deps.mk
1.150 moko 24798: }
1.62 paf 24799: ;;
1.150 moko 24800: "libtool":C)
1.128 moko 24801:
1.237 moko 24802: # See if we are running on zsh, and set the options that allow our
1.128 moko 24803: # commands through without removal of \ escapes.
1.237 moko 24804: if test -n "${ZSH_VERSION+set}"; then
1.128 moko 24805: setopt NO_GLOB_SUBST
24806: fi
24807:
1.237 moko 24808: cfgfile=${ofile}T
1.128 moko 24809: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24810: $RM "$cfgfile"
24811:
24812: cat <<_LT_EOF >> "$cfgfile"
24813: #! $SHELL
1.237 moko 24814: # Generated automatically by $as_me ($PACKAGE) $VERSION
24815: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24816:
24817: # Provide generalized library-building support services.
24818: # Written by Gordon Matzigkeit, 1996
1.128 moko 24819:
1.237 moko 24820: # Copyright (C) 2024 Free Software Foundation, Inc.
24821: # This is free software; see the source for copying conditions. There is NO
24822: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24823:
24824: # GNU Libtool is free software; you can redistribute it and/or modify
24825: # it under the terms of the GNU General Public License as published by
24826: # the Free Software Foundation; either version 2 of the License, or
24827: # (at your option) any later version.
1.128 moko 24828: #
1.237 moko 24829: # As a special exception to the GNU General Public License, if you
24830: # distribute this file as part of a program or library that is built
24831: # using GNU Libtool, you may include this file under the same
24832: # distribution terms that you use for the rest of that program.
1.128 moko 24833: #
1.237 moko 24834: # GNU Libtool is distributed in the hope that it will be useful, but
24835: # WITHOUT ANY WARRANTY; without even the implied warranty of
1.128 moko 24836: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24837: # GNU General Public License for more details.
24838: #
24839: # You should have received a copy of the GNU General Public License
1.237 moko 24840: # along with this program. If not, see <http://www.gnu.org/licenses/>.
1.128 moko 24841:
24842:
24843: # The names of the tagged configurations supported by this script.
1.237 moko 24844: available_tags='CXX '
24845:
24846: # Configured defaults for sys_lib_dlsearch_path munging.
24847: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1.128 moko 24848:
24849: # ### BEGIN LIBTOOL CONFIG
24850:
24851: # Which release of libtool.m4 was used?
24852: macro_version=$macro_version
24853: macro_revision=$macro_revision
24854:
24855: # Assembler program.
24856: AS=$lt_AS
24857:
24858: # DLL creation program.
24859: DLLTOOL=$lt_DLLTOOL
24860:
24861: # Object dumper program.
24862: OBJDUMP=$lt_OBJDUMP
24863:
1.145 moko 24864: # What type of objects to build.
24865: pic_mode=$pic_mode
24866:
1.128 moko 24867: # Whether or not to build shared libraries.
24868: build_libtool_libs=$enable_shared
24869:
1.138 moko 24870: # Whether or not to build static libraries.
24871: build_old_libs=$enable_static
24872:
1.128 moko 24873: # Whether or not to optimize for fast installation.
24874: fast_install=$enable_fast_install
24875:
1.237 moko 24876: # Shared archive member basename,for filename based shared library versioning on AIX.
24877: shared_archive_member_spec=$shared_archive_member_spec
24878:
1.128 moko 24879: # Shell to use when invoking shell scripts.
24880: SHELL=$lt_SHELL
24881:
24882: # An echo program that protects backslashes.
24883: ECHO=$lt_ECHO
24884:
24885: # The PATH separator for the build system.
24886: PATH_SEPARATOR=$lt_PATH_SEPARATOR
24887:
24888: # The host system.
24889: host_alias=$host_alias
24890: host=$host
24891: host_os=$host_os
24892:
24893: # The build system.
24894: build_alias=$build_alias
24895: build=$build
24896: build_os=$build_os
24897:
24898: # A sed program that does not truncate output.
24899: SED=$lt_SED
24900:
24901: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24902: Xsed="\$SED -e 1s/^X//"
24903:
24904: # A grep program that handles long lines.
24905: GREP=$lt_GREP
24906:
24907: # An ERE matcher.
24908: EGREP=$lt_EGREP
24909:
24910: # A literal string matcher.
24911: FGREP=$lt_FGREP
24912:
24913: # A BSD- or MS-compatible name lister.
24914: NM=$lt_NM
24915:
24916: # Whether we need soft or hard links.
24917: LN_S=$lt_LN_S
24918:
24919: # What is the maximum length of a command?
24920: max_cmd_len=$max_cmd_len
24921:
24922: # Object file suffix (normally "o").
24923: objext=$ac_objext
24924:
24925: # Executable file suffix (normally "").
24926: exeext=$exeext
24927:
24928: # whether the shell understands "unset".
24929: lt_unset=$lt_unset
24930:
24931: # turn spaces into newlines.
24932: SP2NL=$lt_lt_SP2NL
24933:
24934: # turn newlines into spaces.
24935: NL2SP=$lt_lt_NL2SP
24936:
24937: # convert \$build file names to \$host format.
24938: to_host_file_cmd=$lt_cv_to_host_file_cmd
24939:
24940: # convert \$build files to toolchain format.
24941: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24942:
1.237 moko 24943: # A file(cmd) program that detects file types.
24944: FILECMD=$lt_FILECMD
24945:
1.128 moko 24946: # Method to check whether dependent libraries are shared objects.
24947: deplibs_check_method=$lt_deplibs_check_method
24948:
24949: # Command to use when deplibs_check_method = "file_magic".
24950: file_magic_cmd=$lt_file_magic_cmd
24951:
24952: # How to find potential files when deplibs_check_method = "file_magic".
24953: file_magic_glob=$lt_file_magic_glob
24954:
24955: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24956: want_nocaseglob=$lt_want_nocaseglob
24957:
24958: # Command to associate shared and link libraries.
24959: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24960:
24961: # The archiver.
24962: AR=$lt_AR
24963:
1.237 moko 24964: # Flags to create an archive (by configure).
24965: lt_ar_flags=$lt_ar_flags
24966:
1.128 moko 24967: # Flags to create an archive.
1.237 moko 24968: AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
1.128 moko 24969:
24970: # How to feed a file listing to the archiver.
24971: archiver_list_spec=$lt_archiver_list_spec
24972:
24973: # A symbol stripping program.
24974: STRIP=$lt_STRIP
24975:
24976: # Commands used to install an old-style archive.
24977: RANLIB=$lt_RANLIB
24978: old_postinstall_cmds=$lt_old_postinstall_cmds
24979: old_postuninstall_cmds=$lt_old_postuninstall_cmds
24980:
24981: # Whether to use a lock for old archive extraction.
24982: lock_old_archive_extraction=$lock_old_archive_extraction
24983:
24984: # A C compiler.
24985: LTCC=$lt_CC
24986:
24987: # LTCC compiler flags.
24988: LTCFLAGS=$lt_CFLAGS
24989:
24990: # Take the output of nm and produce a listing of raw symbols and C names.
24991: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24992:
24993: # Transform the output of nm in a proper C declaration.
24994: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24995:
1.237 moko 24996: # Transform the output of nm into a list of symbols to manually relocate.
24997: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24998:
1.128 moko 24999: # Transform the output of nm in a C name address pair.
25000: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25001:
25002: # Transform the output of nm in a C name address pair when lib prefix is needed.
25003: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25004:
1.237 moko 25005: # The name lister interface.
25006: nm_interface=$lt_lt_cv_nm_interface
25007:
1.128 moko 25008: # Specify filename containing input files for \$NM.
25009: nm_file_list_spec=$lt_nm_file_list_spec
25010:
1.237 moko 25011: # The root where to search for dependent libraries,and where our libraries should be installed.
1.128 moko 25012: lt_sysroot=$lt_sysroot
25013:
1.237 moko 25014: # Command to truncate a binary pipe.
25015: lt_truncate_bin=$lt_lt_cv_truncate_bin
25016:
1.128 moko 25017: # The name of the directory that contains temporary libtool files.
25018: objdir=$objdir
25019:
25020: # Used to examine libraries when file_magic_cmd begins with "file".
25021: MAGIC_CMD=$MAGIC_CMD
25022:
25023: # Must we lock files when doing compilation?
25024: need_locks=$lt_need_locks
25025:
25026: # Manifest tool.
25027: MANIFEST_TOOL=$lt_MANIFEST_TOOL
25028:
25029: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25030: DSYMUTIL=$lt_DSYMUTIL
25031:
25032: # Tool to change global to local symbols on Mac OS X.
25033: NMEDIT=$lt_NMEDIT
25034:
25035: # Tool to manipulate fat objects and archives on Mac OS X.
25036: LIPO=$lt_LIPO
25037:
25038: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25039: OTOOL=$lt_OTOOL
25040:
25041: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25042: OTOOL64=$lt_OTOOL64
25043:
25044: # Old archive suffix (normally "a").
25045: libext=$libext
25046:
25047: # Shared library suffix (normally ".so").
25048: shrext_cmds=$lt_shrext_cmds
25049:
25050: # The commands to extract the exported symbol list from a shared archive.
25051: extract_expsyms_cmds=$lt_extract_expsyms_cmds
25052:
25053: # Variables whose values should be saved in libtool wrapper scripts and
25054: # restored at link time.
25055: variables_saved_for_relink=$lt_variables_saved_for_relink
25056:
25057: # Do we need the "lib" prefix for modules?
25058: need_lib_prefix=$need_lib_prefix
25059:
25060: # Do we need a version for libraries?
25061: need_version=$need_version
25062:
25063: # Library versioning type.
25064: version_type=$version_type
25065:
25066: # Shared library runtime path variable.
25067: runpath_var=$runpath_var
25068:
25069: # Shared library path variable.
25070: shlibpath_var=$shlibpath_var
25071:
25072: # Is shlibpath searched before the hard-coded library search path?
25073: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25074:
25075: # Format of library name prefix.
25076: libname_spec=$lt_libname_spec
25077:
25078: # List of archive names. First name is the real one, the rest are links.
25079: # The last name is the one that the linker finds with -lNAME
25080: library_names_spec=$lt_library_names_spec
25081:
25082: # The coded name of the library, if different from the real name.
25083: soname_spec=$lt_soname_spec
25084:
25085: # Permission mode override for installation of shared libraries.
25086: install_override_mode=$lt_install_override_mode
25087:
25088: # Command to use after installation of a shared archive.
25089: postinstall_cmds=$lt_postinstall_cmds
25090:
25091: # Command to use after uninstallation of a shared archive.
25092: postuninstall_cmds=$lt_postuninstall_cmds
25093:
25094: # Commands used to finish a libtool library installation in a directory.
25095: finish_cmds=$lt_finish_cmds
25096:
25097: # As "finish_cmds", except a single script fragment to be evaled but
25098: # not shown.
25099: finish_eval=$lt_finish_eval
25100:
25101: # Whether we should hardcode library paths into libraries.
25102: hardcode_into_libs=$hardcode_into_libs
25103:
25104: # Compile-time system search path for libraries.
25105: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25106:
1.237 moko 25107: # Detected run-time system search path for libraries.
25108: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25109:
25110: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25111: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1.128 moko 25112:
25113: # Whether dlopen is supported.
25114: dlopen_support=$enable_dlopen
25115:
25116: # Whether dlopen of programs is supported.
25117: dlopen_self=$enable_dlopen_self
25118:
25119: # Whether dlopen of statically linked programs is supported.
25120: dlopen_self_static=$enable_dlopen_self_static
25121:
25122: # Commands to strip libraries.
25123: old_striplib=$lt_old_striplib
25124: striplib=$lt_striplib
25125:
25126:
25127: # The linker used to build libraries.
25128: LD=$lt_LD
25129:
25130: # How to create reloadable object files.
25131: reload_flag=$lt_reload_flag
25132: reload_cmds=$lt_reload_cmds
25133:
25134: # Commands used to build an old-style archive.
25135: old_archive_cmds=$lt_old_archive_cmds
25136:
25137: # A language specific compiler.
25138: CC=$lt_compiler
25139:
25140: # Is the compiler the GNU compiler?
25141: with_gcc=$GCC
25142:
25143: # Compiler flag to turn off builtin functions.
25144: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25145:
25146: # Additional compiler flags for building library objects.
25147: pic_flag=$lt_lt_prog_compiler_pic
25148:
25149: # How to pass a linker flag through the compiler.
25150: wl=$lt_lt_prog_compiler_wl
25151:
25152: # Compiler flag to prevent dynamic linking.
25153: link_static_flag=$lt_lt_prog_compiler_static
25154:
25155: # Does compiler simultaneously support -c and -o options?
25156: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25157:
25158: # Whether or not to add -lc for building shared libraries.
25159: build_libtool_need_lc=$archive_cmds_need_lc
25160:
25161: # Whether or not to disallow shared libs when runtime libs are static.
25162: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25163:
25164: # Compiler flag to allow reflexive dlopens.
25165: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25166:
25167: # Compiler flag to generate shared objects directly from archives.
25168: whole_archive_flag_spec=$lt_whole_archive_flag_spec
25169:
25170: # Whether the compiler copes with passing no objects directly.
25171: compiler_needs_object=$lt_compiler_needs_object
25172:
25173: # Create an old-style archive from a shared archive.
25174: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25175:
25176: # Create a temporary old-style archive to link instead of a shared archive.
25177: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25178:
25179: # Commands used to build a shared archive.
25180: archive_cmds=$lt_archive_cmds
25181: archive_expsym_cmds=$lt_archive_expsym_cmds
25182:
25183: # Commands used to build a loadable module if different from building
25184: # a shared archive.
25185: module_cmds=$lt_module_cmds
25186: module_expsym_cmds=$lt_module_expsym_cmds
25187:
25188: # Whether we are building with GNU ld or not.
25189: with_gnu_ld=$lt_with_gnu_ld
25190:
25191: # Flag that allows shared libraries with undefined symbols to be built.
25192: allow_undefined_flag=$lt_allow_undefined_flag
25193:
25194: # Flag that enforces no undefined symbols.
25195: no_undefined_flag=$lt_no_undefined_flag
25196:
25197: # Flag to hardcode \$libdir into a binary during linking.
25198: # This must work even if \$libdir does not exist
25199: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25200:
25201: # Whether we need a single "-rpath" flag with a separated argument.
25202: hardcode_libdir_separator=$lt_hardcode_libdir_separator
25203:
1.237 moko 25204: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25205: # DIR into the resulting binary.
25206: hardcode_direct=$hardcode_direct
25207:
1.237 moko 25208: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25209: # DIR into the resulting binary and the resulting library dependency is
1.237 moko 25210: # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
1.128 moko 25211: # library is relocated.
25212: hardcode_direct_absolute=$hardcode_direct_absolute
25213:
25214: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25215: # into the resulting binary.
25216: hardcode_minus_L=$hardcode_minus_L
25217:
25218: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25219: # into the resulting binary.
25220: hardcode_shlibpath_var=$hardcode_shlibpath_var
25221:
25222: # Set to "yes" if building a shared library automatically hardcodes DIR
25223: # into the library and all subsequent libraries and executables linked
25224: # against it.
25225: hardcode_automatic=$hardcode_automatic
25226:
25227: # Set to yes if linker adds runtime paths of dependent libraries
25228: # to runtime path list.
25229: inherit_rpath=$inherit_rpath
25230:
25231: # Whether libtool must link a program against all its dependency libraries.
25232: link_all_deplibs=$link_all_deplibs
25233:
25234: # Set to "yes" if exported symbols are required.
25235: always_export_symbols=$always_export_symbols
25236:
25237: # The commands to list exported symbols.
25238: export_symbols_cmds=$lt_export_symbols_cmds
25239:
25240: # Symbols that should not be listed in the preloaded symbols.
25241: exclude_expsyms=$lt_exclude_expsyms
25242:
25243: # Symbols that must always be exported.
25244: include_expsyms=$lt_include_expsyms
25245:
25246: # Commands necessary for linking programs (against libraries) with templates.
25247: prelink_cmds=$lt_prelink_cmds
25248:
25249: # Commands necessary for finishing linking programs.
25250: postlink_cmds=$lt_postlink_cmds
25251:
25252: # Specify filename containing input files.
25253: file_list_spec=$lt_file_list_spec
25254:
25255: # How to hardcode a shared library path into an executable.
25256: hardcode_action=$hardcode_action
25257:
25258: # The directories searched by this compiler when creating a shared library.
25259: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25260:
25261: # Dependencies to place before and after the objects being linked to
25262: # create a shared library.
25263: predep_objects=$lt_predep_objects
25264: postdep_objects=$lt_postdep_objects
25265: predeps=$lt_predeps
25266: postdeps=$lt_postdeps
25267:
25268: # The library search path used internally by the compiler when linking
25269: # a shared library.
25270: compiler_lib_search_path=$lt_compiler_lib_search_path
25271:
25272: # ### END LIBTOOL CONFIG
25273:
25274: _LT_EOF
25275:
1.237 moko 25276: cat <<'_LT_EOF' >> "$cfgfile"
25277:
25278: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25279:
25280: # func_munge_path_list VARIABLE PATH
25281: # -----------------------------------
25282: # VARIABLE is name of variable containing _space_ separated list of
25283: # directories to be munged by the contents of PATH, which is string
25284: # having a format:
25285: # "DIR[:DIR]:"
25286: # string "DIR[ DIR]" will be prepended to VARIABLE
25287: # ":DIR[:DIR]"
25288: # string "DIR[ DIR]" will be appended to VARIABLE
25289: # "DIRP[:DIRP]::[DIRA:]DIRA"
25290: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25291: # "DIRA[ DIRA]" will be appended to VARIABLE
25292: # "DIR[:DIR]"
25293: # VARIABLE will be replaced by "DIR[ DIR]"
25294: func_munge_path_list ()
25295: {
25296: case x$2 in
25297: x)
25298: ;;
25299: *:)
25300: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25301: ;;
25302: x:*)
25303: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25304: ;;
25305: *::*)
25306: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25307: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25308: ;;
25309: *)
25310: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25311: ;;
25312: esac
25313: }
25314:
25315:
25316: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25317: func_cc_basename ()
25318: {
25319: for cc_temp in $*""; do
25320: case $cc_temp in
25321: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25322: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25323: \-*) ;;
25324: *) break;;
25325: esac
25326: done
25327: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25328: }
25329:
25330:
25331: # ### END FUNCTIONS SHARED WITH CONFIGURE
25332:
25333: _LT_EOF
25334:
1.128 moko 25335: case $host_os in
25336: aix3*)
25337: cat <<\_LT_EOF >> "$cfgfile"
25338: # AIX sometimes has problems with the GCC collect2 program. For some
25339: # reason, if we set the COLLECT_NAMES environment variable, the problems
25340: # vanish in a puff of smoke.
1.237 moko 25341: if test set != "${COLLECT_NAMES+set}"; then
1.128 moko 25342: COLLECT_NAMES=
25343: export COLLECT_NAMES
25344: fi
25345: _LT_EOF
25346: ;;
25347: esac
25348:
25349:
1.237 moko 25350:
25351: ltmain=$ac_aux_dir/ltmain.sh
1.128 moko 25352:
25353:
25354: # We use sed instead of cat because bash on DJGPP gets confused if
25355: # if finds mixed CR/LF and LF-only lines. Since sed operates in
25356: # text mode, it properly converts lines to CR/LF. This bash problem
25357: # is reportedly fixed, but why not run on old versions too?
1.237 moko 25358: $SED '$q' "$ltmain" >> "$cfgfile" \
1.128 moko 25359: || (rm -f "$cfgfile"; exit 1)
25360:
25361: mv -f "$cfgfile" "$ofile" ||
25362: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25363: chmod +x "$ofile"
25364:
25365:
25366: cat <<_LT_EOF >> "$ofile"
25367:
25368: # ### BEGIN LIBTOOL TAG CONFIG: CXX
25369:
25370: # The linker used to build libraries.
25371: LD=$lt_LD_CXX
25372:
25373: # How to create reloadable object files.
25374: reload_flag=$lt_reload_flag_CXX
25375: reload_cmds=$lt_reload_cmds_CXX
25376:
25377: # Commands used to build an old-style archive.
25378: old_archive_cmds=$lt_old_archive_cmds_CXX
25379:
25380: # A language specific compiler.
25381: CC=$lt_compiler_CXX
25382:
25383: # Is the compiler the GNU compiler?
25384: with_gcc=$GCC_CXX
25385:
25386: # Compiler flag to turn off builtin functions.
25387: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25388:
25389: # Additional compiler flags for building library objects.
25390: pic_flag=$lt_lt_prog_compiler_pic_CXX
25391:
25392: # How to pass a linker flag through the compiler.
25393: wl=$lt_lt_prog_compiler_wl_CXX
25394:
25395: # Compiler flag to prevent dynamic linking.
25396: link_static_flag=$lt_lt_prog_compiler_static_CXX
25397:
25398: # Does compiler simultaneously support -c and -o options?
25399: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25400:
25401: # Whether or not to add -lc for building shared libraries.
25402: build_libtool_need_lc=$archive_cmds_need_lc_CXX
25403:
25404: # Whether or not to disallow shared libs when runtime libs are static.
25405: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25406:
25407: # Compiler flag to allow reflexive dlopens.
25408: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25409:
25410: # Compiler flag to generate shared objects directly from archives.
25411: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25412:
25413: # Whether the compiler copes with passing no objects directly.
25414: compiler_needs_object=$lt_compiler_needs_object_CXX
25415:
25416: # Create an old-style archive from a shared archive.
25417: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25418:
25419: # Create a temporary old-style archive to link instead of a shared archive.
25420: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25421:
25422: # Commands used to build a shared archive.
25423: archive_cmds=$lt_archive_cmds_CXX
25424: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25425:
25426: # Commands used to build a loadable module if different from building
25427: # a shared archive.
25428: module_cmds=$lt_module_cmds_CXX
25429: module_expsym_cmds=$lt_module_expsym_cmds_CXX
25430:
25431: # Whether we are building with GNU ld or not.
25432: with_gnu_ld=$lt_with_gnu_ld_CXX
25433:
25434: # Flag that allows shared libraries with undefined symbols to be built.
25435: allow_undefined_flag=$lt_allow_undefined_flag_CXX
25436:
25437: # Flag that enforces no undefined symbols.
25438: no_undefined_flag=$lt_no_undefined_flag_CXX
25439:
25440: # Flag to hardcode \$libdir into a binary during linking.
25441: # This must work even if \$libdir does not exist
25442: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25443:
25444: # Whether we need a single "-rpath" flag with a separated argument.
25445: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25446:
1.237 moko 25447: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25448: # DIR into the resulting binary.
25449: hardcode_direct=$hardcode_direct_CXX
25450:
1.237 moko 25451: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25452: # DIR into the resulting binary and the resulting library dependency is
1.237 moko 25453: # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
1.128 moko 25454: # library is relocated.
25455: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25456:
25457: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25458: # into the resulting binary.
25459: hardcode_minus_L=$hardcode_minus_L_CXX
25460:
25461: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25462: # into the resulting binary.
25463: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25464:
25465: # Set to "yes" if building a shared library automatically hardcodes DIR
25466: # into the library and all subsequent libraries and executables linked
25467: # against it.
25468: hardcode_automatic=$hardcode_automatic_CXX
25469:
25470: # Set to yes if linker adds runtime paths of dependent libraries
25471: # to runtime path list.
25472: inherit_rpath=$inherit_rpath_CXX
25473:
25474: # Whether libtool must link a program against all its dependency libraries.
25475: link_all_deplibs=$link_all_deplibs_CXX
25476:
25477: # Set to "yes" if exported symbols are required.
25478: always_export_symbols=$always_export_symbols_CXX
25479:
25480: # The commands to list exported symbols.
25481: export_symbols_cmds=$lt_export_symbols_cmds_CXX
25482:
25483: # Symbols that should not be listed in the preloaded symbols.
25484: exclude_expsyms=$lt_exclude_expsyms_CXX
25485:
25486: # Symbols that must always be exported.
25487: include_expsyms=$lt_include_expsyms_CXX
25488:
25489: # Commands necessary for linking programs (against libraries) with templates.
25490: prelink_cmds=$lt_prelink_cmds_CXX
25491:
25492: # Commands necessary for finishing linking programs.
25493: postlink_cmds=$lt_postlink_cmds_CXX
25494:
25495: # Specify filename containing input files.
25496: file_list_spec=$lt_file_list_spec_CXX
25497:
25498: # How to hardcode a shared library path into an executable.
25499: hardcode_action=$hardcode_action_CXX
25500:
25501: # The directories searched by this compiler when creating a shared library.
25502: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25503:
25504: # Dependencies to place before and after the objects being linked to
25505: # create a shared library.
25506: predep_objects=$lt_predep_objects_CXX
25507: postdep_objects=$lt_postdep_objects_CXX
25508: predeps=$lt_predeps_CXX
25509: postdeps=$lt_postdeps_CXX
25510:
25511: # The library search path used internally by the compiler when linking
25512: # a shared library.
25513: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25514:
25515: # ### END LIBTOOL TAG CONFIG: CXX
25516: _LT_EOF
25517:
25518: ;;
1.150 moko 25519:
1.62 paf 25520: esac
1.150 moko 25521: done # for ac_tag
1.62 paf 25522:
25523:
1.150 moko 25524: as_fn_exit 0
1.62 paf 25525: _ACEOF
25526: ac_clean_files=$ac_clean_files_save
25527:
1.150 moko 25528: test $ac_write_fail = 0 ||
25529: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25530:
1.1 paf 25531:
1.62 paf 25532: # configure is writing to config.log, and then calls config.status.
25533: # config.status does its own redirection, appending to config.log.
25534: # Unfortunately, on DOS this fails, as config.log is still kept open
25535: # by configure, so config.status won't be able to write to it; its
25536: # output is simply discarded. So we exec the FD to /dev/null,
25537: # effectively closing config.log, so it can be properly (re)opened and
25538: # appended to by config.status. When coming back to configure, we
25539: # need to make the FD available again.
25540: if test "$no_create" != yes; then
25541: ac_cs_success=:
25542: ac_config_status_args=
25543: test "$silent" = yes &&
25544: ac_config_status_args="$ac_config_status_args --quiet"
25545: exec 5>/dev/null
25546: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25547: exec 5>>config.log
25548: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25549: # would make configure fail if this is the last instruction.
1.150 moko 25550: $ac_cs_success || as_fn_exit 1
1.62 paf 25551: fi
25552:
25553: #
25554: # CONFIG_SUBDIRS section.
25555: #
1.1 paf 25556: if test "$no_recursion" != yes; then
25557:
1.150 moko 25558: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
25559: # so they do not pile up.
1.1 paf 25560: ac_sub_configure_args=
25561: ac_prev=
1.150 moko 25562: eval "set x $ac_configure_args"
25563: shift
25564: for ac_arg
25565: do
1.1 paf 25566: if test -n "$ac_prev"; then
25567: ac_prev=
25568: continue
25569: fi
1.62 paf 25570: case $ac_arg in
1.1 paf 25571: -cache-file | --cache-file | --cache-fil | --cache-fi \
25572: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25573: ac_prev=cache_file ;;
25574: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 25575: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25576: | --c=*)
25577: ;;
25578: --config-cache | -C)
1.1 paf 25579: ;;
25580: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25581: ac_prev=srcdir ;;
25582: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25583: ;;
1.62 paf 25584: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25585: ac_prev=prefix ;;
25586: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25587: ;;
1.150 moko 25588: --disable-option-checking)
25589: ;;
25590: *)
25591: case $ac_arg in
1.237 moko 25592: *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 25593: esac
25594: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 25595: esac
25596: done
25597:
1.62 paf 25598: # Always prepend --prefix to ensure using the same prefix
25599: # in subdir configurations.
1.150 moko 25600: ac_arg="--prefix=$prefix"
25601: case $ac_arg in
1.237 moko 25602: *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 25603: esac
25604: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25605:
25606: # Pass --silent
25607: if test "$silent" = yes; then
25608: ac_sub_configure_args="--silent $ac_sub_configure_args"
25609: fi
25610:
25611: # Always prepend --disable-option-checking to silence warnings, since
25612: # different subdirs can have different --enable and --with options.
25613: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 25614:
25615: ac_popdir=`pwd`
25616: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 25617:
25618: # Do not complain, so a configure script can configure whichever
25619: # parts of a large source tree are present.
1.150 moko 25620: test -d "$srcdir/$ac_dir" || continue
1.62 paf 25621:
1.150 moko 25622: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.237 moko 25623: printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
25624: printf "%s\n" "$ac_msg" >&6
1.150 moko 25625: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 25626: ac_builddir=.
25627:
1.150 moko 25628: case "$ac_dir" in
25629: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25630: *)
1.237 moko 25631: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.150 moko 25632: # A ".." for each directory in $ac_dir_suffix.
1.237 moko 25633: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.150 moko 25634: case $ac_top_builddir_sub in
25635: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25636: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25637: esac ;;
25638: esac
25639: ac_abs_top_builddir=$ac_pwd
25640: ac_abs_builddir=$ac_pwd$ac_dir_suffix
25641: # for backward compatibility:
25642: ac_top_builddir=$ac_top_build_prefix
1.62 paf 25643:
25644: case $srcdir in
1.150 moko 25645: .) # We are building in place.
1.62 paf 25646: ac_srcdir=.
1.150 moko 25647: ac_top_srcdir=$ac_top_builddir_sub
25648: ac_abs_top_srcdir=$ac_pwd ;;
25649: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 25650: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 25651: ac_top_srcdir=$srcdir
25652: ac_abs_top_srcdir=$srcdir ;;
25653: *) # Relative name.
25654: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25655: ac_top_srcdir=$ac_top_build_prefix$srcdir
25656: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 25657: esac
1.150 moko 25658: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 25659:
25660:
1.150 moko 25661: cd "$ac_dir"
1.1 paf 25662:
1.237 moko 25663: # Check for configure.gnu first; this name is used for a wrapper for
25664: # Metaconfig's "Configure" on case-insensitive file systems.
1.150 moko 25665: if test -f "$ac_srcdir/configure.gnu"; then
25666: ac_sub_configure=$ac_srcdir/configure.gnu
25667: elif test -f "$ac_srcdir/configure"; then
25668: ac_sub_configure=$ac_srcdir/configure
1.1 paf 25669: else
1.237 moko 25670: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
25671: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 25672: ac_sub_configure=
25673: fi
25674:
25675: # The recursion is here.
25676: if test -n "$ac_sub_configure"; then
25677: # Make the cache file name correct relative to the subdirectory.
1.62 paf 25678: case $cache_file in
25679: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 25680: *) # Relative name.
25681: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 25682: esac
25683:
1.237 moko 25684: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25685: printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 paf 25686: # The eval makes quoting arguments work.
1.150 moko 25687: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25688: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25689: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 25690: fi
25691:
1.150 moko 25692: cd "$ac_popdir"
1.1 paf 25693: done
25694: fi
1.150 moko 25695: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.237 moko 25696: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25697: printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.150 moko 25698: fi
1.1 paf 25699:
1.237 moko 25700:
E-mail: