Annotation of parser3/configure, revision 1.237
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.232 moko 715: AMQP_LIBS
716: AMQP_INCLUDES
1.150 moko 717: MIME_LIBS
718: MIME_INCLUDES
719: XML_LIBS
720: XML_INCLUDES
721: PCRE_LIBS
722: PCRE_INCLUDES
723: GC_LIBS
724: dll_extension
725: am__fastdepCC_FALSE
726: am__fastdepCC_TRUE
727: CCDEPMODE
728: ac_ct_CC
729: CFLAGS
730: CC
731: am__fastdepCXX_FALSE
732: am__fastdepCXX_TRUE
733: CXXDEPMODE
1.187 moko 734: am__nodep
1.150 moko 735: AMDEPBACKSLASH
736: AMDEP_FALSE
737: AMDEP_TRUE
738: am__include
739: DEPDIR
740: OBJEXT
741: EXEEXT
742: ac_ct_CXX
743: CPPFLAGS
744: LDFLAGS
745: CXXFLAGS
746: CXX
747: YFLAGS
748: YACC
749: host_os
750: host_vendor
751: host_cpu
752: host
753: build_os
754: build_vendor
755: build_cpu
756: build
757: P3S
1.237 ! moko 758: am__xargs_n
! 759: am__rm_f_notfound
1.187 moko 760: AM_BACKSLASH
761: AM_DEFAULT_VERBOSITY
762: AM_DEFAULT_V
763: AM_V
1.237 ! moko 764: CSCOPE
! 765: ETAGS
! 766: CTAGS
1.150 moko 767: am__untar
768: am__tar
769: AMTAR
770: am__leading_dot
771: SET_MAKE
772: AWK
773: mkdir_p
774: MKDIR_P
775: INSTALL_STRIP_PROGRAM
776: STRIP
777: install_sh
778: MAKEINFO
779: AUTOHEADER
780: AUTOMAKE
781: AUTOCONF
782: ACLOCAL
783: VERSION
784: PACKAGE
785: CYGPATH_W
786: am__isrc
787: INSTALL_DATA
788: INSTALL_SCRIPT
789: INSTALL_PROGRAM
790: target_alias
791: host_alias
792: build_alias
793: LIBS
794: ECHO_T
795: ECHO_N
796: ECHO_C
797: DEFS
798: mandir
799: localedir
800: libdir
801: psdir
802: pdfdir
803: dvidir
804: htmldir
805: infodir
806: docdir
807: oldincludedir
808: includedir
1.191 moko 809: runstatedir
1.150 moko 810: localstatedir
811: sharedstatedir
812: sysconfdir
813: datadir
814: datarootdir
815: libexecdir
816: sbindir
817: bindir
818: program_transform_name
819: prefix
820: exec_prefix
821: PACKAGE_URL
822: PACKAGE_BUGREPORT
823: PACKAGE_STRING
824: PACKAGE_VERSION
825: PACKAGE_TARNAME
826: PACKAGE_NAME
827: PATH_SEPARATOR
1.199 moko 828: SHELL
829: am__quote'
1.62 paf 830: ac_subst_files=''
1.150 moko 831: ac_user_opts='
832: enable_option_checking
1.187 moko 833: enable_silent_rules
1.150 moko 834: enable_dependency_tracking
835: with_build_warnings
1.182 moko 836: with_coverage
837: with_profiler
1.150 moko 838: with_assertions
839: with_sjlj_exceptions
1.203 moko 840: with_system_cfg
1.150 moko 841: enable_safe_mode
842: enable_execs
843: enable_stringstream
844: with_gc
845: with_pcre
846: with_xml
1.154 moko 847: with_mailreceive
1.232 moko 848: with_amqp
1.150 moko 849: with_sendmail
850: with_apache
1.237 ! moko 851: enable_pic
1.150 moko 852: with_pic
853: enable_shared
854: enable_static
855: enable_fast_install
1.237 ! moko 856: enable_aix_soname
! 857: with_aix_soname
1.150 moko 858: with_gnu_ld
859: with_sysroot
860: enable_libtool_lock
861: with_included_ltdl
862: with_ltdl_include
863: with_ltdl_lib
864: enable_ltdl_install
1.171 moko 865: enable_largefile
1.237 ! moko 866: enable_year2038
1.150 moko 867: '
868: ac_precious_vars='build_alias
869: host_alias
870: target_alias
871: YACC
872: YFLAGS
873: CXX
874: CXXFLAGS
875: LDFLAGS
876: LIBS
877: CPPFLAGS
878: CCC
879: CC
880: CFLAGS
1.237 ! moko 881: LT_SYS_LIBRARY_PATH
1.150 moko 882: CXXCPP'
883: ac_subdirs_all='src/lib/ltdl'
1.1 paf 884:
885: # Initialize some variables set by options.
1.62 paf 886: ac_init_help=
887: ac_init_version=false
1.150 moko 888: ac_unrecognized_opts=
889: ac_unrecognized_sep=
1.1 paf 890: # The variables have the same names as the options, with
891: # dashes changed to underlines.
1.62 paf 892: cache_file=/dev/null
1.1 paf 893: exec_prefix=NONE
894: no_create=
895: no_recursion=
896: prefix=NONE
897: program_prefix=NONE
898: program_suffix=NONE
899: program_transform_name=s,x,x,
900: silent=
901: site=
902: srcdir=
903: verbose=
904: x_includes=NONE
905: x_libraries=NONE
1.62 paf 906:
907: # Installation directory options.
908: # These are left unexpanded so users can "make install exec_prefix=/foo"
909: # and all the variables that are supposed to be based on exec_prefix
910: # by default will actually change.
911: # Use braces instead of parens because sh, perl, etc. also accept them.
1.150 moko 912: # (The list follows the same order as the GNU Coding Standards.)
1.1 paf 913: bindir='${exec_prefix}/bin'
914: sbindir='${exec_prefix}/sbin'
915: libexecdir='${exec_prefix}/libexec'
1.150 moko 916: datarootdir='${prefix}/share'
917: datadir='${datarootdir}'
1.1 paf 918: sysconfdir='${prefix}/etc'
919: sharedstatedir='${prefix}/com'
920: localstatedir='${prefix}/var'
1.191 moko 921: runstatedir='${localstatedir}/run'
1.1 paf 922: includedir='${prefix}/include'
923: oldincludedir='/usr/include'
1.150 moko 924: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
925: infodir='${datarootdir}/info'
926: htmldir='${docdir}'
927: dvidir='${docdir}'
928: pdfdir='${docdir}'
929: psdir='${docdir}'
930: libdir='${exec_prefix}/lib'
931: localedir='${datarootdir}/locale'
932: mandir='${datarootdir}/man'
1.1 paf 933:
934: ac_prev=
1.150 moko 935: ac_dashdash=
1.1 paf 936: for ac_option
937: do
938: # If the previous option needs an argument, assign it.
939: if test -n "$ac_prev"; then
1.150 moko 940: eval $ac_prev=\$ac_option
1.1 paf 941: ac_prev=
942: continue
943: fi
944:
1.150 moko 945: case $ac_option in
946: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947: *=) ac_optarg= ;;
948: *) ac_optarg=yes ;;
949: esac
1.1 paf 950:
1.150 moko 951: case $ac_dashdash$ac_option in
952: --)
953: ac_dashdash=yes ;;
1.1 paf 954:
955: -bindir | --bindir | --bindi | --bind | --bin | --bi)
956: ac_prev=bindir ;;
957: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 958: bindir=$ac_optarg ;;
1.1 paf 959:
960: -build | --build | --buil | --bui | --bu)
1.62 paf 961: ac_prev=build_alias ;;
1.1 paf 962: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 963: build_alias=$ac_optarg ;;
1.1 paf 964:
965: -cache-file | --cache-file | --cache-fil | --cache-fi \
966: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967: ac_prev=cache_file ;;
968: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 970: cache_file=$ac_optarg ;;
971:
972: --config-cache | -C)
973: cache_file=config.cache ;;
1.1 paf 974:
1.150 moko 975: -datadir | --datadir | --datadi | --datad)
1.1 paf 976: ac_prev=datadir ;;
1.150 moko 977: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.62 paf 978: datadir=$ac_optarg ;;
1.1 paf 979:
1.150 moko 980: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981: | --dataroo | --dataro | --datar)
982: ac_prev=datarootdir ;;
983: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985: datarootdir=$ac_optarg ;;
986:
1.1 paf 987: -disable-* | --disable-*)
1.150 moko 988: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 989: # Reject names that are not valid shell variable names.
1.150 moko 990: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 ! moko 991: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.150 moko 992: ac_useropt_orig=$ac_useropt
1.237 ! moko 993: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 994: case $ac_user_opts in
995: *"
996: "enable_$ac_useropt"
997: "*) ;;
998: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999: ac_unrecognized_sep=', ';;
1000: esac
1001: eval enable_$ac_useropt=no ;;
1002:
1003: -docdir | --docdir | --docdi | --doc | --do)
1004: ac_prev=docdir ;;
1005: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006: docdir=$ac_optarg ;;
1007:
1008: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009: ac_prev=dvidir ;;
1010: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011: dvidir=$ac_optarg ;;
1.1 paf 1012:
1013: -enable-* | --enable-*)
1.150 moko 1014: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 1015: # Reject names that are not valid shell variable names.
1.150 moko 1016: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 ! moko 1017: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.150 moko 1018: ac_useropt_orig=$ac_useropt
1.237 ! moko 1019: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 1020: case $ac_user_opts in
1021: *"
1022: "enable_$ac_useropt"
1023: "*) ;;
1024: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025: ac_unrecognized_sep=', ';;
1.1 paf 1026: esac
1.150 moko 1027: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 paf 1028:
1029: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031: | --exec | --exe | --ex)
1032: ac_prev=exec_prefix ;;
1033: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035: | --exec=* | --exe=* | --ex=*)
1.62 paf 1036: exec_prefix=$ac_optarg ;;
1.1 paf 1037:
1038: -gas | --gas | --ga | --g)
1039: # Obsolete; use --with-gas.
1040: with_gas=yes ;;
1041:
1.62 paf 1042: -help | --help | --hel | --he | -h)
1043: ac_init_help=long ;;
1044: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045: ac_init_help=recursive ;;
1046: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047: ac_init_help=short ;;
1.1 paf 1048:
1049: -host | --host | --hos | --ho)
1.62 paf 1050: ac_prev=host_alias ;;
1.1 paf 1051: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 1052: host_alias=$ac_optarg ;;
1.1 paf 1053:
1.150 moko 1054: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055: ac_prev=htmldir ;;
1056: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057: | --ht=*)
1058: htmldir=$ac_optarg ;;
1059:
1.1 paf 1060: -includedir | --includedir | --includedi | --included | --include \
1061: | --includ | --inclu | --incl | --inc)
1062: ac_prev=includedir ;;
1063: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 1065: includedir=$ac_optarg ;;
1.1 paf 1066:
1067: -infodir | --infodir | --infodi | --infod | --info | --inf)
1068: ac_prev=infodir ;;
1069: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 1070: infodir=$ac_optarg ;;
1.1 paf 1071:
1072: -libdir | --libdir | --libdi | --libd)
1073: ac_prev=libdir ;;
1074: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 1075: libdir=$ac_optarg ;;
1.1 paf 1076:
1077: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078: | --libexe | --libex | --libe)
1079: ac_prev=libexecdir ;;
1080: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081: | --libexe=* | --libex=* | --libe=*)
1.62 paf 1082: libexecdir=$ac_optarg ;;
1.1 paf 1083:
1.150 moko 1084: -localedir | --localedir | --localedi | --localed | --locale)
1085: ac_prev=localedir ;;
1086: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087: localedir=$ac_optarg ;;
1088:
1.1 paf 1089: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.150 moko 1090: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 paf 1091: ac_prev=localstatedir ;;
1092: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.150 moko 1093: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.62 paf 1094: localstatedir=$ac_optarg ;;
1.1 paf 1095:
1096: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097: ac_prev=mandir ;;
1098: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 1099: mandir=$ac_optarg ;;
1.1 paf 1100:
1101: -nfp | --nfp | --nf)
1102: # Obsolete; use --without-fp.
1103: with_fp=no ;;
1104:
1105: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 1106: | --no-cr | --no-c | -n)
1.1 paf 1107: no_create=yes ;;
1108:
1109: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111: no_recursion=yes ;;
1112:
1113: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115: | --oldin | --oldi | --old | --ol | --o)
1116: ac_prev=oldincludedir ;;
1117: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 1120: oldincludedir=$ac_optarg ;;
1.1 paf 1121:
1122: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123: ac_prev=prefix ;;
1124: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 1125: prefix=$ac_optarg ;;
1.1 paf 1126:
1127: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128: | --program-pre | --program-pr | --program-p)
1129: ac_prev=program_prefix ;;
1130: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 1132: program_prefix=$ac_optarg ;;
1.1 paf 1133:
1134: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135: | --program-suf | --program-su | --program-s)
1136: ac_prev=program_suffix ;;
1137: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 1139: program_suffix=$ac_optarg ;;
1.1 paf 1140:
1141: -program-transform-name | --program-transform-name \
1142: | --program-transform-nam | --program-transform-na \
1143: | --program-transform-n | --program-transform- \
1144: | --program-transform | --program-transfor \
1145: | --program-transfo | --program-transf \
1146: | --program-trans | --program-tran \
1147: | --progr-tra | --program-tr | --program-t)
1148: ac_prev=program_transform_name ;;
1149: -program-transform-name=* | --program-transform-name=* \
1150: | --program-transform-nam=* | --program-transform-na=* \
1151: | --program-transform-n=* | --program-transform-=* \
1152: | --program-transform=* | --program-transfor=* \
1153: | --program-transfo=* | --program-transf=* \
1154: | --program-trans=* | --program-tran=* \
1155: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 1156: program_transform_name=$ac_optarg ;;
1.1 paf 1157:
1.150 moko 1158: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159: ac_prev=pdfdir ;;
1160: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161: pdfdir=$ac_optarg ;;
1162:
1163: -psdir | --psdir | --psdi | --psd | --ps)
1164: ac_prev=psdir ;;
1165: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166: psdir=$ac_optarg ;;
1167:
1.1 paf 1168: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169: | -silent | --silent | --silen | --sile | --sil)
1170: silent=yes ;;
1171:
1.191 moko 1172: -runstatedir | --runstatedir | --runstatedi | --runstated \
1173: | --runstate | --runstat | --runsta | --runst | --runs \
1174: | --run | --ru | --r)
1175: ac_prev=runstatedir ;;
1176: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1177: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1178: | --run=* | --ru=* | --r=*)
1179: runstatedir=$ac_optarg ;;
1180:
1.1 paf 1181: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182: ac_prev=sbindir ;;
1183: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184: | --sbi=* | --sb=*)
1.62 paf 1185: sbindir=$ac_optarg ;;
1.1 paf 1186:
1187: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189: | --sharedst | --shareds | --shared | --share | --shar \
1190: | --sha | --sh)
1191: ac_prev=sharedstatedir ;;
1192: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195: | --sha=* | --sh=*)
1.62 paf 1196: sharedstatedir=$ac_optarg ;;
1.1 paf 1197:
1198: -site | --site | --sit)
1199: ac_prev=site ;;
1200: -site=* | --site=* | --sit=*)
1.62 paf 1201: site=$ac_optarg ;;
1.1 paf 1202:
1203: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204: ac_prev=srcdir ;;
1205: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 1206: srcdir=$ac_optarg ;;
1.1 paf 1207:
1208: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209: | --syscon | --sysco | --sysc | --sys | --sy)
1210: ac_prev=sysconfdir ;;
1211: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 1213: sysconfdir=$ac_optarg ;;
1.1 paf 1214:
1215: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 1216: ac_prev=target_alias ;;
1.1 paf 1217: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 1218: target_alias=$ac_optarg ;;
1.1 paf 1219:
1220: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221: verbose=yes ;;
1222:
1.62 paf 1223: -version | --version | --versio | --versi | --vers | -V)
1224: ac_init_version=: ;;
1.1 paf 1225:
1226: -with-* | --with-*)
1.150 moko 1227: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 1228: # Reject names that are not valid shell variable names.
1.150 moko 1229: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 ! moko 1230: as_fn_error $? "invalid package name: '$ac_useropt'"
1.150 moko 1231: ac_useropt_orig=$ac_useropt
1.237 ! moko 1232: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 1233: case $ac_user_opts in
1234: *"
1235: "with_$ac_useropt"
1236: "*) ;;
1237: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1238: ac_unrecognized_sep=', ';;
1.1 paf 1239: esac
1.150 moko 1240: eval with_$ac_useropt=\$ac_optarg ;;
1.1 paf 1241:
1242: -without-* | --without-*)
1.150 moko 1243: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 1244: # Reject names that are not valid shell variable names.
1.150 moko 1245: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.237 ! moko 1246: as_fn_error $? "invalid package name: '$ac_useropt'"
1.150 moko 1247: ac_useropt_orig=$ac_useropt
1.237 ! moko 1248: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.150 moko 1249: case $ac_user_opts in
1250: *"
1251: "with_$ac_useropt"
1252: "*) ;;
1253: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1254: ac_unrecognized_sep=', ';;
1255: esac
1256: eval with_$ac_useropt=no ;;
1.1 paf 1257:
1258: --x)
1259: # Obsolete; use --with-x.
1260: with_x=yes ;;
1261:
1262: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263: | --x-incl | --x-inc | --x-in | --x-i)
1264: ac_prev=x_includes ;;
1265: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 1267: x_includes=$ac_optarg ;;
1.1 paf 1268:
1269: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271: ac_prev=x_libraries ;;
1272: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 1274: x_libraries=$ac_optarg ;;
1.1 paf 1275:
1.237 ! moko 1276: -*) as_fn_error $? "unrecognized option: '$ac_option'
! 1277: Try '$0 --help' for more information"
1.1 paf 1278: ;;
1279:
1.62 paf 1280: *=*)
1281: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282: # Reject names that are not valid shell variable names.
1.150 moko 1283: case $ac_envvar in #(
1284: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.237 ! moko 1285: as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1.150 moko 1286: esac
1287: eval $ac_envvar=\$ac_optarg
1.62 paf 1288: export $ac_envvar ;;
1289:
1.1 paf 1290: *)
1.62 paf 1291: # FIXME: should be removed in autoconf 3.0.
1.237 ! moko 1292: printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1.62 paf 1293: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.237 ! moko 1294: printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1.150 moko 1295: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 paf 1296: ;;
1297:
1298: esac
1299: done
1300:
1301: if test -n "$ac_prev"; then
1.62 paf 1302: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.150 moko 1303: as_fn_error $? "missing argument to $ac_option"
1.1 paf 1304: fi
1305:
1.150 moko 1306: if test -n "$ac_unrecognized_opts"; then
1307: case $enable_option_checking in
1308: no) ;;
1309: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.237 ! moko 1310: *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1.150 moko 1311: esac
1312: fi
1313:
1314: # Check all directory arguments for consistency.
1315: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316: datadir sysconfdir sharedstatedir localstatedir includedir \
1317: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.191 moko 1318: libdir localedir mandir runstatedir
1.62 paf 1319: do
1.150 moko 1320: eval ac_val=\$$ac_var
1321: # Remove trailing slashes.
1.62 paf 1322: case $ac_val in
1.150 moko 1323: */ )
1324: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325: eval $ac_var=\$ac_val;;
1.62 paf 1326: esac
1.150 moko 1327: # Be sure to have absolute directory names.
1.62 paf 1328: case $ac_val in
1.150 moko 1329: [\\/$]* | ?:[\\/]* ) continue;;
1330: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 paf 1331: esac
1.150 moko 1332: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 paf 1333: done
1334:
1.237 ! moko 1335: # There might be people who depend on the old broken behavior: '$host'
1.62 paf 1336: # used to hold the argument of --host etc.
1337: # FIXME: To remove some day.
1338: build=$build_alias
1339: host=$host_alias
1340: target=$target_alias
1341:
1342: # FIXME: To remove some day.
1343: if test "x$host_alias" != x; then
1344: if test "x$build_alias" = x; then
1345: cross_compiling=maybe
1346: elif test "x$build_alias" != "x$host_alias"; then
1347: cross_compiling=yes
1348: fi
1349: fi
1350:
1351: ac_tool_prefix=
1352: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 1353:
1.62 paf 1354: test "$silent" = yes && exec 6>/dev/null
1.1 paf 1355:
1356:
1.150 moko 1357: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1358: ac_ls_di=`ls -di .` &&
1359: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1360: as_fn_error $? "working directory cannot be determined"
1361: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362: as_fn_error $? "pwd does not report name of working directory"
1363:
1364:
1.1 paf 1365: # Find the source files, if location was not specified.
1366: if test -z "$srcdir"; then
1367: ac_srcdir_defaulted=yes
1.150 moko 1368: # Try the directory containing this script, then the parent directory.
1369: ac_confdir=`$as_dirname -- "$as_myself" ||
1370: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371: X"$as_myself" : 'X\(//\)[^/]' \| \
1372: X"$as_myself" : 'X\(//\)$' \| \
1373: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1.237 ! moko 1374: printf "%s\n" X"$as_myself" |
1.150 moko 1375: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376: s//\1/
1377: q
1378: }
1379: /^X\(\/\/\)[^/].*/{
1380: s//\1/
1381: q
1382: }
1383: /^X\(\/\/\)$/{
1384: s//\1/
1385: q
1386: }
1387: /^X\(\/\).*/{
1388: s//\1/
1389: q
1390: }
1391: s/.*/./; q'`
1.1 paf 1392: srcdir=$ac_confdir
1.150 moko 1393: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 paf 1394: srcdir=..
1395: fi
1396: else
1397: ac_srcdir_defaulted=no
1398: fi
1.150 moko 1399: if test ! -r "$srcdir/$ac_unique_file"; then
1400: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1402: fi
1.237 ! moko 1403: ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1.150 moko 1404: ac_abs_confdir=`(
1405: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1406: pwd)`
1407: # When building in place, set srcdir=.
1408: if test "$ac_abs_confdir" = "$ac_pwd"; then
1409: srcdir=.
1410: fi
1411: # Remove unnecessary trailing slashes from srcdir.
1412: # Double slashes in file names in object file debugging info
1413: # mess up M-x gdb in Emacs.
1414: case $srcdir in
1415: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416: esac
1417: for ac_var in $ac_precious_vars; do
1418: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419: eval ac_env_${ac_var}_value=\$${ac_var}
1420: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422: done
1.62 paf 1423:
1424: #
1425: # Report the --help message.
1426: #
1427: if test "$ac_init_help" = "long"; then
1428: # Omit some internal or obsolete options to make the list less imposing.
1429: # This message is too long to be a string in the A/UX 3.1 sh.
1430: cat <<_ACEOF
1.237 ! moko 1431: 'configure' configures parser 3.5.2b to adapt to many kinds of systems.
1.62 paf 1432:
1433: Usage: $0 [OPTION]... [VAR=VALUE]...
1434:
1435: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436: VAR=VALUE. See below for descriptions of some of the useful variables.
1437:
1438: Defaults for the options are specified in brackets.
1439:
1440: Configuration:
1441: -h, --help display this help and exit
1442: --help=short display options specific to this package
1443: --help=recursive display the short help of all the included packages
1444: -V, --version display version information and exit
1.237 ! moko 1445: -q, --quiet, --silent do not print 'checking ...' messages
1.62 paf 1446: --cache-file=FILE cache test results in FILE [disabled]
1.237 ! moko 1447: -C, --config-cache alias for '--cache-file=config.cache'
1.62 paf 1448: -n, --no-create do not create output files
1.237 ! moko 1449: --srcdir=DIR find the sources in DIR [configure dir or '..']
1.62 paf 1450:
1451: Installation directories:
1452: --prefix=PREFIX install architecture-independent files in PREFIX
1.150 moko 1453: [$ac_default_prefix]
1.62 paf 1454: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.150 moko 1455: [PREFIX]
1.62 paf 1456:
1.237 ! moko 1457: By default, 'make install' will install all the files in
! 1458: '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
! 1459: an installation prefix other than '$ac_default_prefix' using '--prefix',
! 1460: for instance '--prefix=\$HOME'.
1.62 paf 1461:
1462: For better control, use the options below.
1463:
1464: Fine tuning of the installation directories:
1.150 moko 1465: --bindir=DIR user executables [EPREFIX/bin]
1466: --sbindir=DIR system admin executables [EPREFIX/sbin]
1467: --libexecdir=DIR program executables [EPREFIX/libexec]
1468: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.191 moko 1471: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.150 moko 1472: --libdir=DIR object code libraries [EPREFIX/lib]
1473: --includedir=DIR C header files [PREFIX/include]
1474: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477: --infodir=DIR info documentation [DATAROOTDIR/info]
1478: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479: --mandir=DIR man documentation [DATAROOTDIR/man]
1480: --docdir=DIR documentation root [DATAROOTDIR/doc/parser]
1481: --htmldir=DIR html documentation [DOCDIR]
1482: --dvidir=DIR dvi documentation [DOCDIR]
1483: --pdfdir=DIR pdf documentation [DOCDIR]
1484: --psdir=DIR ps documentation [DOCDIR]
1.62 paf 1485: _ACEOF
1486:
1487: cat <<\_ACEOF
1488:
1489: Program names:
1490: --program-prefix=PREFIX prepend PREFIX to installed program names
1491: --program-suffix=SUFFIX append SUFFIX to installed program names
1492: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1493:
1494: System types:
1495: --build=BUILD configure for building on BUILD [guessed]
1496: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1497: _ACEOF
1498: fi
1499:
1500: if test -n "$ac_init_help"; then
1.128 moko 1501: case $ac_init_help in
1.230 moko 1502: short | recursive ) echo "Configuration of parser 3.5.2b:";;
1.128 moko 1503: esac
1.62 paf 1504: cat <<\_ACEOF
1505:
1506: Optional Features:
1.150 moko 1507: --disable-option-checking ignore unrecognized --enable/--with options
1.62 paf 1508: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.187 moko 1510: --enable-silent-rules less verbose build output (undo: "make V=1")
1511: --disable-silent-rules verbose build output (undo: "make V=0")
1512: --enable-dependency-tracking
1513: do not reject slow dependency extractors
1514: --disable-dependency-tracking
1515: speeds up one-time build
1.67 paf 1516: --disable-safe-mode to enable reading and executing
1.62 paf 1517: files belonging to group+user other then effective
1.146 moko 1518: --disable-execs to disable any execs
1.62 paf 1519: (file::exec, file::cgi, unix mail:send)
1.195 moko 1520: --disable-stringstream to disable stringstream usage.
1521: when disabled table.save uses more memory, but more compilers are supported
1.237 ! moko 1522: --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
! 1523: both]
1.150 moko 1524: --enable-shared[=PKGS] build shared libraries [default=yes]
1525: --enable-static[=PKGS] build static libraries [default=yes]
1.128 moko 1526: --enable-fast-install[=PKGS]
1527: optimize for fast installation [default=yes]
1.237 ! moko 1528: --enable-aix-soname=aix|svr4|both
! 1529: shared library versioning (aka "SONAME") variant to
! 1530: provide on AIX, [default=aix].
1.128 moko 1531: --disable-libtool-lock avoid locking (might break parallel builds)
1532: --enable-ltdl-install install libltdl
1.171 moko 1533: --disable-largefile omit support for large files
1.237 ! moko 1534: --enable-year2038 support timestamps after 2038
1.62 paf 1535:
1536: Optional Packages:
1537: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.71 paf 1539: --with-build-warnings to enable build-time compiler warnings if gcc is used
1.185 moko 1540: --with-coverage to enable gcov code coverage support
1541: --with-profiler to enable gprof code profiler support
1.67 paf 1542: --with-assertions to enable assertions
1.201 moko 1543: --with-sjlj-exceptions to enable simple 'throw' from dynamic library
1544: --with-system-cfg=FILE to specify system-wide auto.p
1545: --with-gc=DIR DIR is the directory where
1.142 moko 1546: Boehm garbage collecting library is installed
1.201 moko 1547: --with-pcre=DIR DIR is the directory where
1.142 moko 1548: PCRE library is installed
1.201 moko 1549: --with-xml=DIR DIR is the directory where
1.142 moko 1550: Gnome XML libraries are installed
1.201 moko 1551: --with-mailreceive=DIR is the directory where
1.154 moko 1552: Gnome MIME library is installed
1.232 moko 1553: --with-amqp=DIR DIR is the directory where
1554: RabbitMQ C library (librabbitmq) is installed
1.62 paf 1555: \"--with-sendmail=COMMAND\" forces this command to send mail.
1556: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
1557: (makes parser ignore user-defined sendmail commands)
1.146 moko 1558: --with-apache=FILE FILE is the full path for APXS
1.122 moko 1559: builds apache DSO module using apxs
1.128 moko 1560: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1.237 ! moko 1561: --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
! 1562: compiler's sysroot if not specified).
1.128 moko 1563: --with-included-ltdl use the GNU ltdl sources included here
1564: --with-ltdl-include=DIR use the ltdl headers installed in DIR
1565: --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1.62 paf 1566:
1567: Some influential environment variables:
1.237 ! moko 1568: YACC The 'Yet Another Compiler Compiler' implementation to use.
! 1569: Defaults to the first program found out of: 'bison -y', 'byacc',
! 1570: 'yacc'.
1.150 moko 1571: YFLAGS The list of arguments that will be passed by default to $YACC.
1572: This script will default YFLAGS to the empty string to avoid a
1.237 ! moko 1573: default value of '-d' given by some make applications.
1.66 paf 1574: CXX C++ compiler command
1575: CXXFLAGS C++ compiler flags
1.62 paf 1576: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577: nonstandard directory <lib dir>
1.150 moko 1578: LIBS libraries to pass to the linker, e.g. -l<library>
1579: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1580: you have headers in a nonstandard directory <include dir>
1.66 paf 1581: CC C compiler command
1582: CFLAGS C compiler flags
1.237 ! moko 1583: LT_SYS_LIBRARY_PATH
! 1584: User-defined run-time library search path.
1.128 moko 1585: CXXCPP C++ preprocessor
1.62 paf 1586:
1.237 ! moko 1587: Use these variables to override the choices made by 'configure' or to help
1.62 paf 1588: it to find libraries and programs with nonstandard names/locations.
1589:
1.150 moko 1590: Report bugs to the package provider.
1.62 paf 1591: _ACEOF
1.150 moko 1592: ac_status=$?
1.62 paf 1593: fi
1594:
1595: if test "$ac_init_help" = "recursive"; then
1596: # If there are subdirs, report their specific --help.
1597: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.150 moko 1598: test -d "$ac_dir" ||
1599: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600: continue
1.62 paf 1601: ac_builddir=.
1602:
1.150 moko 1603: case "$ac_dir" in
1604: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605: *)
1.237 ! moko 1606: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.150 moko 1607: # A ".." for each directory in $ac_dir_suffix.
1.237 ! moko 1608: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.150 moko 1609: case $ac_top_builddir_sub in
1610: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612: esac ;;
1613: esac
1614: ac_abs_top_builddir=$ac_pwd
1615: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616: # for backward compatibility:
1617: ac_top_builddir=$ac_top_build_prefix
1.62 paf 1618:
1619: case $srcdir in
1.150 moko 1620: .) # We are building in place.
1.62 paf 1621: ac_srcdir=.
1.150 moko 1622: ac_top_srcdir=$ac_top_builddir_sub
1623: ac_abs_top_srcdir=$ac_pwd ;;
1624: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 1625: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 1626: ac_top_srcdir=$srcdir
1627: ac_abs_top_srcdir=$srcdir ;;
1628: *) # Relative name.
1629: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630: ac_top_srcdir=$ac_top_build_prefix$srcdir
1631: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 1632: esac
1.150 moko 1633: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.62 paf 1634:
1.150 moko 1635: cd "$ac_dir" || { ac_status=$?; continue; }
1.237 ! moko 1636: # Check for configure.gnu first; this name is used for a wrapper for
! 1637: # Metaconfig's "Configure" on case-insensitive file systems.
1.150 moko 1638: if test -f "$ac_srcdir/configure.gnu"; then
1639: echo &&
1640: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1641: elif test -f "$ac_srcdir/configure"; then
1642: echo &&
1643: $SHELL "$ac_srcdir/configure" --help=recursive
1.62 paf 1644: else
1.237 ! moko 1645: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.150 moko 1646: fi || ac_status=$?
1647: cd "$ac_pwd" || { ac_status=$?; break; }
1.62 paf 1648: done
1649: fi
1650:
1.150 moko 1651: test -n "$ac_init_help" && exit $ac_status
1.62 paf 1652: if $ac_init_version; then
1653: cat <<\_ACEOF
1.230 moko 1654: parser configure 3.5.2b
1.237 ! moko 1655: generated by GNU Autoconf 2.72
1.62 paf 1656:
1.237 ! moko 1657: Copyright (C) 2023 Free Software Foundation, Inc.
1.62 paf 1658: This configure script is free software; the Free Software Foundation
1659: gives unlimited permission to copy, distribute and modify it.
1660: _ACEOF
1.150 moko 1661: exit
1.62 paf 1662: fi
1663:
1.150 moko 1664: ## ------------------------ ##
1665: ## Autoconf initialization. ##
1666: ## ------------------------ ##
1667:
1668: # ac_fn_cxx_try_compile LINENO
1669: # ----------------------------
1670: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671: ac_fn_cxx_try_compile ()
1.62 paf 1672: {
1.150 moko 1673: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 ! moko 1674: rm -f conftest.$ac_objext conftest.beam
1.150 moko 1675: if { { ac_try="$ac_compile"
1676: case "(($ac_try" in
1677: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678: *) ac_try_echo=$ac_try;;
1679: esac
1680: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 ! moko 1681: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1682: (eval "$ac_compile") 2>conftest.err
1683: ac_status=$?
1684: if test -s conftest.err; then
1685: grep -v '^ *+' conftest.err >conftest.er1
1686: cat conftest.er1 >&5
1687: mv -f conftest.er1 conftest.err
1688: fi
1.237 ! moko 1689: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1690: test $ac_status = 0; } && {
1691: test -z "$ac_cxx_werror_flag" ||
1692: test ! -s conftest.err
1.237 ! moko 1693: } && test -s conftest.$ac_objext
! 1694: then :
1.150 moko 1695: ac_retval=0
1.237 ! moko 1696: else case e in #(
! 1697: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1698: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 1699:
1.237 ! moko 1700: ac_retval=1 ;;
! 1701: esac
1.150 moko 1702: fi
1703: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704: as_fn_set_status $ac_retval
1.62 paf 1705:
1.150 moko 1706: } # ac_fn_cxx_try_compile
1707:
1708: # ac_fn_c_try_compile LINENO
1709: # --------------------------
1710: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1711: ac_fn_c_try_compile ()
1712: {
1713: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 ! moko 1714: rm -f conftest.$ac_objext conftest.beam
1.150 moko 1715: if { { ac_try="$ac_compile"
1716: case "(($ac_try" in
1717: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718: *) ac_try_echo=$ac_try;;
1719: esac
1720: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 ! moko 1721: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1722: (eval "$ac_compile") 2>conftest.err
1723: ac_status=$?
1724: if test -s conftest.err; then
1725: grep -v '^ *+' conftest.err >conftest.er1
1726: cat conftest.er1 >&5
1727: mv -f conftest.er1 conftest.err
1728: fi
1.237 ! moko 1729: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1730: test $ac_status = 0; } && {
1731: test -z "$ac_c_werror_flag" ||
1732: test ! -s conftest.err
1.237 ! moko 1733: } && test -s conftest.$ac_objext
! 1734: then :
1.150 moko 1735: ac_retval=0
1.237 ! moko 1736: else case e in #(
! 1737: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1738: sed 's/^/| /' conftest.$ac_ext >&5
1739:
1.237 ! moko 1740: ac_retval=1 ;;
! 1741: esac
1.150 moko 1742: fi
1743: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744: as_fn_set_status $ac_retval
1745:
1746: } # ac_fn_c_try_compile
1747:
1748: # ac_fn_c_try_link LINENO
1749: # -----------------------
1750: # Try to link conftest.$ac_ext, and return whether this succeeded.
1751: ac_fn_c_try_link ()
1752: {
1753: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 ! moko 1754: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.150 moko 1755: if { { ac_try="$ac_link"
1756: case "(($ac_try" in
1757: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758: *) ac_try_echo=$ac_try;;
1759: esac
1760: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 ! moko 1761: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1762: (eval "$ac_link") 2>conftest.err
1763: ac_status=$?
1764: if test -s conftest.err; then
1765: grep -v '^ *+' conftest.err >conftest.er1
1766: cat conftest.er1 >&5
1767: mv -f conftest.er1 conftest.err
1768: fi
1.237 ! moko 1769: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1770: test $ac_status = 0; } && {
1771: test -z "$ac_c_werror_flag" ||
1772: test ! -s conftest.err
1773: } && test -s conftest$ac_exeext && {
1774: test "$cross_compiling" = yes ||
1.166 moko 1775: test -x conftest$ac_exeext
1.237 ! moko 1776: }
! 1777: then :
1.150 moko 1778: ac_retval=0
1.237 ! moko 1779: else case e in #(
! 1780: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1781: sed 's/^/| /' conftest.$ac_ext >&5
1782:
1.237 ! moko 1783: ac_retval=1 ;;
! 1784: esac
1.150 moko 1785: fi
1786: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788: # interfere with the next link command; also delete a directory that is
1789: # left behind by Apple's compiler. We do this before executing the actions.
1790: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792: as_fn_set_status $ac_retval
1793:
1794: } # ac_fn_c_try_link
1795:
1796: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797: # -------------------------------------------------------
1798: # Tests whether HEADER exists and can be compiled using the include files in
1799: # INCLUDES, setting the cache variable VAR accordingly.
1800: ac_fn_c_check_header_compile ()
1801: {
1802: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 ! moko 1803: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1804: printf %s "checking for $2... " >&6; }
! 1805: if eval test \${$3+y}
! 1806: then :
! 1807: printf %s "(cached) " >&6
! 1808: else case e in #(
! 1809: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.150 moko 1810: /* end confdefs.h. */
1811: $4
1812: #include <$2>
1813: _ACEOF
1.237 ! moko 1814: if ac_fn_c_try_compile "$LINENO"
! 1815: then :
1.150 moko 1816: eval "$3=yes"
1.237 ! moko 1817: else case e in #(
! 1818: e) eval "$3=no" ;;
! 1819: esac
1.150 moko 1820: fi
1.237 ! moko 1821: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
! 1822: esac
1.150 moko 1823: fi
1824: eval ac_res=\$$3
1.237 ! moko 1825: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1826: printf "%s\n" "$ac_res" >&6; }
1.150 moko 1827: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828:
1829: } # ac_fn_c_check_header_compile
1830:
1831: # ac_fn_c_check_func LINENO FUNC VAR
1832: # ----------------------------------
1833: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1834: ac_fn_c_check_func ()
1835: {
1836: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 ! moko 1837: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1838: printf %s "checking for $2... " >&6; }
! 1839: if eval test \${$3+y}
! 1840: then :
! 1841: printf %s "(cached) " >&6
! 1842: else case e in #(
! 1843: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.150 moko 1844: /* end confdefs.h. */
1845: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1847: #define $2 innocuous_$2
1848:
1849: /* System header to define __stub macros and hopefully few prototypes,
1.237 ! moko 1850: which can conflict with char $2 (void); below. */
1.150 moko 1851:
1.237 ! moko 1852: #include <limits.h>
1.150 moko 1853: #undef $2
1854:
1855: /* Override any GCC internal prototype to avoid an error.
1856: Use char because int might match the return type of a GCC
1857: builtin and then its argument prototype would still apply. */
1858: #ifdef __cplusplus
1859: extern "C"
1860: #endif
1.237 ! moko 1861: char $2 (void);
1.150 moko 1862: /* The GNU C library defines this for functions which it implements
1863: to always fail with ENOSYS. Some functions are actually named
1864: something starting with __ and the normal name is an alias. */
1865: #if defined __stub_$2 || defined __stub___$2
1866: choke me
1867: #endif
1868:
1869: int
1.237 ! moko 1870: main (void)
1.150 moko 1871: {
1872: return $2 ();
1873: ;
1874: return 0;
1875: }
1876: _ACEOF
1.237 ! moko 1877: if ac_fn_c_try_link "$LINENO"
! 1878: then :
1.150 moko 1879: eval "$3=yes"
1.237 ! moko 1880: else case e in #(
! 1881: e) eval "$3=no" ;;
! 1882: esac
1.150 moko 1883: fi
1.237 ! moko 1884: rm -f core conftest.err conftest.$ac_objext conftest.beam \
! 1885: conftest$ac_exeext conftest.$ac_ext ;;
! 1886: esac
1.150 moko 1887: fi
1888: eval ac_res=\$$3
1.237 ! moko 1889: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1890: printf "%s\n" "$ac_res" >&6; }
1.150 moko 1891: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892:
1893: } # ac_fn_c_check_func
1894:
1895: # ac_fn_cxx_try_cpp LINENO
1896: # ------------------------
1897: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1898: ac_fn_cxx_try_cpp ()
1899: {
1900: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901: if { { ac_try="$ac_cpp conftest.$ac_ext"
1902: case "(($ac_try" in
1903: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904: *) ac_try_echo=$ac_try;;
1905: esac
1906: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 ! moko 1907: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1908: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1909: ac_status=$?
1910: if test -s conftest.err; then
1911: grep -v '^ *+' conftest.err >conftest.er1
1912: cat conftest.er1 >&5
1913: mv -f conftest.er1 conftest.err
1914: fi
1.237 ! moko 1915: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1916: test $ac_status = 0; } > conftest.i && {
1917: test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1918: test ! -s conftest.err
1.237 ! moko 1919: }
! 1920: then :
1.150 moko 1921: ac_retval=0
1.237 ! moko 1922: else case e in #(
! 1923: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1924: sed 's/^/| /' conftest.$ac_ext >&5
1925:
1.237 ! moko 1926: ac_retval=1 ;;
! 1927: esac
1.150 moko 1928: fi
1929: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930: as_fn_set_status $ac_retval
1931:
1932: } # ac_fn_cxx_try_cpp
1933:
1934: # ac_fn_cxx_try_link LINENO
1935: # -------------------------
1936: # Try to link conftest.$ac_ext, and return whether this succeeded.
1937: ac_fn_cxx_try_link ()
1938: {
1939: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 ! moko 1940: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.150 moko 1941: if { { ac_try="$ac_link"
1942: case "(($ac_try" in
1943: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944: *) ac_try_echo=$ac_try;;
1945: esac
1946: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 ! moko 1947: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 1948: (eval "$ac_link") 2>conftest.err
1949: ac_status=$?
1950: if test -s conftest.err; then
1951: grep -v '^ *+' conftest.err >conftest.er1
1952: cat conftest.er1 >&5
1953: mv -f conftest.er1 conftest.err
1954: fi
1.237 ! moko 1955: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 1956: test $ac_status = 0; } && {
1957: test -z "$ac_cxx_werror_flag" ||
1958: test ! -s conftest.err
1959: } && test -s conftest$ac_exeext && {
1960: test "$cross_compiling" = yes ||
1.166 moko 1961: test -x conftest$ac_exeext
1.237 ! moko 1962: }
! 1963: then :
1.150 moko 1964: ac_retval=0
1.237 ! moko 1965: else case e in #(
! 1966: e) printf "%s\n" "$as_me: failed program was:" >&5
1.150 moko 1967: sed 's/^/| /' conftest.$ac_ext >&5
1968:
1.237 ! moko 1969: ac_retval=1 ;;
! 1970: esac
1.150 moko 1971: fi
1972: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1973: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1974: # interfere with the next link command; also delete a directory that is
1975: # left behind by Apple's compiler. We do this before executing the actions.
1976: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978: as_fn_set_status $ac_retval
1979:
1980: } # ac_fn_cxx_try_link
1981:
1.237 ! moko 1982: # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
! 1983: # ------------------------------------------------------------------
1.150 moko 1984: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1.237 ! moko 1985: # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
! 1986: ac_fn_check_decl ()
1.150 moko 1987: {
1988: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989: as_decl_name=`echo $2|sed 's/ *(.*//'`
1.237 ! moko 1990: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
! 1991: printf %s "checking whether $as_decl_name is declared... " >&6; }
! 1992: if eval test \${$3+y}
! 1993: then :
! 1994: printf %s "(cached) " >&6
! 1995: else case e in #(
! 1996: e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
! 1997: eval ac_save_FLAGS=\$$6
! 1998: as_fn_append $6 " $5"
1.150 moko 1999: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000: /* end confdefs.h. */
2001: $4
2002: int
1.237 ! moko 2003: main (void)
1.150 moko 2004: {
2005: #ifndef $as_decl_name
2006: #ifdef __cplusplus
2007: (void) $as_decl_use;
2008: #else
2009: (void) $as_decl_name;
2010: #endif
2011: #endif
2012:
2013: ;
2014: return 0;
2015: }
2016: _ACEOF
1.237 ! moko 2017: if ac_fn_c_try_compile "$LINENO"
! 2018: then :
1.150 moko 2019: eval "$3=yes"
1.237 ! moko 2020: else case e in #(
! 2021: e) eval "$3=no" ;;
! 2022: esac
1.150 moko 2023: fi
1.237 ! moko 2024: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 2025: eval $6=\$ac_save_FLAGS
! 2026: ;;
! 2027: esac
1.150 moko 2028: fi
2029: eval ac_res=\$$3
1.237 ! moko 2030: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 2031: printf "%s\n" "$ac_res" >&6; }
1.150 moko 2032: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033:
1.237 ! moko 2034: } # ac_fn_check_decl
1.150 moko 2035:
2036: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2037: # -------------------------------------------
2038: # Tests whether TYPE exists after having included INCLUDES, setting cache
2039: # variable VAR accordingly.
2040: ac_fn_c_check_type ()
2041: {
2042: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 ! moko 2043: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 2044: printf %s "checking for $2... " >&6; }
! 2045: if eval test \${$3+y}
! 2046: then :
! 2047: printf %s "(cached) " >&6
! 2048: else case e in #(
! 2049: e) eval "$3=no"
1.150 moko 2050: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051: /* end confdefs.h. */
2052: $4
2053: int
1.237 ! moko 2054: main (void)
1.150 moko 2055: {
2056: if (sizeof ($2))
2057: return 0;
2058: ;
2059: return 0;
2060: }
2061: _ACEOF
1.237 ! moko 2062: if ac_fn_c_try_compile "$LINENO"
! 2063: then :
1.150 moko 2064: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065: /* end confdefs.h. */
2066: $4
2067: int
1.237 ! moko 2068: main (void)
1.150 moko 2069: {
2070: if (sizeof (($2)))
2071: return 0;
2072: ;
2073: return 0;
2074: }
2075: _ACEOF
1.237 ! moko 2076: if ac_fn_c_try_compile "$LINENO"
! 2077: then :
1.150 moko 2078:
1.237 ! moko 2079: else case e in #(
! 2080: e) eval "$3=yes" ;;
! 2081: esac
1.150 moko 2082: fi
1.237 ! moko 2083: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 2084: fi
1.237 ! moko 2085: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
! 2086: esac
1.150 moko 2087: fi
2088: eval ac_res=\$$3
1.237 ! moko 2089: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 2090: printf "%s\n" "$ac_res" >&6; }
1.150 moko 2091: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092:
2093: } # ac_fn_c_check_type
2094:
1.237 ! moko 2095: # ac_fn_c_try_run LINENO
! 2096: # ----------------------
! 2097: # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
! 2098: # executables *can* be run.
! 2099: ac_fn_c_try_run ()
! 2100: {
! 2101: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 2102: if { { ac_try="$ac_link"
! 2103: case "(($ac_try" in
! 2104: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2105: *) ac_try_echo=$ac_try;;
! 2106: esac
! 2107: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2108: printf "%s\n" "$ac_try_echo"; } >&5
! 2109: (eval "$ac_link") 2>&5
! 2110: ac_status=$?
! 2111: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2112: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
! 2113: { { case "(($ac_try" in
! 2114: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 2115: *) ac_try_echo=$ac_try;;
! 2116: esac
! 2117: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
! 2118: printf "%s\n" "$ac_try_echo"; } >&5
! 2119: (eval "$ac_try") 2>&5
! 2120: ac_status=$?
! 2121: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 2122: test $ac_status = 0; }; }
! 2123: then :
! 2124: ac_retval=0
! 2125: else case e in #(
! 2126: e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
! 2127: printf "%s\n" "$as_me: failed program was:" >&5
! 2128: sed 's/^/| /' conftest.$ac_ext >&5
! 2129:
! 2130: ac_retval=$ac_status ;;
! 2131: esac
! 2132: fi
! 2133: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
! 2134: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
! 2135: as_fn_set_status $ac_retval
! 2136:
! 2137: } # ac_fn_c_try_run
! 2138:
1.156 moko 2139: # ac_fn_c_find_uintX_t LINENO BITS VAR
2140: # ------------------------------------
2141: # Finds an unsigned integer type with width BITS, setting cache variable VAR
2142: # accordingly.
2143: ac_fn_c_find_uintX_t ()
2144: {
2145: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 ! moko 2146: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
! 2147: printf %s "checking for uint$2_t... " >&6; }
! 2148: if eval test \${$3+y}
! 2149: then :
! 2150: printf %s "(cached) " >&6
! 2151: else case e in #(
! 2152: e) eval "$3=no"
1.156 moko 2153: # Order is important - never check a type that is potentially smaller
2154: # than half of the expected target width.
2155: for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2156: 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2157: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158: /* end confdefs.h. */
2159: $ac_includes_default
2160: int
1.237 ! moko 2161: main (void)
1.156 moko 2162: {
2163: static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1.166 moko 2164: test_array [0] = 0;
2165: return test_array [0];
1.156 moko 2166:
2167: ;
2168: return 0;
2169: }
2170: _ACEOF
1.237 ! moko 2171: if ac_fn_c_try_compile "$LINENO"
! 2172: then :
1.156 moko 2173: case $ac_type in #(
2174: uint$2_t) :
2175: eval "$3=yes" ;; #(
2176: *) :
2177: eval "$3=\$ac_type" ;;
2178: esac
2179: fi
1.237 ! moko 2180: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 2181: if eval test \"x\$"$3"\" = x"no"
! 2182: then :
1.156 moko 2183:
1.237 ! moko 2184: else case e in #(
! 2185: e) break ;;
! 2186: esac
1.156 moko 2187: fi
1.237 ! moko 2188: done ;;
! 2189: esac
1.156 moko 2190: fi
2191: eval ac_res=\$$3
1.237 ! moko 2192: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 2193: printf "%s\n" "$ac_res" >&6; }
1.156 moko 2194: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195:
2196: } # ac_fn_c_find_uintX_t
2197:
1.234 moko 2198: # ac_fn_c_find_intX_t LINENO BITS VAR
2199: # -----------------------------------
2200: # Finds a signed integer type with width BITS, setting cache variable VAR
2201: # accordingly.
2202: ac_fn_c_find_intX_t ()
2203: {
2204: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 ! moko 2205: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
! 2206: printf %s "checking for int$2_t... " >&6; }
! 2207: if eval test \${$3+y}
! 2208: then :
! 2209: printf %s "(cached) " >&6
! 2210: else case e in #(
! 2211: e) eval "$3=no"
1.234 moko 2212: # Order is important - never check a type that is potentially smaller
2213: # than half of the expected target width.
2214: for ac_type in int$2_t 'int' 'long int' \
2215: 'long long int' 'short int' 'signed char'; do
2216: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217: /* end confdefs.h. */
2218: $ac_includes_default
2219: enum { N = $2 / 2 - 1 };
2220: int
1.237 ! moko 2221: main (void)
1.234 moko 2222: {
2223: static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2224: test_array [0] = 0;
2225: return test_array [0];
2226:
2227: ;
2228: return 0;
2229: }
2230: _ACEOF
1.237 ! moko 2231: if ac_fn_c_try_compile "$LINENO"
! 2232: then :
1.234 moko 2233: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234: /* end confdefs.h. */
2235: $ac_includes_default
2236: enum { N = $2 / 2 - 1 };
2237: int
1.237 ! moko 2238: main (void)
1.234 moko 2239: {
2240: static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2241: < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2242: test_array [0] = 0;
2243: return test_array [0];
2244:
2245: ;
2246: return 0;
2247: }
2248: _ACEOF
1.237 ! moko 2249: if ac_fn_c_try_compile "$LINENO"
! 2250: then :
1.234 moko 2251:
1.237 ! moko 2252: else case e in #(
! 2253: e) case $ac_type in #(
1.234 moko 2254: int$2_t) :
2255: eval "$3=yes" ;; #(
2256: *) :
2257: eval "$3=\$ac_type" ;;
1.237 ! moko 2258: esac ;;
1.234 moko 2259: esac
2260: fi
1.237 ! moko 2261: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.234 moko 2262: fi
1.237 ! moko 2263: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 2264: if eval test \"x\$"$3"\" = x"no"
! 2265: then :
1.234 moko 2266:
1.237 ! moko 2267: else case e in #(
! 2268: e) break ;;
! 2269: esac
1.234 moko 2270: fi
1.237 ! moko 2271: done ;;
! 2272: esac
1.234 moko 2273: fi
2274: eval ac_res=\$$3
1.237 ! moko 2275: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 2276: printf "%s\n" "$ac_res" >&6; }
1.234 moko 2277: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278:
2279: } # ac_fn_c_find_intX_t
2280:
1.161 moko 2281: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2282: # ----------------------------------------------------
2283: # Tries to find if the field MEMBER exists in type AGGR, after including
2284: # INCLUDES, setting cache variable VAR accordingly.
2285: ac_fn_c_check_member ()
2286: {
2287: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 ! moko 2288: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
! 2289: printf %s "checking for $2.$3... " >&6; }
! 2290: if eval test \${$4+y}
! 2291: then :
! 2292: printf %s "(cached) " >&6
! 2293: else case e in #(
! 2294: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.161 moko 2295: /* end confdefs.h. */
2296: $5
2297: int
1.237 ! moko 2298: main (void)
1.161 moko 2299: {
2300: static $2 ac_aggr;
2301: if (ac_aggr.$3)
2302: return 0;
2303: ;
2304: return 0;
2305: }
2306: _ACEOF
1.237 ! moko 2307: if ac_fn_c_try_compile "$LINENO"
! 2308: then :
1.161 moko 2309: eval "$4=yes"
1.237 ! moko 2310: else case e in #(
! 2311: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.161 moko 2312: /* end confdefs.h. */
2313: $5
2314: int
1.237 ! moko 2315: main (void)
1.161 moko 2316: {
2317: static $2 ac_aggr;
2318: if (sizeof ac_aggr.$3)
2319: return 0;
2320: ;
2321: return 0;
2322: }
2323: _ACEOF
1.237 ! moko 2324: if ac_fn_c_try_compile "$LINENO"
! 2325: then :
1.161 moko 2326: eval "$4=yes"
1.237 ! moko 2327: else case e in #(
! 2328: e) eval "$4=no" ;;
! 2329: esac
1.161 moko 2330: fi
1.237 ! moko 2331: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
! 2332: esac
1.161 moko 2333: fi
1.237 ! moko 2334: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
! 2335: esac
1.161 moko 2336: fi
2337: eval ac_res=\$$4
1.237 ! moko 2338: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 2339: printf "%s\n" "$ac_res" >&6; }
1.161 moko 2340: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341:
2342: } # ac_fn_c_check_member
1.237 ! moko 2343: ac_configure_args_raw=
! 2344: for ac_arg
! 2345: do
! 2346: case $ac_arg in
! 2347: *\'*)
! 2348: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
! 2349: esac
! 2350: as_fn_append ac_configure_args_raw " '$ac_arg'"
! 2351: done
! 2352:
! 2353: case $ac_configure_args_raw in
! 2354: *$as_nl*)
! 2355: ac_safe_unquote= ;;
! 2356: *)
! 2357: ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
! 2358: ac_unsafe_a="$ac_unsafe_z#~"
! 2359: ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
! 2360: ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
! 2361: esac
! 2362:
! 2363: cat >config.log <<_ACEOF
! 2364: This file contains any messages produced by compilers while
! 2365: running configure, to aid debugging if configure makes a mistake.
! 2366:
! 2367: It was created by parser $as_me 3.5.2b, which was
! 2368: generated by GNU Autoconf 2.72. Invocation command line was
! 2369:
! 2370: $ $0$ac_configure_args_raw
1.161 moko 2371:
1.237 ! moko 2372: _ACEOF
! 2373: exec 5>>config.log
1.150 moko 2374: {
1.237 ! moko 2375: cat <<_ASUNAME
! 2376: ## --------- ##
! 2377: ## Platform. ##
! 2378: ## --------- ##
1.150 moko 2379:
2380: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2381: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2382: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2383: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2384: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2385:
2386: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2387: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.62 paf 2388:
2389: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2390: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2391: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.150 moko 2392: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.62 paf 2393: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2394: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2395: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2396:
2397: _ASUNAME
2398:
2399: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400: for as_dir in $PATH
2401: do
2402: IFS=$as_save_IFS
1.237 ! moko 2403: case $as_dir in #(((
! 2404: '') as_dir=./ ;;
! 2405: */) ;;
! 2406: *) as_dir=$as_dir/ ;;
! 2407: esac
! 2408: printf "%s\n" "PATH: $as_dir"
1.150 moko 2409: done
2410: IFS=$as_save_IFS
1.1 paf 2411:
1.62 paf 2412: } >&5
2413:
2414: cat >&5 <<_ACEOF
2415:
2416:
2417: ## ----------- ##
2418: ## Core tests. ##
2419: ## ----------- ##
2420:
2421: _ACEOF
2422:
2423:
2424: # Keep a trace of the command line.
2425: # Strip out --no-create and --no-recursion so they do not pile up.
2426: # Strip out --silent because we don't want to record it for future runs.
2427: # Also quote any args containing shell meta-characters.
2428: # Make two passes to allow for proper duplicate-argument suppression.
2429: ac_configure_args=
2430: ac_configure_args0=
2431: ac_configure_args1=
2432: ac_must_keep_next=false
2433: for ac_pass in 1 2
2434: do
2435: for ac_arg
2436: do
2437: case $ac_arg in
2438: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2439: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2440: | -silent | --silent | --silen | --sile | --sil)
2441: continue ;;
1.150 moko 2442: *\'*)
1.237 ! moko 2443: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 2444: esac
2445: case $ac_pass in
1.150 moko 2446: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1.62 paf 2447: 2)
1.150 moko 2448: as_fn_append ac_configure_args1 " '$ac_arg'"
1.62 paf 2449: if test $ac_must_keep_next = true; then
1.86 paf 2450: ac_must_keep_next=false # Got value, back to normal.
1.62 paf 2451: else
1.86 paf 2452: case $ac_arg in
2453: *=* | --config-cache | -C | -disable-* | --disable-* \
2454: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2455: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2456: | -with-* | --with-* | -without-* | --without-* | --x)
2457: case "$ac_configure_args0 " in
2458: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2459: esac
2460: ;;
2461: -* ) ac_must_keep_next=true ;;
2462: esac
1.62 paf 2463: fi
1.150 moko 2464: as_fn_append ac_configure_args " '$ac_arg'"
1.62 paf 2465: ;;
2466: esac
2467: done
2468: done
1.150 moko 2469: { ac_configure_args0=; unset ac_configure_args0;}
2470: { ac_configure_args1=; unset ac_configure_args1;}
1.62 paf 2471:
2472: # When interrupted or exit'd, cleanup temporary files, and complete
2473: # config.log. We remove comments because anyway the quotes in there
2474: # would cause problems or look ugly.
1.150 moko 2475: # WARNING: Use '\'' to represent an apostrophe within the trap.
2476: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.62 paf 2477: trap 'exit_status=$?
1.237 ! moko 2478: # Sanitize IFS.
! 2479: IFS=" "" $as_nl"
1.62 paf 2480: # Save into config.log some information that might help in debugging.
2481: {
2482: echo
2483:
1.237 ! moko 2484: printf "%s\n" "## ---------------- ##
1.62 paf 2485: ## Cache variables. ##
1.150 moko 2486: ## ---------------- ##"
1.62 paf 2487: echo
2488: # The following way of writing the cache mishandles newlines in values,
1.150 moko 2489: (
2490: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2491: eval ac_val=\$$ac_var
2492: case $ac_val in #(
2493: *${as_nl}*)
2494: case $ac_var in #(
1.237 ! moko 2495: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 2496: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.150 moko 2497: esac
2498: case $ac_var in #(
2499: _ | IFS | as_nl) ;; #(
2500: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2501: *) { eval $ac_var=; unset $ac_var;} ;;
2502: esac ;;
2503: esac
2504: done
1.62 paf 2505: (set) 2>&1 |
1.150 moko 2506: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2507: *${as_nl}ac_space=\ *)
1.62 paf 2508: sed -n \
1.150 moko 2509: "s/'\''/'\''\\\\'\'''\''/g;
2510: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2511: ;; #(
1.62 paf 2512: *)
1.150 moko 2513: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 2514: ;;
1.150 moko 2515: esac |
2516: sort
2517: )
1.62 paf 2518: echo
2519:
1.237 ! moko 2520: printf "%s\n" "## ----------------- ##
1.62 paf 2521: ## Output variables. ##
1.150 moko 2522: ## ----------------- ##"
1.62 paf 2523: echo
2524: for ac_var in $ac_subst_vars
2525: do
1.150 moko 2526: eval ac_val=\$$ac_var
2527: case $ac_val in
1.237 ! moko 2528: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.150 moko 2529: esac
1.237 ! moko 2530: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.62 paf 2531: done | sort
2532: echo
2533:
2534: if test -n "$ac_subst_files"; then
1.237 ! moko 2535: printf "%s\n" "## ------------------- ##
1.150 moko 2536: ## File substitutions. ##
2537: ## ------------------- ##"
1.62 paf 2538: echo
2539: for ac_var in $ac_subst_files
2540: do
1.150 moko 2541: eval ac_val=\$$ac_var
2542: case $ac_val in
1.237 ! moko 2543: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.150 moko 2544: esac
1.237 ! moko 2545: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.62 paf 2546: done | sort
2547: echo
2548: fi
2549:
2550: if test -s confdefs.h; then
1.237 ! moko 2551: printf "%s\n" "## ----------- ##
1.62 paf 2552: ## confdefs.h. ##
1.150 moko 2553: ## ----------- ##"
1.62 paf 2554: echo
1.150 moko 2555: cat confdefs.h
1.62 paf 2556: echo
2557: fi
2558: test "$ac_signal" != 0 &&
1.237 ! moko 2559: printf "%s\n" "$as_me: caught signal $ac_signal"
! 2560: printf "%s\n" "$as_me: exit $exit_status"
1.62 paf 2561: } >&5
1.150 moko 2562: rm -f core *.core core.conftest.* &&
2563: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.62 paf 2564: exit $exit_status
1.150 moko 2565: ' 0
1.62 paf 2566: for ac_signal in 1 2 13 15; do
1.150 moko 2567: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1.62 paf 2568: done
2569: ac_signal=0
2570:
2571: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.150 moko 2572: rm -f -r conftest* confdefs.h
2573:
1.237 ! moko 2574: printf "%s\n" "/* confdefs.h */" > confdefs.h
1.62 paf 2575:
2576: # Predefined preprocessor variables.
2577:
1.237 ! moko 2578: printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1.62 paf 2579:
1.237 ! moko 2580: printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1.62 paf 2581:
1.237 ! moko 2582: printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1.62 paf 2583:
1.237 ! moko 2584: printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1.62 paf 2585:
1.237 ! moko 2586: printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1.62 paf 2587:
1.237 ! moko 2588: printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1.62 paf 2589:
2590:
2591: # Let the site file select an alternate cache file if it wants to.
1.150 moko 2592: # Prefer an explicitly selected file to automatically selected ones.
2593: if test -n "$CONFIG_SITE"; then
1.237 ! moko 2594: ac_site_files="$CONFIG_SITE"
1.150 moko 2595: elif test "x$prefix" != xNONE; then
1.237 ! moko 2596: ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1.150 moko 2597: else
1.237 ! moko 2598: ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.150 moko 2599: fi
1.237 ! moko 2600:
! 2601: for ac_site_file in $ac_site_files
1.150 moko 2602: do
1.237 ! moko 2603: case $ac_site_file in #(
! 2604: */*) :
! 2605: ;; #(
! 2606: *) :
! 2607: ac_site_file=./$ac_site_file ;;
! 2608: esac
! 2609: if test -f "$ac_site_file" && test -r "$ac_site_file"; then
! 2610: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
! 2611: printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1.62 paf 2612: sed 's/^/| /' "$ac_site_file" >&5
1.150 moko 2613: . "$ac_site_file" \
1.237 ! moko 2614: || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
! 2615: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 2616: as_fn_error $? "failed to load site script $ac_site_file
1.237 ! moko 2617: See 'config.log' for more details" "$LINENO" 5; }
1.1 paf 2618: fi
2619: done
2620:
2621: if test -r "$cache_file"; then
1.150 moko 2622: # Some versions of bash will fail to source /dev/null (special files
2623: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2624: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1.237 ! moko 2625: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
! 2626: printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1.62 paf 2627: case $cache_file in
1.150 moko 2628: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2629: *) . "./$cache_file";;
1.62 paf 2630: esac
2631: fi
1.1 paf 2632: else
1.237 ! moko 2633: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
! 2634: printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1.62 paf 2635: >$cache_file
2636: fi
2637:
1.237 ! moko 2638: # Test code for whether the C++ compiler supports C++98 (global declarations)
! 2639: ac_cxx_conftest_cxx98_globals='
! 2640: // Does the compiler advertise C++98 conformance?
! 2641: #if !defined __cplusplus || __cplusplus < 199711L
! 2642: # error "Compiler does not advertise C++98 conformance"
! 2643: #endif
! 2644:
! 2645: // These inclusions are to reject old compilers that
! 2646: // lack the unsuffixed header files.
! 2647: #include <cstdlib>
! 2648: #include <exception>
! 2649:
! 2650: // <cassert> and <cstring> are *not* freestanding headers in C++98.
! 2651: extern void assert (int);
! 2652: namespace std {
! 2653: extern int strcmp (const char *, const char *);
! 2654: }
! 2655:
! 2656: // Namespaces, exceptions, and templates were all added after "C++ 2.0".
! 2657: using std::exception;
! 2658: using std::strcmp;
! 2659:
! 2660: namespace {
! 2661:
! 2662: void test_exception_syntax()
! 2663: {
! 2664: try {
! 2665: throw "test";
! 2666: } catch (const char *s) {
! 2667: // Extra parentheses suppress a warning when building autoconf itself,
! 2668: // due to lint rules shared with more typical C programs.
! 2669: assert (!(strcmp) (s, "test"));
! 2670: }
! 2671: }
! 2672:
! 2673: template <typename T> struct test_template
! 2674: {
! 2675: T const val;
! 2676: explicit test_template(T t) : val(t) {}
! 2677: template <typename U> T add(U u) { return static_cast<T>(u) + val; }
! 2678: };
! 2679:
! 2680: } // anonymous namespace
! 2681: '
! 2682:
! 2683: # Test code for whether the C++ compiler supports C++98 (body of main)
! 2684: ac_cxx_conftest_cxx98_main='
! 2685: assert (argc);
! 2686: assert (! argv[0]);
! 2687: {
! 2688: test_exception_syntax ();
! 2689: test_template<double> tt (2.0);
! 2690: assert (tt.add (4) == 6.0);
! 2691: assert (true && !false);
! 2692: }
! 2693: '
! 2694:
! 2695: # Test code for whether the C++ compiler supports C++11 (global declarations)
! 2696: ac_cxx_conftest_cxx11_globals='
! 2697: // Does the compiler advertise C++ 2011 conformance?
! 2698: #if !defined __cplusplus || __cplusplus < 201103L
! 2699: # error "Compiler does not advertise C++11 conformance"
! 2700: #endif
! 2701:
! 2702: namespace cxx11test
! 2703: {
! 2704: constexpr int get_val() { return 20; }
! 2705:
! 2706: struct testinit
! 2707: {
! 2708: int i;
! 2709: double d;
! 2710: };
! 2711:
! 2712: class delegate
! 2713: {
! 2714: public:
! 2715: delegate(int n) : n(n) {}
! 2716: delegate(): delegate(2354) {}
! 2717:
! 2718: virtual int getval() { return this->n; };
! 2719: protected:
! 2720: int n;
! 2721: };
! 2722:
! 2723: class overridden : public delegate
! 2724: {
! 2725: public:
! 2726: overridden(int n): delegate(n) {}
! 2727: virtual int getval() override final { return this->n * 2; }
! 2728: };
! 2729:
! 2730: class nocopy
! 2731: {
! 2732: public:
! 2733: nocopy(int i): i(i) {}
! 2734: nocopy() = default;
! 2735: nocopy(const nocopy&) = delete;
! 2736: nocopy & operator=(const nocopy&) = delete;
! 2737: private:
! 2738: int i;
! 2739: };
! 2740:
! 2741: // for testing lambda expressions
! 2742: template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
! 2743: {
! 2744: return f(v);
! 2745: }
! 2746:
! 2747: // for testing variadic templates and trailing return types
! 2748: template <typename V> auto sum(V first) -> V
! 2749: {
! 2750: return first;
! 2751: }
! 2752: template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
! 2753: {
! 2754: return first + sum(rest...);
! 2755: }
! 2756: }
! 2757: '
! 2758:
! 2759: # Test code for whether the C++ compiler supports C++11 (body of main)
! 2760: ac_cxx_conftest_cxx11_main='
! 2761: {
! 2762: // Test auto and decltype
! 2763: auto a1 = 6538;
! 2764: auto a2 = 48573953.4;
! 2765: auto a3 = "String literal";
! 2766:
! 2767: int total = 0;
! 2768: for (auto i = a3; *i; ++i) { total += *i; }
! 2769:
! 2770: decltype(a2) a4 = 34895.034;
! 2771: }
! 2772: {
! 2773: // Test constexpr
! 2774: short sa[cxx11test::get_val()] = { 0 };
! 2775: }
! 2776: {
! 2777: // Test initializer lists
! 2778: cxx11test::testinit il = { 4323, 435234.23544 };
! 2779: }
! 2780: {
! 2781: // Test range-based for
! 2782: int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
! 2783: 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
! 2784: for (auto &x : array) { x += 23; }
! 2785: }
! 2786: {
! 2787: // Test lambda expressions
! 2788: using cxx11test::eval;
! 2789: assert (eval ([](int x) { return x*2; }, 21) == 42);
! 2790: double d = 2.0;
! 2791: assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
! 2792: assert (d == 5.0);
! 2793: assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
! 2794: assert (d == 5.0);
! 2795: }
! 2796: {
! 2797: // Test use of variadic templates
! 2798: using cxx11test::sum;
! 2799: auto a = sum(1);
! 2800: auto b = sum(1, 2);
! 2801: auto c = sum(1.0, 2.0, 3.0);
! 2802: }
! 2803: {
! 2804: // Test constructor delegation
! 2805: cxx11test::delegate d1;
! 2806: cxx11test::delegate d2();
! 2807: cxx11test::delegate d3(45);
! 2808: }
! 2809: {
! 2810: // Test override and final
! 2811: cxx11test::overridden o1(55464);
! 2812: }
! 2813: {
! 2814: // Test nullptr
! 2815: char *c = nullptr;
! 2816: }
! 2817: {
! 2818: // Test template brackets
! 2819: test_template<::test_template<int>> v(test_template<int>(12));
! 2820: }
! 2821: {
! 2822: // Unicode literals
! 2823: char const *utf8 = u8"UTF-8 string \u2500";
! 2824: char16_t const *utf16 = u"UTF-8 string \u2500";
! 2825: char32_t const *utf32 = U"UTF-32 string \u2500";
! 2826: }
! 2827: '
! 2828:
! 2829: # Test code for whether the C compiler supports C++11 (complete).
! 2830: ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
! 2831: ${ac_cxx_conftest_cxx11_globals}
! 2832:
! 2833: int
! 2834: main (int argc, char **argv)
! 2835: {
! 2836: int ok = 0;
! 2837: ${ac_cxx_conftest_cxx98_main}
! 2838: ${ac_cxx_conftest_cxx11_main}
! 2839: return ok;
! 2840: }
! 2841: "
! 2842:
! 2843: # Test code for whether the C compiler supports C++98 (complete).
! 2844: ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
! 2845: int
! 2846: main (int argc, char **argv)
! 2847: {
! 2848: int ok = 0;
! 2849: ${ac_cxx_conftest_cxx98_main}
! 2850: return ok;
! 2851: }
! 2852: "
! 2853:
! 2854: # Test code for whether the C compiler supports C89 (global declarations)
! 2855: ac_c_conftest_c89_globals='
! 2856: /* Does the compiler advertise C89 conformance?
! 2857: Do not test the value of __STDC__, because some compilers set it to 0
! 2858: while being otherwise adequately conformant. */
! 2859: #if !defined __STDC__
! 2860: # error "Compiler does not advertise C89 conformance"
! 2861: #endif
! 2862:
! 2863: #include <stddef.h>
! 2864: #include <stdarg.h>
! 2865: struct stat;
! 2866: /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
! 2867: struct buf { int x; };
! 2868: struct buf * (*rcsopen) (struct buf *, struct stat *, int);
! 2869: static char *e (char **p, int i)
! 2870: {
! 2871: return p[i];
! 2872: }
! 2873: static char *f (char * (*g) (char **, int), char **p, ...)
! 2874: {
! 2875: char *s;
! 2876: va_list v;
! 2877: va_start (v,p);
! 2878: s = g (p, va_arg (v,int));
! 2879: va_end (v);
! 2880: return s;
! 2881: }
! 2882:
! 2883: /* C89 style stringification. */
! 2884: #define noexpand_stringify(a) #a
! 2885: const char *stringified = noexpand_stringify(arbitrary+token=sequence);
! 2886:
! 2887: /* C89 style token pasting. Exercises some of the corner cases that
! 2888: e.g. old MSVC gets wrong, but not very hard. */
! 2889: #define noexpand_concat(a,b) a##b
! 2890: #define expand_concat(a,b) noexpand_concat(a,b)
! 2891: extern int vA;
! 2892: extern int vbee;
! 2893: #define aye A
! 2894: #define bee B
! 2895: int *pvA = &expand_concat(v,aye);
! 2896: int *pvbee = &noexpand_concat(v,bee);
! 2897:
! 2898: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
! 2899: function prototypes and stuff, but not \xHH hex character constants.
! 2900: These do not provoke an error unfortunately, instead are silently treated
! 2901: as an "x". The following induces an error, until -std is added to get
! 2902: proper ANSI mode. Curiously \x00 != x always comes out true, for an
! 2903: array size at least. It is necessary to write \x00 == 0 to get something
! 2904: that is true only with -std. */
! 2905: int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
! 2906:
! 2907: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
! 2908: inside strings and character constants. */
! 2909: #define FOO(x) '\''x'\''
! 2910: int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
! 2911:
! 2912: int test (int i, double x);
! 2913: struct s1 {int (*f) (int a);};
! 2914: struct s2 {int (*f) (double a);};
! 2915: int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
! 2916: int, int);'
! 2917:
! 2918: # Test code for whether the C compiler supports C89 (body of main).
! 2919: ac_c_conftest_c89_main='
! 2920: ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
! 2921: '
! 2922:
! 2923: # Test code for whether the C compiler supports C99 (global declarations)
! 2924: ac_c_conftest_c99_globals='
! 2925: /* Does the compiler advertise C99 conformance? */
! 2926: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
! 2927: # error "Compiler does not advertise C99 conformance"
! 2928: #endif
! 2929:
! 2930: // See if C++-style comments work.
! 2931:
! 2932: #include <stdbool.h>
! 2933: extern int puts (const char *);
! 2934: extern int printf (const char *, ...);
! 2935: extern int dprintf (int, const char *, ...);
! 2936: extern void *malloc (size_t);
! 2937: extern void free (void *);
! 2938:
! 2939: // Check varargs macros. These examples are taken from C99 6.10.3.5.
! 2940: // dprintf is used instead of fprintf to avoid needing to declare
! 2941: // FILE and stderr.
! 2942: #define debug(...) dprintf (2, __VA_ARGS__)
! 2943: #define showlist(...) puts (#__VA_ARGS__)
! 2944: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
! 2945: static void
! 2946: test_varargs_macros (void)
! 2947: {
! 2948: int x = 1234;
! 2949: int y = 5678;
! 2950: debug ("Flag");
! 2951: debug ("X = %d\n", x);
! 2952: showlist (The first, second, and third items.);
! 2953: report (x>y, "x is %d but y is %d", x, y);
! 2954: }
! 2955:
! 2956: // Check long long types.
! 2957: #define BIG64 18446744073709551615ull
! 2958: #define BIG32 4294967295ul
! 2959: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
! 2960: #if !BIG_OK
! 2961: #error "your preprocessor is broken"
! 2962: #endif
! 2963: #if BIG_OK
! 2964: #else
! 2965: #error "your preprocessor is broken"
! 2966: #endif
! 2967: static long long int bignum = -9223372036854775807LL;
! 2968: static unsigned long long int ubignum = BIG64;
! 2969:
! 2970: struct incomplete_array
! 2971: {
! 2972: int datasize;
! 2973: double data[];
! 2974: };
! 2975:
! 2976: struct named_init {
! 2977: int number;
! 2978: const wchar_t *name;
! 2979: double average;
! 2980: };
! 2981:
! 2982: typedef const char *ccp;
! 2983:
! 2984: static inline int
! 2985: test_restrict (ccp restrict text)
! 2986: {
! 2987: // Iterate through items via the restricted pointer.
! 2988: // Also check for declarations in for loops.
! 2989: for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
! 2990: continue;
! 2991: return 0;
! 2992: }
! 2993:
! 2994: // Check varargs and va_copy.
! 2995: static bool
! 2996: test_varargs (const char *format, ...)
! 2997: {
! 2998: va_list args;
! 2999: va_start (args, format);
! 3000: va_list args_copy;
! 3001: va_copy (args_copy, args);
! 3002:
! 3003: const char *str = "";
! 3004: int number = 0;
! 3005: float fnumber = 0;
! 3006:
! 3007: while (*format)
! 3008: {
! 3009: switch (*format++)
! 3010: {
! 3011: case '\''s'\'': // string
! 3012: str = va_arg (args_copy, const char *);
! 3013: break;
! 3014: case '\''d'\'': // int
! 3015: number = va_arg (args_copy, int);
! 3016: break;
! 3017: case '\''f'\'': // float
! 3018: fnumber = va_arg (args_copy, double);
! 3019: break;
! 3020: default:
! 3021: break;
! 3022: }
! 3023: }
! 3024: va_end (args_copy);
! 3025: va_end (args);
! 3026:
! 3027: return *str && number && fnumber;
! 3028: }
! 3029: '
! 3030:
! 3031: # Test code for whether the C compiler supports C99 (body of main).
! 3032: ac_c_conftest_c99_main='
! 3033: // Check bool.
! 3034: _Bool success = false;
! 3035: success |= (argc != 0);
! 3036:
! 3037: // Check restrict.
! 3038: if (test_restrict ("String literal") == 0)
! 3039: success = true;
! 3040: char *restrict newvar = "Another string";
! 3041:
! 3042: // Check varargs.
! 3043: success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
! 3044: test_varargs_macros ();
! 3045:
! 3046: // Check flexible array members.
! 3047: struct incomplete_array *ia =
! 3048: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
! 3049: ia->datasize = 10;
! 3050: for (int i = 0; i < ia->datasize; ++i)
! 3051: ia->data[i] = i * 1.234;
! 3052: // Work around memory leak warnings.
! 3053: free (ia);
! 3054:
! 3055: // Check named initializers.
! 3056: struct named_init ni = {
! 3057: .number = 34,
! 3058: .name = L"Test wide string",
! 3059: .average = 543.34343,
! 3060: };
! 3061:
! 3062: ni.number = 58;
! 3063:
! 3064: int dynamic_array[ni.number];
! 3065: dynamic_array[0] = argv[0][0];
! 3066: dynamic_array[ni.number - 1] = 543;
! 3067:
! 3068: // work around unused variable warnings
! 3069: ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
! 3070: || dynamic_array[ni.number - 1] != 543);
! 3071: '
! 3072:
! 3073: # Test code for whether the C compiler supports C11 (global declarations)
! 3074: ac_c_conftest_c11_globals='
! 3075: /* Does the compiler advertise C11 conformance? */
! 3076: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
! 3077: # error "Compiler does not advertise C11 conformance"
! 3078: #endif
! 3079:
! 3080: // Check _Alignas.
! 3081: char _Alignas (double) aligned_as_double;
! 3082: char _Alignas (0) no_special_alignment;
! 3083: extern char aligned_as_int;
! 3084: char _Alignas (0) _Alignas (int) aligned_as_int;
! 3085:
! 3086: // Check _Alignof.
! 3087: enum
! 3088: {
! 3089: int_alignment = _Alignof (int),
! 3090: int_array_alignment = _Alignof (int[100]),
! 3091: char_alignment = _Alignof (char)
! 3092: };
! 3093: _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
! 3094:
! 3095: // Check _Noreturn.
! 3096: int _Noreturn does_not_return (void) { for (;;) continue; }
! 3097:
! 3098: // Check _Static_assert.
! 3099: struct test_static_assert
! 3100: {
! 3101: int x;
! 3102: _Static_assert (sizeof (int) <= sizeof (long int),
! 3103: "_Static_assert does not work in struct");
! 3104: long int y;
! 3105: };
! 3106:
! 3107: // Check UTF-8 literals.
! 3108: #define u8 syntax error!
! 3109: char const utf8_literal[] = u8"happens to be ASCII" "another string";
! 3110:
! 3111: // Check duplicate typedefs.
! 3112: typedef long *long_ptr;
! 3113: typedef long int *long_ptr;
! 3114: typedef long_ptr long_ptr;
! 3115:
! 3116: // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
! 3117: struct anonymous
! 3118: {
! 3119: union {
! 3120: struct { int i; int j; };
! 3121: struct { int k; long int l; } w;
! 3122: };
! 3123: int m;
! 3124: } v1;
! 3125: '
! 3126:
! 3127: # Test code for whether the C compiler supports C11 (body of main).
! 3128: ac_c_conftest_c11_main='
! 3129: _Static_assert ((offsetof (struct anonymous, i)
! 3130: == offsetof (struct anonymous, w.k)),
! 3131: "Anonymous union alignment botch");
! 3132: v1.i = 2;
! 3133: v1.w.k = 5;
! 3134: ok |= v1.i != 5;
! 3135: '
! 3136:
! 3137: # Test code for whether the C compiler supports C11 (complete).
! 3138: ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
! 3139: ${ac_c_conftest_c99_globals}
! 3140: ${ac_c_conftest_c11_globals}
! 3141:
! 3142: int
! 3143: main (int argc, char **argv)
! 3144: {
! 3145: int ok = 0;
! 3146: ${ac_c_conftest_c89_main}
! 3147: ${ac_c_conftest_c99_main}
! 3148: ${ac_c_conftest_c11_main}
! 3149: return ok;
! 3150: }
! 3151: "
! 3152:
! 3153: # Test code for whether the C compiler supports C99 (complete).
! 3154: ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
! 3155: ${ac_c_conftest_c99_globals}
! 3156:
! 3157: int
! 3158: main (int argc, char **argv)
! 3159: {
! 3160: int ok = 0;
! 3161: ${ac_c_conftest_c89_main}
! 3162: ${ac_c_conftest_c99_main}
! 3163: return ok;
! 3164: }
! 3165: "
! 3166:
! 3167: # Test code for whether the C compiler supports C89 (complete).
! 3168: ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
! 3169:
! 3170: int
! 3171: main (int argc, char **argv)
! 3172: {
! 3173: int ok = 0;
! 3174: ${ac_c_conftest_c89_main}
! 3175: return ok;
! 3176: }
! 3177: "
! 3178:
! 3179: as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
! 3180: as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
! 3181: as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
! 3182: as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
! 3183: as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
! 3184: as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
! 3185: as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
! 3186: as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
! 3187: as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
! 3188:
! 3189: # Auxiliary files required by this configure script.
! 3190: ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
! 3191:
! 3192: # Locations in which to look for auxiliary files.
! 3193: ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
! 3194:
! 3195: # Search for a directory containing all of the required auxiliary files,
! 3196: # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
! 3197: # If we don't find one directory that contains all the files we need,
! 3198: # we report the set of missing files from the *first* directory in
! 3199: # $ac_aux_dir_candidates and give up.
! 3200: ac_missing_aux_files=""
! 3201: ac_first_candidate=:
! 3202: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
! 3203: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 3204: as_found=false
! 3205: for as_dir in $ac_aux_dir_candidates
! 3206: do
! 3207: IFS=$as_save_IFS
! 3208: case $as_dir in #(((
! 3209: '') as_dir=./ ;;
! 3210: */) ;;
! 3211: *) as_dir=$as_dir/ ;;
! 3212: esac
! 3213: as_found=:
! 3214:
! 3215: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
! 3216: ac_aux_dir_found=yes
! 3217: ac_install_sh=
! 3218: for ac_aux in $ac_aux_files
! 3219: do
! 3220: # As a special case, if "install-sh" is required, that requirement
! 3221: # can be satisfied by any of "install-sh", "install.sh", or "shtool",
! 3222: # and $ac_install_sh is set appropriately for whichever one is found.
! 3223: if test x"$ac_aux" = x"install-sh"
! 3224: then
! 3225: if test -f "${as_dir}install-sh"; then
! 3226: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
! 3227: ac_install_sh="${as_dir}install-sh -c"
! 3228: elif test -f "${as_dir}install.sh"; then
! 3229: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
! 3230: ac_install_sh="${as_dir}install.sh -c"
! 3231: elif test -f "${as_dir}shtool"; then
! 3232: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
! 3233: ac_install_sh="${as_dir}shtool install -c"
! 3234: else
! 3235: ac_aux_dir_found=no
! 3236: if $ac_first_candidate; then
! 3237: ac_missing_aux_files="${ac_missing_aux_files} install-sh"
! 3238: else
! 3239: break
! 3240: fi
! 3241: fi
! 3242: else
! 3243: if test -f "${as_dir}${ac_aux}"; then
! 3244: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
! 3245: else
! 3246: ac_aux_dir_found=no
! 3247: if $ac_first_candidate; then
! 3248: ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
! 3249: else
! 3250: break
! 3251: fi
! 3252: fi
! 3253: fi
! 3254: done
! 3255: if test "$ac_aux_dir_found" = yes; then
! 3256: ac_aux_dir="$as_dir"
! 3257: break
! 3258: fi
! 3259: ac_first_candidate=false
! 3260:
! 3261: as_found=false
! 3262: done
! 3263: IFS=$as_save_IFS
! 3264: if $as_found
! 3265: then :
! 3266:
! 3267: else case e in #(
! 3268: e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
! 3269: esac
! 3270: fi
! 3271:
! 3272:
! 3273: # These three variables are undocumented and unsupported,
! 3274: # and are intended to be withdrawn in a future Autoconf release.
! 3275: # They can cause serious problems if a builder's source tree is in a directory
! 3276: # whose full name contains unusual characters.
! 3277: if test -f "${ac_aux_dir}config.guess"; then
! 3278: ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
! 3279: fi
! 3280: if test -f "${ac_aux_dir}config.sub"; then
! 3281: ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
! 3282: fi
! 3283: if test -f "$ac_aux_dir/configure"; then
! 3284: ac_configure="$SHELL ${ac_aux_dir}configure"
! 3285: fi
! 3286:
1.62 paf 3287: # Check that the precious variables saved in the cache have kept the same
3288: # value.
3289: ac_cache_corrupted=false
1.150 moko 3290: for ac_var in $ac_precious_vars; do
1.62 paf 3291: eval ac_old_set=\$ac_cv_env_${ac_var}_set
3292: eval ac_new_set=\$ac_env_${ac_var}_set
1.150 moko 3293: eval ac_old_val=\$ac_cv_env_${ac_var}_value
3294: eval ac_new_val=\$ac_env_${ac_var}_value
1.62 paf 3295: case $ac_old_set,$ac_new_set in
3296: set,)
1.237 ! moko 3297: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
! 3298: printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
1.62 paf 3299: ac_cache_corrupted=: ;;
3300: ,set)
1.237 ! moko 3301: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
! 3302: printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
1.62 paf 3303: ac_cache_corrupted=: ;;
3304: ,);;
3305: *)
3306: if test "x$ac_old_val" != "x$ac_new_val"; then
1.150 moko 3307: # differences in whitespace do not lead to failure.
3308: ac_old_val_w=`echo x $ac_old_val`
3309: ac_new_val_w=`echo x $ac_new_val`
3310: if test "$ac_old_val_w" != "$ac_new_val_w"; then
1.237 ! moko 3311: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
! 3312: printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
1.150 moko 3313: ac_cache_corrupted=:
3314: else
1.237 ! moko 3315: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
! 3316: printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
1.150 moko 3317: eval $ac_var=\$ac_old_val
3318: fi
1.237 ! moko 3319: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
! 3320: printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
! 3321: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
! 3322: printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
1.62 paf 3323: fi;;
3324: esac
3325: # Pass precious variables to config.status.
3326: if test "$ac_new_set" = set; then
3327: case $ac_new_val in
1.237 ! moko 3328: *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.62 paf 3329: *) ac_arg=$ac_var=$ac_new_val ;;
3330: esac
3331: case " $ac_configure_args " in
3332: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.150 moko 3333: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1.62 paf 3334: esac
3335: fi
3336: done
3337: if $ac_cache_corrupted; then
1.237 ! moko 3338: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
! 3339: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
! 3340: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
! 3341: printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
! 3342: as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
! 3343: and start over" "$LINENO" 5
1.150 moko 3344: fi
3345: ## -------------------- ##
3346: ## Main body of script. ##
3347: ## -------------------- ##
1.1 paf 3348:
3349: ac_ext=c
3350: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 3351: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354:
3355:
3356:
3357:
3358:
1.229 moko 3359:
1.237 ! moko 3360: am__api_version='1.17'
! 3361:
1.150 moko 3362:
1.1 paf 3363:
1.237 ! moko 3364: # Find a good install program. We prefer a C program (faster),
1.1 paf 3365: # so one script is as good as another. But avoid the broken or
3366: # incompatible versions:
3367: # SysV /etc/install, /usr/sbin/install
3368: # SunOS /usr/etc/install
3369: # IRIX /sbin/install
3370: # AIX /bin/install
1.62 paf 3371: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 3372: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3373: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3374: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.86 paf 3375: # OS/2's system install, which has a completely different semantic
1.1 paf 3376: # ./install, which can be erroneously created by make from ./install.sh.
1.150 moko 3377: # Reject install programs that cannot install multiple files.
1.237 ! moko 3378: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
! 3379: printf %s "checking for a BSD-compatible install... " >&6; }
1.1 paf 3380: if test -z "$INSTALL"; then
1.237 ! moko 3381: if test ${ac_cv_path_install+y}
! 3382: then :
! 3383: printf %s "(cached) " >&6
! 3384: else case e in #(
! 3385: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.62 paf 3386: for as_dir in $PATH
3387: do
3388: IFS=$as_save_IFS
1.237 ! moko 3389: case $as_dir in #(((
! 3390: '') as_dir=./ ;;
! 3391: */) ;;
! 3392: *) as_dir=$as_dir/ ;;
! 3393: esac
! 3394: # Account for fact that we put trailing slashes in our PATH walk.
! 3395: case $as_dir in #((
! 3396: ./ | /[cC]/* | \
1.62 paf 3397: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.150 moko 3398: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.62 paf 3399: /usr/ucb/* ) ;;
3400: *)
3401: # OSF1 and SCO ODT 3.0 have their own names for install.
3402: # Don't use installbsd from OSF since it installs stuff as root
3403: # by default.
3404: for ac_prog in ginstall scoinst install; do
3405: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 3406: if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
1.86 paf 3407: if test $ac_prog = install &&
1.237 ! moko 3408: grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.86 paf 3409: # AIX install. It has an incompatible calling convention.
3410: :
3411: elif test $ac_prog = install &&
1.237 ! moko 3412: grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.86 paf 3413: # program-specific install script used by HP pwplus--don't use.
3414: :
3415: else
1.150 moko 3416: rm -rf conftest.one conftest.two conftest.dir
3417: echo one > conftest.one
3418: echo two > conftest.two
3419: mkdir conftest.dir
1.237 ! moko 3420: if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
1.150 moko 3421: test -s conftest.one && test -s conftest.two &&
3422: test -s conftest.dir/conftest.one &&
3423: test -s conftest.dir/conftest.two
3424: then
1.237 ! moko 3425: ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
1.150 moko 3426: break 3
3427: fi
1.86 paf 3428: fi
3429: fi
1.1 paf 3430: done
1.62 paf 3431: done
3432: ;;
3433: esac
3434:
1.150 moko 3435: done
3436: IFS=$as_save_IFS
3437:
3438: rm -rf conftest.one conftest.two conftest.dir
1.237 ! moko 3439: ;;
! 3440: esac
1.1 paf 3441: fi
1.237 ! moko 3442: if test ${ac_cv_path_install+y}; then
1.62 paf 3443: INSTALL=$ac_cv_path_install
1.1 paf 3444: else
1.150 moko 3445: # As a last resort, use the slow shell script. Don't cache a
3446: # value for INSTALL within a source directory, because that will
1.1 paf 3447: # break other packages using the cache if that directory is
1.150 moko 3448: # removed, or if the value is a relative name.
1.62 paf 3449: INSTALL=$ac_install_sh
1.1 paf 3450: fi
3451: fi
1.237 ! moko 3452: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
! 3453: printf "%s\n" "$INSTALL" >&6; }
1.1 paf 3454:
3455: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3456: # It thinks the first close brace ends the variable substitution.
3457: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3458:
1.62 paf 3459: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 3460:
3461: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3462:
1.237 ! moko 3463: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
! 3464: printf %s "checking whether sleep supports fractional seconds... " >&6; }
! 3465: if test ${am_cv_sleep_fractional_seconds+y}
! 3466: then :
! 3467: printf %s "(cached) " >&6
! 3468: else case e in #(
! 3469: e) if sleep 0.001 2>/dev/null
! 3470: then :
! 3471: am_cv_sleep_fractional_seconds=yes
! 3472: else case e in #(
! 3473: e) am_cv_sleep_fractional_seconds=no ;;
! 3474: esac
! 3475: fi
! 3476: ;;
! 3477: esac
! 3478: fi
! 3479: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
! 3480: printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
! 3481:
! 3482: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
! 3483: printf %s "checking filesystem timestamp resolution... " >&6; }
! 3484: if test ${am_cv_filesystem_timestamp_resolution+y}
! 3485: then :
! 3486: printf %s "(cached) " >&6
! 3487: else case e in #(
! 3488: e) # Default to the worst case.
! 3489: am_cv_filesystem_timestamp_resolution=2
! 3490:
! 3491: # Only try to go finer than 1 sec if sleep can do it.
! 3492: # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
! 3493: # - 1 sec is not much of a win compared to 2 sec, and
! 3494: # - it takes 2 seconds to perform the test whether 1 sec works.
! 3495: #
! 3496: # Instead, just use the default 2s on platforms that have 1s resolution,
! 3497: # accept the extra 1s delay when using $sleep in the Automake tests, in
! 3498: # exchange for not incurring the 2s delay for running the test for all
! 3499: # packages.
! 3500: #
! 3501: am_try_resolutions=
! 3502: if test "$am_cv_sleep_fractional_seconds" = yes; then
! 3503: # Even a millisecond often causes a bunch of false positives,
! 3504: # so just try a hundredth of a second. The time saved between .001 and
! 3505: # .01 is not terribly consequential.
! 3506: am_try_resolutions="0.01 0.1 $am_try_resolutions"
! 3507: fi
! 3508:
! 3509: # In order to catch current-generation FAT out, we must *modify* files
! 3510: # that already exist; the *creation* timestamp is finer. Use names
! 3511: # that make ls -t sort them differently when they have equal
! 3512: # timestamps than when they have distinct timestamps, keeping
! 3513: # in mind that ls -t prints the *newest* file first.
! 3514: rm -f conftest.ts?
! 3515: : > conftest.ts1
! 3516: : > conftest.ts2
! 3517: : > conftest.ts3
! 3518:
! 3519: # Make sure ls -t actually works. Do 'set' in a subshell so we don't
! 3520: # clobber the current shell's arguments. (Outer-level square brackets
! 3521: # are removed by m4; they're present so that m4 does not expand
! 3522: # <dollar><star>; be careful, easy to get confused.)
! 3523: if (
! 3524: set X `ls -t conftest.ts[12]` &&
! 3525: {
! 3526: test "$*" != "X conftest.ts1 conftest.ts2" ||
! 3527: test "$*" != "X conftest.ts2 conftest.ts1";
! 3528: }
! 3529: ); then :; else
! 3530: # If neither matched, then we have a broken ls. This can happen
! 3531: # if, for instance, CONFIG_SHELL is bash and it inherits a
! 3532: # broken ls alias from the environment. This has actually
! 3533: # happened. Such a system could not be considered "sane".
! 3534: printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
! 3535: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
! 3536: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
! 3537: as_fn_error $? "ls -t produces unexpected output.
! 3538: Make sure there is not a broken ls alias in your environment.
! 3539: See 'config.log' for more details" "$LINENO" 5; }
! 3540: fi
! 3541:
! 3542: for am_try_res in $am_try_resolutions; do
! 3543: # Any one fine-grained sleep might happen to cross the boundary
! 3544: # between two values of a coarser actual resolution, but if we do
! 3545: # two fine-grained sleeps in a row, at least one of them will fall
! 3546: # entirely within a coarse interval.
! 3547: echo alpha > conftest.ts1
! 3548: sleep $am_try_res
! 3549: echo beta > conftest.ts2
! 3550: sleep $am_try_res
! 3551: echo gamma > conftest.ts3
! 3552:
! 3553: # We assume that 'ls -t' will make use of high-resolution
! 3554: # timestamps if the operating system supports them at all.
! 3555: if (set X `ls -t conftest.ts?` &&
! 3556: test "$2" = conftest.ts3 &&
! 3557: test "$3" = conftest.ts2 &&
! 3558: test "$4" = conftest.ts1); then
! 3559: #
! 3560: # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
! 3561: # because we don't need to test make.
! 3562: make_ok=true
! 3563: if test $am_try_res != 1; then
! 3564: # But if we've succeeded so far with a subsecond resolution, we
! 3565: # have one more thing to check: make. It can happen that
! 3566: # everything else supports the subsecond mtimes, but make doesn't;
! 3567: # notably on macOS, which ships make 3.81 from 2006 (the last one
! 3568: # released under GPLv2). https://bugs.gnu.org/68808
! 3569: #
! 3570: # We test $MAKE if it is defined in the environment, else "make".
! 3571: # It might get overridden later, but our hope is that in practice
! 3572: # it does not matter: it is the system "make" which is (by far)
! 3573: # the most likely to be broken, whereas if the user overrides it,
! 3574: # probably they did so with a better, or at least not worse, make.
! 3575: # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
! 3576: #
! 3577: # Create a Makefile (real tab character here):
! 3578: rm -f conftest.mk
! 3579: echo 'conftest.ts1: conftest.ts2' >conftest.mk
! 3580: echo ' touch conftest.ts2' >>conftest.mk
! 3581: #
! 3582: # Now, running
! 3583: # touch conftest.ts1; touch conftest.ts2; make
! 3584: # should touch ts1 because ts2 is newer. This could happen by luck,
! 3585: # but most often, it will fail if make's support is insufficient. So
! 3586: # test for several consecutive successes.
! 3587: #
! 3588: # (We reuse conftest.ts[12] because we still want to modify existing
! 3589: # files, not create new ones, per above.)
! 3590: n=0
! 3591: make=${MAKE-make}
! 3592: until test $n -eq 3; do
! 3593: echo one > conftest.ts1
! 3594: sleep $am_try_res
! 3595: echo two > conftest.ts2 # ts2 should now be newer than ts1
! 3596: if $make -f conftest.mk | grep 'up to date' >/dev/null; then
! 3597: make_ok=false
! 3598: break # out of $n loop
! 3599: fi
! 3600: n=`expr $n + 1`
! 3601: done
! 3602: fi
! 3603: #
! 3604: if $make_ok; then
! 3605: # Everything we know to check worked out, so call this resolution good.
! 3606: am_cv_filesystem_timestamp_resolution=$am_try_res
! 3607: break # out of $am_try_res loop
! 3608: fi
! 3609: # Otherwise, we'll go on to check the next resolution.
! 3610: fi
! 3611: done
! 3612: rm -f conftest.ts?
! 3613: # (end _am_filesystem_timestamp_resolution)
! 3614: ;;
! 3615: esac
! 3616: fi
! 3617: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
! 3618: printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
! 3619:
! 3620: # This check should not be cached, as it may vary across builds of
! 3621: # different projects.
! 3622: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
! 3623: printf %s "checking whether build environment is sane... " >&6; }
1.150 moko 3624: # Reject unsafe characters in $srcdir or the absolute working directory
3625: # name. Accept space and tab only in the latter.
3626: am_lf='
3627: '
3628: case `pwd` in
3629: *[\\\"\#\$\&\'\`$am_lf]*)
3630: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3631: esac
3632: case $srcdir in
3633: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.187 moko 3634: as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
1.150 moko 3635: esac
3636:
1.187 moko 3637: # Do 'set' in a subshell so we don't clobber the current shell's
1.1 paf 3638: # arguments. Must try -L first in case configure is actually a
3639: # symlink; some systems play weird games with the mod time of symlinks
3640: # (eg FreeBSD returns the mod time of the symlink's containing
3641: # directory).
1.237 ! moko 3642: am_build_env_is_sane=no
! 3643: am_has_slept=no
! 3644: rm -f conftest.file
! 3645: for am_try in 1 2; do
! 3646: echo "timestamp, slept: $am_has_slept" > conftest.file
! 3647: if (
! 3648: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
! 3649: if test "$*" = "X"; then
! 3650: # -L didn't work.
! 3651: set X `ls -t "$srcdir/configure" conftest.file`
! 3652: fi
! 3653: test "$2" = conftest.file
! 3654: ); then
! 3655: am_build_env_is_sane=yes
! 3656: break
! 3657: fi
! 3658: # Just in case.
! 3659: sleep "$am_cv_filesystem_timestamp_resolution"
! 3660: am_has_slept=yes
! 3661: done
1.1 paf 3662:
1.237 ! moko 3663: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
! 3664: printf "%s\n" "$am_build_env_is_sane" >&6; }
! 3665: if test "$am_build_env_is_sane" = no; then
! 3666: as_fn_error $? "newly created file is older than distributed files!
1.150 moko 3667: Check your system clock" "$LINENO" 5
1.1 paf 3668: fi
1.237 ! moko 3669:
1.187 moko 3670: # If we didn't sleep, we still need to ensure time stamps of config.status and
3671: # generated files are strictly newer.
3672: am_sleep_pid=
1.237 ! moko 3673: if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
! 3674: then :
! 3675:
! 3676: else case e in #(
! 3677: e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
1.187 moko 3678: am_sleep_pid=$!
1.237 ! moko 3679: ;;
! 3680: esac
1.187 moko 3681: fi
3682:
3683: rm -f conftest.file
3684:
1.1 paf 3685: test "$program_prefix" != NONE &&
1.150 moko 3686: program_transform_name="s&^&$program_prefix&;$program_transform_name"
1.1 paf 3687: # Use a double $ so make ignores it.
3688: test "$program_suffix" != NONE &&
1.150 moko 3689: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3690: # Double any \ or $.
1.237 ! moko 3691: # By default was 's,x,x', remove it if useless.
1.150 moko 3692: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1.237 ! moko 3693: program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
! 3694:
1.62 paf 3695:
1.187 moko 3696: # Expand $ac_aux_dir to an absolute path.
3697: am_aux_dir=`cd "$ac_aux_dir" && pwd`
1.62 paf 3698:
1.237 ! moko 3699:
! 3700: if test x"${MISSING+set}" != xset; then
1.216 moko 3701: MISSING="\${SHELL} '$am_aux_dir/missing'"
1.150 moko 3702: fi
1.62 paf 3703: # Use eval to expand $SHELL
1.187 moko 3704: if eval "$MISSING --is-lightweight"; then
3705: am_missing_run="$MISSING "
1.62 paf 3706: else
3707: am_missing_run=
1.237 ! moko 3708: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
! 3709: printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
1.62 paf 3710: fi
3711:
1.187 moko 3712: if test x"${install_sh+set}" != xset; then
1.150 moko 3713: case $am_aux_dir in
3714: *\ * | *\ *)
3715: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3716: *)
3717: install_sh="\${SHELL} $am_aux_dir/install-sh"
3718: esac
1.86 paf 3719: fi
3720:
1.187 moko 3721: # Installed binaries are usually stripped using 'strip' when the user
3722: # run "make install-strip". However 'strip' might not be the right
1.150 moko 3723: # tool to use in cross-compilation environments, therefore Automake
1.187 moko 3724: # will honor the 'STRIP' environment variable to overrule this program.
1.150 moko 3725: if test "$cross_compiling" != no; then
3726: if test -n "$ac_tool_prefix"; then
3727: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3728: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.237 ! moko 3729: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3730: printf %s "checking for $ac_word... " >&6; }
! 3731: if test ${ac_cv_prog_STRIP+y}
! 3732: then :
! 3733: printf %s "(cached) " >&6
! 3734: else case e in #(
! 3735: e) if test -n "$STRIP"; then
1.150 moko 3736: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3737: else
3738: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739: for as_dir in $PATH
3740: do
3741: IFS=$as_save_IFS
1.237 ! moko 3742: case $as_dir in #(((
! 3743: '') as_dir=./ ;;
! 3744: */) ;;
! 3745: *) as_dir=$as_dir/ ;;
! 3746: esac
1.150 moko 3747: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 3748: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.150 moko 3749: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.237 ! moko 3750: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.150 moko 3751: break 2
3752: fi
3753: done
3754: done
3755: IFS=$as_save_IFS
3756:
1.237 ! moko 3757: fi ;;
! 3758: esac
1.150 moko 3759: fi
3760: STRIP=$ac_cv_prog_STRIP
3761: if test -n "$STRIP"; then
1.237 ! moko 3762: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
! 3763: printf "%s\n" "$STRIP" >&6; }
1.150 moko 3764: else
1.237 ! moko 3765: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3766: printf "%s\n" "no" >&6; }
1.150 moko 3767: fi
3768:
3769:
3770: fi
3771: if test -z "$ac_cv_prog_STRIP"; then
3772: ac_ct_STRIP=$STRIP
3773: # Extract the first word of "strip", so it can be a program name with args.
3774: set dummy strip; ac_word=$2
1.237 ! moko 3775: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3776: printf %s "checking for $ac_word... " >&6; }
! 3777: if test ${ac_cv_prog_ac_ct_STRIP+y}
! 3778: then :
! 3779: printf %s "(cached) " >&6
! 3780: else case e in #(
! 3781: e) if test -n "$ac_ct_STRIP"; then
1.150 moko 3782: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3783: else
3784: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785: for as_dir in $PATH
3786: do
3787: IFS=$as_save_IFS
1.237 ! moko 3788: case $as_dir in #(((
! 3789: '') as_dir=./ ;;
! 3790: */) ;;
! 3791: *) as_dir=$as_dir/ ;;
! 3792: esac
1.150 moko 3793: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 3794: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.150 moko 3795: ac_cv_prog_ac_ct_STRIP="strip"
1.237 ! moko 3796: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.150 moko 3797: break 2
3798: fi
3799: done
3800: done
3801: IFS=$as_save_IFS
3802:
1.237 ! moko 3803: fi ;;
! 3804: esac
1.150 moko 3805: fi
3806: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3807: if test -n "$ac_ct_STRIP"; then
1.237 ! moko 3808: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
! 3809: printf "%s\n" "$ac_ct_STRIP" >&6; }
1.150 moko 3810: else
1.237 ! moko 3811: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3812: printf "%s\n" "no" >&6; }
1.150 moko 3813: fi
3814:
3815: if test "x$ac_ct_STRIP" = x; then
3816: STRIP=":"
3817: else
3818: case $cross_compiling:$ac_tool_warned in
3819: yes:)
1.237 ! moko 3820: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 3821: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 3822: ac_tool_warned=yes ;;
3823: esac
3824: STRIP=$ac_ct_STRIP
3825: fi
3826: else
3827: STRIP="$ac_cv_prog_STRIP"
3828: fi
3829:
3830: fi
3831: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3832:
1.237 ! moko 3833:
! 3834: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
! 3835: printf %s "checking for a race-free mkdir -p... " >&6; }
1.150 moko 3836: if test -z "$MKDIR_P"; then
1.237 ! moko 3837: if test ${ac_cv_path_mkdir+y}
! 3838: then :
! 3839: printf %s "(cached) " >&6
! 3840: else case e in #(
! 3841: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.150 moko 3842: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3843: do
3844: IFS=$as_save_IFS
1.237 ! moko 3845: case $as_dir in #(((
! 3846: '') as_dir=./ ;;
! 3847: */) ;;
! 3848: *) as_dir=$as_dir/ ;;
! 3849: esac
1.150 moko 3850: for ac_prog in mkdir gmkdir; do
3851: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 3852: as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
! 3853: case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
! 3854: 'mkdir ('*'coreutils) '* | \
! 3855: *'BusyBox '* | \
1.150 moko 3856: 'mkdir (fileutils) '4.1*)
1.237 ! moko 3857: ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
1.150 moko 3858: break 3;;
3859: esac
3860: done
3861: done
3862: done
3863: IFS=$as_save_IFS
1.237 ! moko 3864: ;;
! 3865: esac
1.150 moko 3866: fi
3867:
3868: test -d ./--version && rmdir ./--version
1.237 ! moko 3869: if test ${ac_cv_path_mkdir+y}; then
1.150 moko 3870: MKDIR_P="$ac_cv_path_mkdir -p"
3871: else
1.237 ! moko 3872: # As a last resort, use plain mkdir -p,
! 3873: # in the hope it doesn't have the bugs of ancient mkdir.
! 3874: MKDIR_P='mkdir -p'
1.150 moko 3875: fi
3876: fi
1.237 ! moko 3877: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
! 3878: printf "%s\n" "$MKDIR_P" >&6; }
1.150 moko 3879:
3880: for ac_prog in gawk mawk nawk awk
1.62 paf 3881: do
3882: # Extract the first word of "$ac_prog", so it can be a program name with args.
3883: set dummy $ac_prog; ac_word=$2
1.237 ! moko 3884: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 3885: printf %s "checking for $ac_word... " >&6; }
! 3886: if test ${ac_cv_prog_AWK+y}
! 3887: then :
! 3888: printf %s "(cached) " >&6
! 3889: else case e in #(
! 3890: e) if test -n "$AWK"; then
1.62 paf 3891: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3892: else
3893: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894: for as_dir in $PATH
3895: do
3896: IFS=$as_save_IFS
1.237 ! moko 3897: case $as_dir in #(((
! 3898: '') as_dir=./ ;;
! 3899: */) ;;
! 3900: *) as_dir=$as_dir/ ;;
! 3901: esac
1.150 moko 3902: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 3903: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.62 paf 3904: ac_cv_prog_AWK="$ac_prog"
1.237 ! moko 3905: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 3906: break 2
3907: fi
3908: done
1.150 moko 3909: done
3910: IFS=$as_save_IFS
1.62 paf 3911:
1.237 ! moko 3912: fi ;;
! 3913: esac
1.62 paf 3914: fi
3915: AWK=$ac_cv_prog_AWK
3916: if test -n "$AWK"; then
1.237 ! moko 3917: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
! 3918: printf "%s\n" "$AWK" >&6; }
1.62 paf 3919: else
1.237 ! moko 3920: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3921: printf "%s\n" "no" >&6; }
1.62 paf 3922: fi
1.1 paf 3923:
1.150 moko 3924:
1.62 paf 3925: test -n "$AWK" && break
3926: done
1.1 paf 3927:
1.237 ! moko 3928: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
! 3929: printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1.150 moko 3930: set x ${MAKE-make}
1.237 ! moko 3931: ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
! 3932: if eval test \${ac_cv_prog_make_${ac_make}_set+y}
! 3933: then :
! 3934: printf %s "(cached) " >&6
! 3935: else case e in #(
! 3936: e) cat >conftest.make <<\_ACEOF
1.150 moko 3937: SHELL = /bin/sh
1.1 paf 3938: all:
1.150 moko 3939: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.62 paf 3940: _ACEOF
1.150 moko 3941: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3942: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3943: *@@@%%%=?*=@@@%%%*)
3944: eval ac_cv_prog_make_${ac_make}_set=yes;;
3945: *)
3946: eval ac_cv_prog_make_${ac_make}_set=no;;
3947: esac
1.237 ! moko 3948: rm -f conftest.make ;;
! 3949: esac
1.1 paf 3950: fi
1.150 moko 3951: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1.237 ! moko 3952: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 3953: printf "%s\n" "yes" >&6; }
1.1 paf 3954: SET_MAKE=
3955: else
1.237 ! moko 3956: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 3957: printf "%s\n" "no" >&6; }
1.1 paf 3958: SET_MAKE="MAKE=${MAKE-make}"
3959: fi
3960:
1.86 paf 3961: rm -rf .tst 2>/dev/null
3962: mkdir .tst 2>/dev/null
3963: if test -d .tst; then
3964: am__leading_dot=.
3965: else
3966: am__leading_dot=_
3967: fi
3968: rmdir .tst 2>/dev/null
3969:
1.237 ! moko 3970: AM_DEFAULT_VERBOSITY=1
1.187 moko 3971: # Check whether --enable-silent-rules was given.
1.237 ! moko 3972: if test ${enable_silent_rules+y}
! 3973: then :
1.187 moko 3974: enableval=$enable_silent_rules;
3975: fi
3976:
3977: am_make=${MAKE-make}
1.237 ! moko 3978: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
! 3979: printf %s "checking whether $am_make supports nested variables... " >&6; }
! 3980: if test ${am_cv_make_support_nested_variables+y}
! 3981: then :
! 3982: printf %s "(cached) " >&6
! 3983: else case e in #(
! 3984: e) if printf "%s\n" 'TRUE=$(BAR$(V))
1.187 moko 3985: BAR0=false
3986: BAR1=true
3987: V=1
3988: am__doit:
3989: @$(TRUE)
3990: .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3991: am_cv_make_support_nested_variables=yes
3992: else
3993: am_cv_make_support_nested_variables=no
1.237 ! moko 3994: fi ;;
! 3995: esac
1.187 moko 3996: fi
1.237 ! moko 3997: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
! 3998: printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
! 3999: AM_BACKSLASH='\'
! 4000:
! 4001: am__rm_f_notfound=
! 4002: if (rm -f && rm -fr && rm -rf) 2>/dev/null
! 4003: then :
! 4004:
! 4005: else case e in #(
! 4006: e) am__rm_f_notfound='""' ;;
! 4007: esac
1.187 moko 4008: fi
1.237 ! moko 4009:
! 4010:
! 4011: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
! 4012: printf %s "checking xargs -n works... " >&6; }
! 4013: if test ${am_cv_xargs_n_works+y}
! 4014: then :
! 4015: printf %s "(cached) " >&6
! 4016: else case e in #(
! 4017: e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
! 4018: 3"
! 4019: then :
! 4020: am_cv_xargs_n_works=yes
! 4021: else case e in #(
! 4022: e) am_cv_xargs_n_works=no ;;
! 4023: esac
! 4024: fi ;;
! 4025: esac
! 4026: fi
! 4027: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
! 4028: printf "%s\n" "$am_cv_xargs_n_works" >&6; }
! 4029: if test "$am_cv_xargs_n_works" = yes
! 4030: then :
! 4031: am__xargs_n='xargs -n'
! 4032: else case e in #(
! 4033: e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
! 4034: ;;
! 4035: esac
1.187 moko 4036: fi
4037:
1.150 moko 4038: if test "`cd $srcdir && pwd`" != "`pwd`"; then
4039: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4040: # is not polluted with repeated "-I."
4041: am__isrc=' -I$(srcdir)'
4042: # test to see if srcdir already configured
4043: if test -f $srcdir/config.status; then
4044: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4045: fi
1.62 paf 4046: fi
4047:
4048: # test whether we have cygpath
4049: if test -z "$CYGPATH_W"; then
4050: if (cygpath --version) >/dev/null 2>/dev/null; then
4051: CYGPATH_W='cygpath -w'
4052: else
4053: CYGPATH_W=echo
4054: fi
4055: fi
4056:
4057:
4058: # Define the identity of the package.
1.128 moko 4059: PACKAGE='parser'
1.230 moko 4060: VERSION='3.5.2b'
1.128 moko 4061:
4062:
1.237 ! moko 4063: printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
1.1 paf 4064:
4065:
1.237 ! moko 4066: printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
1.128 moko 4067:
1.62 paf 4068: # Some tools Automake needs.
4069:
4070: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4071:
4072:
4073: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4074:
4075:
4076: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4077:
4078:
4079: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4080:
4081:
4082: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 4083:
1.187 moko 4084: # For better backward compatibility. To be removed once Automake 1.9.x
4085: # dies out for good. For more background, see:
1.199 moko 4086: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4087: # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1.187 moko 4088: mkdir_p='$(MKDIR_P)'
4089:
4090: # We need awk for the "check" target (and possibly the TAP driver). The
4091: # system "awk" is bad on some platforms.
4092: # Always define AMTAR for backward compatibility. Yes, it's still used
4093: # in the wild :-( We should find a proper way to deprecate it ...
4094: AMTAR='$${TAR-tar}'
4095:
4096:
4097: # We'll loop over all known methods to create a tar archive until one works.
4098: _am_tools='gnutar pax cpio none'
4099:
4100: am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4101:
1.86 paf 4102:
4103:
4104:
4105:
1.237 ! moko 4106: # Variables for tags utilities; see am/tags.am
! 4107: if test -z "$CTAGS"; then
! 4108: CTAGS=ctags
! 4109: fi
! 4110:
! 4111: if test -z "$ETAGS"; then
! 4112: ETAGS=etags
! 4113: fi
! 4114:
! 4115: if test -z "$CSCOPE"; then
! 4116: CSCOPE=cscope
! 4117: fi
! 4118:
1.62 paf 4119:
1.187 moko 4120:
4121:
4122:
4123:
1.1 paf 4124:
4125:
1.128 moko 4126:
1.12 paf 4127: P3S=`cd $srcdir/src ; pwd`
1.1 paf 4128:
4129:
1.128 moko 4130:
1.237 ! moko 4131:
! 4132:
! 4133: # Make sure we can run config.sub.
! 4134: $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
! 4135: as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
! 4136:
! 4137: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
! 4138: printf %s "checking build system type... " >&6; }
! 4139: if test ${ac_cv_build+y}
! 4140: then :
! 4141: printf %s "(cached) " >&6
! 4142: else case e in #(
! 4143: e) ac_build_alias=$build_alias
1.150 moko 4144: test "x$ac_build_alias" = x &&
1.237 ! moko 4145: ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
1.150 moko 4146: test "x$ac_build_alias" = x &&
4147: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.237 ! moko 4148: ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
! 4149: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
! 4150: ;;
! 4151: esac
1.150 moko 4152: fi
1.237 ! moko 4153: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
! 4154: printf "%s\n" "$ac_cv_build" >&6; }
1.150 moko 4155: case $ac_cv_build in
4156: *-*-*) ;;
4157: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4158: esac
4159: build=$ac_cv_build
4160: ac_save_IFS=$IFS; IFS='-'
4161: set x $ac_cv_build
4162: shift
4163: build_cpu=$1
4164: build_vendor=$2
4165: shift; shift
4166: # Remember, the first character of IFS is used to create $*,
4167: # except with old shells:
4168: build_os=$*
4169: IFS=$ac_save_IFS
4170: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4171:
4172:
1.237 ! moko 4173: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
! 4174: printf %s "checking host system type... " >&6; }
! 4175: if test ${ac_cv_host+y}
! 4176: then :
! 4177: printf %s "(cached) " >&6
! 4178: else case e in #(
! 4179: e) if test "x$host_alias" = x; then
1.150 moko 4180: ac_cv_host=$ac_cv_build
4181: else
1.237 ! moko 4182: ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
! 4183: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
1.62 paf 4184: fi
1.237 ! moko 4185: ;;
! 4186: esac
1.62 paf 4187: fi
1.237 ! moko 4188: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
! 4189: printf "%s\n" "$ac_cv_host" >&6; }
1.150 moko 4190: case $ac_cv_host in
4191: *-*-*) ;;
4192: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4193: esac
1.62 paf 4194: host=$ac_cv_host
1.150 moko 4195: ac_save_IFS=$IFS; IFS='-'
4196: set x $ac_cv_host
4197: shift
4198: host_cpu=$1
4199: host_vendor=$2
4200: shift; shift
4201: # Remember, the first character of IFS is used to create $*,
4202: # except with old shells:
4203: host_os=$*
4204: IFS=$ac_save_IFS
4205: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.81 paf 4206:
4207:
4208:
1.237 ! moko 4209: printf "%s\n" "#define PARSER_VERSION \"$VERSION (compiled on $host)\"" >>confdefs.h
1.147 moko 4210:
4211:
1.41 paf 4212:
1.67 paf 4213: case $host_os in
4214: *cygwin* )
1.237 ! moko 4215: printf "%s\n" "#define CYGWIN /**/" >>confdefs.h
1.67 paf 4216: ;;
4217: esac
1.41 paf 4218:
1.128 moko 4219:
1.1 paf 4220:
1.62 paf 4221: for ac_prog in gawk mawk nawk awk
1.41 paf 4222: do
1.62 paf 4223: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 4224: set dummy $ac_prog; ac_word=$2
1.237 ! moko 4225: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4226: printf %s "checking for $ac_word... " >&6; }
! 4227: if test ${ac_cv_prog_AWK+y}
! 4228: then :
! 4229: printf %s "(cached) " >&6
! 4230: else case e in #(
! 4231: e) if test -n "$AWK"; then
1.41 paf 4232: ac_cv_prog_AWK="$AWK" # Let the user override the test.
4233: else
1.62 paf 4234: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235: for as_dir in $PATH
4236: do
4237: IFS=$as_save_IFS
1.237 ! moko 4238: case $as_dir in #(((
! 4239: '') as_dir=./ ;;
! 4240: */) ;;
! 4241: *) as_dir=$as_dir/ ;;
! 4242: esac
1.150 moko 4243: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 4244: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.62 paf 4245: ac_cv_prog_AWK="$ac_prog"
1.237 ! moko 4246: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4247: break 2
4248: fi
4249: done
1.150 moko 4250: done
4251: IFS=$as_save_IFS
1.62 paf 4252:
1.237 ! moko 4253: fi ;;
! 4254: esac
1.41 paf 4255: fi
1.62 paf 4256: AWK=$ac_cv_prog_AWK
1.41 paf 4257: if test -n "$AWK"; then
1.237 ! moko 4258: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
! 4259: printf "%s\n" "$AWK" >&6; }
1.41 paf 4260: else
1.237 ! moko 4261: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4262: printf "%s\n" "no" >&6; }
1.41 paf 4263: fi
4264:
1.150 moko 4265:
1.62 paf 4266: test -n "$AWK" && break
1.41 paf 4267: done
4268:
4269:
4270: for ac_prog in 'bison -y' byacc
4271: do
1.62 paf 4272: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 4273: set dummy $ac_prog; ac_word=$2
1.237 ! moko 4274: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4275: printf %s "checking for $ac_word... " >&6; }
! 4276: if test ${ac_cv_prog_YACC+y}
! 4277: then :
! 4278: printf %s "(cached) " >&6
! 4279: else case e in #(
! 4280: e) if test -n "$YACC"; then
1.41 paf 4281: ac_cv_prog_YACC="$YACC" # Let the user override the test.
4282: else
1.62 paf 4283: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284: for as_dir in $PATH
4285: do
4286: IFS=$as_save_IFS
1.237 ! moko 4287: case $as_dir in #(((
! 4288: '') as_dir=./ ;;
! 4289: */) ;;
! 4290: *) as_dir=$as_dir/ ;;
! 4291: esac
1.150 moko 4292: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 4293: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.62 paf 4294: ac_cv_prog_YACC="$ac_prog"
1.237 ! moko 4295: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4296: break 2
4297: fi
4298: done
1.150 moko 4299: done
4300: IFS=$as_save_IFS
1.62 paf 4301:
1.237 ! moko 4302: fi ;;
! 4303: esac
1.41 paf 4304: fi
1.62 paf 4305: YACC=$ac_cv_prog_YACC
1.41 paf 4306: if test -n "$YACC"; then
1.237 ! moko 4307: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
! 4308: printf "%s\n" "$YACC" >&6; }
1.41 paf 4309: else
1.237 ! moko 4310: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4311: printf "%s\n" "no" >&6; }
1.41 paf 4312: fi
4313:
1.150 moko 4314:
1.62 paf 4315: test -n "$YACC" && break
1.41 paf 4316: done
4317: test -n "$YACC" || YACC="yacc"
4318:
4319: if test "$YACC" != "bison -y"; then
1.237 ! moko 4320: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
! 4321: printf "%s\n" "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 4322: else
1.237 ! moko 4323: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking bison version" >&5
! 4324: printf %s "checking bison version... " >&6; }
1.67 paf 4325: oldIFS=$IFS; IFS=.
4326: set `bison -V | sed -e 's/^GNU Bison version //' -e 's/^bison (GNU Bison) //' -e 's/$/./'`
4327: IFS=$oldIFS
4328: if test "$1" = "1" -a "$2" -lt "25"; then
1.237 ! moko 4329: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
! 4330: printf "%s\n" "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.67 paf 4331: fi
1.237 ! moko 4332: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $1.$2 (ok)" >&5
! 4333: printf "%s\n" "$1.$2 (ok)" >&6; }
1.62 paf 4334: fi
4335:
1.237 ! moko 4336:
! 4337:
! 4338:
! 4339:
! 4340:
! 4341:
1.150 moko 4342: ac_ext=cpp
1.66 paf 4343: ac_cpp='$CXXCPP $CPPFLAGS'
4344: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.150 moko 4347: if test -z "$CXX"; then
4348: if test -n "$CCC"; then
4349: CXX=$CCC
4350: else
4351: if test -n "$ac_tool_prefix"; then
1.237 ! moko 4352: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
1.66 paf 4353: do
4354: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4355: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 ! moko 4356: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4357: printf %s "checking for $ac_word... " >&6; }
! 4358: if test ${ac_cv_prog_CXX+y}
! 4359: then :
! 4360: printf %s "(cached) " >&6
! 4361: else case e in #(
! 4362: e) if test -n "$CXX"; then
1.66 paf 4363: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.62 paf 4364: else
4365: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366: for as_dir in $PATH
4367: do
4368: IFS=$as_save_IFS
1.237 ! moko 4369: case $as_dir in #(((
! 4370: '') as_dir=./ ;;
! 4371: */) ;;
! 4372: *) as_dir=$as_dir/ ;;
! 4373: esac
1.150 moko 4374: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 4375: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 4376: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.237 ! moko 4377: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4378: break 2
4379: fi
4380: done
1.150 moko 4381: done
4382: IFS=$as_save_IFS
1.62 paf 4383:
1.237 ! moko 4384: fi ;;
! 4385: esac
1.62 paf 4386: fi
1.66 paf 4387: CXX=$ac_cv_prog_CXX
4388: if test -n "$CXX"; then
1.237 ! moko 4389: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
! 4390: printf "%s\n" "$CXX" >&6; }
1.62 paf 4391: else
1.237 ! moko 4392: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4393: printf "%s\n" "no" >&6; }
1.41 paf 4394: fi
4395:
1.150 moko 4396:
1.66 paf 4397: test -n "$CXX" && break
4398: done
1.62 paf 4399: fi
1.66 paf 4400: if test -z "$CXX"; then
4401: ac_ct_CXX=$CXX
1.237 ! moko 4402: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
1.66 paf 4403: do
4404: # Extract the first word of "$ac_prog", so it can be a program name with args.
4405: set dummy $ac_prog; ac_word=$2
1.237 ! moko 4406: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 4407: printf %s "checking for $ac_word... " >&6; }
! 4408: if test ${ac_cv_prog_ac_ct_CXX+y}
! 4409: then :
! 4410: printf %s "(cached) " >&6
! 4411: else case e in #(
! 4412: e) if test -n "$ac_ct_CXX"; then
1.66 paf 4413: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.62 paf 4414: else
4415: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416: for as_dir in $PATH
4417: do
4418: IFS=$as_save_IFS
1.237 ! moko 4419: case $as_dir in #(((
! 4420: '') as_dir=./ ;;
! 4421: */) ;;
! 4422: *) as_dir=$as_dir/ ;;
! 4423: esac
1.150 moko 4424: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 4425: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 4426: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.237 ! moko 4427: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 4428: break 2
4429: fi
4430: done
1.150 moko 4431: done
4432: IFS=$as_save_IFS
1.62 paf 4433:
1.237 ! moko 4434: fi ;;
! 4435: esac
1.62 paf 4436: fi
1.66 paf 4437: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4438: if test -n "$ac_ct_CXX"; then
1.237 ! moko 4439: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
! 4440: printf "%s\n" "$ac_ct_CXX" >&6; }
1.62 paf 4441: else
1.237 ! moko 4442: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4443: printf "%s\n" "no" >&6; }
1.62 paf 4444: fi
4445:
1.150 moko 4446:
1.66 paf 4447: test -n "$ac_ct_CXX" && break
4448: done
4449:
1.150 moko 4450: if test "x$ac_ct_CXX" = x; then
4451: CXX="g++"
4452: else
4453: case $cross_compiling:$ac_tool_warned in
4454: yes:)
1.237 ! moko 4455: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 4456: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 4457: ac_tool_warned=yes ;;
4458: esac
4459: CXX=$ac_ct_CXX
4460: fi
1.62 paf 4461: fi
4462:
1.150 moko 4463: fi
4464: fi
1.66 paf 4465: # Provide some information about the compiler.
1.237 ! moko 4466: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
1.150 moko 4467: set X $ac_compile
4468: ac_compiler=$2
4469: for ac_option in --version -v -V -qversion; do
4470: { { ac_try="$ac_compiler $ac_option >&5"
4471: case "(($ac_try" in
4472: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473: *) ac_try_echo=$ac_try;;
4474: esac
4475: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 ! moko 4476: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4477: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.66 paf 4478: ac_status=$?
1.150 moko 4479: if test -s conftest.err; then
4480: sed '10a\
4481: ... rest of stderr output deleted ...
4482: 10q' conftest.err >conftest.er1
4483: cat conftest.er1 >&5
4484: fi
4485: rm -f conftest.er1 conftest.err
1.237 ! moko 4486: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 4487: test $ac_status = 0; }
4488: done
1.66 paf 4489:
1.150 moko 4490: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4491: /* end confdefs.h. */
4492:
4493: int
1.237 ! moko 4494: main (void)
1.66 paf 4495: {
4496:
4497: ;
4498: return 0;
4499: }
4500: _ACEOF
4501: ac_clean_files_save=$ac_clean_files
1.150 moko 4502: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1.66 paf 4503: # Try to create an executable without -o first, disregard a.out.
4504: # It will help us diagnose broken compilers, and finding out an intuition
4505: # of exeext.
1.237 ! moko 4506: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
! 4507: printf %s "checking whether the C++ compiler works... " >&6; }
! 4508: ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.150 moko 4509:
4510: # The possible output files:
4511: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4512:
4513: ac_rmfiles=
4514: for ac_file in $ac_files
4515: do
4516: case $ac_file in
4517: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4518: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4519: esac
4520: done
4521: rm -f $ac_rmfiles
4522:
4523: if { { ac_try="$ac_link_default"
4524: case "(($ac_try" in
4525: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526: *) ac_try_echo=$ac_try;;
4527: esac
4528: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 ! moko 4529: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4530: (eval "$ac_link_default") 2>&5
4531: ac_status=$?
1.237 ! moko 4532: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4533: test $ac_status = 0; }
! 4534: then :
! 4535: # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
! 4536: # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
1.150 moko 4537: # in a Makefile. We should not override ac_cv_exeext if it was cached,
4538: # so that the user can short-circuit this test for compilers unknown to
4539: # Autoconf.
4540: for ac_file in $ac_files ''
1.62 paf 4541: do
1.66 paf 4542: test -f "$ac_file" || continue
4543: case $ac_file in
1.150 moko 4544: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1.86 paf 4545: ;;
1.66 paf 4546: [ab].out )
1.86 paf 4547: # We found the default executable, but exeext='' is most
4548: # certainly right.
4549: break;;
1.66 paf 4550: *.* )
1.237 ! moko 4551: if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
1.150 moko 4552: then :; else
4553: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4554: fi
4555: # We set ac_cv_exeext here because the later test for it is not
1.237 ! moko 4556: # safe: cross compilers may not add the suffix if given an '-o'
1.150 moko 4557: # argument, so we may need to know it at that point already.
4558: # Even if this section looks crufty: it has the advantage of
4559: # actually working.
1.86 paf 4560: break;;
1.66 paf 4561: * )
1.86 paf 4562: break;;
1.66 paf 4563: esac
1.62 paf 4564: done
1.150 moko 4565: test "$ac_cv_exeext" = no && ac_cv_exeext=
4566:
1.237 ! moko 4567: else case e in #(
! 4568: e) ac_file='' ;;
! 4569: esac
1.150 moko 4570: fi
1.237 ! moko 4571: if test -z "$ac_file"
! 4572: then :
! 4573: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 4574: printf "%s\n" "no" >&6; }
! 4575: printf "%s\n" "$as_me: failed program was:" >&5
1.66 paf 4576: sed 's/^/| /' conftest.$ac_ext >&5
1.62 paf 4577:
1.237 ! moko 4578: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
! 4579: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 4580: as_fn_error 77 "C++ compiler cannot create executables
1.237 ! moko 4581: See 'config.log' for more details" "$LINENO" 5; }
! 4582: else case e in #(
! 4583: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 4584: printf "%s\n" "yes" >&6; } ;;
! 4585: esac
1.1 paf 4586: fi
1.237 ! moko 4587: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
! 4588: printf %s "checking for C++ compiler default output file name... " >&6; }
! 4589: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
! 4590: printf "%s\n" "$ac_file" >&6; }
1.66 paf 4591: ac_exeext=$ac_cv_exeext
1.62 paf 4592:
1.150 moko 4593: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1.66 paf 4594: ac_clean_files=$ac_clean_files_save
1.237 ! moko 4595: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
! 4596: printf %s "checking for suffix of executables... " >&6; }
1.150 moko 4597: if { { ac_try="$ac_link"
4598: case "(($ac_try" in
4599: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600: *) ac_try_echo=$ac_try;;
4601: esac
4602: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 ! moko 4603: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4604: (eval "$ac_link") 2>&5
1.62 paf 4605: ac_status=$?
1.237 ! moko 4606: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4607: test $ac_status = 0; }
! 4608: then :
! 4609: # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
! 4610: # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
! 4611: # work properly (i.e., refer to 'conftest.exe'), while it won't with
! 4612: # 'rm'.
1.62 paf 4613: for ac_file in conftest.exe conftest conftest.*; do
4614: test -f "$ac_file" || continue
4615: case $ac_file in
1.150 moko 4616: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1.62 paf 4617: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.86 paf 4618: break;;
1.62 paf 4619: * ) break;;
4620: esac
4621: done
1.237 ! moko 4622: else case e in #(
! 4623: e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
! 4624: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 4625: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.237 ! moko 4626: See 'config.log' for more details" "$LINENO" 5; } ;;
! 4627: esac
1.150 moko 4628: fi
4629: rm -f conftest conftest$ac_cv_exeext
1.237 ! moko 4630: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
! 4631: printf "%s\n" "$ac_cv_exeext" >&6; }
1.62 paf 4632:
4633: rm -f conftest.$ac_ext
4634: EXEEXT=$ac_cv_exeext
4635: ac_exeext=$EXEEXT
1.150 moko 4636: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637: /* end confdefs.h. */
4638: #include <stdio.h>
4639: int
1.237 ! moko 4640: main (void)
1.150 moko 4641: {
4642: FILE *f = fopen ("conftest.out", "w");
1.237 ! moko 4643: if (!f)
! 4644: return 1;
1.150 moko 4645: return ferror (f) || fclose (f) != 0;
4646:
4647: ;
4648: return 0;
4649: }
4650: _ACEOF
4651: ac_clean_files="$ac_clean_files conftest.out"
4652: # Check that the compiler produces executables we can run. If not, either
4653: # the compiler is broken, or we cross compile.
1.237 ! moko 4654: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
! 4655: printf %s "checking whether we are cross compiling... " >&6; }
1.150 moko 4656: if test "$cross_compiling" != yes; then
4657: { { ac_try="$ac_link"
4658: case "(($ac_try" in
4659: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660: *) ac_try_echo=$ac_try;;
4661: esac
4662: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 ! moko 4663: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4664: (eval "$ac_link") 2>&5
4665: ac_status=$?
1.237 ! moko 4666: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 4667: test $ac_status = 0; }
4668: if { ac_try='./conftest$ac_cv_exeext'
4669: { { case "(($ac_try" in
4670: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671: *) ac_try_echo=$ac_try;;
4672: esac
4673: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 ! moko 4674: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4675: (eval "$ac_try") 2>&5
4676: ac_status=$?
1.237 ! moko 4677: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 4678: test $ac_status = 0; }; }; then
4679: cross_compiling=no
4680: else
4681: if test "$cross_compiling" = maybe; then
4682: cross_compiling=yes
4683: else
1.237 ! moko 4684: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
! 4685: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
! 4686: as_fn_error 77 "cannot run C++ compiled programs.
! 4687: If you meant to cross compile, use '--host'.
! 4688: See 'config.log' for more details" "$LINENO" 5; }
1.150 moko 4689: fi
4690: fi
4691: fi
1.237 ! moko 4692: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
! 4693: printf "%s\n" "$cross_compiling" >&6; }
1.150 moko 4694:
1.237 ! moko 4695: rm -f conftest.$ac_ext conftest$ac_cv_exeext \
! 4696: conftest.o conftest.obj conftest.out
1.150 moko 4697: ac_clean_files=$ac_clean_files_save
1.237 ! moko 4698: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
! 4699: printf %s "checking for suffix of object files... " >&6; }
! 4700: if test ${ac_cv_objext+y}
! 4701: then :
! 4702: printf %s "(cached) " >&6
! 4703: else case e in #(
! 4704: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4705: /* end confdefs.h. */
4706:
4707: int
1.237 ! moko 4708: main (void)
1.62 paf 4709: {
4710:
4711: ;
4712: return 0;
4713: }
4714: _ACEOF
4715: rm -f conftest.o conftest.obj
1.150 moko 4716: if { { ac_try="$ac_compile"
4717: case "(($ac_try" in
4718: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719: *) ac_try_echo=$ac_try;;
4720: esac
4721: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 ! moko 4722: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 4723: (eval "$ac_compile") 2>&5
4724: ac_status=$?
1.237 ! moko 4725: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 4726: test $ac_status = 0; }
! 4727: then :
1.150 moko 4728: for ac_file in conftest.o conftest.obj conftest.*; do
4729: test -f "$ac_file" || continue;
1.62 paf 4730: case $ac_file in
1.150 moko 4731: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1.62 paf 4732: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4733: break;;
4734: esac
4735: done
1.237 ! moko 4736: else case e in #(
! 4737: e) printf "%s\n" "$as_me: failed program was:" >&5
1.62 paf 4738: sed 's/^/| /' conftest.$ac_ext >&5
4739:
1.237 ! moko 4740: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
! 4741: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 4742: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.237 ! moko 4743: See 'config.log' for more details" "$LINENO" 5; } ;;
! 4744: esac
1.62 paf 4745: fi
1.237 ! moko 4746: rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
! 4747: esac
1.62 paf 4748: fi
1.237 ! moko 4749: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
! 4750: printf "%s\n" "$ac_cv_objext" >&6; }
1.66 paf 4751: OBJEXT=$ac_cv_objext
4752: ac_objext=$OBJEXT
1.237 ! moko 4753: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
! 4754: printf %s "checking whether the compiler supports GNU C++... " >&6; }
! 4755: if test ${ac_cv_cxx_compiler_gnu+y}
! 4756: then :
! 4757: printf %s "(cached) " >&6
! 4758: else case e in #(
! 4759: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 4760: /* end confdefs.h. */
1.66 paf 4761:
1.62 paf 4762: int
1.237 ! moko 4763: main (void)
1.62 paf 4764: {
1.66 paf 4765: #ifndef __GNUC__
4766: choke me
4767: #endif
4768:
1.62 paf 4769: ;
4770: return 0;
4771: }
4772: _ACEOF
1.237 ! moko 4773: if ac_fn_cxx_try_compile "$LINENO"
! 4774: then :
1.66 paf 4775: ac_compiler_gnu=yes
1.237 ! moko 4776: else case e in #(
! 4777: e) ac_compiler_gnu=no ;;
! 4778: esac
1.1 paf 4779: fi
1.237 ! moko 4780: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.66 paf 4781: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.237 ! moko 4782: ;;
! 4783: esac
! 4784: fi
! 4785: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
! 4786: printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
! 4787: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1 paf 4788:
1.150 moko 4789: if test $ac_compiler_gnu = yes; then
4790: GXX=yes
4791: else
4792: GXX=
4793: fi
1.237 ! moko 4794: ac_test_CXXFLAGS=${CXXFLAGS+y}
1.66 paf 4795: ac_save_CXXFLAGS=$CXXFLAGS
1.237 ! moko 4796: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
! 4797: printf %s "checking whether $CXX accepts -g... " >&6; }
! 4798: if test ${ac_cv_prog_cxx_g+y}
! 4799: then :
! 4800: printf %s "(cached) " >&6
! 4801: else case e in #(
! 4802: e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
1.150 moko 4803: ac_cxx_werror_flag=yes
4804: ac_cv_prog_cxx_g=no
4805: CXXFLAGS="-g"
4806: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 4807: /* end confdefs.h. */
1.1 paf 4808:
1.66 paf 4809: int
1.237 ! moko 4810: main (void)
1.66 paf 4811: {
1.1 paf 4812:
1.66 paf 4813: ;
4814: return 0;
4815: }
1.62 paf 4816: _ACEOF
1.237 ! moko 4817: if ac_fn_cxx_try_compile "$LINENO"
! 4818: then :
1.66 paf 4819: ac_cv_prog_cxx_g=yes
1.237 ! moko 4820: else case e in #(
! 4821: e) CXXFLAGS=""
1.150 moko 4822: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823: /* end confdefs.h. */
1.66 paf 4824:
1.62 paf 4825: int
1.237 ! moko 4826: main (void)
1.62 paf 4827: {
1.150 moko 4828:
1.62 paf 4829: ;
4830: return 0;
4831: }
4832: _ACEOF
1.237 ! moko 4833: if ac_fn_cxx_try_compile "$LINENO"
! 4834: then :
1.150 moko 4835:
1.237 ! moko 4836: else case e in #(
! 4837: e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
1.150 moko 4838: CXXFLAGS="-g"
4839: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840: /* end confdefs.h. */
1.62 paf 4841:
4842: int
1.237 ! moko 4843: main (void)
1.62 paf 4844: {
1.150 moko 4845:
1.62 paf 4846: ;
4847: return 0;
4848: }
4849: _ACEOF
1.237 ! moko 4850: if ac_fn_cxx_try_compile "$LINENO"
! 4851: then :
1.150 moko 4852: ac_cv_prog_cxx_g=yes
4853: fi
1.237 ! moko 4854: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
! 4855: esac
1.150 moko 4856: fi
1.237 ! moko 4857: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
! 4858: esac
1.150 moko 4859: fi
1.237 ! moko 4860: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 4861: ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
! 4862: esac
1.150 moko 4863: fi
1.237 ! moko 4864: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
! 4865: printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
! 4866: if test $ac_test_CXXFLAGS; then
1.150 moko 4867: CXXFLAGS=$ac_save_CXXFLAGS
4868: elif test $ac_cv_prog_cxx_g = yes; then
4869: if test "$GXX" = yes; then
4870: CXXFLAGS="-g -O2"
4871: else
4872: CXXFLAGS="-g"
4873: fi
1.1 paf 4874: else
1.150 moko 4875: if test "$GXX" = yes; then
4876: CXXFLAGS="-O2"
4877: else
4878: CXXFLAGS=
4879: fi
1.1 paf 4880: fi
1.237 ! moko 4881: ac_prog_cxx_stdcxx=no
! 4882: if test x$ac_prog_cxx_stdcxx = xno
! 4883: then :
! 4884: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
! 4885: printf %s "checking for $CXX option to enable C++11 features... " >&6; }
! 4886: if test ${ac_cv_prog_cxx_cxx11+y}
! 4887: then :
! 4888: printf %s "(cached) " >&6
! 4889: else case e in #(
! 4890: e) ac_cv_prog_cxx_cxx11=no
! 4891: ac_save_CXX=$CXX
! 4892: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4893: /* end confdefs.h. */
! 4894: $ac_cxx_conftest_cxx11_program
! 4895: _ACEOF
! 4896: for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
! 4897: do
! 4898: CXX="$ac_save_CXX $ac_arg"
! 4899: if ac_fn_cxx_try_compile "$LINENO"
! 4900: then :
! 4901: ac_cv_prog_cxx_cxx11=$ac_arg
! 4902: fi
! 4903: rm -f core conftest.err conftest.$ac_objext conftest.beam
! 4904: test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
! 4905: done
! 4906: rm -f conftest.$ac_ext
! 4907: CXX=$ac_save_CXX ;;
! 4908: esac
! 4909: fi
! 4910:
! 4911: if test "x$ac_cv_prog_cxx_cxx11" = xno
! 4912: then :
! 4913: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 4914: printf "%s\n" "unsupported" >&6; }
! 4915: else case e in #(
! 4916: e) if test "x$ac_cv_prog_cxx_cxx11" = x
! 4917: then :
! 4918: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 4919: printf "%s\n" "none needed" >&6; }
! 4920: else case e in #(
! 4921: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
! 4922: printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
! 4923: CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
! 4924: esac
! 4925: fi
! 4926: ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
! 4927: ac_prog_cxx_stdcxx=cxx11 ;;
! 4928: esac
! 4929: fi
! 4930: fi
! 4931: if test x$ac_prog_cxx_stdcxx = xno
! 4932: then :
! 4933: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
! 4934: printf %s "checking for $CXX option to enable C++98 features... " >&6; }
! 4935: if test ${ac_cv_prog_cxx_cxx98+y}
! 4936: then :
! 4937: printf %s "(cached) " >&6
! 4938: else case e in #(
! 4939: e) ac_cv_prog_cxx_cxx98=no
! 4940: ac_save_CXX=$CXX
! 4941: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 4942: /* end confdefs.h. */
! 4943: $ac_cxx_conftest_cxx98_program
! 4944: _ACEOF
! 4945: for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
! 4946: do
! 4947: CXX="$ac_save_CXX $ac_arg"
! 4948: if ac_fn_cxx_try_compile "$LINENO"
! 4949: then :
! 4950: ac_cv_prog_cxx_cxx98=$ac_arg
! 4951: fi
! 4952: rm -f core conftest.err conftest.$ac_objext conftest.beam
! 4953: test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
! 4954: done
! 4955: rm -f conftest.$ac_ext
! 4956: CXX=$ac_save_CXX ;;
! 4957: esac
! 4958: fi
! 4959:
! 4960: if test "x$ac_cv_prog_cxx_cxx98" = xno
! 4961: then :
! 4962: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 4963: printf "%s\n" "unsupported" >&6; }
! 4964: else case e in #(
! 4965: e) if test "x$ac_cv_prog_cxx_cxx98" = x
! 4966: then :
! 4967: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 4968: printf "%s\n" "none needed" >&6; }
! 4969: else case e in #(
! 4970: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
! 4971: printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
! 4972: CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
! 4973: esac
! 4974: fi
! 4975: ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
! 4976: ac_prog_cxx_stdcxx=cxx98 ;;
! 4977: esac
! 4978: fi
! 4979: fi
! 4980:
1.62 paf 4981: ac_ext=c
4982: ac_cpp='$CPP $CPPFLAGS'
4983: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.86 paf 4986: DEPDIR="${am__leading_dot}deps"
1.62 paf 4987:
1.150 moko 4988: ac_config_commands="$ac_config_commands depfiles"
1.62 paf 4989:
1.237 ! moko 4990: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
! 4991: printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
1.199 moko 4992: cat > confinc.mk << 'END'
1.86 paf 4993: am__doit:
1.199 moko 4994: @echo this is the am__doit target >confinc.out
1.86 paf 4995: .PHONY: am__doit
1.62 paf 4996: END
4997: am__include="#"
4998: am__quote=
1.199 moko 4999: # BSD make does it like this.
5000: echo '.include "confinc.mk" # ignored' > confmf.BSD
5001: # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5002: echo 'include confinc.mk # ignored' > confmf.GNU
5003: _am_result=no
5004: for s in GNU BSD; do
5005: { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5006: (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5007: ac_status=$?
5008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009: (exit $ac_status); }
5010: case $?:`cat confinc.out 2>/dev/null` in #(
5011: '0:this is the am__doit target') :
5012: case $s in #(
5013: BSD) :
5014: am__include='.include' am__quote='"' ;; #(
5015: *) :
5016: am__include='include' am__quote='' ;;
5017: esac ;; #(
5018: *) :
1.150 moko 5019: ;;
1.199 moko 5020: esac
5021: if test "$am__include" != "#"; then
5022: _am_result="yes ($s style)"
5023: break
5024: fi
5025: done
5026: rm -f confinc.* confmf.*
1.237 ! moko 5027: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
! 5028: printf "%s\n" "${_am_result}" >&6; }
1.62 paf 5029:
1.150 moko 5030: # Check whether --enable-dependency-tracking was given.
1.237 ! moko 5031: if test ${enable_dependency_tracking+y}
! 5032: then :
1.150 moko 5033: enableval=$enable_dependency_tracking;
5034: fi
1.62 paf 5035:
5036: if test "x$enable_dependency_tracking" != xno; then
5037: am_depcomp="$ac_aux_dir/depcomp"
5038: AMDEPBACKSLASH='\'
1.187 moko 5039: am__nodep='_no'
1.1 paf 5040: fi
1.150 moko 5041: if test "x$enable_dependency_tracking" != xno; then
1.62 paf 5042: AMDEP_TRUE=
5043: AMDEP_FALSE='#'
5044: else
5045: AMDEP_TRUE='#'
5046: AMDEP_FALSE=
5047: fi
1.1 paf 5048:
5049:
5050:
1.66 paf 5051: depcc="$CXX" am_compiler_list=
1.1 paf 5052:
1.237 ! moko 5053: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
! 5054: printf %s "checking dependency style of $depcc... " >&6; }
! 5055: if test ${am_cv_CXX_dependencies_compiler_type+y}
! 5056: then :
! 5057: printf %s "(cached) " >&6
! 5058: else case e in #(
! 5059: e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.62 paf 5060: # We make a subdir and do the tests there. Otherwise we can end up
5061: # making bogus files that we don't know about and never remove. For
5062: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 5063: # making a dummy file named 'D' -- because '-MD' means "put the output
5064: # in D".
5065: rm -rf conftest.dir
1.62 paf 5066: mkdir conftest.dir
5067: # Copy depcomp to subdir because otherwise we won't find it if we're
5068: # using a relative directory.
5069: cp "$am_depcomp" conftest.dir
5070: cd conftest.dir
1.86 paf 5071: # We will build objects and dependencies in a subdirectory because
5072: # it helps to detect inapplicable dependency modes. For instance
5073: # both Tru64's cc and ICC support -MD to output dependencies as a
5074: # side effect of compilation, but ICC will put the dependencies in
5075: # the current directory while Tru64 will put them in the object
5076: # directory.
5077: mkdir sub
1.1 paf 5078:
1.66 paf 5079: am_cv_CXX_dependencies_compiler_type=none
1.62 paf 5080: if test "$am_compiler_list" = ""; then
5081: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 5082: fi
1.150 moko 5083: am__universal=false
5084: case " $depcc " in #(
5085: *\ -arch\ *\ -arch\ *) am__universal=true ;;
5086: esac
5087:
1.62 paf 5088: for depmode in $am_compiler_list; do
1.86 paf 5089: # Setup a source with many dependencies, because some compilers
5090: # like to wrap large dependency lists on column 80 (with \), and
5091: # we should not choose a depcomp mode which is confused by this.
5092: #
1.62 paf 5093: # We need to recreate these files for each test, as the compiler may
5094: # overwrite some of them when testing with obscure command lines.
5095: # This happens at least with the AIX C compiler.
1.86 paf 5096: : > sub/conftest.c
5097: for i in 1 2 3 4 5 6; do
5098: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 5099: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5100: # Solaris 10 /bin/sh.
5101: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 5102: done
5103: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 5104:
1.187 moko 5105: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 5106: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 5107: # handle '-M -o', and we need to detect this. Also, some Intel
5108: # versions had trouble with output in subdirs.
1.150 moko 5109: am__obj=sub/conftest.${OBJEXT-o}
5110: am__minus_obj="-o $am__obj"
1.62 paf 5111: case $depmode in
1.150 moko 5112: gcc)
5113: # This depmode causes a compiler race in universal mode.
5114: test "$am__universal" = false || continue
5115: ;;
1.62 paf 5116: nosideeffect)
1.187 moko 5117: # After this tag, mechanisms are not by side-effect, so they'll
5118: # only be used when explicitly requested.
1.62 paf 5119: if test "x$enable_dependency_tracking" = xyes; then
5120: continue
5121: else
5122: break
5123: fi
5124: ;;
1.187 moko 5125: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5126: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 5127: # not run yet. These depmodes are late enough in the game, and
5128: # so weak that their functioning should not be impacted.
5129: am__obj=conftest.${OBJEXT-o}
5130: am__minus_obj=
5131: ;;
1.62 paf 5132: none) break ;;
5133: esac
5134: if depmode=$depmode \
1.150 moko 5135: source=sub/conftest.c object=$am__obj \
1.86 paf 5136: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 5137: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 5138: >/dev/null 2>conftest.err &&
1.150 moko 5139: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 5140: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 5141: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.62 paf 5142: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 5143: # icc doesn't choke on unknown options, it will just issue warnings
5144: # or remarks (even with -Werror). So we grep stderr for any message
5145: # that says an option was ignored or not supported.
1.237 ! moko 5146: # When given -MP, icc 7.0 and 7.1 complain thus:
1.86 paf 5147: # icc: Command line warning: ignoring option '-M'; no argument required
5148: # The diagnosis changed in icc 8.0:
5149: # icc: Command line remark: option '-MP' not supported
5150: if (grep 'ignoring option' conftest.err ||
5151: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5152: am_cv_CXX_dependencies_compiler_type=$depmode
5153: break
5154: fi
1.66 paf 5155: fi
5156: done
5157:
5158: cd ..
5159: rm -rf conftest.dir
5160: else
5161: am_cv_CXX_dependencies_compiler_type=none
5162: fi
1.237 ! moko 5163: ;;
! 5164: esac
1.66 paf 5165: fi
1.237 ! moko 5166: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
! 5167: printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
1.66 paf 5168: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5169:
1.150 moko 5170: if
1.66 paf 5171: test "x$enable_dependency_tracking" != xno \
5172: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5173: am__fastdepCXX_TRUE=
5174: am__fastdepCXX_FALSE='#'
5175: else
5176: am__fastdepCXX_TRUE='#'
5177: am__fastdepCXX_FALSE=
5178: fi
5179:
5180:
1.237 ! moko 5181:
! 5182:
! 5183:
! 5184:
! 5185:
! 5186:
! 5187:
! 5188:
! 5189:
1.66 paf 5190: ac_ext=c
5191: ac_cpp='$CPP $CPPFLAGS'
5192: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195: if test -n "$ac_tool_prefix"; then
5196: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5197: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.237 ! moko 5198: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5199: printf %s "checking for $ac_word... " >&6; }
! 5200: if test ${ac_cv_prog_CC+y}
! 5201: then :
! 5202: printf %s "(cached) " >&6
! 5203: else case e in #(
! 5204: e) if test -n "$CC"; then
1.66 paf 5205: ac_cv_prog_CC="$CC" # Let the user override the test.
5206: else
5207: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208: for as_dir in $PATH
5209: do
5210: IFS=$as_save_IFS
1.237 ! moko 5211: case $as_dir in #(((
! 5212: '') as_dir=./ ;;
! 5213: */) ;;
! 5214: *) as_dir=$as_dir/ ;;
! 5215: esac
1.150 moko 5216: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 5217: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5218: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.237 ! moko 5219: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5220: break 2
5221: fi
5222: done
1.150 moko 5223: done
5224: IFS=$as_save_IFS
1.66 paf 5225:
1.237 ! moko 5226: fi ;;
! 5227: esac
1.66 paf 5228: fi
5229: CC=$ac_cv_prog_CC
5230: if test -n "$CC"; then
1.237 ! moko 5231: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 5232: printf "%s\n" "$CC" >&6; }
1.66 paf 5233: else
1.237 ! moko 5234: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5235: printf "%s\n" "no" >&6; }
1.66 paf 5236: fi
5237:
1.150 moko 5238:
1.66 paf 5239: fi
5240: if test -z "$ac_cv_prog_CC"; then
5241: ac_ct_CC=$CC
5242: # Extract the first word of "gcc", so it can be a program name with args.
5243: set dummy gcc; ac_word=$2
1.237 ! moko 5244: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5245: printf %s "checking for $ac_word... " >&6; }
! 5246: if test ${ac_cv_prog_ac_ct_CC+y}
! 5247: then :
! 5248: printf %s "(cached) " >&6
! 5249: else case e in #(
! 5250: e) if test -n "$ac_ct_CC"; then
1.66 paf 5251: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5252: else
5253: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254: for as_dir in $PATH
5255: do
5256: IFS=$as_save_IFS
1.237 ! moko 5257: case $as_dir in #(((
! 5258: '') as_dir=./ ;;
! 5259: */) ;;
! 5260: *) as_dir=$as_dir/ ;;
! 5261: esac
1.150 moko 5262: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 5263: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5264: ac_cv_prog_ac_ct_CC="gcc"
1.237 ! moko 5265: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5266: break 2
5267: fi
5268: done
1.150 moko 5269: done
5270: IFS=$as_save_IFS
1.66 paf 5271:
1.237 ! moko 5272: fi ;;
! 5273: esac
1.66 paf 5274: fi
5275: ac_ct_CC=$ac_cv_prog_ac_ct_CC
5276: if test -n "$ac_ct_CC"; then
1.237 ! moko 5277: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 5278: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 paf 5279: else
1.237 ! moko 5280: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5281: printf "%s\n" "no" >&6; }
1.62 paf 5282: fi
5283:
1.150 moko 5284: if test "x$ac_ct_CC" = x; then
5285: CC=""
5286: else
5287: case $cross_compiling:$ac_tool_warned in
5288: yes:)
1.237 ! moko 5289: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5290: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 5291: ac_tool_warned=yes ;;
5292: esac
5293: CC=$ac_ct_CC
5294: fi
1.66 paf 5295: else
5296: CC="$ac_cv_prog_CC"
1.1 paf 5297: fi
1.62 paf 5298:
1.66 paf 5299: if test -z "$CC"; then
1.150 moko 5300: if test -n "$ac_tool_prefix"; then
5301: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.66 paf 5302: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.237 ! moko 5303: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5304: printf %s "checking for $ac_word... " >&6; }
! 5305: if test ${ac_cv_prog_CC+y}
! 5306: then :
! 5307: printf %s "(cached) " >&6
! 5308: else case e in #(
! 5309: e) if test -n "$CC"; then
1.66 paf 5310: ac_cv_prog_CC="$CC" # Let the user override the test.
5311: else
5312: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313: for as_dir in $PATH
5314: do
5315: IFS=$as_save_IFS
1.237 ! moko 5316: case $as_dir in #(((
! 5317: '') as_dir=./ ;;
! 5318: */) ;;
! 5319: *) as_dir=$as_dir/ ;;
! 5320: esac
1.150 moko 5321: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 5322: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5323: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.237 ! moko 5324: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5325: break 2
5326: fi
5327: done
1.150 moko 5328: done
5329: IFS=$as_save_IFS
1.62 paf 5330:
1.237 ! moko 5331: fi ;;
! 5332: esac
1.66 paf 5333: fi
5334: CC=$ac_cv_prog_CC
5335: if test -n "$CC"; then
1.237 ! moko 5336: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 5337: printf "%s\n" "$CC" >&6; }
1.62 paf 5338: else
1.237 ! moko 5339: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5340: printf "%s\n" "no" >&6; }
1.1 paf 5341: fi
5342:
1.150 moko 5343:
1.66 paf 5344: fi
1.1 paf 5345: fi
1.66 paf 5346: if test -z "$CC"; then
5347: # Extract the first word of "cc", so it can be a program name with args.
5348: set dummy cc; ac_word=$2
1.237 ! moko 5349: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5350: printf %s "checking for $ac_word... " >&6; }
! 5351: if test ${ac_cv_prog_CC+y}
! 5352: then :
! 5353: printf %s "(cached) " >&6
! 5354: else case e in #(
! 5355: e) if test -n "$CC"; then
1.66 paf 5356: ac_cv_prog_CC="$CC" # Let the user override the test.
5357: else
5358: ac_prog_rejected=no
5359: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360: for as_dir in $PATH
5361: do
5362: IFS=$as_save_IFS
1.237 ! moko 5363: case $as_dir in #(((
! 5364: '') as_dir=./ ;;
! 5365: */) ;;
! 5366: *) as_dir=$as_dir/ ;;
! 5367: esac
1.150 moko 5368: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 5369: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 5370: if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.66 paf 5371: ac_prog_rejected=yes
5372: continue
5373: fi
5374: ac_cv_prog_CC="cc"
1.237 ! moko 5375: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.66 paf 5376: break 2
5377: fi
5378: done
1.150 moko 5379: done
5380: IFS=$as_save_IFS
1.62 paf 5381:
1.66 paf 5382: if test $ac_prog_rejected = yes; then
5383: # We found a bogon in the path, so make sure we never use it.
5384: set dummy $ac_cv_prog_CC
5385: shift
5386: if test $# != 0; then
5387: # We chose a different compiler from the bogus one.
5388: # However, it has the same basename, so the bogon will be chosen
5389: # first if we set CC to just the basename; use the full file name.
5390: shift
1.237 ! moko 5391: ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1.66 paf 5392: fi
5393: fi
1.237 ! moko 5394: fi ;;
! 5395: esac
1.66 paf 5396: fi
5397: CC=$ac_cv_prog_CC
5398: if test -n "$CC"; then
1.237 ! moko 5399: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 5400: printf "%s\n" "$CC" >&6; }
1.66 paf 5401: else
1.237 ! moko 5402: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5403: printf "%s\n" "no" >&6; }
1.1 paf 5404: fi
5405:
1.150 moko 5406:
1.66 paf 5407: fi
5408: if test -z "$CC"; then
5409: if test -n "$ac_tool_prefix"; then
1.150 moko 5410: for ac_prog in cl.exe
1.62 paf 5411: do
5412: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5413: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 ! moko 5414: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5415: printf %s "checking for $ac_word... " >&6; }
! 5416: if test ${ac_cv_prog_CC+y}
! 5417: then :
! 5418: printf %s "(cached) " >&6
! 5419: else case e in #(
! 5420: e) if test -n "$CC"; then
1.66 paf 5421: ac_cv_prog_CC="$CC" # Let the user override the test.
1.62 paf 5422: else
5423: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424: for as_dir in $PATH
5425: do
5426: IFS=$as_save_IFS
1.237 ! moko 5427: case $as_dir in #(((
! 5428: '') as_dir=./ ;;
! 5429: */) ;;
! 5430: *) as_dir=$as_dir/ ;;
! 5431: esac
1.150 moko 5432: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 5433: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5434: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.237 ! moko 5435: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 5436: break 2
5437: fi
5438: done
1.150 moko 5439: done
5440: IFS=$as_save_IFS
1.1 paf 5441:
1.237 ! moko 5442: fi ;;
! 5443: esac
1.62 paf 5444: fi
1.66 paf 5445: CC=$ac_cv_prog_CC
5446: if test -n "$CC"; then
1.237 ! moko 5447: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 5448: printf "%s\n" "$CC" >&6; }
1.1 paf 5449: else
1.237 ! moko 5450: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5451: printf "%s\n" "no" >&6; }
1.1 paf 5452: fi
5453:
1.150 moko 5454:
1.66 paf 5455: test -n "$CC" && break
1.62 paf 5456: done
5457: fi
1.66 paf 5458: if test -z "$CC"; then
5459: ac_ct_CC=$CC
1.150 moko 5460: for ac_prog in cl.exe
1.62 paf 5461: do
5462: # Extract the first word of "$ac_prog", so it can be a program name with args.
5463: set dummy $ac_prog; ac_word=$2
1.237 ! moko 5464: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5465: printf %s "checking for $ac_word... " >&6; }
! 5466: if test ${ac_cv_prog_ac_ct_CC+y}
! 5467: then :
! 5468: printf %s "(cached) " >&6
! 5469: else case e in #(
! 5470: e) if test -n "$ac_ct_CC"; then
1.66 paf 5471: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 paf 5472: else
1.62 paf 5473: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474: for as_dir in $PATH
5475: do
5476: IFS=$as_save_IFS
1.237 ! moko 5477: case $as_dir in #(((
! 5478: '') as_dir=./ ;;
! 5479: */) ;;
! 5480: *) as_dir=$as_dir/ ;;
! 5481: esac
1.150 moko 5482: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 5483: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.66 paf 5484: ac_cv_prog_ac_ct_CC="$ac_prog"
1.237 ! moko 5485: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.62 paf 5486: break 2
5487: fi
5488: done
1.150 moko 5489: done
5490: IFS=$as_save_IFS
1.62 paf 5491:
1.237 ! moko 5492: fi ;;
! 5493: esac
1.62 paf 5494: fi
1.66 paf 5495: ac_ct_CC=$ac_cv_prog_ac_ct_CC
5496: if test -n "$ac_ct_CC"; then
1.237 ! moko 5497: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 5498: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 paf 5499: else
1.237 ! moko 5500: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5501: printf "%s\n" "no" >&6; }
1.1 paf 5502: fi
5503:
1.150 moko 5504:
1.66 paf 5505: test -n "$ac_ct_CC" && break
5506: done
5507:
1.150 moko 5508: if test "x$ac_ct_CC" = x; then
5509: CC=""
5510: else
5511: case $cross_compiling:$ac_tool_warned in
5512: yes:)
1.237 ! moko 5513: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5514: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 5515: ac_tool_warned=yes ;;
5516: esac
5517: CC=$ac_ct_CC
5518: fi
1.66 paf 5519: fi
5520:
5521: fi
1.237 ! moko 5522: if test -z "$CC"; then
! 5523: if test -n "$ac_tool_prefix"; then
! 5524: # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
! 5525: set dummy ${ac_tool_prefix}clang; ac_word=$2
! 5526: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5527: printf %s "checking for $ac_word... " >&6; }
! 5528: if test ${ac_cv_prog_CC+y}
! 5529: then :
! 5530: printf %s "(cached) " >&6
! 5531: else case e in #(
! 5532: e) if test -n "$CC"; then
! 5533: ac_cv_prog_CC="$CC" # Let the user override the test.
! 5534: else
! 5535: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5536: for as_dir in $PATH
! 5537: do
! 5538: IFS=$as_save_IFS
! 5539: case $as_dir in #(((
! 5540: '') as_dir=./ ;;
! 5541: */) ;;
! 5542: *) as_dir=$as_dir/ ;;
! 5543: esac
! 5544: for ac_exec_ext in '' $ac_executable_extensions; do
! 5545: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 5546: ac_cv_prog_CC="${ac_tool_prefix}clang"
! 5547: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 5548: break 2
! 5549: fi
! 5550: done
! 5551: done
! 5552: IFS=$as_save_IFS
! 5553:
! 5554: fi ;;
! 5555: esac
! 5556: fi
! 5557: CC=$ac_cv_prog_CC
! 5558: if test -n "$CC"; then
! 5559: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
! 5560: printf "%s\n" "$CC" >&6; }
! 5561: else
! 5562: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5563: printf "%s\n" "no" >&6; }
! 5564: fi
! 5565:
! 5566:
! 5567: fi
! 5568: if test -z "$ac_cv_prog_CC"; then
! 5569: ac_ct_CC=$CC
! 5570: # Extract the first word of "clang", so it can be a program name with args.
! 5571: set dummy clang; ac_word=$2
! 5572: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 5573: printf %s "checking for $ac_word... " >&6; }
! 5574: if test ${ac_cv_prog_ac_ct_CC+y}
! 5575: then :
! 5576: printf %s "(cached) " >&6
! 5577: else case e in #(
! 5578: e) if test -n "$ac_ct_CC"; then
! 5579: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
! 5580: else
! 5581: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5582: for as_dir in $PATH
! 5583: do
! 5584: IFS=$as_save_IFS
! 5585: case $as_dir in #(((
! 5586: '') as_dir=./ ;;
! 5587: */) ;;
! 5588: *) as_dir=$as_dir/ ;;
! 5589: esac
! 5590: for ac_exec_ext in '' $ac_executable_extensions; do
! 5591: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 5592: ac_cv_prog_ac_ct_CC="clang"
! 5593: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 5594: break 2
! 5595: fi
! 5596: done
! 5597: done
! 5598: IFS=$as_save_IFS
! 5599:
! 5600: fi ;;
! 5601: esac
! 5602: fi
! 5603: ac_ct_CC=$ac_cv_prog_ac_ct_CC
! 5604: if test -n "$ac_ct_CC"; then
! 5605: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
! 5606: printf "%s\n" "$ac_ct_CC" >&6; }
! 5607: else
! 5608: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5609: printf "%s\n" "no" >&6; }
! 5610: fi
! 5611:
! 5612: if test "x$ac_ct_CC" = x; then
! 5613: CC=""
! 5614: else
! 5615: case $cross_compiling:$ac_tool_warned in
! 5616: yes:)
! 5617: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 5618: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 5619: ac_tool_warned=yes ;;
! 5620: esac
! 5621: CC=$ac_ct_CC
! 5622: fi
! 5623: else
! 5624: CC="$ac_cv_prog_CC"
! 5625: fi
! 5626:
! 5627: fi
1.62 paf 5628:
1.1 paf 5629:
1.237 ! moko 5630: test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
! 5631: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 5632: as_fn_error $? "no acceptable C compiler found in \$PATH
1.237 ! moko 5633: See 'config.log' for more details" "$LINENO" 5; }
1.62 paf 5634:
5635: # Provide some information about the compiler.
1.237 ! moko 5636: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.150 moko 5637: set X $ac_compile
5638: ac_compiler=$2
1.237 ! moko 5639: for ac_option in --version -v -V -qversion -version; do
1.150 moko 5640: { { ac_try="$ac_compiler $ac_option >&5"
5641: case "(($ac_try" in
5642: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643: *) ac_try_echo=$ac_try;;
5644: esac
5645: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.237 ! moko 5646: printf "%s\n" "$ac_try_echo"; } >&5
1.150 moko 5647: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.62 paf 5648: ac_status=$?
1.150 moko 5649: if test -s conftest.err; then
5650: sed '10a\
5651: ... rest of stderr output deleted ...
5652: 10q' conftest.err >conftest.er1
5653: cat conftest.er1 >&5
5654: fi
5655: rm -f conftest.er1 conftest.err
1.237 ! moko 5656: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 5657: test $ac_status = 0; }
5658: done
5659:
1.237 ! moko 5660: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
! 5661: printf %s "checking whether the compiler supports GNU C... " >&6; }
! 5662: if test ${ac_cv_c_compiler_gnu+y}
! 5663: then :
! 5664: printf %s "(cached) " >&6
! 5665: else case e in #(
! 5666: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 5667: /* end confdefs.h. */
5668:
5669: int
1.237 ! moko 5670: main (void)
1.62 paf 5671: {
5672: #ifndef __GNUC__
5673: choke me
5674: #endif
5675:
5676: ;
5677: return 0;
5678: }
5679: _ACEOF
1.237 ! moko 5680: if ac_fn_c_try_compile "$LINENO"
! 5681: then :
1.62 paf 5682: ac_compiler_gnu=yes
1.237 ! moko 5683: else case e in #(
! 5684: e) ac_compiler_gnu=no ;;
! 5685: esac
1.62 paf 5686: fi
1.237 ! moko 5687: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.66 paf 5688: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.237 ! moko 5689: ;;
! 5690: esac
! 5691: fi
! 5692: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
! 5693: printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
! 5694: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.62 paf 5695:
1.150 moko 5696: if test $ac_compiler_gnu = yes; then
5697: GCC=yes
5698: else
5699: GCC=
5700: fi
1.237 ! moko 5701: ac_test_CFLAGS=${CFLAGS+y}
1.66 paf 5702: ac_save_CFLAGS=$CFLAGS
1.237 ! moko 5703: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
! 5704: printf %s "checking whether $CC accepts -g... " >&6; }
! 5705: if test ${ac_cv_prog_cc_g+y}
! 5706: then :
! 5707: printf %s "(cached) " >&6
! 5708: else case e in #(
! 5709: e) ac_save_c_werror_flag=$ac_c_werror_flag
1.150 moko 5710: ac_c_werror_flag=yes
5711: ac_cv_prog_cc_g=no
5712: CFLAGS="-g"
5713: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 5714: /* end confdefs.h. */
5715:
5716: int
1.237 ! moko 5717: main (void)
1.62 paf 5718: {
5719:
5720: ;
5721: return 0;
5722: }
5723: _ACEOF
1.237 ! moko 5724: if ac_fn_c_try_compile "$LINENO"
! 5725: then :
1.66 paf 5726: ac_cv_prog_cc_g=yes
1.237 ! moko 5727: else case e in #(
! 5728: e) CFLAGS=""
1.150 moko 5729: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730: /* end confdefs.h. */
5731:
5732: int
1.237 ! moko 5733: main (void)
1.150 moko 5734: {
1.62 paf 5735:
1.150 moko 5736: ;
5737: return 0;
5738: }
5739: _ACEOF
1.237 ! moko 5740: if ac_fn_c_try_compile "$LINENO"
! 5741: then :
1.150 moko 5742:
1.237 ! moko 5743: else case e in #(
! 5744: e) ac_c_werror_flag=$ac_save_c_werror_flag
1.150 moko 5745: CFLAGS="-g"
5746: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747: /* end confdefs.h. */
5748:
5749: int
1.237 ! moko 5750: main (void)
1.150 moko 5751: {
5752:
5753: ;
5754: return 0;
5755: }
5756: _ACEOF
1.237 ! moko 5757: if ac_fn_c_try_compile "$LINENO"
! 5758: then :
1.150 moko 5759: ac_cv_prog_cc_g=yes
5760: fi
1.237 ! moko 5761: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
! 5762: esac
1.62 paf 5763: fi
1.237 ! moko 5764: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
! 5765: esac
1.62 paf 5766: fi
1.237 ! moko 5767: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 5768: ac_c_werror_flag=$ac_save_c_werror_flag ;;
! 5769: esac
1.150 moko 5770: fi
1.237 ! moko 5771: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
! 5772: printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
! 5773: if test $ac_test_CFLAGS; then
1.66 paf 5774: CFLAGS=$ac_save_CFLAGS
5775: elif test $ac_cv_prog_cc_g = yes; then
5776: if test "$GCC" = yes; then
5777: CFLAGS="-g -O2"
1.1 paf 5778: else
1.66 paf 5779: CFLAGS="-g"
1.1 paf 5780: fi
5781: else
1.66 paf 5782: if test "$GCC" = yes; then
5783: CFLAGS="-O2"
1.1 paf 5784: else
1.66 paf 5785: CFLAGS=
1.1 paf 5786: fi
5787: fi
1.237 ! moko 5788: ac_prog_cc_stdc=no
! 5789: if test x$ac_prog_cc_stdc = xno
! 5790: then :
! 5791: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
! 5792: printf %s "checking for $CC option to enable C11 features... " >&6; }
! 5793: if test ${ac_cv_prog_cc_c11+y}
! 5794: then :
! 5795: printf %s "(cached) " >&6
! 5796: else case e in #(
! 5797: e) ac_cv_prog_cc_c11=no
1.66 paf 5798: ac_save_CC=$CC
1.150 moko 5799: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 5800: /* end confdefs.h. */
1.237 ! moko 5801: $ac_c_conftest_c11_program
! 5802: _ACEOF
! 5803: for ac_arg in '' -std=gnu11
! 5804: do
! 5805: CC="$ac_save_CC $ac_arg"
! 5806: if ac_fn_c_try_compile "$LINENO"
! 5807: then :
! 5808: ac_cv_prog_cc_c11=$ac_arg
! 5809: fi
! 5810: rm -f core conftest.err conftest.$ac_objext conftest.beam
! 5811: test "x$ac_cv_prog_cc_c11" != "xno" && break
! 5812: done
! 5813: rm -f conftest.$ac_ext
! 5814: CC=$ac_save_CC ;;
! 5815: esac
! 5816: fi
1.86 paf 5817:
1.237 ! moko 5818: if test "x$ac_cv_prog_cc_c11" = xno
! 5819: then :
! 5820: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 5821: printf "%s\n" "unsupported" >&6; }
! 5822: else case e in #(
! 5823: e) if test "x$ac_cv_prog_cc_c11" = x
! 5824: then :
! 5825: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 5826: printf "%s\n" "none needed" >&6; }
! 5827: else case e in #(
! 5828: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
! 5829: printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
! 5830: CC="$CC $ac_cv_prog_cc_c11" ;;
! 5831: esac
! 5832: fi
! 5833: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
! 5834: ac_prog_cc_stdc=c11 ;;
! 5835: esac
! 5836: fi
! 5837: fi
! 5838: if test x$ac_prog_cc_stdc = xno
! 5839: then :
! 5840: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
! 5841: printf %s "checking for $CC option to enable C99 features... " >&6; }
! 5842: if test ${ac_cv_prog_cc_c99+y}
! 5843: then :
! 5844: printf %s "(cached) " >&6
! 5845: else case e in #(
! 5846: e) ac_cv_prog_cc_c99=no
! 5847: ac_save_CC=$CC
! 5848: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 5849: /* end confdefs.h. */
! 5850: $ac_c_conftest_c99_program
! 5851: _ACEOF
! 5852: for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
! 5853: do
! 5854: CC="$ac_save_CC $ac_arg"
! 5855: if ac_fn_c_try_compile "$LINENO"
! 5856: then :
! 5857: ac_cv_prog_cc_c99=$ac_arg
! 5858: fi
! 5859: rm -f core conftest.err conftest.$ac_objext conftest.beam
! 5860: test "x$ac_cv_prog_cc_c99" != "xno" && break
! 5861: done
! 5862: rm -f conftest.$ac_ext
! 5863: CC=$ac_save_CC ;;
! 5864: esac
! 5865: fi
1.86 paf 5866:
1.237 ! moko 5867: if test "x$ac_cv_prog_cc_c99" = xno
! 5868: then :
! 5869: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 5870: printf "%s\n" "unsupported" >&6; }
! 5871: else case e in #(
! 5872: e) if test "x$ac_cv_prog_cc_c99" = x
! 5873: then :
! 5874: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 5875: printf "%s\n" "none needed" >&6; }
! 5876: else case e in #(
! 5877: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
! 5878: printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
! 5879: CC="$CC $ac_cv_prog_cc_c99" ;;
! 5880: esac
! 5881: fi
! 5882: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
! 5883: ac_prog_cc_stdc=c99 ;;
! 5884: esac
! 5885: fi
! 5886: fi
! 5887: if test x$ac_prog_cc_stdc = xno
! 5888: then :
! 5889: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
! 5890: printf %s "checking for $CC option to enable C89 features... " >&6; }
! 5891: if test ${ac_cv_prog_cc_c89+y}
! 5892: then :
! 5893: printf %s "(cached) " >&6
! 5894: else case e in #(
! 5895: e) ac_cv_prog_cc_c89=no
! 5896: ac_save_CC=$CC
! 5897: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 5898: /* end confdefs.h. */
! 5899: $ac_c_conftest_c89_program
1.66 paf 5900: _ACEOF
1.237 ! moko 5901: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.66 paf 5902: do
5903: CC="$ac_save_CC $ac_arg"
1.237 ! moko 5904: if ac_fn_c_try_compile "$LINENO"
! 5905: then :
1.150 moko 5906: ac_cv_prog_cc_c89=$ac_arg
1.66 paf 5907: fi
1.237 ! moko 5908: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.150 moko 5909: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.66 paf 5910: done
1.150 moko 5911: rm -f conftest.$ac_ext
1.237 ! moko 5912: CC=$ac_save_CC ;;
! 5913: esac
! 5914: fi
1.66 paf 5915:
1.237 ! moko 5916: if test "x$ac_cv_prog_cc_c89" = xno
! 5917: then :
! 5918: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
! 5919: printf "%s\n" "unsupported" >&6; }
! 5920: else case e in #(
! 5921: e) if test "x$ac_cv_prog_cc_c89" = x
! 5922: then :
! 5923: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
! 5924: printf "%s\n" "none needed" >&6; }
! 5925: else case e in #(
! 5926: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
! 5927: printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
! 5928: CC="$CC $ac_cv_prog_cc_c89" ;;
! 5929: esac
1.66 paf 5930: fi
1.237 ! moko 5931: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
! 5932: ac_prog_cc_stdc=c89 ;;
1.66 paf 5933: esac
1.237 ! moko 5934: fi
1.62 paf 5935: fi
1.66 paf 5936:
1.62 paf 5937: ac_ext=c
5938: ac_cpp='$CPP $CPPFLAGS'
5939: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5942:
1.237 ! moko 5943:
! 5944: ac_ext=c
1.187 moko 5945: ac_cpp='$CPP $CPPFLAGS'
5946: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5947: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5948: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.237 ! moko 5949: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
! 5950: printf %s "checking whether $CC understands -c and -o together... " >&6; }
! 5951: if test ${am_cv_prog_cc_c_o+y}
! 5952: then :
! 5953: printf %s "(cached) " >&6
! 5954: else case e in #(
! 5955: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.187 moko 5956: /* end confdefs.h. */
5957:
5958: int
1.237 ! moko 5959: main (void)
1.187 moko 5960: {
5961:
5962: ;
5963: return 0;
5964: }
5965: _ACEOF
5966: # Make sure it works both with $CC and with simple cc.
5967: # Following AC_PROG_CC_C_O, we do the test twice because some
5968: # compilers refuse to overwrite an existing .o file with -o,
5969: # though they will create one.
5970: am_cv_prog_cc_c_o=yes
5971: for am_i in 1 2; do
5972: if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5973: ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5974: ac_status=$?
5975: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976: (exit $ac_status); } \
5977: && test -f conftest2.$ac_objext; then
5978: : OK
5979: else
5980: am_cv_prog_cc_c_o=no
5981: break
5982: fi
5983: done
5984: rm -f core conftest*
1.237 ! moko 5985: unset am_i ;;
! 5986: esac
1.187 moko 5987: fi
1.237 ! moko 5988: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
! 5989: printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
1.187 moko 5990: if test "$am_cv_prog_cc_c_o" != yes; then
5991: # Losing compiler, so override with the script.
5992: # FIXME: It is wrong to rewrite CC.
5993: # But if we don't then we get into trouble of one sort or another.
5994: # A longer-term fix would be to have automake use am__CC in this case,
5995: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5996: CC="$am_aux_dir/compile $CC"
5997: fi
5998: ac_ext=c
5999: ac_cpp='$CPP $CPPFLAGS'
6000: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6001: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6003:
6004:
1.66 paf 6005: depcc="$CC" am_compiler_list=
1.62 paf 6006:
1.237 ! moko 6007: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
! 6008: printf %s "checking dependency style of $depcc... " >&6; }
! 6009: if test ${am_cv_CC_dependencies_compiler_type+y}
! 6010: then :
! 6011: printf %s "(cached) " >&6
! 6012: else case e in #(
! 6013: e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.62 paf 6014: # We make a subdir and do the tests there. Otherwise we can end up
6015: # making bogus files that we don't know about and never remove. For
6016: # instance it was reported that on HP-UX the gcc test will end up
1.187 moko 6017: # making a dummy file named 'D' -- because '-MD' means "put the output
6018: # in D".
6019: rm -rf conftest.dir
1.62 paf 6020: mkdir conftest.dir
6021: # Copy depcomp to subdir because otherwise we won't find it if we're
6022: # using a relative directory.
6023: cp "$am_depcomp" conftest.dir
6024: cd conftest.dir
1.86 paf 6025: # We will build objects and dependencies in a subdirectory because
6026: # it helps to detect inapplicable dependency modes. For instance
6027: # both Tru64's cc and ICC support -MD to output dependencies as a
6028: # side effect of compilation, but ICC will put the dependencies in
6029: # the current directory while Tru64 will put them in the object
6030: # directory.
6031: mkdir sub
1.62 paf 6032:
1.66 paf 6033: am_cv_CC_dependencies_compiler_type=none
1.62 paf 6034: if test "$am_compiler_list" = ""; then
6035: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6036: fi
1.150 moko 6037: am__universal=false
6038: case " $depcc " in #(
6039: *\ -arch\ *\ -arch\ *) am__universal=true ;;
6040: esac
6041:
1.62 paf 6042: for depmode in $am_compiler_list; do
1.86 paf 6043: # Setup a source with many dependencies, because some compilers
6044: # like to wrap large dependency lists on column 80 (with \), and
6045: # we should not choose a depcomp mode which is confused by this.
6046: #
1.62 paf 6047: # We need to recreate these files for each test, as the compiler may
6048: # overwrite some of them when testing with obscure command lines.
6049: # This happens at least with the AIX C compiler.
1.86 paf 6050: : > sub/conftest.c
6051: for i in 1 2 3 4 5 6; do
6052: echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.187 moko 6053: # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6054: # Solaris 10 /bin/sh.
6055: echo '/* dummy */' > sub/conftst$i.h
1.86 paf 6056: done
6057: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.62 paf 6058:
1.187 moko 6059: # We check with '-c' and '-o' for the sake of the "dashmstdout"
1.150 moko 6060: # mode. It turns out that the SunPro C++ compiler does not properly
1.187 moko 6061: # handle '-M -o', and we need to detect this. Also, some Intel
6062: # versions had trouble with output in subdirs.
1.150 moko 6063: am__obj=sub/conftest.${OBJEXT-o}
6064: am__minus_obj="-o $am__obj"
1.62 paf 6065: case $depmode in
1.150 moko 6066: gcc)
6067: # This depmode causes a compiler race in universal mode.
6068: test "$am__universal" = false || continue
6069: ;;
1.62 paf 6070: nosideeffect)
1.187 moko 6071: # After this tag, mechanisms are not by side-effect, so they'll
6072: # only be used when explicitly requested.
1.62 paf 6073: if test "x$enable_dependency_tracking" = xyes; then
6074: continue
6075: else
6076: break
6077: fi
6078: ;;
1.187 moko 6079: msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6080: # This compiler won't grok '-c -o', but also, the minuso test has
1.150 moko 6081: # not run yet. These depmodes are late enough in the game, and
6082: # so weak that their functioning should not be impacted.
6083: am__obj=conftest.${OBJEXT-o}
6084: am__minus_obj=
6085: ;;
1.62 paf 6086: none) break ;;
6087: esac
1.66 paf 6088: if depmode=$depmode \
1.150 moko 6089: source=sub/conftest.c object=$am__obj \
1.86 paf 6090: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.150 moko 6091: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
1.86 paf 6092: >/dev/null 2>conftest.err &&
1.150 moko 6093: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1.86 paf 6094: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.150 moko 6095: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
1.66 paf 6096: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.86 paf 6097: # icc doesn't choke on unknown options, it will just issue warnings
6098: # or remarks (even with -Werror). So we grep stderr for any message
6099: # that says an option was ignored or not supported.
1.237 ! moko 6100: # When given -MP, icc 7.0 and 7.1 complain thus:
1.86 paf 6101: # icc: Command line warning: ignoring option '-M'; no argument required
6102: # The diagnosis changed in icc 8.0:
6103: # icc: Command line remark: option '-MP' not supported
6104: if (grep 'ignoring option' conftest.err ||
6105: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6106: am_cv_CC_dependencies_compiler_type=$depmode
6107: break
6108: fi
1.66 paf 6109: fi
6110: done
6111:
6112: cd ..
6113: rm -rf conftest.dir
6114: else
6115: am_cv_CC_dependencies_compiler_type=none
6116: fi
1.237 ! moko 6117: ;;
! 6118: esac
1.66 paf 6119: fi
1.237 ! moko 6120: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
! 6121: printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
1.66 paf 6122: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6123:
1.150 moko 6124: if
1.66 paf 6125: test "x$enable_dependency_tracking" != xno \
6126: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6127: am__fastdepCC_TRUE=
6128: am__fastdepCC_FALSE='#'
6129: else
6130: am__fastdepCC_TRUE='#'
6131: am__fastdepCC_FALSE=
6132: fi
6133:
6134:
1.128 moko 6135:
1.66 paf 6136: ac_ext=c
6137: ac_cpp='$CPP $CPPFLAGS'
6138: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141:
1.67 paf 6142:
1.62 paf 6143:
1.237 ! moko 6144: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dynamic-link library extension" >&5
! 6145: printf %s "checking for dynamic-link library extension... " >&6; }
1.128 moko 6146: case "$host_os" in
1.158 moko 6147: *cygwin* ) dll_extension=dll;;
6148: * ) dll_extension=so
1.66 paf 6149: esac
1.237 ! moko 6150: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dll_extension" >&5
! 6151: printf "%s\n" "$dll_extension" >&6; }
1.1 paf 6152:
1.71 paf 6153:
6154:
6155:
1.150 moko 6156: # Check whether --with-build-warnings was given.
1.237 ! moko 6157: if test ${with_build_warnings+y}
! 6158: then :
! 6159: withval=$with_build_warnings; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling compiler warnings" >&5
! 6160: printf "%s\n" "$as_me: WARNING: enabling compiler warnings" >&2;}
1.225 moko 6161: CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2 -Wextra -Wall -Wno-parentheses"
1.71 paf 6162:
1.150 moko 6163: fi
6164:
1.1 paf 6165:
6166:
1.182 moko 6167: # Check whether --with-coverage was given.
1.237 ! moko 6168: if test ${with_coverage+y}
! 6169: then :
! 6170: withval=$with_coverage; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling gcov support" >&5
! 6171: printf "%s\n" "$as_me: WARNING: enabling gcov support" >&2;}
1.182 moko 6172: CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O0-9*//g'`
6173: CXXFLAGS=`echo "$XXCFLAGS" | $SED -e 's/-O0-9*//g'`
6174: CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
6175: CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
6176: LDFLAGS="$LDFLAGS -lgcov"
6177:
6178: fi
6179:
6180:
6181:
6182: # Check whether --with-profiler was given.
1.237 ! moko 6183: if test ${with_profiler+y}
! 6184: then :
! 6185: withval=$with_profiler; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling gprof support" >&5
! 6186: printf "%s\n" "$as_me: WARNING: enabling gprof support" >&2;}
1.193 moko 6187: CFLAGS="$CFLAGS -O0 -pg -g"
6188: CXXFLAGS="$CXXFLAGS -O0 -pg -g"
1.182 moko 6189:
6190: fi
6191:
6192:
6193:
1.150 moko 6194: # Check whether --with-assertions was given.
1.237 ! moko 6195: if test ${with_assertions+y}
! 6196: then :
! 6197: withval=$with_assertions; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling assertions" >&5
! 6198: printf "%s\n" "$as_me: WARNING: enabling assertions" >&2;}
! 6199:
! 6200: else case e in #(
! 6201: e)
! 6202: printf "%s\n" "#define NDEBUG /**/" >>confdefs.h
1.67 paf 6203:
1.237 ! moko 6204: ;;
! 6205: esac
1.150 moko 6206: fi
1.67 paf 6207:
6208:
1.94 misha 6209:
1.150 moko 6210: # Check whether --with-sjlj-exceptions was given.
1.237 ! moko 6211: if test ${with_sjlj_exceptions+y}
! 6212: then :
1.150 moko 6213: withval=$with_sjlj_exceptions;
1.237 ! moko 6214: printf "%s\n" "#define PA_WITH_SJLJ_EXCEPTIONS /**/" >>confdefs.h
1.128 moko 6215:
6216:
1.150 moko 6217: fi
1.128 moko 6218:
6219:
1.62 paf 6220:
1.201 moko 6221:
1.203 moko 6222: # Check whether --with-system-cfg was given.
1.237 ! moko 6223: if test ${with_system_cfg+y}
! 6224: then :
1.203 moko 6225: withval=$with_system_cfg;
1.237 ! moko 6226: printf "%s\n" "#define SYSTEM_CONFIG_FILE \"$withval\"" >>confdefs.h
1.201 moko 6227:
6228:
6229: fi
6230:
6231:
6232:
1.150 moko 6233: # Check whether --enable-safe-mode was given.
1.237 ! moko 6234: if test ${enable_safe_mode+y}
! 6235: then :
1.150 moko 6236: enableval=$enable_safe_mode;
1.67 paf 6237: SAFE_MODE=$enableval
1.60 paf 6238:
1.1 paf 6239:
1.150 moko 6240: fi
6241:
1.128 moko 6242:
1.60 paf 6243: if test "$SAFE_MODE" = "no"; then
1.237 ! moko 6244: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: enabling reading of files belonging to group+user other then effective" >&5
! 6245: printf "%s\n" "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 6246: else
1.62 paf 6247:
1.237 ! moko 6248: printf "%s\n" "#define PA_SAFE_MODE /**/" >>confdefs.h
1.1 paf 6249:
6250: fi
6251:
1.94 misha 6252:
1.150 moko 6253: # Check whether --enable-execs was given.
1.237 ! moko 6254: if test ${enable_execs+y}
! 6255: then :
1.150 moko 6256: enableval=$enable_execs;
1.13 paf 6257: if test "$enableval" = "no"; then
1.237 ! moko 6258: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling file execs" >&5
! 6259: printf "%s\n" "$as_me: WARNING: disabling file execs" >&2;}
1.62 paf 6260:
1.237 ! moko 6261: printf "%s\n" "#define NO_PA_EXECS /**/" >>confdefs.h
1.13 paf 6262:
6263: fi
6264:
6265:
1.150 moko 6266: fi
1.13 paf 6267:
1.60 paf 6268:
1.94 misha 6269:
1.150 moko 6270: # Check whether --enable-stringstream was given.
1.237 ! moko 6271: if test ${enable_stringstream+y}
! 6272: then :
1.150 moko 6273: enableval=$enable_stringstream;
1.94 misha 6274: if test "$enableval" = "no"; then
1.237 ! moko 6275: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling stringstream usage" >&5
! 6276: printf "%s\n" "$as_me: WARNING: disabling stringstream usage" >&2;}
1.94 misha 6277:
1.237 ! moko 6278: printf "%s\n" "#define NO_STRINGSTREAM /**/" >>confdefs.h
1.94 misha 6279:
6280: fi
6281:
6282:
1.150 moko 6283: fi
1.94 misha 6284:
6285:
1.62 paf 6286:
1.17 paf 6287:
1.150 moko 6288: # Check whether --with-gc was given.
1.237 ! moko 6289: if test ${with_gc+y}
! 6290: then :
1.150 moko 6291: withval=$with_gc;
1.17 paf 6292:
1.142 moko 6293: GC=$withval
6294: GC_LIBS="$GC/libgc.la"
6295:
6296: if test -f $GC_LIBS; then
6297: GC_OK="yes"
6298: else
6299: GC_LIBS="-L$GC -lgc"
6300: fi
1.62 paf 6301:
1.151 moko 6302: if test "$GC" = "yes"; then
6303: GC=""
6304: GC_LIBS="-lgc"
1.237 ! moko 6305: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc value was not specified, hoping linker would find it" >&5
! 6306: printf "%s\n" "$as_me: WARNING: --with-gc value was not specified, hoping linker would find it" >&2;}
1.151 moko 6307: fi
6308:
1.237 ! moko 6309: else case e in #(
! 6310: e)
1.142 moko 6311: GC_LIBS="-lgc"
1.237 ! moko 6312: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-gc was not specified, hoping linker would find it" >&5
! 6313: printf "%s\n" "$as_me: WARNING: --with-gc was not specified, hoping linker would find it" >&2;}
! 6314: ;;
! 6315: esac
1.150 moko 6316: fi
1.17 paf 6317:
6318:
1.142 moko 6319: if test -z "$GC_OK"; then
1.237 ! moko 6320: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgc" >&5
! 6321: printf %s "checking for libgc... " >&6; }
1.138 moko 6322: SAVE_LIBS=$LIBS
6323: LIBS="$LIBS $GC_LIBS"
1.128 moko 6324:
1.229 moko 6325:
6326: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 6327: /* end confdefs.h. */
1.142 moko 6328: extern int GC_dont_gc;
1.67 paf 6329: int
1.237 ! moko 6330: main (void)
1.67 paf 6331: {
1.142 moko 6332: GC_dont_gc=0;
1.67 paf 6333: ;
6334: return 0;
6335: }
6336: _ACEOF
1.237 ! moko 6337: if ac_fn_c_try_link "$LINENO"
! 6338: then :
! 6339: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 6340: printf "%s\n" "yes" >&6; }
! 6341:
! 6342: else case e in #(
! 6343: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6344: printf "%s\n" "no" >&6; }
1.142 moko 6345: if test -z "$GC"; then
1.201 moko 6346: as_fn_error $? "please specify path to libgc: --with-gc=DIR" "$LINENO" 5
1.142 moko 6347: else
1.150 moko 6348: as_fn_error $? "$GC does not seem to be valid libgc installation directory" "$LINENO" 5
1.142 moko 6349: fi
1.67 paf 6350:
1.237 ! moko 6351: ;;
! 6352: esac
1.67 paf 6353: fi
1.237 ! moko 6354: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 6355: conftest$ac_exeext conftest.$ac_ext
1.229 moko 6356:
1.138 moko 6357: LIBS=$SAVE_LIBS
6358: fi
1.67 paf 6359:
6360:
1.1 paf 6361:
1.15 paf 6362:
1.142 moko 6363:
1.150 moko 6364: # Check whether --with-pcre was given.
1.237 ! moko 6365: if test ${with_pcre+y}
! 6366: then :
1.150 moko 6367: withval=$with_pcre;
1.100 misha 6368: PCRE=$withval
6369:
1.151 moko 6370: if test "$PCRE" = "yes"; then
6371: PCRE=""
1.237 ! moko 6372: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5
! 6373: printf "%s\n" "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;}
1.218 moko 6374: else
6375: PCRE_INCLUDES="-I$PCRE/include"
6376:
6377: if test -f $PCRE/include/pcre.h -a -f $PCRE/lib/libpcre.la; then
6378: PCRE_OK="yes"
6379: PCRE_LIBS="$PCRE/lib/libpcre.la"
6380: else
6381: if test -f $PCRE/include/pcre2.h -a -f $PCRE/lib/libpcre2-8.la; then
6382: PCRE_OK="yes"
6383: PCRE_LIBS="$PCRE/lib/libpcre2-8.la"
6384:
1.237 ! moko 6385: printf "%s\n" "#define HAVE_PCRE2 /**/" >>confdefs.h
1.218 moko 6386:
6387: else
6388: PCRE_LIBS="-L$PCRE/lib"
6389: fi
6390: fi
1.151 moko 6391: fi
1.142 moko 6392:
1.237 ! moko 6393: else case e in #(
! 6394: e)
! 6395: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5
! 6396: printf "%s\n" "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;}
! 6397: ;;
! 6398: esac
1.150 moko 6399: fi
1.100 misha 6400:
6401:
1.142 moko 6402: if test -z "$PCRE_OK"; then
1.237 ! moko 6403: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre2" >&5
! 6404: printf %s "checking for pcre2... " >&6; }
1.218 moko 6405: SAVE_LIBS=$LIBS
6406: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES -lpcre2-8"
1.229 moko 6407:
6408: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.218 moko 6409: /* end confdefs.h. */
6410: #define PCRE2_CODE_UNIT_WIDTH 8
6411: #include <pcre2.h>
6412: int
1.237 ! moko 6413: main (void)
1.218 moko 6414: {
6415: void *v=pcre2_general_context_create(0,0,0);
6416: ;
6417: return 0;
6418: }
6419: _ACEOF
1.237 ! moko 6420: if ac_fn_c_try_link "$LINENO"
! 6421: then :
! 6422: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 6423: printf "%s\n" "yes" >&6; }
1.218 moko 6424: PCRE_LIBS="$PCRE_LIBS -lpcre2-8"
6425:
1.237 ! moko 6426: printf "%s\n" "#define HAVE_PCRE2 /**/" >>confdefs.h
1.218 moko 6427:
6428: PCRE_OK="yes"
6429:
1.237 ! moko 6430: else case e in #(
! 6431: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6432: printf "%s\n" "no" >&6; }
1.229 moko 6433:
1.237 ! moko 6434: ;;
! 6435: esac
1.218 moko 6436: fi
1.237 ! moko 6437: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.218 moko 6438: conftest$ac_exeext conftest.$ac_ext
1.229 moko 6439:
1.218 moko 6440: LIBS=$SAVE_LIBS
6441: fi
6442:
6443: if test -z "$PCRE_OK"; then
1.237 ! moko 6444: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre" >&5
! 6445: printf %s "checking for pcre... " >&6; }
1.218 moko 6446: PCRE_LIBS="$PCRE_LIBS -lpcre"
1.142 moko 6447: SAVE_LIBS=$LIBS
6448: LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES"
1.229 moko 6449:
6450: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 6451: /* end confdefs.h. */
6452: #include <pcre.h>
6453: int
1.237 ! moko 6454: main (void)
1.142 moko 6455: {
6456: const char *v=pcre_version();
6457: ;
6458: return 0;
6459: }
6460: _ACEOF
1.237 ! moko 6461: if ac_fn_c_try_link "$LINENO"
! 6462: then :
! 6463: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 6464: printf "%s\n" "yes" >&6; }
! 6465:
! 6466: else case e in #(
! 6467: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6468: printf "%s\n" "no" >&6; }
1.142 moko 6469: if test -z "$PCRE"; then
1.201 moko 6470: as_fn_error $? "please specify path to PCRE: --with-pcre=DIR" "$LINENO" 5
1.142 moko 6471: else
1.150 moko 6472: as_fn_error $? "$PCRE does not seem to be valid PCRE installation directory" "$LINENO" 5
1.142 moko 6473: fi
6474:
1.237 ! moko 6475: ;;
! 6476: esac
1.142 moko 6477: fi
1.237 ! moko 6478: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 6479: conftest$ac_exeext conftest.$ac_ext
1.229 moko 6480:
1.142 moko 6481: LIBS=$SAVE_LIBS
6482: fi
1.100 misha 6483:
6484:
6485:
6486:
1.66 paf 6487:
6488:
1.150 moko 6489: # Check whether --with-xml was given.
1.237 ! moko 6490: if test ${with_xml+y}
! 6491: then :
1.150 moko 6492: withval=$with_xml;
1.66 paf 6493:
1.142 moko 6494: XML=$withval
6495: XML_LIBS="-lxml2 -lxslt -lexslt"
6496:
6497: if test -z "$XML" -o "$XML" = "yes"; then
6498: XML=""
6499: XML_INCLUDES="-I/usr/include/libxml2"
1.237 ! moko 6500: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-xml value was not specified, hoping linker would find it" >&5
! 6501: printf "%s\n" "$as_me: WARNING: --with-xml value was not specified, hoping linker would find it" >&2;}
1.142 moko 6502: else
6503: XML_INCLUDES="-I$XML/include -I$XML/include/libxml2"
1.193 moko 6504: XML_LIBS="-L$XML/lib $XML_LIBS"
1.67 paf 6505:
1.142 moko 6506: if test -f $XML/include/libxslt/xslt.h -a -f $XML/lib/libxml2.la \
6507: -a -f $XML/lib/libxslt.la -a -f $XML/lib/libexslt.la; then
6508: XML_LIBS="$XML/lib/libxml2.la $XML/lib/libxslt.la $XML/lib/libexslt.la"
6509: XML_OK="yes"
6510: fi
1.67 paf 6511: fi
1.66 paf 6512:
1.142 moko 6513: if test -z "$XML_OK"; then
1.237 ! moko 6514: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xml" >&5
! 6515: printf %s "checking for xml... " >&6; }
1.142 moko 6516: SAVE_LIBS=$LIBS
6517: LIBS="$LIBS $XML_LIBS $XML_INCLUDES"
1.229 moko 6518:
6519: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.142 moko 6520: /* end confdefs.h. */
6521: #include <libxslt/xslt.h>
6522: int
1.237 ! moko 6523: main (void)
1.142 moko 6524: {
6525: const char *v=xsltEngineVersion;
6526: ;
6527: return 0;
6528: }
6529: _ACEOF
1.237 ! moko 6530: if ac_fn_c_try_link "$LINENO"
! 6531: then :
! 6532: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 6533: printf "%s\n" "yes" >&6; }
! 6534:
! 6535: else case e in #(
! 6536: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6537: printf "%s\n" "no" >&6; }
1.142 moko 6538: if test -z "$XML"; then
1.201 moko 6539: as_fn_error $? "please specify path to Gnome XML libraries: --with-xml=DIR" "$LINENO" 5
1.142 moko 6540: else
1.150 moko 6541: as_fn_error $? "$XML does not seem to be valid Gnome XML installation directory" "$LINENO" 5
1.142 moko 6542: fi
6543:
1.237 ! moko 6544: ;;
! 6545: esac
1.142 moko 6546: fi
1.237 ! moko 6547: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 6548: conftest$ac_exeext conftest.$ac_ext
1.229 moko 6549:
1.142 moko 6550: LIBS=$SAVE_LIBS
1.67 paf 6551: fi
1.66 paf 6552:
1.237 ! moko 6553: printf "%s\n" "#define XML /**/" >>confdefs.h
1.150 moko 6554:
1.66 paf 6555:
1.150 moko 6556: fi
1.66 paf 6557:
1.90 paf 6558:
1.66 paf 6559:
6560:
6561:
6562:
1.90 paf 6563:
1.154 moko 6564: # Check whether --with-mailreceive was given.
1.237 ! moko 6565: if test ${with_mailreceive+y}
! 6566: then :
1.154 moko 6567: withval=$with_mailreceive;
6568: MIME=$withval
1.155 moko 6569: GLIB="glib-2.0"
1.154 moko 6570: GMIME="gmime-2.4"
6571:
6572: if test -z "$MIME" -o "$MIME" = "yes"; then
6573: MIME=""
6574: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
6575: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
1.194 moko 6576: if test -z "$MIME_LIBS"; then
6577: GMIME="gmime-3.0"
6578: MIME_INCLUDES=`pkg-config --cflags $GMIME 2>/dev/null`
6579: MIME_LIBS=`pkg-config --libs $GMIME 2>/dev/null`
6580: fi
1.237 ! moko 6581: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&5
! 6582: printf "%s\n" "$as_me: WARNING: --with-mailreceive value was not specified, hoping linker would find Gnome MIME library" >&2;}
1.154 moko 6583: else
1.155 moko 6584: MIME_INCLUDES="-I$MIME/include/$GMIME"
1.154 moko 6585: MIME_LIBS="-l$GMIME"
6586: if test -f $MIME/include/$GMIME/gmime/gmime.h -a -f $MIME/lib/lib$GMIME.la; then
6587: MIME_LIBS="$MIME/lib/lib$GMIME.la"
1.155 moko 6588: if test -f $MIME/lib/lib$GLIB.la; then
6589: MIME_INCLUDES="$MIME_INCLUDES -I$MIME/include/$GLIB -I$MIME/lib/$GLIB/include"
6590: else
6591: GLIB_INCLUDES=`pkg-config --cflags $GLIB 2>/dev/null`
6592: MIME_INCLUDES="$MIME_INCLUDES $GLIB_INCLUDES"
6593: fi
1.154 moko 6594: MIME_OK="yes"
6595: fi
1.67 paf 6596: fi
1.66 paf 6597:
1.154 moko 6598: if test -z "$MIME_OK"; then
1.237 ! moko 6599: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mime" >&5
! 6600: printf %s "checking for mime... " >&6; }
1.154 moko 6601: SAVE_LIBS=$LIBS
6602: LIBS="$LIBS $MIME_LIBS $MIME_INCLUDES"
1.229 moko 6603:
6604: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.154 moko 6605: /* end confdefs.h. */
6606: #include <gmime/gmime.h>
6607: int
1.237 ! moko 6608: main (void)
1.154 moko 6609: {
6610: guint v=gmime_major_version;
6611: ;
6612: return 0;
6613: }
6614: _ACEOF
1.237 ! moko 6615: if ac_fn_c_try_link "$LINENO"
! 6616: then :
! 6617: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 6618: printf "%s\n" "yes" >&6; }
! 6619:
! 6620: else case e in #(
! 6621: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6622: printf "%s\n" "no" >&6; }
1.154 moko 6623: if test -z "$MIME"; then
1.201 moko 6624: as_fn_error $? "please specify path to Gnome MIME library: --with-mailreceive=DIR" "$LINENO" 5
1.154 moko 6625: else
6626: as_fn_error $? "$MIME does not seem to be valid Gnome MIME installation directory" "$LINENO" 5
1.90 paf 6627: fi
1.66 paf 6628:
1.237 ! moko 6629: ;;
! 6630: esac
1.150 moko 6631: fi
1.237 ! moko 6632: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.154 moko 6633: conftest$ac_exeext conftest.$ac_ext
1.229 moko 6634:
1.154 moko 6635: LIBS=$SAVE_LIBS
1.67 paf 6636: fi
1.66 paf 6637:
1.237 ! moko 6638: printf "%s\n" "#define WITH_MAILRECEIVE /**/" >>confdefs.h
1.66 paf 6639:
6640:
1.154 moko 6641: fi
1.66 paf 6642:
6643:
6644:
6645:
6646:
6647:
6648:
1.232 moko 6649: # Check whether --with-amqp was given.
1.237 ! moko 6650: if test ${with_amqp+y}
! 6651: then :
1.232 moko 6652: withval=$with_amqp;
6653: AMQP=$withval
6654:
6655: if test -z "$AMQP" -o "$AMQP" = "yes"; then
6656: AMQP_INCLUDES=""
6657: AMQP_LIBS="-lrabbitmq"
1.237 ! moko 6658: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-amqp value was not specified, hoping linker would find it" >&5
! 6659: printf "%s\n" "$as_me: WARNING: --with-amqp value was not specified, hoping linker would find it" >&2;}
1.232 moko 6660: else
6661: AMQP_INCLUDES="-I$AMQP/include"
6662: if test -f $AMQP/lib/librabbitmq.la; then
6663: AMQP_LIBS="$AMQP/lib/librabbitmq.la"
6664: else
6665: AMQP_LIBS="-L$AMQP/lib -lrabbitmq"
6666: fi
6667: fi
6668:
1.237 ! moko 6669: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librabbitmq" >&5
! 6670: printf %s "checking for librabbitmq... " >&6; }
1.232 moko 6671: SAVE_LIBS=$LIBS
6672: LIBS="$LIBS $AMQP_LIBS $AMQP_INCLUDES"
6673:
6674: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675: /* end confdefs.h. */
6676: #include <amqp.h>
6677: int
1.237 ! moko 6678: main (void)
1.232 moko 6679: {
6680: amqp_connection_state_t c = 0;
6681: ;
6682: return 0;
6683: }
6684: _ACEOF
1.237 ! moko 6685: if ac_fn_c_try_link "$LINENO"
! 6686: then :
! 6687: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 6688: printf "%s\n" "yes" >&6; }
! 6689:
! 6690: else case e in #(
! 6691: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6692: printf "%s\n" "no" >&6; }
1.232 moko 6693: if test -z "$AMQP"; then
6694: as_fn_error $? "please specify path to librabbitmq: --with-amqp=DIR" "$LINENO" 5
6695: else
6696: as_fn_error $? "$AMQP does not seem to be valid librabbitmq installation directory" "$LINENO" 5
6697: fi
6698:
1.237 ! moko 6699: ;;
! 6700: esac
1.232 moko 6701: fi
1.237 ! moko 6702: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.232 moko 6703: conftest$ac_exeext conftest.$ac_ext
6704:
6705: LIBS=$SAVE_LIBS
6706:
1.237 ! moko 6707: printf "%s\n" "#define WITH_AMQP /**/" >>confdefs.h
1.232 moko 6708:
6709:
6710: fi
6711:
6712:
6713:
6714:
6715:
6716:
1.150 moko 6717: # Check whether --with-sendmail was given.
1.237 ! moko 6718: if test ${with_sendmail+y}
! 6719: then :
1.150 moko 6720: withval=$with_sendmail;
1.237 ! moko 6721: printf "%s\n" "#define PA_FORCED_SENDMAIL \"$withval\"" >>confdefs.h
1.66 paf 6722:
6723:
1.150 moko 6724: fi
1.66 paf 6725:
6726:
6727:
1.122 moko 6728:
1.150 moko 6729: # Check whether --with-apache was given.
1.237 ! moko 6730: if test ${with_apache+y}
! 6731: then :
1.150 moko 6732: withval=$with_apache;
1.122 moko 6733: APXS=$withval
6734:
6735: if test -z "$APXS" -o "$APXS" = "yes"; then
6736: APXS=`which apxs 2>/dev/null`
1.142 moko 6737: if test -z "$APXS"; then
6738: APXS=`which apxs2 2>/dev/null`
6739: fi
6740: fi
1.122 moko 6741:
6742: APACHE=`$APXS -q TARGET 2>/dev/null`
6743:
6744: if test -z "$APACHE"; then
1.150 moko 6745: as_fn_error $? "$APXS does not seem to be valid apache apxs utility path" "$LINENO" 5
1.67 paf 6746: fi
1.7 paf 6747:
1.122 moko 6748: APACHE_MAIN_INC=`$APXS -q INCLUDEDIR`
6749: APACHE_EXTRA_INC=`$APXS -q EXTRA_INCLUDES 2>/dev/null`
6750: APACHE_INC="-I$APACHE_MAIN_INC $APACHE_EXTRA_INC"
6751: APACHE_CFLAGS=`$APXS -q CFLAGS`
6752:
1.150 moko 6753: fi
1.7 paf 6754:
6755:
1.62 paf 6756:
1.122 moko 6757:
1.150 moko 6758: if test -n "$APACHE"; then
1.122 moko 6759: COMPILE_APACHE_MODULE_TRUE=
6760: COMPILE_APACHE_MODULE_FALSE='#'
1.66 paf 6761: else
1.122 moko 6762: COMPILE_APACHE_MODULE_TRUE='#'
6763: COMPILE_APACHE_MODULE_FALSE=
1.66 paf 6764: fi
1.1 paf 6765:
6766:
6767:
1.62 paf 6768:
6769:
1.7 paf 6770:
1.1 paf 6771:
6772:
6773:
1.62 paf 6774:
1.128 moko 6775: case `pwd` in
6776: *\ * | *\ *)
1.237 ! moko 6777: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
! 6778: printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
1.128 moko 6779: esac
6780:
6781:
6782:
1.237 ! moko 6783: macro_version='2.5.4'
! 6784: macro_revision='2.5.4'
! 6785:
1.128 moko 6786:
6787:
6788:
6789:
6790:
6791:
6792:
6793:
6794:
6795:
6796:
6797:
6798:
1.237 ! moko 6799: ltmain=$ac_aux_dir/ltmain.sh
1.128 moko 6800:
6801: # Backslashify metacharacters that are still active within
6802: # double-quoted strings.
6803: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.10 paf 6804:
1.128 moko 6805: # Same as above, but do not quote variable references.
6806: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.10 paf 6807:
1.128 moko 6808: # Sed substitution to delay expansion of an escaped shell variable in a
6809: # double_quote_subst'ed string.
6810: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.62 paf 6811:
1.128 moko 6812: # Sed substitution to delay expansion of an escaped single quote.
6813: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.86 paf 6814:
1.128 moko 6815: # Sed substitution to avoid accidental globbing in evaled expressions
6816: no_glob_subst='s/\*/\\\*/g'
1.86 paf 6817:
1.128 moko 6818: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6819: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6820: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1.86 paf 6821:
1.237 ! moko 6822: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
! 6823: printf %s "checking how to print strings... " >&6; }
1.128 moko 6824: # Test print first, because it will be a builtin if present.
6825: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6826: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6827: ECHO='print -r --'
6828: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6829: ECHO='printf %s\n'
6830: else
6831: # Use this function as a fallback that always works.
6832: func_fallback_echo ()
6833: {
6834: eval 'cat <<_LTECHO_EOF
6835: $1
6836: _LTECHO_EOF'
6837: }
6838: ECHO='func_fallback_echo'
6839: fi
1.86 paf 6840:
1.128 moko 6841: # func_echo_all arg...
6842: # Invoke $ECHO with all args, space-separated.
6843: func_echo_all ()
1.66 paf 6844: {
1.128 moko 6845: $ECHO ""
1.66 paf 6846: }
1.10 paf 6847:
1.237 ! moko 6848: case $ECHO in
! 6849: printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
! 6850: printf "%s\n" "printf" >&6; } ;;
! 6851: print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
! 6852: printf "%s\n" "print -r" >&6; } ;;
! 6853: *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
! 6854: printf "%s\n" "cat" >&6; } ;;
1.128 moko 6855: esac
6856:
6857:
6858:
6859:
6860:
6861:
6862:
6863:
6864:
6865:
6866:
6867:
6868:
6869:
1.237 ! moko 6870: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
! 6871: printf %s "checking for a sed that does not truncate output... " >&6; }
! 6872: if test ${ac_cv_path_SED+y}
! 6873: then :
! 6874: printf %s "(cached) " >&6
! 6875: else case e in #(
! 6876: e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
1.150 moko 6877: for ac_i in 1 2 3 4 5 6 7; do
6878: ac_script="$ac_script$as_nl$ac_script"
6879: done
6880: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6881: { ac_script=; unset ac_script;}
6882: if test -z "$SED"; then
6883: ac_path_SED_found=false
6884: # Loop through the user's path and test for each of PROGNAME-LIST
6885: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 6886: for as_dir in $PATH
6887: do
6888: IFS=$as_save_IFS
1.237 ! moko 6889: case $as_dir in #(((
! 6890: '') as_dir=./ ;;
! 6891: */) ;;
! 6892: *) as_dir=$as_dir/ ;;
! 6893: esac
! 6894: for ac_prog in sed gsed
! 6895: do
1.128 moko 6896: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 6897: ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
1.166 moko 6898: as_fn_executable_p "$ac_path_SED" || continue
1.150 moko 6899: # Check for GNU ac_path_SED and select it if it is found.
6900: # Check for GNU $ac_path_SED
1.237 ! moko 6901: case `"$ac_path_SED" --version 2>&1` in #(
1.150 moko 6902: *GNU*)
6903: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
1.237 ! moko 6904: #(
1.150 moko 6905: *)
6906: ac_count=0
1.237 ! moko 6907: printf %s 0123456789 >"conftest.in"
1.150 moko 6908: while :
6909: do
6910: cat "conftest.in" "conftest.in" >"conftest.tmp"
6911: mv "conftest.tmp" "conftest.in"
6912: cp "conftest.in" "conftest.nl"
1.237 ! moko 6913: printf "%s\n" '' >> "conftest.nl"
1.150 moko 6914: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6915: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6916: as_fn_arith $ac_count + 1 && ac_count=$as_val
6917: if test $ac_count -gt ${ac_path_SED_max-0}; then
6918: # Best one so far, save it but keep looking for a better one
6919: ac_cv_path_SED="$ac_path_SED"
6920: ac_path_SED_max=$ac_count
6921: fi
6922: # 10*(2^10) chars as input seems more than enough
6923: test $ac_count -gt 10 && break
6924: done
6925: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6926: esac
6927:
6928: $ac_path_SED_found && break 3
1.128 moko 6929: done
6930: done
1.150 moko 6931: done
1.128 moko 6932: IFS=$as_save_IFS
1.150 moko 6933: if test -z "$ac_cv_path_SED"; then
6934: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
1.128 moko 6935: fi
1.150 moko 6936: else
6937: ac_cv_path_SED=$SED
6938: fi
1.237 ! moko 6939: ;;
! 6940: esac
1.66 paf 6941: fi
1.237 ! moko 6942: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
! 6943: printf "%s\n" "$ac_cv_path_SED" >&6; }
1.150 moko 6944: SED="$ac_cv_path_SED"
6945: rm -f conftest.sed
1.128 moko 6946:
6947: test -z "$SED" && SED=sed
6948: Xsed="$SED -e 1s/^X//"
1.10 paf 6949:
1.128 moko 6950:
6951:
6952:
6953:
6954:
6955:
6956:
6957:
6958:
6959:
1.237 ! moko 6960: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
! 6961: printf %s "checking for grep that handles long lines and -e... " >&6; }
! 6962: if test ${ac_cv_path_GREP+y}
! 6963: then :
! 6964: printf %s "(cached) " >&6
! 6965: else case e in #(
! 6966: e) if test -z "$GREP"; then
1.150 moko 6967: ac_path_GREP_found=false
6968: # Loop through the user's path and test for each of PROGNAME-LIST
6969: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6971: do
6972: IFS=$as_save_IFS
1.237 ! moko 6973: case $as_dir in #(((
! 6974: '') as_dir=./ ;;
! 6975: */) ;;
! 6976: *) as_dir=$as_dir/ ;;
! 6977: esac
! 6978: for ac_prog in grep ggrep
! 6979: do
1.150 moko 6980: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 6981: ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
1.166 moko 6982: as_fn_executable_p "$ac_path_GREP" || continue
1.150 moko 6983: # Check for GNU ac_path_GREP and select it if it is found.
6984: # Check for GNU $ac_path_GREP
1.237 ! moko 6985: case `"$ac_path_GREP" --version 2>&1` in #(
1.150 moko 6986: *GNU*)
6987: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
1.237 ! moko 6988: #(
1.150 moko 6989: *)
6990: ac_count=0
1.237 ! moko 6991: printf %s 0123456789 >"conftest.in"
1.150 moko 6992: while :
6993: do
6994: cat "conftest.in" "conftest.in" >"conftest.tmp"
6995: mv "conftest.tmp" "conftest.in"
6996: cp "conftest.in" "conftest.nl"
1.237 ! moko 6997: printf "%s\n" 'GREP' >> "conftest.nl"
1.150 moko 6998: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6999: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7000: as_fn_arith $ac_count + 1 && ac_count=$as_val
7001: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7002: # Best one so far, save it but keep looking for a better one
7003: ac_cv_path_GREP="$ac_path_GREP"
7004: ac_path_GREP_max=$ac_count
1.128 moko 7005: fi
1.150 moko 7006: # 10*(2^10) chars as input seems more than enough
7007: test $ac_count -gt 10 && break
7008: done
7009: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7010: esac
7011:
7012: $ac_path_GREP_found && break 3
7013: done
7014: done
7015: done
7016: IFS=$as_save_IFS
7017: if test -z "$ac_cv_path_GREP"; then
7018: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7019: fi
7020: else
7021: ac_cv_path_GREP=$GREP
7022: fi
1.237 ! moko 7023: ;;
! 7024: esac
1.128 moko 7025: fi
1.237 ! moko 7026: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
! 7027: printf "%s\n" "$ac_cv_path_GREP" >&6; }
1.150 moko 7028: GREP="$ac_cv_path_GREP"
7029:
7030:
1.237 ! moko 7031: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
! 7032: printf %s "checking for egrep... " >&6; }
! 7033: if test ${ac_cv_path_EGREP+y}
! 7034: then :
! 7035: printf %s "(cached) " >&6
! 7036: else case e in #(
! 7037: e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1.150 moko 7038: then ac_cv_path_EGREP="$GREP -E"
7039: else
7040: if test -z "$EGREP"; then
7041: ac_path_EGREP_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 egrep
! 7053: do
1.150 moko 7054: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 7055: ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
1.166 moko 7056: as_fn_executable_p "$ac_path_EGREP" || continue
1.150 moko 7057: # Check for GNU ac_path_EGREP and select it if it is found.
7058: # Check for GNU $ac_path_EGREP
1.237 ! moko 7059: case `"$ac_path_EGREP" --version 2>&1` in #(
1.150 moko 7060: *GNU*)
7061: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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" 'EGREP' >> "conftest.nl"
1.150 moko 7072: "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then
7076: # Best one so far, save it but keep looking for a better one
7077: ac_cv_path_EGREP="$ac_path_EGREP"
7078: ac_path_EGREP_max=$ac_count
7079: fi
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
1.128 moko 7085:
1.150 moko 7086: $ac_path_EGREP_found && break 3
7087: done
7088: done
7089: done
7090: IFS=$as_save_IFS
7091: if test -z "$ac_cv_path_EGREP"; then
7092: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7093: fi
7094: else
7095: ac_cv_path_EGREP=$EGREP
7096: fi
1.128 moko 7097:
1.237 ! moko 7098: fi ;;
! 7099: esac
1.150 moko 7100: fi
1.237 ! moko 7101: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
! 7102: printf "%s\n" "$ac_cv_path_EGREP" >&6; }
1.150 moko 7103: EGREP="$ac_cv_path_EGREP"
7104:
1.237 ! moko 7105: EGREP_TRADITIONAL=$EGREP
! 7106: ac_cv_path_EGREP_TRADITIONAL=$EGREP
1.150 moko 7107:
1.237 ! moko 7108: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
! 7109: printf %s "checking for fgrep... " >&6; }
! 7110: if test ${ac_cv_path_FGREP+y}
! 7111: then :
! 7112: printf %s "(cached) " >&6
! 7113: else case e in #(
! 7114: e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1.150 moko 7115: then ac_cv_path_FGREP="$GREP -F"
7116: else
7117: if test -z "$FGREP"; then
7118: ac_path_FGREP_found=false
7119: # Loop through the user's path and test for each of PROGNAME-LIST
7120: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7122: do
7123: IFS=$as_save_IFS
1.237 ! moko 7124: case $as_dir in #(((
! 7125: '') as_dir=./ ;;
! 7126: */) ;;
! 7127: *) as_dir=$as_dir/ ;;
! 7128: esac
! 7129: for ac_prog in fgrep
! 7130: do
1.150 moko 7131: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 7132: ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
1.166 moko 7133: as_fn_executable_p "$ac_path_FGREP" || continue
1.150 moko 7134: # Check for GNU ac_path_FGREP and select it if it is found.
7135: # Check for GNU $ac_path_FGREP
1.237 ! moko 7136: case `"$ac_path_FGREP" --version 2>&1` in #(
1.150 moko 7137: *GNU*)
7138: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
1.237 ! moko 7139: #(
1.150 moko 7140: *)
7141: ac_count=0
1.237 ! moko 7142: printf %s 0123456789 >"conftest.in"
1.150 moko 7143: while :
7144: do
7145: cat "conftest.in" "conftest.in" >"conftest.tmp"
7146: mv "conftest.tmp" "conftest.in"
7147: cp "conftest.in" "conftest.nl"
1.237 ! moko 7148: printf "%s\n" 'FGREP' >> "conftest.nl"
1.150 moko 7149: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7150: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7151: as_fn_arith $ac_count + 1 && ac_count=$as_val
7152: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7153: # Best one so far, save it but keep looking for a better one
7154: ac_cv_path_FGREP="$ac_path_FGREP"
7155: ac_path_FGREP_max=$ac_count
1.128 moko 7156: fi
1.150 moko 7157: # 10*(2^10) chars as input seems more than enough
7158: test $ac_count -gt 10 && break
7159: done
7160: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7161: esac
7162:
7163: $ac_path_FGREP_found && break 3
7164: done
7165: done
7166: done
7167: IFS=$as_save_IFS
7168: if test -z "$ac_cv_path_FGREP"; then
7169: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7170: fi
7171: else
7172: ac_cv_path_FGREP=$FGREP
7173: fi
7174:
1.237 ! moko 7175: fi ;;
! 7176: esac
1.128 moko 7177: fi
1.237 ! moko 7178: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
! 7179: printf "%s\n" "$ac_cv_path_FGREP" >&6; }
1.150 moko 7180: FGREP="$ac_cv_path_FGREP"
1.128 moko 7181:
7182:
7183: test -z "$GREP" && GREP=grep
7184:
7185:
7186:
7187:
7188:
7189:
7190:
7191:
7192:
7193:
7194:
7195:
7196:
7197:
7198:
7199:
7200:
7201:
7202:
1.150 moko 7203: # Check whether --with-gnu-ld was given.
1.237 ! moko 7204: if test ${with_gnu_ld+y}
! 7205: then :
! 7206: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
! 7207: else case e in #(
! 7208: e) with_gnu_ld=no ;;
! 7209: esac
1.150 moko 7210: fi
7211:
1.128 moko 7212: ac_prog=ld
1.237 ! moko 7213: if test yes = "$GCC"; then
1.128 moko 7214: # Check if gcc -print-prog-name=ld gives a path.
1.237 ! moko 7215: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
! 7216: printf %s "checking for ld used by $CC... " >&6; }
1.128 moko 7217: case $host in
1.237 ! moko 7218: *-*-mingw* | *-*-windows*)
! 7219: # gcc leaves a trailing carriage return, which upsets mingw
1.128 moko 7220: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7221: *)
7222: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7223: esac
7224: case $ac_prog in
7225: # Accept absolute paths.
7226: [\\/]* | ?:[\\/]*)
7227: re_direlt='/[^/][^/]*/\.\./'
7228: # Canonicalize the pathname of ld
7229: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7230: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7231: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7232: done
1.237 ! moko 7233: test -z "$LD" && LD=$ac_prog
1.128 moko 7234: ;;
7235: "")
7236: # If it fails, then pretend we aren't using GCC.
7237: ac_prog=ld
7238: ;;
7239: *)
7240: # If it is relative, then search for the first ld in PATH.
7241: with_gnu_ld=unknown
7242: ;;
7243: esac
1.237 ! moko 7244: elif test yes = "$with_gnu_ld"; then
! 7245: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
! 7246: printf %s "checking for GNU ld... " >&6; }
! 7247: else
! 7248: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
! 7249: printf %s "checking for non-GNU ld... " >&6; }
! 7250: fi
! 7251: if test ${lt_cv_path_LD+y}
! 7252: then :
! 7253: printf %s "(cached) " >&6
! 7254: else case e in #(
! 7255: e) if test -z "$LD"; then
! 7256: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 7257: for ac_dir in $PATH; do
1.237 ! moko 7258: IFS=$lt_save_ifs
1.128 moko 7259: test -z "$ac_dir" && ac_dir=.
7260: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.237 ! moko 7261: lt_cv_path_LD=$ac_dir/$ac_prog
1.128 moko 7262: # Check to see if the program is GNU ld. I'd rather use --version,
7263: # but apparently some variants of GNU ld only accept -v.
7264: # Break only if it was the GNU/non-GNU ld that we prefer.
7265: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7266: *GNU* | *'with BFD'*)
1.237 ! moko 7267: test no != "$with_gnu_ld" && break
1.128 moko 7268: ;;
7269: *)
1.237 ! moko 7270: test yes != "$with_gnu_ld" && break
1.128 moko 7271: ;;
7272: esac
7273: fi
7274: done
1.237 ! moko 7275: IFS=$lt_save_ifs
1.128 moko 7276: else
1.237 ! moko 7277: lt_cv_path_LD=$LD # Let the user override the test with a path.
! 7278: fi ;;
! 7279: esac
1.128 moko 7280: fi
7281:
1.237 ! moko 7282: LD=$lt_cv_path_LD
1.128 moko 7283: if test -n "$LD"; then
1.237 ! moko 7284: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
! 7285: printf "%s\n" "$LD" >&6; }
1.128 moko 7286: else
1.237 ! moko 7287: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7288: printf "%s\n" "no" >&6; }
1.128 moko 7289: fi
1.150 moko 7290: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1.237 ! moko 7291: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
! 7292: printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
! 7293: if test ${lt_cv_prog_gnu_ld+y}
! 7294: then :
! 7295: printf %s "(cached) " >&6
! 7296: else case e in #(
! 7297: e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.128 moko 7298: case `$LD -v 2>&1 </dev/null` in
7299: *GNU* | *'with BFD'*)
7300: lt_cv_prog_gnu_ld=yes
7301: ;;
7302: *)
7303: lt_cv_prog_gnu_ld=no
7304: ;;
1.237 ! moko 7305: esac ;;
1.128 moko 7306: esac
7307: fi
1.237 ! moko 7308: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
! 7309: printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 7310: with_gnu_ld=$lt_cv_prog_gnu_ld
7311:
7312:
7313:
7314:
7315:
7316:
7317:
7318:
7319:
1.237 ! moko 7320: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
! 7321: printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
! 7322: if test ${lt_cv_path_NM+y}
! 7323: then :
! 7324: printf %s "(cached) " >&6
! 7325: else case e in #(
! 7326: e) if test -n "$NM"; then
1.128 moko 7327: # Let the user override the test.
1.237 ! moko 7328: lt_cv_path_NM=$NM
1.128 moko 7329: else
1.237 ! moko 7330: lt_nm_to_check=${ac_tool_prefix}nm
1.128 moko 7331: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7332: lt_nm_to_check="$lt_nm_to_check nm"
7333: fi
7334: for lt_tmp_nm in $lt_nm_to_check; do
1.237 ! moko 7335: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 7336: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
1.237 ! moko 7337: IFS=$lt_save_ifs
1.128 moko 7338: test -z "$ac_dir" && ac_dir=.
1.237 ! moko 7339: tmp_nm=$ac_dir/$lt_tmp_nm
! 7340: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
1.128 moko 7341: # Check to see if the nm accepts a BSD-compat flag.
1.237 ! moko 7342: # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
1.128 moko 7343: # nm: unknown option "B" ignored
7344: # Tru64's nm complains that /dev/null is an invalid object file
1.237 ! moko 7345: # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
! 7346: case $build_os in
! 7347: mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
! 7348: *) lt_bad_file=/dev/null ;;
! 7349: esac
! 7350: case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
! 7351: *$lt_bad_file* | *'Invalid file or object type'*)
1.128 moko 7352: lt_cv_path_NM="$tmp_nm -B"
1.237 ! moko 7353: break 2
1.128 moko 7354: ;;
7355: *)
1.237 ! moko 7356: case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
1.128 moko 7357: */dev/null*)
7358: lt_cv_path_NM="$tmp_nm -p"
1.237 ! moko 7359: break 2
1.128 moko 7360: ;;
7361: *)
7362: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7363: continue # so that we can try to find one that supports BSD flags
7364: ;;
7365: esac
7366: ;;
7367: esac
7368: fi
7369: done
1.237 ! moko 7370: IFS=$lt_save_ifs
1.128 moko 7371: done
7372: : ${lt_cv_path_NM=no}
1.237 ! moko 7373: fi ;;
! 7374: esac
1.128 moko 7375: fi
1.237 ! moko 7376: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
! 7377: printf "%s\n" "$lt_cv_path_NM" >&6; }
! 7378: if test no != "$lt_cv_path_NM"; then
! 7379: NM=$lt_cv_path_NM
1.128 moko 7380: else
7381: # Didn't find any BSD compatible name lister, look for dumpbin.
7382: if test -n "$DUMPBIN"; then :
7383: # Let the user override the test.
7384: else
7385: if test -n "$ac_tool_prefix"; then
7386: for ac_prog in dumpbin "link -dump"
7387: do
7388: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7389: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 ! moko 7390: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7391: printf %s "checking for $ac_word... " >&6; }
! 7392: if test ${ac_cv_prog_DUMPBIN+y}
! 7393: then :
! 7394: printf %s "(cached) " >&6
! 7395: else case e in #(
! 7396: e) if test -n "$DUMPBIN"; then
1.128 moko 7397: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7398: else
7399: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400: for as_dir in $PATH
7401: do
7402: IFS=$as_save_IFS
1.237 ! moko 7403: case $as_dir in #(((
! 7404: '') as_dir=./ ;;
! 7405: */) ;;
! 7406: *) as_dir=$as_dir/ ;;
! 7407: esac
1.150 moko 7408: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 7409: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 7410: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
1.237 ! moko 7411: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 7412: break 2
7413: fi
7414: done
1.150 moko 7415: done
7416: IFS=$as_save_IFS
1.128 moko 7417:
1.237 ! moko 7418: fi ;;
! 7419: esac
1.128 moko 7420: fi
7421: DUMPBIN=$ac_cv_prog_DUMPBIN
7422: if test -n "$DUMPBIN"; then
1.237 ! moko 7423: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
! 7424: printf "%s\n" "$DUMPBIN" >&6; }
1.128 moko 7425: else
1.237 ! moko 7426: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7427: printf "%s\n" "no" >&6; }
1.128 moko 7428: fi
7429:
1.150 moko 7430:
1.128 moko 7431: test -n "$DUMPBIN" && break
7432: done
7433: fi
7434: if test -z "$DUMPBIN"; then
7435: ac_ct_DUMPBIN=$DUMPBIN
7436: for ac_prog in dumpbin "link -dump"
7437: do
7438: # Extract the first word of "$ac_prog", so it can be a program name with args.
7439: set dummy $ac_prog; ac_word=$2
1.237 ! moko 7440: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7441: printf %s "checking for $ac_word... " >&6; }
! 7442: if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
! 7443: then :
! 7444: printf %s "(cached) " >&6
! 7445: else case e in #(
! 7446: e) if test -n "$ac_ct_DUMPBIN"; then
1.128 moko 7447: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7448: else
7449: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450: for as_dir in $PATH
7451: do
7452: IFS=$as_save_IFS
1.237 ! moko 7453: case $as_dir in #(((
! 7454: '') as_dir=./ ;;
! 7455: */) ;;
! 7456: *) as_dir=$as_dir/ ;;
! 7457: esac
1.150 moko 7458: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 7459: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 7460: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
1.237 ! moko 7461: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 7462: break 2
7463: fi
7464: done
1.150 moko 7465: done
7466: IFS=$as_save_IFS
1.128 moko 7467:
1.237 ! moko 7468: fi ;;
! 7469: esac
1.128 moko 7470: fi
7471: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7472: if test -n "$ac_ct_DUMPBIN"; then
1.237 ! moko 7473: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
! 7474: printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
1.128 moko 7475: else
1.237 ! moko 7476: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7477: printf "%s\n" "no" >&6; }
1.128 moko 7478: fi
7479:
1.150 moko 7480:
1.128 moko 7481: test -n "$ac_ct_DUMPBIN" && break
7482: done
7483:
1.150 moko 7484: if test "x$ac_ct_DUMPBIN" = x; then
7485: DUMPBIN=":"
7486: else
7487: case $cross_compiling:$ac_tool_warned in
7488: yes:)
1.237 ! moko 7489: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7490: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 7491: ac_tool_warned=yes ;;
7492: esac
7493: DUMPBIN=$ac_ct_DUMPBIN
7494: fi
1.128 moko 7495: fi
7496:
1.237 ! moko 7497: case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
1.128 moko 7498: *COFF*)
1.237 ! moko 7499: DUMPBIN="$DUMPBIN -symbols -headers"
1.128 moko 7500: ;;
7501: *)
7502: DUMPBIN=:
7503: ;;
7504: esac
7505: fi
7506:
1.237 ! moko 7507: if test : != "$DUMPBIN"; then
! 7508: NM=$DUMPBIN
1.128 moko 7509: fi
7510: fi
7511: test -z "$NM" && NM=nm
7512:
7513:
7514:
7515:
7516:
7517:
1.237 ! moko 7518: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
! 7519: printf %s "checking the name lister ($NM) interface... " >&6; }
! 7520: if test ${lt_cv_nm_interface+y}
! 7521: then :
! 7522: printf %s "(cached) " >&6
! 7523: else case e in #(
! 7524: e) lt_cv_nm_interface="BSD nm"
1.128 moko 7525: echo "int some_variable = 0;" > conftest.$ac_ext
7526: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7527: (eval "$ac_compile" 2>conftest.err)
7528: cat conftest.err >&5
7529: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7530: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7531: cat conftest.err >&5
7532: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7533: cat conftest.out >&5
7534: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7535: lt_cv_nm_interface="MS dumpbin"
7536: fi
1.237 ! moko 7537: rm -f conftest* ;;
! 7538: esac
1.128 moko 7539: fi
1.237 ! moko 7540: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
! 7541: printf "%s\n" "$lt_cv_nm_interface" >&6; }
1.128 moko 7542:
1.237 ! moko 7543: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
! 7544: printf %s "checking whether ln -s works... " >&6; }
1.128 moko 7545: LN_S=$as_ln_s
7546: if test "$LN_S" = "ln -s"; then
1.237 ! moko 7547: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 7548: printf "%s\n" "yes" >&6; }
1.128 moko 7549: else
1.237 ! moko 7550: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
! 7551: printf "%s\n" "no, using $LN_S" >&6; }
1.128 moko 7552: fi
7553:
7554: # find the maximum length of command line arguments
1.237 ! moko 7555: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
! 7556: printf %s "checking the maximum length of command line arguments... " >&6; }
! 7557: if test ${lt_cv_sys_max_cmd_len+y}
! 7558: then :
! 7559: printf %s "(cached) " >&6
! 7560: else case e in #(
! 7561: e) i=0
! 7562: teststring=ABCD
1.128 moko 7563:
7564: case $build_os in
7565: msdosdjgpp*)
7566: # On DJGPP, this test can blow up pretty badly due to problems in libc
7567: # (any single argument exceeding 2000 bytes causes a buffer overrun
7568: # during glob expansion). Even if it were fixed, the result of this
7569: # check would be larger than it should be.
7570: lt_cv_sys_max_cmd_len=12288; # 12K is about right
7571: ;;
7572:
1.237 ! moko 7573: gnu* | ironclad*)
! 7574: # Under GNU Hurd and Ironclad, this test is not required because there
! 7575: # is no limit to the length of command line arguments.
1.128 moko 7576: # Libtool will interpret -1 as no limit whatsoever
7577: lt_cv_sys_max_cmd_len=-1;
7578: ;;
7579:
1.237 ! moko 7580: cygwin* | mingw* | windows* | cegcc*)
1.128 moko 7581: # On Win9x/ME, this test blows up -- it succeeds, but takes
7582: # about 5 minutes as the teststring grows exponentially.
7583: # Worse, since 9x/ME are not pre-emptively multitasking,
7584: # you end up with a "frozen" computer, even though with patience
7585: # the test eventually succeeds (with a max line length of 256k).
7586: # Instead, let's just punt: use the minimum linelength reported by
7587: # all of the supported platforms: 8192 (on NT/2K/XP).
7588: lt_cv_sys_max_cmd_len=8192;
7589: ;;
7590:
7591: mint*)
7592: # On MiNT this can take a long time and run out of memory.
7593: lt_cv_sys_max_cmd_len=8192;
7594: ;;
7595:
7596: amigaos*)
7597: # On AmigaOS with pdksh, this test takes hours, literally.
7598: # So we just punt and use a minimum line length of 8192.
7599: lt_cv_sys_max_cmd_len=8192;
7600: ;;
7601:
1.237 ! moko 7602: darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
1.128 moko 7603: # This has been around since 386BSD, at least. Likely further.
7604: if test -x /sbin/sysctl; then
7605: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7606: elif test -x /usr/sbin/sysctl; then
7607: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7608: else
7609: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7610: fi
7611: # And add a safety zone
7612: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7613: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7614: ;;
7615:
7616: interix*)
7617: # We know the value 262144 and hardcode it with a safety zone (like BSD)
7618: lt_cv_sys_max_cmd_len=196608
7619: ;;
7620:
7621: os2*)
7622: # The test takes a long time on OS/2.
7623: lt_cv_sys_max_cmd_len=8192
7624: ;;
7625:
7626: osf*)
7627: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7628: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7629: # nice to cause kernel panics so lets avoid the loop below.
7630: # First set a reasonable default.
7631: lt_cv_sys_max_cmd_len=16384
7632: #
7633: if test -x /sbin/sysconfig; then
7634: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7635: *1*) lt_cv_sys_max_cmd_len=-1 ;;
7636: esac
7637: fi
7638: ;;
7639: sco3.2v5*)
7640: lt_cv_sys_max_cmd_len=102400
7641: ;;
7642: sysv5* | sco5v6* | sysv4.2uw2*)
7643: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7644: if test -n "$kargmax"; then
1.237 ! moko 7645: lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
1.128 moko 7646: else
7647: lt_cv_sys_max_cmd_len=32768
7648: fi
7649: ;;
7650: *)
7651: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1.237 ! moko 7652: if test -n "$lt_cv_sys_max_cmd_len" && \
! 7653: test undefined != "$lt_cv_sys_max_cmd_len"; then
1.128 moko 7654: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7655: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7656: else
7657: # Make teststring a little bigger before we do anything with it.
7658: # a 1K string should be a reasonable start.
1.237 ! moko 7659: for i in 1 2 3 4 5 6 7 8; do
1.128 moko 7660: teststring=$teststring$teststring
7661: done
7662: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7663: # If test is not a shell built-in, we'll probably end up computing a
7664: # maximum length that is only half of the actual maximum length, but
7665: # we can't tell.
1.237 ! moko 7666: while { test X`env echo "$teststring$teststring" 2>/dev/null` \
1.128 moko 7667: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1.237 ! moko 7668: test 17 != "$i" # 1/2 MB should be enough
1.128 moko 7669: do
7670: i=`expr $i + 1`
7671: teststring=$teststring$teststring
7672: done
7673: # Only check the string length outside the loop.
7674: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7675: teststring=
7676: # Add a significant safety factor because C++ compilers can tack on
7677: # massive amounts of additional arguments before passing them to the
7678: # linker. It appears as though 1/2 is a usable value.
7679: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7680: fi
7681: ;;
7682: esac
1.237 ! moko 7683: ;;
! 7684: esac
1.128 moko 7685: fi
7686:
1.237 ! moko 7687: if test -n "$lt_cv_sys_max_cmd_len"; then
! 7688: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
! 7689: printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
1.128 moko 7690: else
1.237 ! moko 7691: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
! 7692: printf "%s\n" "none" >&6; }
1.128 moko 7693: fi
7694: max_cmd_len=$lt_cv_sys_max_cmd_len
7695:
7696:
7697:
7698:
7699:
7700:
7701: : ${CP="cp -f"}
7702: : ${MV="mv -f"}
7703: : ${RM="rm -f"}
7704:
7705: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7706: lt_unset=unset
7707: else
7708: lt_unset=false
7709: fi
7710:
7711:
7712:
7713:
7714:
7715: # test EBCDIC or ASCII
7716: case `echo X|tr X '\101'` in
7717: A) # ASCII based system
7718: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7719: lt_SP2NL='tr \040 \012'
7720: lt_NL2SP='tr \015\012 \040\040'
7721: ;;
7722: *) # EBCDIC based system
7723: lt_SP2NL='tr \100 \n'
7724: lt_NL2SP='tr \r\n \100\100'
7725: ;;
7726: esac
7727:
7728:
7729:
7730:
7731:
7732:
7733:
7734:
7735:
1.237 ! moko 7736: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
! 7737: printf %s "checking how to convert $build file names to $host format... " >&6; }
! 7738: if test ${lt_cv_to_host_file_cmd+y}
! 7739: then :
! 7740: printf %s "(cached) " >&6
! 7741: else case e in #(
! 7742: e) case $host in
1.128 moko 7743: *-*-mingw* )
7744: case $build in
1.237 ! moko 7745: *-*-mingw* | *-*-windows* ) # actually msys
1.128 moko 7746: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7747: ;;
7748: *-*-cygwin* )
7749: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7750: ;;
7751: * ) # otherwise, assume *nix
7752: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7753: ;;
7754: esac
7755: ;;
7756: *-*-cygwin* )
7757: case $build in
1.237 ! moko 7758: *-*-mingw* | *-*-windows* ) # actually msys
1.128 moko 7759: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7760: ;;
7761: *-*-cygwin* )
7762: lt_cv_to_host_file_cmd=func_convert_file_noop
7763: ;;
7764: * ) # otherwise, assume *nix
7765: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7766: ;;
7767: esac
7768: ;;
7769: * ) # unhandled hosts (and "normal" native builds)
7770: lt_cv_to_host_file_cmd=func_convert_file_noop
7771: ;;
7772: esac
1.237 ! moko 7773: ;;
! 7774: esac
1.128 moko 7775: fi
7776:
7777: to_host_file_cmd=$lt_cv_to_host_file_cmd
1.237 ! moko 7778: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
! 7779: printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
1.128 moko 7780:
7781:
7782:
7783:
7784:
1.237 ! moko 7785: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
! 7786: printf %s "checking how to convert $build file names to toolchain format... " >&6; }
! 7787: if test ${lt_cv_to_tool_file_cmd+y}
! 7788: then :
! 7789: printf %s "(cached) " >&6
! 7790: else case e in #(
! 7791: e) #assume ordinary cross tools, or native build.
1.128 moko 7792: lt_cv_to_tool_file_cmd=func_convert_file_noop
7793: case $host in
1.237 ! moko 7794: *-*-mingw* | *-*-windows* )
1.128 moko 7795: case $build in
1.237 ! moko 7796: *-*-mingw* | *-*-windows* ) # actually msys
1.128 moko 7797: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7798: ;;
7799: esac
7800: ;;
7801: esac
1.237 ! moko 7802: ;;
! 7803: esac
1.128 moko 7804: fi
7805:
7806: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
1.237 ! moko 7807: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
! 7808: printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
1.128 moko 7809:
7810:
7811:
7812:
7813:
1.237 ! moko 7814: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
! 7815: printf %s "checking for $LD option to reload object files... " >&6; }
! 7816: if test ${lt_cv_ld_reload_flag+y}
! 7817: then :
! 7818: printf %s "(cached) " >&6
! 7819: else case e in #(
! 7820: e) lt_cv_ld_reload_flag='-r' ;;
! 7821: esac
1.128 moko 7822: fi
1.237 ! moko 7823: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
! 7824: printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
1.128 moko 7825: reload_flag=$lt_cv_ld_reload_flag
7826: case $reload_flag in
7827: "" | " "*) ;;
7828: *) reload_flag=" $reload_flag" ;;
7829: esac
7830: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7831: case $host_os in
1.237 ! moko 7832: cygwin* | mingw* | windows* | pw32* | cegcc*)
! 7833: if test yes != "$GCC"; then
1.128 moko 7834: reload_cmds=false
7835: fi
7836: ;;
7837: darwin*)
1.237 ! moko 7838: if test yes = "$GCC"; then
! 7839: reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
1.128 moko 7840: else
7841: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7842: fi
7843: ;;
7844: esac
7845:
7846:
7847:
7848:
7849:
7850:
7851:
7852:
7853:
1.237 ! moko 7854: # Extract the first word of "file", so it can be a program name with args.
! 7855: set dummy file; ac_word=$2
! 7856: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7857: printf %s "checking for $ac_word... " >&6; }
! 7858: if test ${ac_cv_prog_FILECMD+y}
! 7859: then :
! 7860: printf %s "(cached) " >&6
! 7861: else case e in #(
! 7862: e) if test -n "$FILECMD"; then
! 7863: ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
1.128 moko 7864: else
7865: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866: for as_dir in $PATH
7867: do
7868: IFS=$as_save_IFS
1.237 ! moko 7869: case $as_dir in #(((
! 7870: '') as_dir=./ ;;
! 7871: */) ;;
! 7872: *) as_dir=$as_dir/ ;;
! 7873: esac
1.150 moko 7874: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 7875: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 7876: ac_cv_prog_FILECMD="file"
! 7877: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 7878: break 2
7879: fi
7880: done
1.150 moko 7881: done
7882: IFS=$as_save_IFS
1.128 moko 7883:
1.237 ! moko 7884: test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
! 7885: fi ;;
! 7886: esac
! 7887: fi
! 7888: FILECMD=$ac_cv_prog_FILECMD
! 7889: if test -n "$FILECMD"; then
! 7890: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
! 7891: printf "%s\n" "$FILECMD" >&6; }
! 7892: else
! 7893: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7894: printf "%s\n" "no" >&6; }
1.128 moko 7895: fi
1.237 ! moko 7896:
! 7897:
! 7898:
! 7899:
! 7900:
! 7901:
! 7902:
! 7903:
! 7904: if test -n "$ac_tool_prefix"; then
! 7905: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
! 7906: set dummy ${ac_tool_prefix}objdump; ac_word=$2
! 7907: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7908: printf %s "checking for $ac_word... " >&6; }
! 7909: if test ${ac_cv_prog_OBJDUMP+y}
! 7910: then :
! 7911: printf %s "(cached) " >&6
! 7912: else case e in #(
! 7913: e) if test -n "$OBJDUMP"; then
! 7914: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
! 7915: else
! 7916: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7917: for as_dir in $PATH
! 7918: do
! 7919: IFS=$as_save_IFS
! 7920: case $as_dir in #(((
! 7921: '') as_dir=./ ;;
! 7922: */) ;;
! 7923: *) as_dir=$as_dir/ ;;
! 7924: esac
! 7925: for ac_exec_ext in '' $ac_executable_extensions; do
! 7926: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 7927: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
! 7928: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 7929: break 2
! 7930: fi
! 7931: done
! 7932: done
! 7933: IFS=$as_save_IFS
! 7934:
! 7935: fi ;;
! 7936: esac
1.128 moko 7937: fi
7938: OBJDUMP=$ac_cv_prog_OBJDUMP
7939: if test -n "$OBJDUMP"; then
1.237 ! moko 7940: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
! 7941: printf "%s\n" "$OBJDUMP" >&6; }
1.128 moko 7942: else
1.237 ! moko 7943: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7944: printf "%s\n" "no" >&6; }
1.128 moko 7945: fi
7946:
1.150 moko 7947:
1.128 moko 7948: fi
7949: if test -z "$ac_cv_prog_OBJDUMP"; then
7950: ac_ct_OBJDUMP=$OBJDUMP
7951: # Extract the first word of "objdump", so it can be a program name with args.
7952: set dummy objdump; ac_word=$2
1.237 ! moko 7953: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 7954: printf %s "checking for $ac_word... " >&6; }
! 7955: if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
! 7956: then :
! 7957: printf %s "(cached) " >&6
! 7958: else case e in #(
! 7959: e) if test -n "$ac_ct_OBJDUMP"; then
1.128 moko 7960: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7961: else
7962: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963: for as_dir in $PATH
7964: do
7965: IFS=$as_save_IFS
1.237 ! moko 7966: case $as_dir in #(((
! 7967: '') as_dir=./ ;;
! 7968: */) ;;
! 7969: *) as_dir=$as_dir/ ;;
! 7970: esac
1.150 moko 7971: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 7972: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 7973: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.237 ! moko 7974: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 7975: break 2
7976: fi
7977: done
1.150 moko 7978: done
7979: IFS=$as_save_IFS
1.128 moko 7980:
1.237 ! moko 7981: fi ;;
! 7982: esac
1.128 moko 7983: fi
7984: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7985: if test -n "$ac_ct_OBJDUMP"; then
1.237 ! moko 7986: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
! 7987: printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
1.128 moko 7988: else
1.237 ! moko 7989: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7990: printf "%s\n" "no" >&6; }
1.128 moko 7991: fi
7992:
1.150 moko 7993: if test "x$ac_ct_OBJDUMP" = x; then
7994: OBJDUMP="false"
7995: else
7996: case $cross_compiling:$ac_tool_warned in
7997: yes:)
1.237 ! moko 7998: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 7999: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 8000: ac_tool_warned=yes ;;
8001: esac
8002: OBJDUMP=$ac_ct_OBJDUMP
8003: fi
1.128 moko 8004: else
8005: OBJDUMP="$ac_cv_prog_OBJDUMP"
8006: fi
8007:
8008: test -z "$OBJDUMP" && OBJDUMP=objdump
8009:
8010:
8011:
8012:
8013:
8014:
1.237 ! moko 8015: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
! 8016: printf %s "checking how to recognize dependent libraries... " >&6; }
! 8017: if test ${lt_cv_deplibs_check_method+y}
! 8018: then :
! 8019: printf %s "(cached) " >&6
! 8020: else case e in #(
! 8021: e) lt_cv_file_magic_cmd='$MAGIC_CMD'
1.128 moko 8022: lt_cv_file_magic_test_file=
8023: lt_cv_deplibs_check_method='unknown'
8024: # Need to set the preceding variable on all platforms that support
8025: # interlibrary dependencies.
8026: # 'none' -- dependencies not supported.
1.237 ! moko 8027: # 'unknown' -- same as none, but documents that we really don't know.
1.128 moko 8028: # 'pass_all' -- all dependencies passed with no checks.
8029: # 'file_magic [[regex]]' -- check by looking for files in library path
1.237 ! moko 8030: # that responds to the $file_magic_cmd with a given extended regex.
! 8031: # If you have 'file' or equivalent on your system and you're not sure
! 8032: # whether 'pass_all' will *always* work, you probably want this one.
1.128 moko 8033:
8034: case $host_os in
8035: aix[4-9]*)
8036: lt_cv_deplibs_check_method=pass_all
8037: ;;
8038:
8039: beos*)
8040: lt_cv_deplibs_check_method=pass_all
8041: ;;
8042:
8043: bsdi[45]*)
8044: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1.237 ! moko 8045: lt_cv_file_magic_cmd='$FILECMD -L'
1.128 moko 8046: lt_cv_file_magic_test_file=/shlib/libc.so
8047: ;;
8048:
8049: cygwin*)
8050: # func_win32_libid is a shell function defined in ltmain.sh
8051: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8052: lt_cv_file_magic_cmd='func_win32_libid'
8053: ;;
8054:
1.237 ! moko 8055: mingw* | windows* | pw32*)
1.128 moko 8056: # Base MSYS/MinGW do not provide the 'file' command needed by
8057: # func_win32_libid shell function, so use a weaker test based on 'objdump',
8058: # unless we find 'file', for example because we are cross-compiling.
1.237 ! moko 8059: if ( file / ) >/dev/null 2>&1; then
1.128 moko 8060: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8061: lt_cv_file_magic_cmd='func_win32_libid'
8062: else
8063: # Keep this pattern in sync with the one in func_win32_libid.
1.237 ! moko 8064: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
1.128 moko 8065: lt_cv_file_magic_cmd='$OBJDUMP -f'
8066: fi
8067: ;;
8068:
8069: cegcc*)
8070: # use the weaker test based on 'objdump'. See mingw*.
8071: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8072: lt_cv_file_magic_cmd='$OBJDUMP -f'
8073: ;;
8074:
8075: darwin* | rhapsody*)
8076: lt_cv_deplibs_check_method=pass_all
8077: ;;
8078:
1.237 ! moko 8079: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 8080: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8081: case $host_cpu in
8082: i*86 )
8083: # Not sure whether the presence of OpenBSD here was a mistake.
8084: # Let's accept both of them until this is cleared up.
8085: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.237 ! moko 8086: lt_cv_file_magic_cmd=$FILECMD
1.128 moko 8087: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8088: ;;
8089: esac
8090: else
8091: lt_cv_deplibs_check_method=pass_all
8092: fi
8093: ;;
8094:
8095: haiku*)
8096: lt_cv_deplibs_check_method=pass_all
8097: ;;
8098:
8099: hpux10.20* | hpux11*)
1.237 ! moko 8100: lt_cv_file_magic_cmd=$FILECMD
1.128 moko 8101: case $host_cpu in
8102: ia64*)
8103: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8104: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8105: ;;
8106: hppa*64*)
8107: 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]'
8108: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8109: ;;
8110: *)
8111: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8112: lt_cv_file_magic_test_file=/usr/lib/libc.sl
8113: ;;
8114: esac
8115: ;;
8116:
8117: interix[3-9]*)
8118: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8119: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8120: ;;
8121:
8122: irix5* | irix6* | nonstopux*)
8123: case $LD in
8124: *-32|*"-32 ") libmagic=32-bit;;
8125: *-n32|*"-n32 ") libmagic=N32;;
8126: *-64|*"-64 ") libmagic=64-bit;;
8127: *) libmagic=never-match;;
8128: esac
8129: lt_cv_deplibs_check_method=pass_all
8130: ;;
8131:
8132: # This must be glibc/ELF.
1.237 ! moko 8133: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
! 8134: lt_cv_deplibs_check_method=pass_all
! 8135: ;;
! 8136:
! 8137: *-mlibc)
1.128 moko 8138: lt_cv_deplibs_check_method=pass_all
8139: ;;
8140:
1.237 ! moko 8141: netbsd* | netbsdelf*-gnu)
1.128 moko 8142: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8143: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8144: else
8145: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8146: fi
8147: ;;
8148:
8149: newos6*)
8150: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1.237 ! moko 8151: lt_cv_file_magic_cmd=$FILECMD
1.128 moko 8152: lt_cv_file_magic_test_file=/usr/lib/libnls.so
8153: ;;
8154:
8155: *nto* | *qnx*)
8156: lt_cv_deplibs_check_method=pass_all
8157: ;;
8158:
8159: openbsd*)
1.237 ! moko 8160: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1.128 moko 8161: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8162: else
8163: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8164: fi
8165: ;;
8166:
8167: osf3* | osf4* | osf5*)
8168: lt_cv_deplibs_check_method=pass_all
8169: ;;
8170:
8171: rdos*)
8172: lt_cv_deplibs_check_method=pass_all
8173: ;;
8174:
1.237 ! moko 8175: serenity*)
! 8176: lt_cv_deplibs_check_method=pass_all
! 8177: ;;
! 8178:
1.128 moko 8179: solaris*)
8180: lt_cv_deplibs_check_method=pass_all
8181: ;;
8182:
8183: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8184: lt_cv_deplibs_check_method=pass_all
8185: ;;
8186:
8187: sysv4 | sysv4.3*)
8188: case $host_vendor in
8189: motorola)
8190: 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]'
8191: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8192: ;;
8193: ncr)
8194: lt_cv_deplibs_check_method=pass_all
8195: ;;
8196: sequent)
8197: lt_cv_file_magic_cmd='/bin/file'
8198: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8199: ;;
8200: sni)
8201: lt_cv_file_magic_cmd='/bin/file'
8202: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8203: lt_cv_file_magic_test_file=/lib/libc.so
8204: ;;
8205: siemens)
8206: lt_cv_deplibs_check_method=pass_all
8207: ;;
8208: pc)
8209: lt_cv_deplibs_check_method=pass_all
8210: ;;
8211: esac
8212: ;;
8213:
8214: tpf*)
8215: lt_cv_deplibs_check_method=pass_all
8216: ;;
1.237 ! moko 8217: os2*)
! 8218: lt_cv_deplibs_check_method=pass_all
! 8219: ;;
! 8220: esac
! 8221: ;;
1.128 moko 8222: esac
8223: fi
1.237 ! moko 8224: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
! 8225: printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
1.128 moko 8226:
8227: file_magic_glob=
8228: want_nocaseglob=no
8229: if test "$build" = "$host"; then
8230: case $host_os in
1.237 ! moko 8231: mingw* | windows* | pw32*)
1.128 moko 8232: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8233: want_nocaseglob=yes
8234: else
8235: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8236: fi
8237: ;;
8238: esac
8239: fi
8240:
8241: file_magic_cmd=$lt_cv_file_magic_cmd
8242: deplibs_check_method=$lt_cv_deplibs_check_method
8243: test -z "$deplibs_check_method" && deplibs_check_method=unknown
8244:
8245:
8246:
8247:
8248:
8249:
8250:
8251:
8252:
8253:
8254:
8255:
8256:
8257:
8258:
8259:
8260:
8261:
8262:
8263:
8264:
8265:
8266: if test -n "$ac_tool_prefix"; then
8267: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8268: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.237 ! moko 8269: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8270: printf %s "checking for $ac_word... " >&6; }
! 8271: if test ${ac_cv_prog_DLLTOOL+y}
! 8272: then :
! 8273: printf %s "(cached) " >&6
! 8274: else case e in #(
! 8275: e) if test -n "$DLLTOOL"; then
1.128 moko 8276: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8277: else
8278: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279: for as_dir in $PATH
8280: do
8281: IFS=$as_save_IFS
1.237 ! moko 8282: case $as_dir in #(((
! 8283: '') as_dir=./ ;;
! 8284: */) ;;
! 8285: *) as_dir=$as_dir/ ;;
! 8286: esac
1.150 moko 8287: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 8288: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 8289: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.237 ! moko 8290: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8291: break 2
8292: fi
8293: done
1.150 moko 8294: done
8295: IFS=$as_save_IFS
1.128 moko 8296:
1.237 ! moko 8297: fi ;;
! 8298: esac
1.128 moko 8299: fi
8300: DLLTOOL=$ac_cv_prog_DLLTOOL
8301: if test -n "$DLLTOOL"; then
1.237 ! moko 8302: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
! 8303: printf "%s\n" "$DLLTOOL" >&6; }
1.128 moko 8304: else
1.237 ! moko 8305: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8306: printf "%s\n" "no" >&6; }
1.128 moko 8307: fi
8308:
1.150 moko 8309:
1.128 moko 8310: fi
8311: if test -z "$ac_cv_prog_DLLTOOL"; then
8312: ac_ct_DLLTOOL=$DLLTOOL
8313: # Extract the first word of "dlltool", so it can be a program name with args.
8314: set dummy dlltool; ac_word=$2
1.237 ! moko 8315: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8316: printf %s "checking for $ac_word... " >&6; }
! 8317: if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
! 8318: then :
! 8319: printf %s "(cached) " >&6
! 8320: else case e in #(
! 8321: e) if test -n "$ac_ct_DLLTOOL"; then
1.128 moko 8322: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8323: else
8324: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325: for as_dir in $PATH
8326: do
8327: IFS=$as_save_IFS
1.237 ! moko 8328: case $as_dir in #(((
! 8329: '') as_dir=./ ;;
! 8330: */) ;;
! 8331: *) as_dir=$as_dir/ ;;
! 8332: esac
1.150 moko 8333: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 8334: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 8335: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.237 ! moko 8336: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8337: break 2
8338: fi
8339: done
1.150 moko 8340: done
8341: IFS=$as_save_IFS
1.128 moko 8342:
1.237 ! moko 8343: fi ;;
! 8344: esac
1.128 moko 8345: fi
8346: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8347: if test -n "$ac_ct_DLLTOOL"; then
1.237 ! moko 8348: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
! 8349: printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
1.128 moko 8350: else
1.237 ! moko 8351: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8352: printf "%s\n" "no" >&6; }
1.128 moko 8353: fi
8354:
1.150 moko 8355: if test "x$ac_ct_DLLTOOL" = x; then
8356: DLLTOOL="false"
8357: else
8358: case $cross_compiling:$ac_tool_warned in
8359: yes:)
1.237 ! moko 8360: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8361: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 8362: ac_tool_warned=yes ;;
8363: esac
8364: DLLTOOL=$ac_ct_DLLTOOL
8365: fi
1.128 moko 8366: else
8367: DLLTOOL="$ac_cv_prog_DLLTOOL"
8368: fi
8369:
8370: test -z "$DLLTOOL" && DLLTOOL=dlltool
8371:
8372:
8373:
8374:
8375:
8376:
8377:
1.237 ! moko 8378: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
! 8379: printf %s "checking how to associate runtime and link libraries... " >&6; }
! 8380: if test ${lt_cv_sharedlib_from_linklib_cmd+y}
! 8381: then :
! 8382: printf %s "(cached) " >&6
! 8383: else case e in #(
! 8384: e) lt_cv_sharedlib_from_linklib_cmd='unknown'
1.128 moko 8385:
8386: case $host_os in
1.237 ! moko 8387: cygwin* | mingw* | windows* | pw32* | cegcc*)
! 8388: # two different shell functions defined in ltmain.sh;
! 8389: # decide which one to use based on capabilities of $DLLTOOL
1.128 moko 8390: case `$DLLTOOL --help 2>&1` in
8391: *--identify-strict*)
8392: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8393: ;;
8394: *)
8395: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8396: ;;
8397: esac
8398: ;;
8399: *)
8400: # fallback: assume linklib IS sharedlib
1.237 ! moko 8401: lt_cv_sharedlib_from_linklib_cmd=$ECHO
1.128 moko 8402: ;;
8403: esac
1.237 ! moko 8404: ;;
! 8405: esac
1.128 moko 8406: fi
1.237 ! moko 8407: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
! 8408: printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
1.128 moko 8409: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8410: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8411:
8412:
8413:
8414:
8415:
8416:
8417:
8418: if test -n "$ac_tool_prefix"; then
1.237 ! moko 8419: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
! 8420: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
! 8421: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8422: printf %s "checking for $ac_word... " >&6; }
! 8423: if test ${ac_cv_prog_RANLIB+y}
! 8424: then :
! 8425: printf %s "(cached) " >&6
! 8426: else case e in #(
! 8427: e) if test -n "$RANLIB"; then
! 8428: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
! 8429: else
! 8430: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 8431: for as_dir in $PATH
! 8432: do
! 8433: IFS=$as_save_IFS
! 8434: case $as_dir in #(((
! 8435: '') as_dir=./ ;;
! 8436: */) ;;
! 8437: *) as_dir=$as_dir/ ;;
! 8438: esac
! 8439: for ac_exec_ext in '' $ac_executable_extensions; do
! 8440: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 8441: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
! 8442: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 8443: break 2
! 8444: fi
! 8445: done
! 8446: done
! 8447: IFS=$as_save_IFS
! 8448:
! 8449: fi ;;
! 8450: esac
! 8451: fi
! 8452: RANLIB=$ac_cv_prog_RANLIB
! 8453: if test -n "$RANLIB"; then
! 8454: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
! 8455: printf "%s\n" "$RANLIB" >&6; }
! 8456: else
! 8457: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8458: printf "%s\n" "no" >&6; }
! 8459: fi
! 8460:
! 8461:
! 8462: fi
! 8463: if test -z "$ac_cv_prog_RANLIB"; then
! 8464: ac_ct_RANLIB=$RANLIB
! 8465: # Extract the first word of "ranlib", so it can be a program name with args.
! 8466: set dummy ranlib; ac_word=$2
! 8467: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8468: printf %s "checking for $ac_word... " >&6; }
! 8469: if test ${ac_cv_prog_ac_ct_RANLIB+y}
! 8470: then :
! 8471: printf %s "(cached) " >&6
! 8472: else case e in #(
! 8473: e) if test -n "$ac_ct_RANLIB"; then
! 8474: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
! 8475: else
! 8476: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 8477: for as_dir in $PATH
! 8478: do
! 8479: IFS=$as_save_IFS
! 8480: case $as_dir in #(((
! 8481: '') as_dir=./ ;;
! 8482: */) ;;
! 8483: *) as_dir=$as_dir/ ;;
! 8484: esac
! 8485: for ac_exec_ext in '' $ac_executable_extensions; do
! 8486: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
! 8487: ac_cv_prog_ac_ct_RANLIB="ranlib"
! 8488: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
! 8489: break 2
! 8490: fi
! 8491: done
! 8492: done
! 8493: IFS=$as_save_IFS
! 8494:
! 8495: fi ;;
! 8496: esac
! 8497: fi
! 8498: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
! 8499: if test -n "$ac_ct_RANLIB"; then
! 8500: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
! 8501: printf "%s\n" "$ac_ct_RANLIB" >&6; }
! 8502: else
! 8503: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8504: printf "%s\n" "no" >&6; }
! 8505: fi
! 8506:
! 8507: if test "x$ac_ct_RANLIB" = x; then
! 8508: RANLIB=":"
! 8509: else
! 8510: case $cross_compiling:$ac_tool_warned in
! 8511: yes:)
! 8512: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8513: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
! 8514: ac_tool_warned=yes ;;
! 8515: esac
! 8516: RANLIB=$ac_ct_RANLIB
! 8517: fi
! 8518: else
! 8519: RANLIB="$ac_cv_prog_RANLIB"
! 8520: fi
! 8521:
! 8522: if test -n "$ac_tool_prefix"; then
1.128 moko 8523: for ac_prog in ar
8524: do
8525: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8526: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.237 ! moko 8527: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8528: printf %s "checking for $ac_word... " >&6; }
! 8529: if test ${ac_cv_prog_AR+y}
! 8530: then :
! 8531: printf %s "(cached) " >&6
! 8532: else case e in #(
! 8533: e) if test -n "$AR"; then
1.128 moko 8534: ac_cv_prog_AR="$AR" # Let the user override the test.
8535: else
8536: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537: for as_dir in $PATH
8538: do
8539: IFS=$as_save_IFS
1.237 ! moko 8540: case $as_dir in #(((
! 8541: '') as_dir=./ ;;
! 8542: */) ;;
! 8543: *) as_dir=$as_dir/ ;;
! 8544: esac
1.150 moko 8545: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 8546: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 8547: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
1.237 ! moko 8548: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8549: break 2
8550: fi
8551: done
1.150 moko 8552: done
8553: IFS=$as_save_IFS
1.128 moko 8554:
1.237 ! moko 8555: fi ;;
! 8556: esac
1.128 moko 8557: fi
8558: AR=$ac_cv_prog_AR
8559: if test -n "$AR"; then
1.237 ! moko 8560: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
! 8561: printf "%s\n" "$AR" >&6; }
1.128 moko 8562: else
1.237 ! moko 8563: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8564: printf "%s\n" "no" >&6; }
1.128 moko 8565: fi
8566:
1.150 moko 8567:
1.128 moko 8568: test -n "$AR" && break
8569: done
8570: fi
8571: if test -z "$AR"; then
8572: ac_ct_AR=$AR
8573: for ac_prog in ar
8574: do
8575: # Extract the first word of "$ac_prog", so it can be a program name with args.
8576: set dummy $ac_prog; ac_word=$2
1.237 ! moko 8577: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8578: printf %s "checking for $ac_word... " >&6; }
! 8579: if test ${ac_cv_prog_ac_ct_AR+y}
! 8580: then :
! 8581: printf %s "(cached) " >&6
! 8582: else case e in #(
! 8583: e) if test -n "$ac_ct_AR"; then
1.128 moko 8584: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8585: else
8586: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587: for as_dir in $PATH
8588: do
8589: IFS=$as_save_IFS
1.237 ! moko 8590: case $as_dir in #(((
! 8591: '') as_dir=./ ;;
! 8592: */) ;;
! 8593: *) as_dir=$as_dir/ ;;
! 8594: esac
1.150 moko 8595: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 8596: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 8597: ac_cv_prog_ac_ct_AR="$ac_prog"
1.237 ! moko 8598: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8599: break 2
8600: fi
8601: done
1.150 moko 8602: done
8603: IFS=$as_save_IFS
1.128 moko 8604:
1.237 ! moko 8605: fi ;;
! 8606: esac
1.128 moko 8607: fi
8608: ac_ct_AR=$ac_cv_prog_ac_ct_AR
8609: if test -n "$ac_ct_AR"; then
1.237 ! moko 8610: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
! 8611: printf "%s\n" "$ac_ct_AR" >&6; }
1.128 moko 8612: else
1.237 ! moko 8613: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8614: printf "%s\n" "no" >&6; }
1.128 moko 8615: fi
8616:
1.150 moko 8617:
1.128 moko 8618: test -n "$ac_ct_AR" && break
8619: done
8620:
1.150 moko 8621: if test "x$ac_ct_AR" = x; then
8622: AR="false"
8623: else
8624: case $cross_compiling:$ac_tool_warned in
8625: yes:)
1.237 ! moko 8626: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8627: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 8628: ac_tool_warned=yes ;;
8629: esac
8630: AR=$ac_ct_AR
8631: fi
1.128 moko 8632: fi
8633:
8634: : ${AR=ar}
8635:
8636:
8637:
8638:
8639:
8640:
1.237 ! moko 8641: # Use ARFLAGS variable as AR's operation code to sync the variable naming with
! 8642: # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
! 8643: # higher priority because that's what people were doing historically (setting
! 8644: # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
! 8645: # variable obsoleted/removed.
! 8646:
! 8647: test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
! 8648: lt_ar_flags=$AR_FLAGS
! 8649:
! 8650:
! 8651:
! 8652:
! 8653:
! 8654:
! 8655: # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
! 8656: # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
1.128 moko 8657:
8658:
8659:
8660:
8661:
1.237 ! moko 8662:
! 8663: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
! 8664: printf %s "checking for archiver @FILE support... " >&6; }
! 8665: if test ${lt_cv_ar_at_file+y}
! 8666: then :
! 8667: printf %s "(cached) " >&6
! 8668: else case e in #(
! 8669: e) lt_cv_ar_at_file=no
1.150 moko 8670: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 8671: /* end confdefs.h. */
8672:
8673: int
1.237 ! moko 8674: main (void)
1.128 moko 8675: {
8676:
8677: ;
8678: return 0;
8679: }
8680: _ACEOF
1.237 ! moko 8681: if ac_fn_c_try_compile "$LINENO"
! 8682: then :
1.128 moko 8683: echo conftest.$ac_objext > conftest.lst
8684: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
1.150 moko 8685: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 8686: (eval $lt_ar_try) 2>&5
8687: ac_status=$?
1.237 ! moko 8688: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 8689: test $ac_status = 0; }
1.237 ! moko 8690: if test 0 -eq "$ac_status"; then
1.128 moko 8691: # Ensure the archiver fails upon bogus file names.
8692: rm -f conftest.$ac_objext libconftest.a
1.150 moko 8693: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
1.128 moko 8694: (eval $lt_ar_try) 2>&5
8695: ac_status=$?
1.237 ! moko 8696: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 8697: test $ac_status = 0; }
1.237 ! moko 8698: if test 0 -ne "$ac_status"; then
1.128 moko 8699: lt_cv_ar_at_file=@
8700: fi
8701: fi
8702: rm -f conftest.* libconftest.a
8703:
8704: fi
1.237 ! moko 8705: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 8706: ;;
! 8707: esac
1.128 moko 8708: fi
1.237 ! moko 8709: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
! 8710: printf "%s\n" "$lt_cv_ar_at_file" >&6; }
1.128 moko 8711:
1.237 ! moko 8712: if test no = "$lt_cv_ar_at_file"; then
1.128 moko 8713: archiver_list_spec=
8714: else
8715: archiver_list_spec=$lt_cv_ar_at_file
8716: fi
8717:
8718:
8719:
8720:
8721:
8722:
8723:
8724: if test -n "$ac_tool_prefix"; then
8725: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8726: set dummy ${ac_tool_prefix}strip; ac_word=$2
1.237 ! moko 8727: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8728: printf %s "checking for $ac_word... " >&6; }
! 8729: if test ${ac_cv_prog_STRIP+y}
! 8730: then :
! 8731: printf %s "(cached) " >&6
! 8732: else case e in #(
! 8733: e) if test -n "$STRIP"; then
1.128 moko 8734: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8735: else
8736: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737: for as_dir in $PATH
8738: do
8739: IFS=$as_save_IFS
1.237 ! moko 8740: case $as_dir in #(((
! 8741: '') as_dir=./ ;;
! 8742: */) ;;
! 8743: *) as_dir=$as_dir/ ;;
! 8744: esac
1.150 moko 8745: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 8746: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 8747: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.237 ! moko 8748: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8749: break 2
8750: fi
8751: done
1.150 moko 8752: done
8753: IFS=$as_save_IFS
1.128 moko 8754:
1.237 ! moko 8755: fi ;;
! 8756: esac
1.128 moko 8757: fi
8758: STRIP=$ac_cv_prog_STRIP
8759: if test -n "$STRIP"; then
1.237 ! moko 8760: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
! 8761: printf "%s\n" "$STRIP" >&6; }
1.128 moko 8762: else
1.237 ! moko 8763: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8764: printf "%s\n" "no" >&6; }
1.128 moko 8765: fi
8766:
1.150 moko 8767:
1.128 moko 8768: fi
8769: if test -z "$ac_cv_prog_STRIP"; then
8770: ac_ct_STRIP=$STRIP
8771: # Extract the first word of "strip", so it can be a program name with args.
8772: set dummy strip; ac_word=$2
1.237 ! moko 8773: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 8774: printf %s "checking for $ac_word... " >&6; }
! 8775: if test ${ac_cv_prog_ac_ct_STRIP+y}
! 8776: then :
! 8777: printf %s "(cached) " >&6
! 8778: else case e in #(
! 8779: e) if test -n "$ac_ct_STRIP"; then
1.128 moko 8780: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8781: else
8782: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783: for as_dir in $PATH
8784: do
8785: IFS=$as_save_IFS
1.237 ! moko 8786: case $as_dir in #(((
! 8787: '') as_dir=./ ;;
! 8788: */) ;;
! 8789: *) as_dir=$as_dir/ ;;
! 8790: esac
1.150 moko 8791: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 8792: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 8793: ac_cv_prog_ac_ct_STRIP="strip"
1.237 ! moko 8794: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 8795: break 2
8796: fi
8797: done
1.150 moko 8798: done
8799: IFS=$as_save_IFS
1.128 moko 8800:
1.237 ! moko 8801: fi ;;
! 8802: esac
1.128 moko 8803: fi
8804: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8805: if test -n "$ac_ct_STRIP"; then
1.237 ! moko 8806: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
! 8807: printf "%s\n" "$ac_ct_STRIP" >&6; }
1.128 moko 8808: else
1.237 ! moko 8809: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 8810: printf "%s\n" "no" >&6; }
1.128 moko 8811: fi
8812:
1.150 moko 8813: if test "x$ac_ct_STRIP" = x; then
8814: STRIP=":"
8815: else
8816: case $cross_compiling:$ac_tool_warned in
8817: yes:)
1.237 ! moko 8818: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 8819: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 8820: ac_tool_warned=yes ;;
8821: esac
8822: STRIP=$ac_ct_STRIP
8823: fi
1.128 moko 8824: else
8825: STRIP="$ac_cv_prog_STRIP"
8826: fi
8827:
8828: test -z "$STRIP" && STRIP=:
8829:
8830:
8831:
8832:
8833:
8834:
8835:
8836: test -z "$RANLIB" && RANLIB=:
8837:
8838:
8839:
8840:
8841:
8842:
8843: # Determine commands to create old-style static archives.
8844: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8845: old_postinstall_cmds='chmod 644 $oldlib'
8846: old_postuninstall_cmds=
8847:
8848: if test -n "$RANLIB"; then
8849: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.237 ! moko 8850: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.128 moko 8851: fi
8852:
8853: case $host_os in
8854: darwin*)
8855: lock_old_archive_extraction=yes ;;
8856: *)
8857: lock_old_archive_extraction=no ;;
8858: esac
8859:
8860:
8861:
8862:
8863:
8864:
8865:
8866:
8867:
8868:
8869:
8870:
8871:
8872:
8873:
8874:
8875:
8876:
8877:
8878:
8879:
8880:
8881:
8882:
8883:
8884:
8885:
8886:
8887:
8888:
8889:
8890:
8891:
8892:
8893:
8894:
8895:
8896:
8897:
8898: # If no C compiler was specified, use CC.
8899: LTCC=${LTCC-"$CC"}
8900:
8901: # If no C compiler flags were specified, use CFLAGS.
8902: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8903:
8904: # Allow CC to be a program name with arguments.
8905: compiler=$CC
8906:
8907:
8908: # Check for command to grab the raw symbol name followed by C symbol from nm.
1.237 ! moko 8909: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
! 8910: printf %s "checking command to parse $NM output from $compiler object... " >&6; }
! 8911: if test ${lt_cv_sys_global_symbol_pipe+y}
! 8912: then :
! 8913: printf %s "(cached) " >&6
! 8914: else case e in #(
! 8915: e)
1.128 moko 8916: # These are sane defaults that work on at least a few old systems.
8917: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8918:
8919: # Character class describing NM global symbol codes.
8920: symcode='[BCDEGRST]'
8921:
8922: # Regexp to match symbols that can be accessed directly from C.
8923: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8924:
8925: # Define system-specific variables.
8926: case $host_os in
8927: aix*)
8928: symcode='[BCDT]'
8929: ;;
1.237 ! moko 8930: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 8931: symcode='[ABCDGISTW]'
8932: ;;
8933: hpux*)
1.237 ! moko 8934: if test ia64 = "$host_cpu"; then
1.128 moko 8935: symcode='[ABCDEGRST]'
8936: fi
8937: ;;
8938: irix* | nonstopux*)
8939: symcode='[BCDEGRST]'
8940: ;;
8941: osf*)
8942: symcode='[BCDEGQRST]'
8943: ;;
8944: solaris*)
1.237 ! moko 8945: symcode='[BCDRT]'
1.128 moko 8946: ;;
8947: sco3.2v5*)
8948: symcode='[DT]'
8949: ;;
8950: sysv4.2uw2*)
8951: symcode='[DT]'
8952: ;;
8953: sysv5* | sco5v6* | unixware* | OpenUNIX*)
8954: symcode='[ABDT]'
8955: ;;
8956: sysv4)
8957: symcode='[DFNSTU]'
8958: ;;
8959: esac
8960:
8961: # If we're using GNU nm, then use its standard symbol codes.
8962: case `$NM -V 2>&1` in
8963: *GNU* | *'with BFD'*)
8964: symcode='[ABCDGIRSTW]' ;;
8965: esac
8966:
1.237 ! moko 8967: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
! 8968: # Gets list of data symbols to import.
! 8969: lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
! 8970: # Adjust the below global symbol transforms to fixup imported variables.
! 8971: lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
! 8972: lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
! 8973: lt_c_name_lib_hook="\
! 8974: -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
! 8975: -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
! 8976: else
! 8977: # Disable hooks by default.
! 8978: lt_cv_sys_global_symbol_to_import=
! 8979: lt_cdecl_hook=
! 8980: lt_c_name_hook=
! 8981: lt_c_name_lib_hook=
! 8982: fi
! 8983:
1.128 moko 8984: # Transform an extracted symbol line into a proper C declaration.
8985: # Some systems (esp. on ia64) link data and code symbols differently,
8986: # so use this general approach.
1.237 ! moko 8987: lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
! 8988: $lt_cdecl_hook\
! 8989: " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
! 8990: " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
1.128 moko 8991:
8992: # Transform an extracted symbol line into symbol name and symbol address
1.237 ! moko 8993: lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
! 8994: $lt_c_name_hook\
! 8995: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
! 8996: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
! 8997:
! 8998: # Transform an extracted symbol line into symbol name with lib prefix and
! 8999: # symbol address.
! 9000: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
! 9001: $lt_c_name_lib_hook\
! 9002: " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
! 9003: " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
! 9004: " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
1.128 moko 9005:
9006: # Handle CRLF in mingw tool chain
9007: opt_cr=
9008: case $build_os in
1.237 ! moko 9009: mingw* | windows*)
1.128 moko 9010: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9011: ;;
9012: esac
9013:
9014: # Try without a prefix underscore, then with it.
9015: for ac_symprfx in "" "_"; do
9016:
9017: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9018: symxfrm="\\1 $ac_symprfx\\2 \\2"
9019:
9020: # Write the raw and C identifiers.
9021: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
1.237 ! moko 9022: # Fake it for dumpbin and say T for any non-static function,
! 9023: # D for any global variable and I for any imported variable.
! 9024: # Also find C++ and __fastcall symbols from MSVC++ or ICC,
1.128 moko 9025: # which start with @ or ?.
9026: lt_cv_sys_global_symbol_pipe="$AWK '"\
9027: " {last_section=section; section=\$ 3};"\
9028: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9029: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
1.237 ! moko 9030: " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
! 9031: " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
! 9032: " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
1.128 moko 9033: " \$ 0!~/External *\|/{next};"\
9034: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9035: " {if(hide[section]) next};"\
1.237 ! moko 9036: " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
! 9037: " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
! 9038: " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
! 9039: " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
1.128 moko 9040: " ' prfx=^$ac_symprfx"
9041: else
1.237 ! moko 9042: lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.128 moko 9043: fi
1.237 ! moko 9044: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
1.128 moko 9045:
9046: # Check to see that the pipe works correctly.
9047: pipe_works=no
9048:
9049: rm -f conftest*
9050: cat > conftest.$ac_ext <<_LT_EOF
9051: #ifdef __cplusplus
9052: extern "C" {
9053: #endif
9054: char nm_test_var;
9055: void nm_test_func(void);
9056: void nm_test_func(void){}
9057: #ifdef __cplusplus
9058: }
9059: #endif
1.237 ! moko 9060: int main(void){nm_test_var='a';nm_test_func();return(0);}
1.128 moko 9061: _LT_EOF
9062:
1.150 moko 9063: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9064: (eval $ac_compile) 2>&5
9065: ac_status=$?
1.237 ! moko 9066: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9067: test $ac_status = 0; }; then
1.128 moko 9068: # Now try to grab the symbols.
9069: nlist=conftest.nm
1.237 ! moko 9070: $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
! 9071: if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
1.128 moko 9072: # Try sorting and uniquifying the output.
9073: if sort "$nlist" | uniq > "$nlist"T; then
9074: mv -f "$nlist"T "$nlist"
9075: else
9076: rm -f "$nlist"T
9077: fi
9078:
9079: # Make sure that we snagged all the symbols we need.
9080: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9081: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9082: cat <<_LT_EOF > conftest.$ac_ext
9083: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
1.237 ! moko 9084: #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
! 9085: /* DATA imports from DLLs on WIN32 can't be const, because runtime
1.128 moko 9086: relocations are performed -- see ld's documentation on pseudo-relocs. */
9087: # define LT_DLSYM_CONST
1.237 ! moko 9088: #elif defined __osf__
1.128 moko 9089: /* This system does not cope well with relocations in const data. */
9090: # define LT_DLSYM_CONST
9091: #else
9092: # define LT_DLSYM_CONST const
9093: #endif
9094:
9095: #ifdef __cplusplus
9096: extern "C" {
9097: #endif
9098:
9099: _LT_EOF
9100: # Now generate the symbol file.
9101: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9102:
9103: cat <<_LT_EOF >> conftest.$ac_ext
9104:
9105: /* The mapping between symbol names and symbols. */
9106: LT_DLSYM_CONST struct {
9107: const char *name;
9108: void *address;
9109: }
9110: lt__PROGRAM__LTX_preloaded_symbols[] =
9111: {
9112: { "@PROGRAM@", (void *) 0 },
9113: _LT_EOF
1.237 ! moko 9114: $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
1.128 moko 9115: cat <<\_LT_EOF >> conftest.$ac_ext
9116: {0, (void *) 0}
9117: };
9118:
9119: /* This works around a problem in FreeBSD linker */
9120: #ifdef FREEBSD_WORKAROUND
9121: static const void *lt_preloaded_setup() {
9122: return lt__PROGRAM__LTX_preloaded_symbols;
9123: }
9124: #endif
9125:
9126: #ifdef __cplusplus
9127: }
9128: #endif
9129: _LT_EOF
9130: # Now try linking the two files.
9131: mv conftest.$ac_objext conftstm.$ac_objext
9132: lt_globsym_save_LIBS=$LIBS
9133: lt_globsym_save_CFLAGS=$CFLAGS
1.237 ! moko 9134: LIBS=conftstm.$ac_objext
1.128 moko 9135: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.150 moko 9136: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 9137: (eval $ac_link) 2>&5
9138: ac_status=$?
1.237 ! moko 9139: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 9140: test $ac_status = 0; } && test -s conftest$ac_exeext; then
1.128 moko 9141: pipe_works=yes
9142: fi
9143: LIBS=$lt_globsym_save_LIBS
9144: CFLAGS=$lt_globsym_save_CFLAGS
9145: else
9146: echo "cannot find nm_test_func in $nlist" >&5
9147: fi
9148: else
9149: echo "cannot find nm_test_var in $nlist" >&5
9150: fi
9151: else
9152: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9153: fi
9154: else
9155: echo "$progname: failed program was:" >&5
9156: cat conftest.$ac_ext >&5
9157: fi
9158: rm -rf conftest* conftst*
9159:
9160: # Do not use the global_symbol_pipe unless it works.
1.237 ! moko 9161: if test yes = "$pipe_works"; then
1.128 moko 9162: break
9163: else
9164: lt_cv_sys_global_symbol_pipe=
9165: fi
9166: done
1.237 ! moko 9167: ;;
! 9168: esac
1.128 moko 9169: fi
9170:
9171: if test -z "$lt_cv_sys_global_symbol_pipe"; then
9172: lt_cv_sys_global_symbol_to_cdecl=
9173: fi
9174: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.237 ! moko 9175: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
! 9176: printf "%s\n" "failed" >&6; }
1.128 moko 9177: else
1.237 ! moko 9178: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
! 9179: printf "%s\n" "ok" >&6; }
1.128 moko 9180: fi
9181:
9182: # Response file support.
9183: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9184: nm_file_list_spec='@'
9185: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9186: nm_file_list_spec='@'
9187: fi
9188:
9189:
9190:
9191:
9192:
9193:
9194:
9195:
9196:
9197:
9198:
9199:
9200:
9201:
9202:
9203:
9204:
9205:
9206:
9207:
9208:
9209:
9210:
9211:
9212:
9213:
9214:
1.237 ! moko 9215:
! 9216:
! 9217:
! 9218:
! 9219:
! 9220:
! 9221:
! 9222:
! 9223:
! 9224:
! 9225: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
! 9226: printf %s "checking for sysroot... " >&6; }
1.128 moko 9227:
1.150 moko 9228: # Check whether --with-sysroot was given.
1.237 ! moko 9229: if test ${with_sysroot+y}
! 9230: then :
1.150 moko 9231: withval=$with_sysroot;
1.237 ! moko 9232: else case e in #(
! 9233: e) with_sysroot=no ;;
! 9234: esac
1.150 moko 9235: fi
9236:
1.128 moko 9237:
9238: lt_sysroot=
1.237 ! moko 9239: case $with_sysroot in #(
1.128 moko 9240: yes)
1.237 ! moko 9241: if test yes = "$GCC"; then
! 9242: # Trim trailing / since we'll always append absolute paths and we want
! 9243: # to avoid //, if only for less confusing output for the user.
! 9244: lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
1.128 moko 9245: fi
9246: ;; #(
9247: /*)
1.237 ! moko 9248: lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
1.128 moko 9249: ;; #(
9250: no|'')
9251: ;; #(
9252: *)
1.237 ! moko 9253: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
! 9254: printf "%s\n" "$with_sysroot" >&6; }
1.150 moko 9255: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
1.128 moko 9256: ;;
9257: esac
9258:
1.237 ! moko 9259: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
! 9260: printf "%s\n" "${lt_sysroot:-no}" >&6; }
1.128 moko 9261:
9262:
9263:
9264:
9265:
1.237 ! moko 9266: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
! 9267: printf %s "checking for a working dd... " >&6; }
! 9268: if test ${ac_cv_path_lt_DD+y}
! 9269: then :
! 9270: printf %s "(cached) " >&6
! 9271: else case e in #(
! 9272: e) printf 0123456789abcdef0123456789abcdef >conftest.i
! 9273: cat conftest.i conftest.i >conftest2.i
! 9274: : ${lt_DD:=$DD}
! 9275: if test -z "$lt_DD"; then
! 9276: ac_path_lt_DD_found=false
! 9277: # Loop through the user's path and test for each of PROGNAME-LIST
! 9278: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 9279: for as_dir in $PATH
! 9280: do
! 9281: IFS=$as_save_IFS
! 9282: case $as_dir in #(((
! 9283: '') as_dir=./ ;;
! 9284: */) ;;
! 9285: *) as_dir=$as_dir/ ;;
! 9286: esac
! 9287: for ac_prog in dd
! 9288: do
! 9289: for ac_exec_ext in '' $ac_executable_extensions; do
! 9290: ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
! 9291: as_fn_executable_p "$ac_path_lt_DD" || continue
! 9292: if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
! 9293: cmp -s conftest.i conftest.out \
! 9294: && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
! 9295: fi
! 9296: $ac_path_lt_DD_found && break 3
! 9297: done
! 9298: done
! 9299: done
! 9300: IFS=$as_save_IFS
! 9301: if test -z "$ac_cv_path_lt_DD"; then
! 9302: :
! 9303: fi
! 9304: else
! 9305: ac_cv_path_lt_DD=$lt_DD
! 9306: fi
! 9307:
! 9308: rm -f conftest.i conftest2.i conftest.out ;;
! 9309: esac
! 9310: fi
! 9311: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
! 9312: printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
! 9313:
! 9314:
! 9315: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
! 9316: printf %s "checking how to truncate binary pipes... " >&6; }
! 9317: if test ${lt_cv_truncate_bin+y}
! 9318: then :
! 9319: printf %s "(cached) " >&6
! 9320: else case e in #(
! 9321: e) printf 0123456789abcdef0123456789abcdef >conftest.i
! 9322: cat conftest.i conftest.i >conftest2.i
! 9323: lt_cv_truncate_bin=
! 9324: if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
! 9325: cmp -s conftest.i conftest.out \
! 9326: && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
! 9327: fi
! 9328: rm -f conftest.i conftest2.i conftest.out
! 9329: test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
! 9330: esac
! 9331: fi
! 9332: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
! 9333: printf "%s\n" "$lt_cv_truncate_bin" >&6; }
! 9334:
! 9335:
! 9336:
! 9337:
! 9338:
! 9339:
! 9340:
! 9341: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
! 9342: func_cc_basename ()
! 9343: {
! 9344: for cc_temp in $*""; do
! 9345: case $cc_temp in
! 9346: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 9347: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 9348: \-*) ;;
! 9349: *) break;;
! 9350: esac
! 9351: done
! 9352: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
! 9353: }
! 9354:
1.150 moko 9355: # Check whether --enable-libtool-lock was given.
1.237 ! moko 9356: if test ${enable_libtool_lock+y}
! 9357: then :
1.150 moko 9358: enableval=$enable_libtool_lock;
9359: fi
1.128 moko 9360:
1.237 ! moko 9361: test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1.128 moko 9362:
9363: # Some flags need to be propagated to the compiler or linker for good
9364: # libtool support.
9365: case $host in
9366: ia64-*-hpux*)
1.237 ! moko 9367: # Find out what ABI is being produced by ac_compile, and set mode
! 9368: # options accordingly.
1.128 moko 9369: echo 'int i;' > conftest.$ac_ext
1.150 moko 9370: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9371: (eval $ac_compile) 2>&5
9372: ac_status=$?
1.237 ! moko 9373: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9374: test $ac_status = 0; }; then
1.237 ! moko 9375: case `$FILECMD conftest.$ac_objext` in
1.128 moko 9376: *ELF-32*)
1.237 ! moko 9377: HPUX_IA64_MODE=32
1.128 moko 9378: ;;
9379: *ELF-64*)
1.237 ! moko 9380: HPUX_IA64_MODE=64
1.128 moko 9381: ;;
9382: esac
9383: fi
9384: rm -rf conftest*
9385: ;;
9386: *-*-irix6*)
1.237 ! moko 9387: # Find out what ABI is being produced by ac_compile, and set linker
! 9388: # options accordingly.
1.128 moko 9389: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
1.150 moko 9390: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9391: (eval $ac_compile) 2>&5
9392: ac_status=$?
1.237 ! moko 9393: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9394: test $ac_status = 0; }; then
1.237 ! moko 9395: if test yes = "$lt_cv_prog_gnu_ld"; then
! 9396: case `$FILECMD conftest.$ac_objext` in
1.128 moko 9397: *32-bit*)
9398: LD="${LD-ld} -melf32bsmip"
9399: ;;
9400: *N32*)
9401: LD="${LD-ld} -melf32bmipn32"
9402: ;;
9403: *64-bit*)
9404: LD="${LD-ld} -melf64bmip"
9405: ;;
9406: esac
9407: else
1.237 ! moko 9408: case `$FILECMD conftest.$ac_objext` in
1.128 moko 9409: *32-bit*)
9410: LD="${LD-ld} -32"
9411: ;;
9412: *N32*)
9413: LD="${LD-ld} -n32"
9414: ;;
9415: *64-bit*)
9416: LD="${LD-ld} -64"
9417: ;;
9418: esac
9419: fi
9420: fi
9421: rm -rf conftest*
9422: ;;
9423:
1.237 ! moko 9424: mips64*-*linux*)
! 9425: # Find out what ABI is being produced by ac_compile, and set linker
! 9426: # options accordingly.
! 9427: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
! 9428: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
! 9429: (eval $ac_compile) 2>&5
! 9430: ac_status=$?
! 9431: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 9432: test $ac_status = 0; }; then
! 9433: emul=elf
! 9434: case `$FILECMD conftest.$ac_objext` in
! 9435: *32-bit*)
! 9436: emul="${emul}32"
! 9437: ;;
! 9438: *64-bit*)
! 9439: emul="${emul}64"
! 9440: ;;
! 9441: esac
! 9442: case `$FILECMD conftest.$ac_objext` in
! 9443: *MSB*)
! 9444: emul="${emul}btsmip"
! 9445: ;;
! 9446: *LSB*)
! 9447: emul="${emul}ltsmip"
! 9448: ;;
! 9449: esac
! 9450: case `$FILECMD conftest.$ac_objext` in
! 9451: *N32*)
! 9452: emul="${emul}n32"
! 9453: ;;
! 9454: esac
! 9455: LD="${LD-ld} -m $emul"
! 9456: fi
! 9457: rm -rf conftest*
! 9458: ;;
! 9459:
! 9460: x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
! 9461: s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
! 9462: # Find out what ABI is being produced by ac_compile, and set linker
! 9463: # options accordingly. Note that the listed cases only cover the
! 9464: # situations where additional linker options are needed (such as when
! 9465: # doing 32-bit compilation for a host where ld defaults to 64-bit, or
! 9466: # vice versa); the common cases where no linker options are needed do
! 9467: # not appear in the list.
1.128 moko 9468: echo 'int i;' > conftest.$ac_ext
1.150 moko 9469: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9470: (eval $ac_compile) 2>&5
9471: ac_status=$?
1.237 ! moko 9472: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9473: test $ac_status = 0; }; then
1.237 ! moko 9474: case `$FILECMD conftest.o` in
1.128 moko 9475: *32-bit*)
9476: case $host in
9477: x86_64-*kfreebsd*-gnu)
9478: LD="${LD-ld} -m elf_i386_fbsd"
9479: ;;
1.237 ! moko 9480: x86_64-*linux*|x86_64-gnu*)
! 9481: case `$FILECMD conftest.o` in
! 9482: *x86-64*)
! 9483: LD="${LD-ld} -m elf32_x86_64"
! 9484: ;;
! 9485: *)
! 9486: LD="${LD-ld} -m elf_i386"
! 9487: ;;
! 9488: esac
1.128 moko 9489: ;;
1.237 ! moko 9490: powerpc64le-*linux*)
! 9491: LD="${LD-ld} -m elf32lppclinux"
! 9492: ;;
! 9493: powerpc64-*linux*)
1.128 moko 9494: LD="${LD-ld} -m elf32ppclinux"
9495: ;;
9496: s390x-*linux*)
9497: LD="${LD-ld} -m elf_s390"
9498: ;;
9499: sparc64-*linux*)
9500: LD="${LD-ld} -m elf32_sparc"
9501: ;;
9502: esac
9503: ;;
9504: *64-bit*)
9505: case $host in
9506: x86_64-*kfreebsd*-gnu)
9507: LD="${LD-ld} -m elf_x86_64_fbsd"
9508: ;;
1.237 ! moko 9509: x86_64-*linux*|x86_64-gnu*)
1.128 moko 9510: LD="${LD-ld} -m elf_x86_64"
9511: ;;
1.237 ! moko 9512: powerpcle-*linux*)
! 9513: LD="${LD-ld} -m elf64lppc"
! 9514: ;;
! 9515: powerpc-*linux*)
1.128 moko 9516: LD="${LD-ld} -m elf64ppc"
9517: ;;
9518: s390*-*linux*|s390*-*tpf*)
9519: LD="${LD-ld} -m elf64_s390"
9520: ;;
9521: sparc*-*linux*)
9522: LD="${LD-ld} -m elf64_sparc"
9523: ;;
9524: esac
9525: ;;
9526: esac
9527: fi
9528: rm -rf conftest*
9529: ;;
9530:
9531: *-*-sco3.2v5*)
9532: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1.237 ! moko 9533: SAVE_CFLAGS=$CFLAGS
1.128 moko 9534: CFLAGS="$CFLAGS -belf"
1.237 ! moko 9535: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
! 9536: printf %s "checking whether the C compiler needs -belf... " >&6; }
! 9537: if test ${lt_cv_cc_needs_belf+y}
! 9538: then :
! 9539: printf %s "(cached) " >&6
! 9540: else case e in #(
! 9541: e) ac_ext=c
1.128 moko 9542: ac_cpp='$CPP $CPPFLAGS'
9543: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9544: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9545: ac_compiler_gnu=$ac_cv_c_compiler_gnu
9546:
1.150 moko 9547: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 9548: /* end confdefs.h. */
9549:
9550: int
1.237 ! moko 9551: main (void)
1.128 moko 9552: {
9553:
9554: ;
9555: return 0;
9556: }
9557: _ACEOF
1.237 ! moko 9558: if ac_fn_c_try_link "$LINENO"
! 9559: then :
1.128 moko 9560: lt_cv_cc_needs_belf=yes
1.237 ! moko 9561: else case e in #(
! 9562: e) lt_cv_cc_needs_belf=no ;;
! 9563: esac
1.128 moko 9564: fi
1.237 ! moko 9565: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 9566: conftest$ac_exeext conftest.$ac_ext
1.128 moko 9567: ac_ext=c
9568: ac_cpp='$CPP $CPPFLAGS'
9569: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9570: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9571: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.237 ! moko 9572: ;;
! 9573: esac
1.128 moko 9574: fi
1.237 ! moko 9575: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
! 9576: printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
! 9577: if test yes != "$lt_cv_cc_needs_belf"; then
1.128 moko 9578: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1.237 ! moko 9579: CFLAGS=$SAVE_CFLAGS
1.128 moko 9580: fi
9581: ;;
9582: *-*solaris*)
1.237 ! moko 9583: # Find out what ABI is being produced by ac_compile, and set linker
! 9584: # options accordingly.
1.128 moko 9585: echo 'int i;' > conftest.$ac_ext
1.150 moko 9586: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 9587: (eval $ac_compile) 2>&5
9588: ac_status=$?
1.237 ! moko 9589: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 9590: test $ac_status = 0; }; then
1.237 ! moko 9591: case `$FILECMD conftest.o` in
1.128 moko 9592: *64-bit*)
9593: case $lt_cv_prog_gnu_ld in
9594: yes*)
9595: case $host in
1.237 ! moko 9596: i?86-*-solaris*|x86_64-*-solaris*)
1.128 moko 9597: LD="${LD-ld} -m elf_x86_64"
9598: ;;
9599: sparc*-*-solaris*)
9600: LD="${LD-ld} -m elf64_sparc"
9601: ;;
9602: esac
9603: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9604: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1.237 ! moko 9605: LD=${LD-ld}_sol2
1.128 moko 9606: fi
9607: ;;
9608: *)
9609: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9610: LD="${LD-ld} -64"
9611: fi
9612: ;;
9613: esac
9614: ;;
9615: esac
9616: fi
9617: rm -rf conftest*
9618: ;;
9619: esac
9620:
1.237 ! moko 9621: need_locks=$enable_libtool_lock
1.128 moko 9622:
9623: if test -n "$ac_tool_prefix"; then
9624: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9625: set dummy ${ac_tool_prefix}mt; ac_word=$2
1.237 ! moko 9626: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 9627: printf %s "checking for $ac_word... " >&6; }
! 9628: if test ${ac_cv_prog_MANIFEST_TOOL+y}
! 9629: then :
! 9630: printf %s "(cached) " >&6
! 9631: else case e in #(
! 9632: e) if test -n "$MANIFEST_TOOL"; then
1.128 moko 9633: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9634: else
9635: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636: for as_dir in $PATH
9637: do
9638: IFS=$as_save_IFS
1.237 ! moko 9639: case $as_dir in #(((
! 9640: '') as_dir=./ ;;
! 9641: */) ;;
! 9642: *) as_dir=$as_dir/ ;;
! 9643: esac
1.150 moko 9644: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 9645: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 9646: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
1.237 ! moko 9647: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9648: break 2
9649: fi
9650: done
1.150 moko 9651: done
9652: IFS=$as_save_IFS
1.128 moko 9653:
1.237 ! moko 9654: fi ;;
! 9655: esac
1.128 moko 9656: fi
9657: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9658: if test -n "$MANIFEST_TOOL"; then
1.237 ! moko 9659: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
! 9660: printf "%s\n" "$MANIFEST_TOOL" >&6; }
1.128 moko 9661: else
1.237 ! moko 9662: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 9663: printf "%s\n" "no" >&6; }
1.128 moko 9664: fi
9665:
1.150 moko 9666:
1.128 moko 9667: fi
9668: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9669: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9670: # Extract the first word of "mt", so it can be a program name with args.
9671: set dummy mt; ac_word=$2
1.237 ! moko 9672: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 9673: printf %s "checking for $ac_word... " >&6; }
! 9674: if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
! 9675: then :
! 9676: printf %s "(cached) " >&6
! 9677: else case e in #(
! 9678: e) if test -n "$ac_ct_MANIFEST_TOOL"; then
1.128 moko 9679: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9680: else
9681: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682: for as_dir in $PATH
9683: do
9684: IFS=$as_save_IFS
1.237 ! moko 9685: case $as_dir in #(((
! 9686: '') as_dir=./ ;;
! 9687: */) ;;
! 9688: *) as_dir=$as_dir/ ;;
! 9689: esac
1.150 moko 9690: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 9691: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 9692: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
1.237 ! moko 9693: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9694: break 2
9695: fi
9696: done
1.150 moko 9697: done
9698: IFS=$as_save_IFS
1.128 moko 9699:
1.237 ! moko 9700: fi ;;
! 9701: esac
1.128 moko 9702: fi
9703: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9704: if test -n "$ac_ct_MANIFEST_TOOL"; then
1.237 ! moko 9705: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
! 9706: printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
1.128 moko 9707: else
1.237 ! moko 9708: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 9709: printf "%s\n" "no" >&6; }
1.128 moko 9710: fi
9711:
1.150 moko 9712: if test "x$ac_ct_MANIFEST_TOOL" = x; then
9713: MANIFEST_TOOL=":"
9714: else
9715: case $cross_compiling:$ac_tool_warned in
9716: yes:)
1.237 ! moko 9717: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 9718: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 9719: ac_tool_warned=yes ;;
9720: esac
9721: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9722: fi
1.128 moko 9723: else
9724: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9725: fi
9726:
9727: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
1.237 ! moko 9728: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
! 9729: printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
! 9730: if test ${lt_cv_path_manifest_tool+y}
! 9731: then :
! 9732: printf %s "(cached) " >&6
! 9733: else case e in #(
! 9734: e) lt_cv_path_manifest_tool=no
1.128 moko 9735: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9736: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9737: cat conftest.err >&5
9738: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
1.237 ! moko 9739: lt_cv_path_manifest_tool=yes
1.128 moko 9740: fi
1.237 ! moko 9741: rm -f conftest* ;;
! 9742: esac
1.128 moko 9743: fi
1.237 ! moko 9744: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
! 9745: printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
! 9746: if test yes != "$lt_cv_path_manifest_tool"; then
1.128 moko 9747: MANIFEST_TOOL=:
9748: fi
9749:
9750:
9751:
9752:
9753:
9754:
9755: case $host_os in
9756: rhapsody* | darwin*)
9757: if test -n "$ac_tool_prefix"; then
9758: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9759: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
1.237 ! moko 9760: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 9761: printf %s "checking for $ac_word... " >&6; }
! 9762: if test ${ac_cv_prog_DSYMUTIL+y}
! 9763: then :
! 9764: printf %s "(cached) " >&6
! 9765: else case e in #(
! 9766: e) if test -n "$DSYMUTIL"; then
1.128 moko 9767: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9768: else
9769: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770: for as_dir in $PATH
9771: do
9772: IFS=$as_save_IFS
1.237 ! moko 9773: case $as_dir in #(((
! 9774: '') as_dir=./ ;;
! 9775: */) ;;
! 9776: *) as_dir=$as_dir/ ;;
! 9777: esac
1.150 moko 9778: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 9779: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 9780: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
1.237 ! moko 9781: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9782: break 2
9783: fi
9784: done
1.150 moko 9785: done
9786: IFS=$as_save_IFS
1.128 moko 9787:
1.237 ! moko 9788: fi ;;
! 9789: esac
1.128 moko 9790: fi
9791: DSYMUTIL=$ac_cv_prog_DSYMUTIL
9792: if test -n "$DSYMUTIL"; then
1.237 ! moko 9793: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
! 9794: printf "%s\n" "$DSYMUTIL" >&6; }
1.128 moko 9795: else
1.237 ! moko 9796: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 9797: printf "%s\n" "no" >&6; }
1.128 moko 9798: fi
9799:
1.150 moko 9800:
1.128 moko 9801: fi
9802: if test -z "$ac_cv_prog_DSYMUTIL"; then
9803: ac_ct_DSYMUTIL=$DSYMUTIL
9804: # Extract the first word of "dsymutil", so it can be a program name with args.
9805: set dummy dsymutil; ac_word=$2
1.237 ! moko 9806: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 9807: printf %s "checking for $ac_word... " >&6; }
! 9808: if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
! 9809: then :
! 9810: printf %s "(cached) " >&6
! 9811: else case e in #(
! 9812: e) if test -n "$ac_ct_DSYMUTIL"; then
1.128 moko 9813: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9814: else
9815: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816: for as_dir in $PATH
9817: do
9818: IFS=$as_save_IFS
1.237 ! moko 9819: case $as_dir in #(((
! 9820: '') as_dir=./ ;;
! 9821: */) ;;
! 9822: *) as_dir=$as_dir/ ;;
! 9823: esac
1.150 moko 9824: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 9825: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 9826: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
1.237 ! moko 9827: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9828: break 2
9829: fi
9830: done
1.150 moko 9831: done
9832: IFS=$as_save_IFS
1.128 moko 9833:
1.237 ! moko 9834: fi ;;
! 9835: esac
1.128 moko 9836: fi
9837: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9838: if test -n "$ac_ct_DSYMUTIL"; then
1.237 ! moko 9839: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
! 9840: printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
1.128 moko 9841: else
1.237 ! moko 9842: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 9843: printf "%s\n" "no" >&6; }
1.128 moko 9844: fi
9845:
1.150 moko 9846: if test "x$ac_ct_DSYMUTIL" = x; then
9847: DSYMUTIL=":"
9848: else
9849: case $cross_compiling:$ac_tool_warned in
9850: yes:)
1.237 ! moko 9851: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 9852: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 9853: ac_tool_warned=yes ;;
9854: esac
9855: DSYMUTIL=$ac_ct_DSYMUTIL
9856: fi
1.128 moko 9857: else
9858: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9859: fi
9860:
9861: if test -n "$ac_tool_prefix"; then
9862: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9863: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
1.237 ! moko 9864: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 9865: printf %s "checking for $ac_word... " >&6; }
! 9866: if test ${ac_cv_prog_NMEDIT+y}
! 9867: then :
! 9868: printf %s "(cached) " >&6
! 9869: else case e in #(
! 9870: e) if test -n "$NMEDIT"; then
1.128 moko 9871: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9872: else
9873: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9874: for as_dir in $PATH
9875: do
9876: IFS=$as_save_IFS
1.237 ! moko 9877: case $as_dir in #(((
! 9878: '') as_dir=./ ;;
! 9879: */) ;;
! 9880: *) as_dir=$as_dir/ ;;
! 9881: esac
1.150 moko 9882: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 9883: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 9884: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
1.237 ! moko 9885: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9886: break 2
9887: fi
9888: done
1.150 moko 9889: done
9890: IFS=$as_save_IFS
1.128 moko 9891:
1.237 ! moko 9892: fi ;;
! 9893: esac
1.128 moko 9894: fi
9895: NMEDIT=$ac_cv_prog_NMEDIT
9896: if test -n "$NMEDIT"; then
1.237 ! moko 9897: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
! 9898: printf "%s\n" "$NMEDIT" >&6; }
1.128 moko 9899: else
1.237 ! moko 9900: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 9901: printf "%s\n" "no" >&6; }
1.128 moko 9902: fi
9903:
1.150 moko 9904:
1.128 moko 9905: fi
9906: if test -z "$ac_cv_prog_NMEDIT"; then
9907: ac_ct_NMEDIT=$NMEDIT
9908: # Extract the first word of "nmedit", so it can be a program name with args.
9909: set dummy nmedit; ac_word=$2
1.237 ! moko 9910: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 9911: printf %s "checking for $ac_word... " >&6; }
! 9912: if test ${ac_cv_prog_ac_ct_NMEDIT+y}
! 9913: then :
! 9914: printf %s "(cached) " >&6
! 9915: else case e in #(
! 9916: e) if test -n "$ac_ct_NMEDIT"; then
1.128 moko 9917: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9918: else
9919: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920: for as_dir in $PATH
9921: do
9922: IFS=$as_save_IFS
1.237 ! moko 9923: case $as_dir in #(((
! 9924: '') as_dir=./ ;;
! 9925: */) ;;
! 9926: *) as_dir=$as_dir/ ;;
! 9927: esac
1.150 moko 9928: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 9929: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 9930: ac_cv_prog_ac_ct_NMEDIT="nmedit"
1.237 ! moko 9931: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9932: break 2
9933: fi
9934: done
1.150 moko 9935: done
9936: IFS=$as_save_IFS
1.128 moko 9937:
1.237 ! moko 9938: fi ;;
! 9939: esac
1.128 moko 9940: fi
9941: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9942: if test -n "$ac_ct_NMEDIT"; then
1.237 ! moko 9943: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
! 9944: printf "%s\n" "$ac_ct_NMEDIT" >&6; }
1.128 moko 9945: else
1.237 ! moko 9946: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 9947: printf "%s\n" "no" >&6; }
1.128 moko 9948: fi
9949:
1.150 moko 9950: if test "x$ac_ct_NMEDIT" = x; then
9951: NMEDIT=":"
9952: else
9953: case $cross_compiling:$ac_tool_warned in
9954: yes:)
1.237 ! moko 9955: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 9956: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 9957: ac_tool_warned=yes ;;
9958: esac
9959: NMEDIT=$ac_ct_NMEDIT
9960: fi
1.128 moko 9961: else
9962: NMEDIT="$ac_cv_prog_NMEDIT"
9963: fi
9964:
9965: if test -n "$ac_tool_prefix"; then
9966: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9967: set dummy ${ac_tool_prefix}lipo; ac_word=$2
1.237 ! moko 9968: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 9969: printf %s "checking for $ac_word... " >&6; }
! 9970: if test ${ac_cv_prog_LIPO+y}
! 9971: then :
! 9972: printf %s "(cached) " >&6
! 9973: else case e in #(
! 9974: e) if test -n "$LIPO"; then
1.128 moko 9975: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9976: else
9977: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9978: for as_dir in $PATH
9979: do
9980: IFS=$as_save_IFS
1.237 ! moko 9981: case $as_dir in #(((
! 9982: '') as_dir=./ ;;
! 9983: */) ;;
! 9984: *) as_dir=$as_dir/ ;;
! 9985: esac
1.150 moko 9986: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 9987: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 9988: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
1.237 ! moko 9989: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 9990: break 2
9991: fi
9992: done
1.150 moko 9993: done
9994: IFS=$as_save_IFS
1.128 moko 9995:
1.237 ! moko 9996: fi ;;
! 9997: esac
1.128 moko 9998: fi
9999: LIPO=$ac_cv_prog_LIPO
10000: if test -n "$LIPO"; then
1.237 ! moko 10001: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
! 10002: printf "%s\n" "$LIPO" >&6; }
1.128 moko 10003: else
1.237 ! moko 10004: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10005: printf "%s\n" "no" >&6; }
1.128 moko 10006: fi
10007:
1.150 moko 10008:
1.128 moko 10009: fi
10010: if test -z "$ac_cv_prog_LIPO"; then
10011: ac_ct_LIPO=$LIPO
10012: # Extract the first word of "lipo", so it can be a program name with args.
10013: set dummy lipo; ac_word=$2
1.237 ! moko 10014: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 10015: printf %s "checking for $ac_word... " >&6; }
! 10016: if test ${ac_cv_prog_ac_ct_LIPO+y}
! 10017: then :
! 10018: printf %s "(cached) " >&6
! 10019: else case e in #(
! 10020: e) if test -n "$ac_ct_LIPO"; then
1.128 moko 10021: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10022: else
10023: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024: for as_dir in $PATH
10025: do
10026: IFS=$as_save_IFS
1.237 ! moko 10027: case $as_dir in #(((
! 10028: '') as_dir=./ ;;
! 10029: */) ;;
! 10030: *) as_dir=$as_dir/ ;;
! 10031: esac
1.150 moko 10032: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 10033: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10034: ac_cv_prog_ac_ct_LIPO="lipo"
1.237 ! moko 10035: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10036: break 2
10037: fi
10038: done
1.150 moko 10039: done
10040: IFS=$as_save_IFS
1.128 moko 10041:
1.237 ! moko 10042: fi ;;
! 10043: esac
1.128 moko 10044: fi
10045: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10046: if test -n "$ac_ct_LIPO"; then
1.237 ! moko 10047: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
! 10048: printf "%s\n" "$ac_ct_LIPO" >&6; }
1.128 moko 10049: else
1.237 ! moko 10050: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10051: printf "%s\n" "no" >&6; }
1.128 moko 10052: fi
10053:
1.150 moko 10054: if test "x$ac_ct_LIPO" = x; then
10055: LIPO=":"
10056: else
10057: case $cross_compiling:$ac_tool_warned in
10058: yes:)
1.237 ! moko 10059: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 10060: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10061: ac_tool_warned=yes ;;
10062: esac
10063: LIPO=$ac_ct_LIPO
10064: fi
1.128 moko 10065: else
10066: LIPO="$ac_cv_prog_LIPO"
10067: fi
10068:
10069: if test -n "$ac_tool_prefix"; then
10070: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10071: set dummy ${ac_tool_prefix}otool; ac_word=$2
1.237 ! moko 10072: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 10073: printf %s "checking for $ac_word... " >&6; }
! 10074: if test ${ac_cv_prog_OTOOL+y}
! 10075: then :
! 10076: printf %s "(cached) " >&6
! 10077: else case e in #(
! 10078: e) if test -n "$OTOOL"; then
1.128 moko 10079: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10080: else
10081: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082: for as_dir in $PATH
10083: do
10084: IFS=$as_save_IFS
1.237 ! moko 10085: case $as_dir in #(((
! 10086: '') as_dir=./ ;;
! 10087: */) ;;
! 10088: *) as_dir=$as_dir/ ;;
! 10089: esac
1.150 moko 10090: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 10091: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10092: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
1.237 ! moko 10093: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10094: break 2
10095: fi
10096: done
1.150 moko 10097: done
10098: IFS=$as_save_IFS
1.128 moko 10099:
1.237 ! moko 10100: fi ;;
! 10101: esac
1.128 moko 10102: fi
10103: OTOOL=$ac_cv_prog_OTOOL
10104: if test -n "$OTOOL"; then
1.237 ! moko 10105: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
! 10106: printf "%s\n" "$OTOOL" >&6; }
1.128 moko 10107: else
1.237 ! moko 10108: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10109: printf "%s\n" "no" >&6; }
1.128 moko 10110: fi
10111:
1.150 moko 10112:
1.128 moko 10113: fi
10114: if test -z "$ac_cv_prog_OTOOL"; then
10115: ac_ct_OTOOL=$OTOOL
10116: # Extract the first word of "otool", so it can be a program name with args.
10117: set dummy otool; ac_word=$2
1.237 ! moko 10118: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 10119: printf %s "checking for $ac_word... " >&6; }
! 10120: if test ${ac_cv_prog_ac_ct_OTOOL+y}
! 10121: then :
! 10122: printf %s "(cached) " >&6
! 10123: else case e in #(
! 10124: e) if test -n "$ac_ct_OTOOL"; then
1.128 moko 10125: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10126: else
10127: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10128: for as_dir in $PATH
10129: do
10130: IFS=$as_save_IFS
1.237 ! moko 10131: case $as_dir in #(((
! 10132: '') as_dir=./ ;;
! 10133: */) ;;
! 10134: *) as_dir=$as_dir/ ;;
! 10135: esac
1.150 moko 10136: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 10137: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10138: ac_cv_prog_ac_ct_OTOOL="otool"
1.237 ! moko 10139: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10140: break 2
10141: fi
10142: done
1.150 moko 10143: done
10144: IFS=$as_save_IFS
1.128 moko 10145:
1.237 ! moko 10146: fi ;;
! 10147: esac
1.128 moko 10148: fi
10149: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10150: if test -n "$ac_ct_OTOOL"; then
1.237 ! moko 10151: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
! 10152: printf "%s\n" "$ac_ct_OTOOL" >&6; }
1.128 moko 10153: else
1.237 ! moko 10154: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10155: printf "%s\n" "no" >&6; }
1.128 moko 10156: fi
10157:
1.150 moko 10158: if test "x$ac_ct_OTOOL" = x; then
10159: OTOOL=":"
10160: else
10161: case $cross_compiling:$ac_tool_warned in
10162: yes:)
1.237 ! moko 10163: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 10164: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10165: ac_tool_warned=yes ;;
10166: esac
10167: OTOOL=$ac_ct_OTOOL
10168: fi
1.128 moko 10169: else
10170: OTOOL="$ac_cv_prog_OTOOL"
10171: fi
10172:
10173: if test -n "$ac_tool_prefix"; then
10174: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10175: set dummy ${ac_tool_prefix}otool64; ac_word=$2
1.237 ! moko 10176: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 10177: printf %s "checking for $ac_word... " >&6; }
! 10178: if test ${ac_cv_prog_OTOOL64+y}
! 10179: then :
! 10180: printf %s "(cached) " >&6
! 10181: else case e in #(
! 10182: e) if test -n "$OTOOL64"; then
1.128 moko 10183: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10184: else
10185: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186: for as_dir in $PATH
10187: do
10188: IFS=$as_save_IFS
1.237 ! moko 10189: case $as_dir in #(((
! 10190: '') as_dir=./ ;;
! 10191: */) ;;
! 10192: *) as_dir=$as_dir/ ;;
! 10193: esac
1.150 moko 10194: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 10195: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10196: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
1.237 ! moko 10197: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10198: break 2
10199: fi
10200: done
1.150 moko 10201: done
10202: IFS=$as_save_IFS
1.128 moko 10203:
1.237 ! moko 10204: fi ;;
! 10205: esac
1.128 moko 10206: fi
10207: OTOOL64=$ac_cv_prog_OTOOL64
10208: if test -n "$OTOOL64"; then
1.237 ! moko 10209: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
! 10210: printf "%s\n" "$OTOOL64" >&6; }
1.128 moko 10211: else
1.237 ! moko 10212: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10213: printf "%s\n" "no" >&6; }
1.128 moko 10214: fi
10215:
1.150 moko 10216:
1.128 moko 10217: fi
10218: if test -z "$ac_cv_prog_OTOOL64"; then
10219: ac_ct_OTOOL64=$OTOOL64
10220: # Extract the first word of "otool64", so it can be a program name with args.
10221: set dummy otool64; ac_word=$2
1.237 ! moko 10222: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 10223: printf %s "checking for $ac_word... " >&6; }
! 10224: if test ${ac_cv_prog_ac_ct_OTOOL64+y}
! 10225: then :
! 10226: printf %s "(cached) " >&6
! 10227: else case e in #(
! 10228: e) if test -n "$ac_ct_OTOOL64"; then
1.128 moko 10229: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10230: else
10231: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232: for as_dir in $PATH
10233: do
10234: IFS=$as_save_IFS
1.237 ! moko 10235: case $as_dir in #(((
! 10236: '') as_dir=./ ;;
! 10237: */) ;;
! 10238: *) as_dir=$as_dir/ ;;
! 10239: esac
1.150 moko 10240: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 10241: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10242: ac_cv_prog_ac_ct_OTOOL64="otool64"
1.237 ! moko 10243: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10244: break 2
10245: fi
10246: done
1.150 moko 10247: done
10248: IFS=$as_save_IFS
1.128 moko 10249:
1.237 ! moko 10250: fi ;;
! 10251: esac
1.128 moko 10252: fi
10253: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10254: if test -n "$ac_ct_OTOOL64"; then
1.237 ! moko 10255: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
! 10256: printf "%s\n" "$ac_ct_OTOOL64" >&6; }
1.128 moko 10257: else
1.237 ! moko 10258: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10259: printf "%s\n" "no" >&6; }
1.128 moko 10260: fi
10261:
1.150 moko 10262: if test "x$ac_ct_OTOOL64" = x; then
10263: OTOOL64=":"
10264: else
10265: case $cross_compiling:$ac_tool_warned in
10266: yes:)
1.237 ! moko 10267: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 10268: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10269: ac_tool_warned=yes ;;
10270: esac
10271: OTOOL64=$ac_ct_OTOOL64
10272: fi
1.128 moko 10273: else
10274: OTOOL64="$ac_cv_prog_OTOOL64"
10275: fi
10276:
10277:
10278:
10279:
10280:
10281:
10282:
10283:
10284:
10285:
10286:
10287:
10288:
10289:
10290:
10291:
10292:
10293:
10294:
10295:
10296:
10297:
10298:
10299:
10300:
10301:
10302:
1.237 ! moko 10303: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
! 10304: printf %s "checking for -single_module linker flag... " >&6; }
! 10305: if test ${lt_cv_apple_cc_single_mod+y}
! 10306: then :
! 10307: printf %s "(cached) " >&6
! 10308: else case e in #(
! 10309: e) lt_cv_apple_cc_single_mod=no
! 10310: if test -z "$LT_MULTI_MODULE"; then
1.128 moko 10311: # By default we will add the -single_module flag. You can override
10312: # by either setting the environment variable LT_MULTI_MODULE
10313: # non-empty at configure time, or by adding -multi_module to the
10314: # link flags.
10315: rm -rf libconftest.dylib*
10316: echo "int foo(void){return 1;}" > conftest.c
10317: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10318: -dynamiclib -Wl,-single_module conftest.c" >&5
10319: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10320: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10321: _lt_result=$?
10322: # If there is a non-empty error log, and "single_module"
10323: # appears in it, assume the flag caused a linker warning
10324: if test -s conftest.err && $GREP single_module conftest.err; then
10325: cat conftest.err >&5
10326: # Otherwise, if the output was created with a 0 exit code from
10327: # the compiler, it worked.
1.237 ! moko 10328: elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1.128 moko 10329: lt_cv_apple_cc_single_mod=yes
10330: else
10331: cat conftest.err >&5
10332: fi
10333: rm -rf libconftest.dylib*
10334: rm -f conftest.*
1.237 ! moko 10335: fi ;;
! 10336: esac
! 10337: fi
! 10338: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
! 10339: printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
! 10340:
! 10341: # Feature test to disable chained fixups since it is not
! 10342: # compatible with '-undefined dynamic_lookup'
! 10343: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
! 10344: printf %s "checking for -no_fixup_chains linker flag... " >&6; }
! 10345: if test ${lt_cv_support_no_fixup_chains+y}
! 10346: then :
! 10347: printf %s "(cached) " >&6
! 10348: else case e in #(
! 10349: e) save_LDFLAGS=$LDFLAGS
! 10350: LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
! 10351: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 10352: /* end confdefs.h. */
! 10353:
! 10354: int
! 10355: main (void)
! 10356: {
! 10357:
! 10358: ;
! 10359: return 0;
! 10360: }
! 10361: _ACEOF
! 10362: if ac_fn_c_try_link "$LINENO"
! 10363: then :
! 10364: lt_cv_support_no_fixup_chains=yes
! 10365: else case e in #(
! 10366: e) lt_cv_support_no_fixup_chains=no
! 10367: ;;
! 10368: esac
! 10369: fi
! 10370: rm -f core conftest.err conftest.$ac_objext conftest.beam \
! 10371: conftest$ac_exeext conftest.$ac_ext
! 10372: LDFLAGS=$save_LDFLAGS
! 10373:
! 10374: ;;
! 10375: esac
1.128 moko 10376: fi
1.237 ! moko 10377: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
! 10378: printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
1.128 moko 10379:
1.237 ! moko 10380: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
! 10381: printf %s "checking for -exported_symbols_list linker flag... " >&6; }
! 10382: if test ${lt_cv_ld_exported_symbols_list+y}
! 10383: then :
! 10384: printf %s "(cached) " >&6
! 10385: else case e in #(
! 10386: e) lt_cv_ld_exported_symbols_list=no
1.128 moko 10387: save_LDFLAGS=$LDFLAGS
10388: echo "_main" > conftest.sym
10389: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1.150 moko 10390: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 10391: /* end confdefs.h. */
10392:
10393: int
1.237 ! moko 10394: main (void)
1.128 moko 10395: {
10396:
10397: ;
10398: return 0;
10399: }
10400: _ACEOF
1.237 ! moko 10401: if ac_fn_c_try_link "$LINENO"
! 10402: then :
1.128 moko 10403: lt_cv_ld_exported_symbols_list=yes
1.237 ! moko 10404: else case e in #(
! 10405: e) lt_cv_ld_exported_symbols_list=no ;;
! 10406: esac
1.128 moko 10407: fi
1.237 ! moko 10408: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 10409: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 10410: LDFLAGS=$save_LDFLAGS
! 10411: ;;
! 10412: esac
1.128 moko 10413: fi
1.237 ! moko 10414: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
! 10415: printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
1.128 moko 10416:
1.237 ! moko 10417: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
! 10418: printf %s "checking for -force_load linker flag... " >&6; }
! 10419: if test ${lt_cv_ld_force_load+y}
! 10420: then :
! 10421: printf %s "(cached) " >&6
! 10422: else case e in #(
! 10423: e) lt_cv_ld_force_load=no
1.128 moko 10424: cat > conftest.c << _LT_EOF
10425: int forced_loaded() { return 2;}
10426: _LT_EOF
10427: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10428: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
1.237 ! moko 10429: echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
! 10430: $AR $AR_FLAGS libconftest.a conftest.o 2>&5
1.128 moko 10431: echo "$RANLIB libconftest.a" >&5
10432: $RANLIB libconftest.a 2>&5
10433: cat > conftest.c << _LT_EOF
1.237 ! moko 10434: int main(void) { return 0;}
1.128 moko 10435: _LT_EOF
10436: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10437: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10438: _lt_result=$?
10439: if test -s conftest.err && $GREP force_load conftest.err; then
10440: cat conftest.err >&5
1.237 ! moko 10441: elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1.128 moko 10442: lt_cv_ld_force_load=yes
10443: else
10444: cat conftest.err >&5
10445: fi
10446: rm -f conftest.err libconftest.a conftest conftest.c
10447: rm -rf conftest.dSYM
1.237 ! moko 10448: ;;
! 10449: esac
1.128 moko 10450: fi
1.237 ! moko 10451: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
! 10452: printf "%s\n" "$lt_cv_ld_force_load" >&6; }
1.128 moko 10453: case $host_os in
10454: rhapsody* | darwin1.[012])
1.237 ! moko 10455: _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1.128 moko 10456: darwin1.*)
1.237 ! moko 10457: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
! 10458: darwin*)
! 10459: case $MACOSX_DEPLOYMENT_TARGET,$host in
! 10460: 10.[012],*|,*powerpc*-darwin[5-8]*)
! 10461: _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
! 10462: *)
! 10463: _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
! 10464: if test yes = "$lt_cv_support_no_fixup_chains"; then
! 10465: as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
! 10466: fi
! 10467: ;;
1.128 moko 10468: esac
10469: ;;
10470: esac
1.237 ! moko 10471: if test yes = "$lt_cv_apple_cc_single_mod"; then
1.128 moko 10472: _lt_dar_single_mod='$single_module'
10473: fi
1.237 ! moko 10474: _lt_dar_needs_single_mod=no
! 10475: case $host_os in
! 10476: rhapsody* | darwin1.*)
! 10477: _lt_dar_needs_single_mod=yes ;;
! 10478: darwin*)
! 10479: # When targeting Mac OS X 10.4 (darwin 8) or later,
! 10480: # -single_module is the default and -multi_module is unsupported.
! 10481: # The toolchain on macOS 10.14 (darwin 18) and later cannot
! 10482: # target any OS version that needs -single_module.
! 10483: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
! 10484: 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
! 10485: _lt_dar_needs_single_mod=yes ;;
! 10486: esac
! 10487: ;;
! 10488: esac
! 10489: if test yes = "$lt_cv_ld_exported_symbols_list"; then
! 10490: _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1.128 moko 10491: else
1.237 ! moko 10492: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1.128 moko 10493: fi
1.237 ! moko 10494: if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1.128 moko 10495: _lt_dsymutil='~$DSYMUTIL $lib || :'
10496: else
10497: _lt_dsymutil=
10498: fi
10499: ;;
10500: esac
10501:
1.237 ! moko 10502: # func_munge_path_list VARIABLE PATH
! 10503: # -----------------------------------
! 10504: # VARIABLE is name of variable containing _space_ separated list of
! 10505: # directories to be munged by the contents of PATH, which is string
! 10506: # having a format:
! 10507: # "DIR[:DIR]:"
! 10508: # string "DIR[ DIR]" will be prepended to VARIABLE
! 10509: # ":DIR[:DIR]"
! 10510: # string "DIR[ DIR]" will be appended to VARIABLE
! 10511: # "DIRP[:DIRP]::[DIRA:]DIRA"
! 10512: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
! 10513: # "DIRA[ DIRA]" will be appended to VARIABLE
! 10514: # "DIR[:DIR]"
! 10515: # VARIABLE will be replaced by "DIR[ DIR]"
! 10516: func_munge_path_list ()
! 10517: {
! 10518: case x$2 in
! 10519: x)
! 10520: ;;
! 10521: *:)
! 10522: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
! 10523: ;;
! 10524: x:*)
! 10525: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
! 10526: ;;
! 10527: *::*)
! 10528: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
! 10529: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
! 10530: ;;
! 10531: *)
! 10532: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
! 10533: ;;
! 10534: esac
! 10535: }
! 10536:
! 10537: ac_header= ac_cache=
! 10538: for ac_item in $ac_header_c_list
1.128 moko 10539: do
1.237 ! moko 10540: if test $ac_cache; then
! 10541: ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
! 10542: if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
! 10543: printf "%s\n" "#define $ac_item 1" >> confdefs.h
! 10544: fi
! 10545: ac_header= ac_cache=
! 10546: elif test $ac_header; then
! 10547: ac_cache=$ac_item
! 10548: else
! 10549: ac_header=$ac_item
! 10550: fi
! 10551: done
! 10552:
! 10553:
! 10554:
1.150 moko 10555:
1.128 moko 10556:
10557:
10558:
10559:
1.237 ! moko 10560: if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
! 10561: then :
1.150 moko 10562:
1.237 ! moko 10563: printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
1.128 moko 10564:
10565: fi
1.237 ! moko 10566: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
! 10567: "
! 10568: if test "x$ac_cv_header_dlfcn_h" = xyes
! 10569: then :
! 10570: printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
1.150 moko 10571:
1.128 moko 10572: fi
10573:
10574:
10575:
10576:
1.237 ! moko 10577: func_stripname_cnf ()
1.128 moko 10578: {
1.237 ! moko 10579: case $2 in
! 10580: .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
! 10581: *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
1.150 moko 10582: esac
10583: } # func_stripname_cnf
1.128 moko 10584:
10585:
10586:
10587:
10588:
10589: # Set options
10590: enable_dlopen=yes
10591: enable_win32_dll=yes
10592:
10593: case $host in
1.237 ! moko 10594: *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
1.128 moko 10595: if test -n "$ac_tool_prefix"; then
10596: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10597: set dummy ${ac_tool_prefix}as; ac_word=$2
1.237 ! moko 10598: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 10599: printf %s "checking for $ac_word... " >&6; }
! 10600: if test ${ac_cv_prog_AS+y}
! 10601: then :
! 10602: printf %s "(cached) " >&6
! 10603: else case e in #(
! 10604: e) if test -n "$AS"; then
1.128 moko 10605: ac_cv_prog_AS="$AS" # Let the user override the test.
10606: else
10607: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608: for as_dir in $PATH
10609: do
10610: IFS=$as_save_IFS
1.237 ! moko 10611: case $as_dir in #(((
! 10612: '') as_dir=./ ;;
! 10613: */) ;;
! 10614: *) as_dir=$as_dir/ ;;
! 10615: esac
1.150 moko 10616: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 10617: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10618: ac_cv_prog_AS="${ac_tool_prefix}as"
1.237 ! moko 10619: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10620: break 2
10621: fi
10622: done
1.150 moko 10623: done
10624: IFS=$as_save_IFS
1.128 moko 10625:
1.237 ! moko 10626: fi ;;
! 10627: esac
1.128 moko 10628: fi
10629: AS=$ac_cv_prog_AS
10630: if test -n "$AS"; then
1.237 ! moko 10631: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
! 10632: printf "%s\n" "$AS" >&6; }
1.128 moko 10633: else
1.237 ! moko 10634: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10635: printf "%s\n" "no" >&6; }
1.128 moko 10636: fi
10637:
1.150 moko 10638:
1.128 moko 10639: fi
10640: if test -z "$ac_cv_prog_AS"; then
10641: ac_ct_AS=$AS
10642: # Extract the first word of "as", so it can be a program name with args.
10643: set dummy as; ac_word=$2
1.237 ! moko 10644: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 10645: printf %s "checking for $ac_word... " >&6; }
! 10646: if test ${ac_cv_prog_ac_ct_AS+y}
! 10647: then :
! 10648: printf %s "(cached) " >&6
! 10649: else case e in #(
! 10650: e) if test -n "$ac_ct_AS"; then
1.128 moko 10651: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10652: else
10653: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654: for as_dir in $PATH
10655: do
10656: IFS=$as_save_IFS
1.237 ! moko 10657: case $as_dir in #(((
! 10658: '') as_dir=./ ;;
! 10659: */) ;;
! 10660: *) as_dir=$as_dir/ ;;
! 10661: esac
1.150 moko 10662: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 10663: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10664: ac_cv_prog_ac_ct_AS="as"
1.237 ! moko 10665: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10666: break 2
10667: fi
10668: done
1.150 moko 10669: done
10670: IFS=$as_save_IFS
1.128 moko 10671:
1.237 ! moko 10672: fi ;;
! 10673: esac
1.128 moko 10674: fi
10675: ac_ct_AS=$ac_cv_prog_ac_ct_AS
10676: if test -n "$ac_ct_AS"; then
1.237 ! moko 10677: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
! 10678: printf "%s\n" "$ac_ct_AS" >&6; }
1.128 moko 10679: else
1.237 ! moko 10680: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10681: printf "%s\n" "no" >&6; }
1.128 moko 10682: fi
10683:
1.150 moko 10684: if test "x$ac_ct_AS" = x; then
10685: AS="false"
10686: else
10687: case $cross_compiling:$ac_tool_warned in
10688: yes:)
1.237 ! moko 10689: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 10690: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10691: ac_tool_warned=yes ;;
10692: esac
10693: AS=$ac_ct_AS
10694: fi
1.128 moko 10695: else
10696: AS="$ac_cv_prog_AS"
10697: fi
10698:
10699: if test -n "$ac_tool_prefix"; then
10700: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10701: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
1.237 ! moko 10702: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 10703: printf %s "checking for $ac_word... " >&6; }
! 10704: if test ${ac_cv_prog_DLLTOOL+y}
! 10705: then :
! 10706: printf %s "(cached) " >&6
! 10707: else case e in #(
! 10708: e) if test -n "$DLLTOOL"; then
1.128 moko 10709: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10710: else
10711: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712: for as_dir in $PATH
10713: do
10714: IFS=$as_save_IFS
1.237 ! moko 10715: case $as_dir in #(((
! 10716: '') as_dir=./ ;;
! 10717: */) ;;
! 10718: *) as_dir=$as_dir/ ;;
! 10719: esac
1.150 moko 10720: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 10721: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10722: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
1.237 ! moko 10723: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10724: break 2
10725: fi
10726: done
1.150 moko 10727: done
10728: IFS=$as_save_IFS
1.128 moko 10729:
1.237 ! moko 10730: fi ;;
! 10731: esac
1.128 moko 10732: fi
10733: DLLTOOL=$ac_cv_prog_DLLTOOL
10734: if test -n "$DLLTOOL"; then
1.237 ! moko 10735: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
! 10736: printf "%s\n" "$DLLTOOL" >&6; }
1.128 moko 10737: else
1.237 ! moko 10738: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10739: printf "%s\n" "no" >&6; }
1.128 moko 10740: fi
10741:
1.150 moko 10742:
1.128 moko 10743: fi
10744: if test -z "$ac_cv_prog_DLLTOOL"; then
10745: ac_ct_DLLTOOL=$DLLTOOL
10746: # Extract the first word of "dlltool", so it can be a program name with args.
10747: set dummy dlltool; ac_word=$2
1.237 ! moko 10748: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 10749: printf %s "checking for $ac_word... " >&6; }
! 10750: if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
! 10751: then :
! 10752: printf %s "(cached) " >&6
! 10753: else case e in #(
! 10754: e) if test -n "$ac_ct_DLLTOOL"; then
1.128 moko 10755: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10756: else
10757: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758: for as_dir in $PATH
10759: do
10760: IFS=$as_save_IFS
1.237 ! moko 10761: case $as_dir in #(((
! 10762: '') as_dir=./ ;;
! 10763: */) ;;
! 10764: *) as_dir=$as_dir/ ;;
! 10765: esac
1.150 moko 10766: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 10767: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10768: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
1.237 ! moko 10769: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10770: break 2
10771: fi
10772: done
1.150 moko 10773: done
10774: IFS=$as_save_IFS
1.128 moko 10775:
1.237 ! moko 10776: fi ;;
! 10777: esac
1.128 moko 10778: fi
10779: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10780: if test -n "$ac_ct_DLLTOOL"; then
1.237 ! moko 10781: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
! 10782: printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
1.128 moko 10783: else
1.237 ! moko 10784: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10785: printf "%s\n" "no" >&6; }
1.128 moko 10786: fi
10787:
1.150 moko 10788: if test "x$ac_ct_DLLTOOL" = x; then
10789: DLLTOOL="false"
10790: else
10791: case $cross_compiling:$ac_tool_warned in
10792: yes:)
1.237 ! moko 10793: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 10794: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10795: ac_tool_warned=yes ;;
10796: esac
10797: DLLTOOL=$ac_ct_DLLTOOL
10798: fi
1.128 moko 10799: else
10800: DLLTOOL="$ac_cv_prog_DLLTOOL"
10801: fi
10802:
10803: if test -n "$ac_tool_prefix"; then
10804: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10805: set dummy ${ac_tool_prefix}objdump; ac_word=$2
1.237 ! moko 10806: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 10807: printf %s "checking for $ac_word... " >&6; }
! 10808: if test ${ac_cv_prog_OBJDUMP+y}
! 10809: then :
! 10810: printf %s "(cached) " >&6
! 10811: else case e in #(
! 10812: e) if test -n "$OBJDUMP"; then
1.128 moko 10813: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10814: else
10815: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10816: for as_dir in $PATH
10817: do
10818: IFS=$as_save_IFS
1.237 ! moko 10819: case $as_dir in #(((
! 10820: '') as_dir=./ ;;
! 10821: */) ;;
! 10822: *) as_dir=$as_dir/ ;;
! 10823: esac
1.150 moko 10824: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 10825: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10826: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
1.237 ! moko 10827: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10828: break 2
10829: fi
10830: done
1.150 moko 10831: done
10832: IFS=$as_save_IFS
1.128 moko 10833:
1.237 ! moko 10834: fi ;;
! 10835: esac
1.128 moko 10836: fi
10837: OBJDUMP=$ac_cv_prog_OBJDUMP
10838: if test -n "$OBJDUMP"; then
1.237 ! moko 10839: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
! 10840: printf "%s\n" "$OBJDUMP" >&6; }
1.128 moko 10841: else
1.237 ! moko 10842: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10843: printf "%s\n" "no" >&6; }
1.128 moko 10844: fi
10845:
1.150 moko 10846:
1.128 moko 10847: fi
10848: if test -z "$ac_cv_prog_OBJDUMP"; then
10849: ac_ct_OBJDUMP=$OBJDUMP
10850: # Extract the first word of "objdump", so it can be a program name with args.
10851: set dummy objdump; ac_word=$2
1.237 ! moko 10852: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 10853: printf %s "checking for $ac_word... " >&6; }
! 10854: if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
! 10855: then :
! 10856: printf %s "(cached) " >&6
! 10857: else case e in #(
! 10858: e) if test -n "$ac_ct_OBJDUMP"; then
1.128 moko 10859: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10860: else
10861: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862: for as_dir in $PATH
10863: do
10864: IFS=$as_save_IFS
1.237 ! moko 10865: case $as_dir in #(((
! 10866: '') as_dir=./ ;;
! 10867: */) ;;
! 10868: *) as_dir=$as_dir/ ;;
! 10869: esac
1.150 moko 10870: for ac_exec_ext in '' $ac_executable_extensions; do
1.237 ! moko 10871: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.128 moko 10872: ac_cv_prog_ac_ct_OBJDUMP="objdump"
1.237 ! moko 10873: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.128 moko 10874: break 2
10875: fi
10876: done
1.150 moko 10877: done
10878: IFS=$as_save_IFS
1.128 moko 10879:
1.237 ! moko 10880: fi ;;
! 10881: esac
1.128 moko 10882: fi
10883: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10884: if test -n "$ac_ct_OBJDUMP"; then
1.237 ! moko 10885: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
! 10886: printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
1.128 moko 10887: else
1.237 ! moko 10888: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 10889: printf "%s\n" "no" >&6; }
1.128 moko 10890: fi
10891:
1.150 moko 10892: if test "x$ac_ct_OBJDUMP" = x; then
10893: OBJDUMP="false"
10894: else
10895: case $cross_compiling:$ac_tool_warned in
10896: yes:)
1.237 ! moko 10897: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
! 10898: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.150 moko 10899: ac_tool_warned=yes ;;
10900: esac
10901: OBJDUMP=$ac_ct_OBJDUMP
10902: fi
1.128 moko 10903: else
10904: OBJDUMP="$ac_cv_prog_OBJDUMP"
10905: fi
10906:
10907: ;;
10908: esac
10909:
10910: test -z "$AS" && AS=as
10911:
10912:
10913:
10914:
10915:
10916: test -z "$DLLTOOL" && DLLTOOL=dlltool
10917:
10918:
10919:
10920:
10921:
10922: test -z "$OBJDUMP" && OBJDUMP=objdump
10923:
10924:
10925:
10926:
1.237 ! moko 10927: # Check whether --enable-pic was given.
! 10928: if test ${enable_pic+y}
! 10929: then :
! 10930: enableval=$enable_pic; lt_p=${PACKAGE-default}
! 10931: case $enableval in
! 10932: yes|no) pic_mode=$enableval ;;
! 10933: *)
! 10934: pic_mode=default
! 10935: # Look at the argument we got. We use all the common list separators.
! 10936: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
! 10937: for lt_pkg in $enableval; do
! 10938: IFS=$lt_save_ifs
! 10939: if test "X$lt_pkg" = "X$lt_p"; then
! 10940: pic_mode=yes
! 10941: fi
! 10942: done
! 10943: IFS=$lt_save_ifs
! 10944: ;;
! 10945: esac
! 10946: else case e in #(
! 10947: e) # Check whether --with-pic was given.
! 10948: if test ${with_pic+y}
! 10949: then :
1.150 moko 10950: withval=$with_pic; lt_p=${PACKAGE-default}
1.237 ! moko 10951: case $withval in
! 10952: yes|no) pic_mode=$withval ;;
! 10953: *)
! 10954: pic_mode=default
! 10955: # Look at the argument we got. We use all the common list separators.
! 10956: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
! 10957: for lt_pkg in $withval; do
! 10958: IFS=$lt_save_ifs
! 10959: if test "X$lt_pkg" = "X$lt_p"; then
! 10960: pic_mode=yes
! 10961: fi
! 10962: done
! 10963: IFS=$lt_save_ifs
! 10964: ;;
! 10965: esac
! 10966: else case e in #(
! 10967: e) pic_mode=no ;;
! 10968: esac
1.150 moko 10969: fi
10970:
1.237 ! moko 10971: ;;
! 10972: esac
! 10973: fi
1.145 moko 10974:
10975:
10976:
10977:
10978:
10979:
10980:
1.128 moko 10981:
10982:
10983:
10984:
1.150 moko 10985: # Check whether --enable-shared was given.
1.237 ! moko 10986: if test ${enable_shared+y}
! 10987: then :
1.150 moko 10988: enableval=$enable_shared; p=${PACKAGE-default}
1.128 moko 10989: case $enableval in
10990: yes) enable_shared=yes ;;
10991: no) enable_shared=no ;;
10992: *)
10993: enable_shared=no
10994: # Look at the argument we got. We use all the common list separators.
1.237 ! moko 10995: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.128 moko 10996: for pkg in $enableval; do
1.237 ! moko 10997: IFS=$lt_save_ifs
1.128 moko 10998: if test "X$pkg" = "X$p"; then
10999: enable_shared=yes
11000: fi
11001: done
1.237 ! moko 11002: IFS=$lt_save_ifs
1.128 moko 11003: ;;
11004: esac
1.237 ! moko 11005: else case e in #(
! 11006: e) enable_shared=yes ;;
! 11007: esac
1.150 moko 11008: fi
11009:
1.128 moko 11010:
11011:
11012:
11013:
11014:
11015:
11016:
11017:
1.150 moko 11018: # Check whether --enable-static was given.
1.237 ! moko 11019: if test ${enable_static+y}
! 11020: then :
1.150 moko 11021: enableval=$enable_static; p=${PACKAGE-default}
1.138 moko 11022: case $enableval in
11023: yes) enable_static=yes ;;
11024: no) enable_static=no ;;
11025: *)
11026: enable_static=no
11027: # Look at the argument we got. We use all the common list separators.
1.237 ! moko 11028: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.138 moko 11029: for pkg in $enableval; do
1.237 ! moko 11030: IFS=$lt_save_ifs
1.138 moko 11031: if test "X$pkg" = "X$p"; then
11032: enable_static=yes
11033: fi
11034: done
1.237 ! moko 11035: IFS=$lt_save_ifs
1.138 moko 11036: ;;
11037: esac
1.237 ! moko 11038: else case e in #(
! 11039: e) enable_static=yes ;;
! 11040: esac
1.150 moko 11041: fi
11042:
1.138 moko 11043:
11044:
11045:
11046:
11047:
11048:
11049:
1.128 moko 11050:
11051:
1.150 moko 11052: # Check whether --enable-fast-install was given.
1.237 ! moko 11053: if test ${enable_fast_install+y}
! 11054: then :
1.150 moko 11055: enableval=$enable_fast_install; p=${PACKAGE-default}
1.128 moko 11056: case $enableval in
11057: yes) enable_fast_install=yes ;;
11058: no) enable_fast_install=no ;;
11059: *)
11060: enable_fast_install=no
11061: # Look at the argument we got. We use all the common list separators.
1.237 ! moko 11062: lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
1.128 moko 11063: for pkg in $enableval; do
1.237 ! moko 11064: IFS=$lt_save_ifs
1.128 moko 11065: if test "X$pkg" = "X$p"; then
11066: enable_fast_install=yes
11067: fi
11068: done
1.237 ! moko 11069: IFS=$lt_save_ifs
1.128 moko 11070: ;;
11071: esac
1.237 ! moko 11072: else case e in #(
! 11073: e) enable_fast_install=yes ;;
! 11074: esac
! 11075: fi
! 11076:
! 11077:
! 11078:
! 11079:
! 11080:
! 11081:
! 11082:
! 11083:
! 11084: shared_archive_member_spec=
! 11085: case $host,$enable_shared in
! 11086: power*-*-aix[5-9]*,yes)
! 11087: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
! 11088: printf %s "checking which variant of shared library versioning to provide... " >&6; }
! 11089: # Check whether --enable-aix-soname was given.
! 11090: if test ${enable_aix_soname+y}
! 11091: then :
! 11092: enableval=$enable_aix_soname; case $enableval in
! 11093: aix|svr4|both)
! 11094: ;;
! 11095: *)
! 11096: as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
! 11097: ;;
! 11098: esac
! 11099: lt_cv_with_aix_soname=$enable_aix_soname
! 11100: else case e in #(
! 11101: e) # Check whether --with-aix-soname was given.
! 11102: if test ${with_aix_soname+y}
! 11103: then :
! 11104: withval=$with_aix_soname; case $withval in
! 11105: aix|svr4|both)
! 11106: ;;
! 11107: *)
! 11108: as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
! 11109: ;;
! 11110: esac
! 11111: lt_cv_with_aix_soname=$with_aix_soname
! 11112: else case e in #(
! 11113: e) if test ${lt_cv_with_aix_soname+y}
! 11114: then :
! 11115: printf %s "(cached) " >&6
! 11116: else case e in #(
! 11117: e) lt_cv_with_aix_soname=aix ;;
! 11118: esac
! 11119: fi
! 11120: ;;
! 11121: esac
! 11122: fi
! 11123:
! 11124: enable_aix_soname=$lt_cv_with_aix_soname ;;
! 11125: esac
1.150 moko 11126: fi
11127:
1.237 ! moko 11128: with_aix_soname=$enable_aix_soname
! 11129: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
! 11130: printf "%s\n" "$with_aix_soname" >&6; }
! 11131: if test aix != "$with_aix_soname"; then
! 11132: # For the AIX way of multilib, we name the shared archive member
! 11133: # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
! 11134: # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
! 11135: # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
! 11136: # the AIX toolchain works better with OBJECT_MODE set (default 32).
! 11137: if test 64 = "${OBJECT_MODE-32}"; then
! 11138: shared_archive_member_spec=shr_64
! 11139: else
! 11140: shared_archive_member_spec=shr
! 11141: fi
! 11142: fi
! 11143: ;;
! 11144: *)
! 11145: with_aix_soname=aix
! 11146: ;;
! 11147: esac
1.128 moko 11148:
11149:
11150:
11151:
11152:
11153:
11154:
11155:
11156:
11157:
11158: # This can be used to rebuild libtool when needed
1.237 ! moko 11159: LIBTOOL_DEPS=$ltmain
1.128 moko 11160:
11161: # Always use our own libtool.
11162: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11163:
11164:
11165:
11166:
11167:
11168:
11169:
11170:
11171:
11172:
11173:
11174:
11175:
11176:
11177:
11178:
11179:
11180:
11181:
11182:
11183:
11184:
11185:
11186:
11187:
11188:
11189:
11190:
11191:
11192:
11193: test -z "$LN_S" && LN_S="ln -s"
11194:
11195:
11196:
11197:
11198:
11199:
11200:
11201:
11202:
11203:
11204:
11205:
11206:
11207:
1.237 ! moko 11208: if test -n "${ZSH_VERSION+set}"; then
1.128 moko 11209: setopt NO_GLOB_SUBST
11210: fi
11211:
1.237 ! moko 11212: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
! 11213: printf %s "checking for objdir... " >&6; }
! 11214: if test ${lt_cv_objdir+y}
! 11215: then :
! 11216: printf %s "(cached) " >&6
! 11217: else case e in #(
! 11218: e) rm -f .libs 2>/dev/null
1.128 moko 11219: mkdir .libs 2>/dev/null
11220: if test -d .libs; then
11221: lt_cv_objdir=.libs
11222: else
11223: # MS-DOS does not allow filenames that begin with a dot.
11224: lt_cv_objdir=_libs
11225: fi
1.237 ! moko 11226: rmdir .libs 2>/dev/null ;;
! 11227: esac
1.128 moko 11228: fi
1.237 ! moko 11229: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
! 11230: printf "%s\n" "$lt_cv_objdir" >&6; }
1.128 moko 11231: objdir=$lt_cv_objdir
11232:
11233:
11234:
11235:
11236:
1.237 ! moko 11237: printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
1.128 moko 11238:
11239:
11240:
11241:
11242: case $host_os in
11243: aix3*)
11244: # AIX sometimes has problems with the GCC collect2 program. For some
11245: # reason, if we set the COLLECT_NAMES environment variable, the problems
11246: # vanish in a puff of smoke.
1.237 ! moko 11247: if test set != "${COLLECT_NAMES+set}"; then
1.128 moko 11248: COLLECT_NAMES=
11249: export COLLECT_NAMES
11250: fi
11251: ;;
11252: esac
11253:
11254: # Global variables:
11255: ofile=libtool
11256: can_build_shared=yes
11257:
1.237 ! moko 11258: # All known linkers require a '.a' archive for static linking (except MSVC and
! 11259: # ICC, which need '.lib').
1.128 moko 11260: libext=a
11261:
1.237 ! moko 11262: with_gnu_ld=$lt_cv_prog_gnu_ld
1.128 moko 11263:
1.237 ! moko 11264: old_CC=$CC
! 11265: old_CFLAGS=$CFLAGS
1.128 moko 11266:
11267: # Set sane defaults for various variables
11268: test -z "$CC" && CC=cc
11269: test -z "$LTCC" && LTCC=$CC
11270: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11271: test -z "$LD" && LD=ld
11272: test -z "$ac_objext" && ac_objext=o
11273:
1.237 ! moko 11274: func_cc_basename $compiler
! 11275: cc_basename=$func_cc_basename_result
1.128 moko 11276:
11277:
11278: # Only perform the check for file, if the check method requires it
11279: test -z "$MAGIC_CMD" && MAGIC_CMD=file
11280: case $deplibs_check_method in
11281: file_magic*)
11282: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.237 ! moko 11283: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
! 11284: printf %s "checking for ${ac_tool_prefix}file... " >&6; }
! 11285: if test ${lt_cv_path_MAGIC_CMD+y}
! 11286: then :
! 11287: printf %s "(cached) " >&6
! 11288: else case e in #(
! 11289: e) case $MAGIC_CMD in
1.128 moko 11290: [\\/*] | ?:[\\/]*)
1.237 ! moko 11291: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.128 moko 11292: ;;
11293: *)
1.237 ! moko 11294: lt_save_MAGIC_CMD=$MAGIC_CMD
! 11295: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 11296: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11297: for ac_dir in $ac_dummy; do
1.237 ! moko 11298: IFS=$lt_save_ifs
1.128 moko 11299: test -z "$ac_dir" && ac_dir=.
1.237 ! moko 11300: if test -f "$ac_dir/${ac_tool_prefix}file"; then
! 11301: lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
1.128 moko 11302: if test -n "$file_magic_test_file"; then
11303: case $deplibs_check_method in
11304: "file_magic "*)
11305: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.237 ! moko 11306: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11307: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11308: $EGREP "$file_magic_regex" > /dev/null; then
11309: :
11310: else
11311: cat <<_LT_EOF 1>&2
11312:
11313: *** Warning: the command libtool uses to detect shared libraries,
11314: *** $file_magic_cmd, produces output that libtool cannot recognize.
11315: *** The result is that libtool may fail to recognize shared libraries
11316: *** as such. This will affect the creation of libtool libraries that
11317: *** depend on shared libraries, but programs linked with such libtool
11318: *** libraries will work regardless of this problem. Nevertheless, you
11319: *** may want to report the problem to your system manager and/or to
11320: *** bug-libtool@gnu.org
11321:
11322: _LT_EOF
11323: fi ;;
11324: esac
11325: fi
11326: break
11327: fi
11328: done
1.237 ! moko 11329: IFS=$lt_save_ifs
! 11330: MAGIC_CMD=$lt_save_MAGIC_CMD
1.128 moko 11331: ;;
1.237 ! moko 11332: esac ;;
1.128 moko 11333: esac
11334: fi
11335:
1.237 ! moko 11336: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11337: if test -n "$MAGIC_CMD"; then
1.237 ! moko 11338: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
! 11339: printf "%s\n" "$MAGIC_CMD" >&6; }
1.128 moko 11340: else
1.237 ! moko 11341: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 11342: printf "%s\n" "no" >&6; }
1.128 moko 11343: fi
11344:
11345:
11346:
11347:
11348:
11349: if test -z "$lt_cv_path_MAGIC_CMD"; then
11350: if test -n "$ac_tool_prefix"; then
1.237 ! moko 11351: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
! 11352: printf %s "checking for file... " >&6; }
! 11353: if test ${lt_cv_path_MAGIC_CMD+y}
! 11354: then :
! 11355: printf %s "(cached) " >&6
! 11356: else case e in #(
! 11357: e) case $MAGIC_CMD in
1.128 moko 11358: [\\/*] | ?:[\\/]*)
1.237 ! moko 11359: lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
1.128 moko 11360: ;;
11361: *)
1.237 ! moko 11362: lt_save_MAGIC_CMD=$MAGIC_CMD
! 11363: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 11364: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11365: for ac_dir in $ac_dummy; do
1.237 ! moko 11366: IFS=$lt_save_ifs
1.128 moko 11367: test -z "$ac_dir" && ac_dir=.
1.237 ! moko 11368: if test -f "$ac_dir/file"; then
! 11369: lt_cv_path_MAGIC_CMD=$ac_dir/"file"
1.128 moko 11370: if test -n "$file_magic_test_file"; then
11371: case $deplibs_check_method in
11372: "file_magic "*)
11373: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.237 ! moko 11374: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11375: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11376: $EGREP "$file_magic_regex" > /dev/null; then
11377: :
11378: else
11379: cat <<_LT_EOF 1>&2
11380:
11381: *** Warning: the command libtool uses to detect shared libraries,
11382: *** $file_magic_cmd, produces output that libtool cannot recognize.
11383: *** The result is that libtool may fail to recognize shared libraries
11384: *** as such. This will affect the creation of libtool libraries that
11385: *** depend on shared libraries, but programs linked with such libtool
11386: *** libraries will work regardless of this problem. Nevertheless, you
11387: *** may want to report the problem to your system manager and/or to
11388: *** bug-libtool@gnu.org
11389:
11390: _LT_EOF
11391: fi ;;
11392: esac
11393: fi
11394: break
11395: fi
11396: done
1.237 ! moko 11397: IFS=$lt_save_ifs
! 11398: MAGIC_CMD=$lt_save_MAGIC_CMD
1.128 moko 11399: ;;
1.237 ! moko 11400: esac ;;
1.128 moko 11401: esac
11402: fi
11403:
1.237 ! moko 11404: MAGIC_CMD=$lt_cv_path_MAGIC_CMD
1.128 moko 11405: if test -n "$MAGIC_CMD"; then
1.237 ! moko 11406: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
! 11407: printf "%s\n" "$MAGIC_CMD" >&6; }
1.128 moko 11408: else
1.237 ! moko 11409: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 11410: printf "%s\n" "no" >&6; }
1.128 moko 11411: fi
11412:
11413:
11414: else
11415: MAGIC_CMD=:
11416: fi
11417: fi
11418:
11419: fi
11420: ;;
11421: esac
11422:
11423: # Use C for the default configuration in the libtool script
11424:
1.237 ! moko 11425: lt_save_CC=$CC
1.128 moko 11426: ac_ext=c
11427: ac_cpp='$CPP $CPPFLAGS'
11428: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11429: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11430: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11431:
11432:
11433: # Source file extension for C test sources.
11434: ac_ext=c
11435:
11436: # Object file extension for compiled C test sources.
11437: objext=o
11438: objext=$objext
11439:
11440: # Code to be used in simple compile tests
11441: lt_simple_compile_test_code="int some_variable = 0;"
11442:
11443: # Code to be used in simple link tests
1.237 ! moko 11444: lt_simple_link_test_code='int main(void){return(0);}'
1.128 moko 11445:
11446:
11447:
11448:
11449:
11450:
11451:
11452: # If no C compiler was specified, use CC.
11453: LTCC=${LTCC-"$CC"}
11454:
11455: # If no C compiler flags were specified, use CFLAGS.
11456: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11457:
11458: # Allow CC to be a program name with arguments.
11459: compiler=$CC
11460:
11461: # Save the default compiler, since it gets overwritten when the other
11462: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11463: compiler_DEFAULT=$CC
11464:
11465: # save warnings/boilerplate of simple test code
11466: ac_outfile=conftest.$ac_objext
11467: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11468: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11469: _lt_compiler_boilerplate=`cat conftest.err`
11470: $RM conftest*
11471:
11472: ac_outfile=conftest.$ac_objext
11473: echo "$lt_simple_link_test_code" >conftest.$ac_ext
11474: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11475: _lt_linker_boilerplate=`cat conftest.err`
11476: $RM -r conftest*
11477:
11478:
11479: ## CAVEAT EMPTOR:
11480: ## There is no encapsulation within the following macros, do not change
11481: ## the running order or otherwise move them around unless you know exactly
11482: ## what you are doing...
11483: if test -n "$compiler"; then
11484:
11485: lt_prog_compiler_no_builtin_flag=
11486:
1.237 ! moko 11487: if test yes = "$GCC"; then
1.128 moko 11488: case $cc_basename in
11489: nvcc*)
11490: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11491: *)
11492: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11493: esac
11494:
1.237 ! moko 11495: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 11496: printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
! 11497: if test ${lt_cv_prog_compiler_rtti_exceptions+y}
! 11498: then :
! 11499: printf %s "(cached) " >&6
! 11500: else case e in #(
! 11501: e) lt_cv_prog_compiler_rtti_exceptions=no
1.128 moko 11502: ac_outfile=conftest.$ac_objext
11503: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.237 ! moko 11504: lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
1.128 moko 11505: # Insert the option either (1) after the last *FLAGS variable, or
11506: # (2) before a word containing "conftest.", or (3) at the end.
11507: # Note that $ac_compile itself does not contain backslashes and begins
11508: # with a dollar sign (not a hyphen), so the echo should work correctly.
11509: # The option is referenced via a variable to avoid confusing sed.
11510: lt_compile=`echo "$ac_compile" | $SED \
11511: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11512: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11513: -e 's:$: $lt_compiler_flag:'`
11514: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11515: (eval "$lt_compile" 2>conftest.err)
11516: ac_status=$?
11517: cat conftest.err >&5
11518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519: if (exit $ac_status) && test -s "$ac_outfile"; then
11520: # The compiler can only warn and ignore the option if not recognized
11521: # So say no if there are warnings other than the usual output.
11522: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11523: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11524: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11525: lt_cv_prog_compiler_rtti_exceptions=yes
11526: fi
11527: fi
11528: $RM conftest*
1.237 ! moko 11529: ;;
! 11530: esac
1.128 moko 11531: fi
1.237 ! moko 11532: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 11533: printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.128 moko 11534:
1.237 ! moko 11535: if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
1.128 moko 11536: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11537: else
11538: :
11539: fi
11540:
11541: fi
11542:
11543:
11544:
11545:
11546:
11547:
11548: lt_prog_compiler_wl=
11549: lt_prog_compiler_pic=
11550: lt_prog_compiler_static=
11551:
11552:
1.237 ! moko 11553: if test yes = "$GCC"; then
1.128 moko 11554: lt_prog_compiler_wl='-Wl,'
11555: lt_prog_compiler_static='-static'
11556:
11557: case $host_os in
11558: aix*)
11559: # All AIX code is PIC.
1.237 ! moko 11560: if test ia64 = "$host_cpu"; then
1.128 moko 11561: # AIX 5 now supports IA64 processor
11562: lt_prog_compiler_static='-Bstatic'
11563: fi
1.237 ! moko 11564: lt_prog_compiler_pic='-fPIC'
1.128 moko 11565: ;;
11566:
11567: amigaos*)
11568: case $host_cpu in
11569: powerpc)
11570: # see comment about AmigaOS4 .so support
11571: lt_prog_compiler_pic='-fPIC'
11572: ;;
11573: m68k)
11574: # FIXME: we need at least 68020 code to build shared libraries, but
1.237 ! moko 11575: # adding the '-m68020' flag to GCC prevents building anything better,
! 11576: # like '-m68040'.
1.128 moko 11577: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11578: ;;
11579: esac
11580: ;;
11581:
11582: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11583: # PIC is the default for these OSes.
11584: ;;
11585:
1.237 ! moko 11586: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
1.128 moko 11587: # This hack is so that the source file can tell whether it is being
11588: # built for inclusion in a dll (and should export symbols for example).
11589: # Although the cygwin gcc ignores -fPIC, still need this for old-style
11590: # (--disable-auto-import) libraries
11591: lt_prog_compiler_pic='-DDLL_EXPORT'
1.237 ! moko 11592: case $host_os in
! 11593: os2*)
! 11594: lt_prog_compiler_static='$wl-static'
! 11595: ;;
! 11596: esac
1.128 moko 11597: ;;
11598:
11599: darwin* | rhapsody*)
11600: # PIC is the default on this platform
11601: # Common symbols not allowed in MH_DYLIB files
11602: lt_prog_compiler_pic='-fno-common'
11603: ;;
11604:
11605: haiku*)
11606: # PIC is the default for Haiku.
11607: # The "-static" flag exists, but is broken.
11608: lt_prog_compiler_static=
11609: ;;
11610:
11611: hpux*)
11612: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11613: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11614: # sets the default TLS model and affects inlining.
11615: case $host_cpu in
11616: hppa*64*)
11617: # +Z the default
11618: ;;
11619: *)
11620: lt_prog_compiler_pic='-fPIC'
11621: ;;
11622: esac
11623: ;;
11624:
11625: interix[3-9]*)
11626: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11627: # Instead, we relocate shared libraries at runtime.
11628: ;;
11629:
11630: msdosdjgpp*)
11631: # Just because we use GCC doesn't mean we suddenly get shared libraries
11632: # on systems that don't support them.
11633: lt_prog_compiler_can_build_shared=no
11634: enable_shared=no
11635: ;;
11636:
11637: *nto* | *qnx*)
11638: # QNX uses GNU C++, but need to define -shared option too, otherwise
11639: # it will coredump.
11640: lt_prog_compiler_pic='-fPIC -shared'
11641: ;;
11642:
11643: sysv4*MP*)
11644: if test -d /usr/nec; then
11645: lt_prog_compiler_pic=-Kconform_pic
11646: fi
11647: ;;
11648:
11649: *)
11650: lt_prog_compiler_pic='-fPIC'
11651: ;;
11652: esac
11653:
11654: case $cc_basename in
11655: nvcc*) # Cuda Compiler Driver 2.2
11656: lt_prog_compiler_wl='-Xlinker '
11657: if test -n "$lt_prog_compiler_pic"; then
11658: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11659: fi
11660: ;;
11661: esac
11662: else
11663: # PORTME Check for flag to pass linker flags through the system compiler.
11664: case $host_os in
11665: aix*)
11666: lt_prog_compiler_wl='-Wl,'
1.237 ! moko 11667: if test ia64 = "$host_cpu"; then
1.128 moko 11668: # AIX 5 now supports IA64 processor
11669: lt_prog_compiler_static='-Bstatic'
11670: else
11671: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11672: fi
11673: ;;
11674:
1.237 ! moko 11675: darwin* | rhapsody*)
! 11676: # PIC is the default on this platform
! 11677: # Common symbols not allowed in MH_DYLIB files
! 11678: lt_prog_compiler_pic='-fno-common'
! 11679: case $cc_basename in
! 11680: nagfor*)
! 11681: # NAG Fortran compiler
! 11682: lt_prog_compiler_wl='-Wl,-Wl,,'
! 11683: lt_prog_compiler_pic='-PIC'
! 11684: lt_prog_compiler_static='-Bstatic'
! 11685: ;;
! 11686: esac
! 11687: ;;
! 11688:
! 11689: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
1.128 moko 11690: # This hack is so that the source file can tell whether it is being
11691: # built for inclusion in a dll (and should export symbols for example).
11692: lt_prog_compiler_pic='-DDLL_EXPORT'
1.237 ! moko 11693: case $host_os in
! 11694: os2*)
! 11695: lt_prog_compiler_static='$wl-static'
! 11696: ;;
! 11697: esac
1.128 moko 11698: ;;
11699:
11700: hpux9* | hpux10* | hpux11*)
11701: lt_prog_compiler_wl='-Wl,'
11702: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11703: # not for PA HP-UX.
11704: case $host_cpu in
11705: hppa*64*|ia64*)
11706: # +Z the default
11707: ;;
11708: *)
11709: lt_prog_compiler_pic='+Z'
11710: ;;
11711: esac
11712: # Is there a better lt_prog_compiler_static that works with the bundled CC?
1.237 ! moko 11713: lt_prog_compiler_static='$wl-a ${wl}archive'
1.128 moko 11714: ;;
11715:
11716: irix5* | irix6* | nonstopux*)
11717: lt_prog_compiler_wl='-Wl,'
11718: # PIC (with -KPIC) is the default.
11719: lt_prog_compiler_static='-non_shared'
11720: ;;
11721:
1.237 ! moko 11722: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 11723: case $cc_basename in
1.237 ! moko 11724: # old Intel for x86_64, which still supported -KPIC.
1.128 moko 11725: ecc*)
11726: lt_prog_compiler_wl='-Wl,'
11727: lt_prog_compiler_pic='-KPIC'
11728: lt_prog_compiler_static='-static'
11729: ;;
1.237 ! moko 11730: *flang* | ftn | f18* | f95*)
! 11731: # Flang compiler.
! 11732: lt_prog_compiler_wl='-Wl,'
! 11733: lt_prog_compiler_pic='-fPIC'
! 11734: lt_prog_compiler_static='-static'
! 11735: ;;
! 11736: # flang / f18. f95 an alias for gfortran or flang on Debian
! 11737: flang* | f18* | f95*)
! 11738: lt_prog_compiler_wl='-Wl,'
! 11739: lt_prog_compiler_pic='-fPIC'
! 11740: lt_prog_compiler_static='-static'
! 11741: ;;
1.128 moko 11742: # icc used to be incompatible with GCC.
11743: # ICC 10 doesn't accept -KPIC any more.
11744: icc* | ifort*)
11745: lt_prog_compiler_wl='-Wl,'
11746: lt_prog_compiler_pic='-fPIC'
11747: lt_prog_compiler_static='-static'
11748: ;;
11749: # Lahey Fortran 8.1.
11750: lf95*)
11751: lt_prog_compiler_wl='-Wl,'
11752: lt_prog_compiler_pic='--shared'
11753: lt_prog_compiler_static='--static'
11754: ;;
11755: nagfor*)
11756: # NAG Fortran compiler
11757: lt_prog_compiler_wl='-Wl,-Wl,,'
11758: lt_prog_compiler_pic='-PIC'
11759: lt_prog_compiler_static='-Bstatic'
11760: ;;
1.237 ! moko 11761: tcc*)
! 11762: # Fabrice Bellard et al's Tiny C Compiler
! 11763: lt_prog_compiler_wl='-Wl,'
! 11764: lt_prog_compiler_pic='-fPIC'
! 11765: lt_prog_compiler_static='-static'
! 11766: ;;
1.128 moko 11767: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11768: # Portland Group compilers (*not* the Pentium gcc compiler,
11769: # which looks to be a dead project)
11770: lt_prog_compiler_wl='-Wl,'
11771: lt_prog_compiler_pic='-fpic'
11772: lt_prog_compiler_static='-Bstatic'
11773: ;;
11774: ccc*)
11775: lt_prog_compiler_wl='-Wl,'
11776: # All Alpha code is PIC.
11777: lt_prog_compiler_static='-non_shared'
11778: ;;
11779: xl* | bgxl* | bgf* | mpixl*)
11780: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11781: lt_prog_compiler_wl='-Wl,'
11782: lt_prog_compiler_pic='-qpic'
11783: lt_prog_compiler_static='-qstaticlink'
11784: ;;
11785: *)
1.237 ! moko 11786: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 11787: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11788: # Sun Fortran 8.3 passes all unrecognized flags to the linker
11789: lt_prog_compiler_pic='-KPIC'
11790: lt_prog_compiler_static='-Bstatic'
11791: lt_prog_compiler_wl=''
11792: ;;
11793: *Sun\ F* | *Sun*Fortran*)
11794: lt_prog_compiler_pic='-KPIC'
11795: lt_prog_compiler_static='-Bstatic'
11796: lt_prog_compiler_wl='-Qoption ld '
11797: ;;
11798: *Sun\ C*)
11799: # Sun C 5.9
11800: lt_prog_compiler_pic='-KPIC'
11801: lt_prog_compiler_static='-Bstatic'
11802: lt_prog_compiler_wl='-Wl,'
11803: ;;
11804: *Intel*\ [CF]*Compiler*)
11805: lt_prog_compiler_wl='-Wl,'
11806: lt_prog_compiler_pic='-fPIC'
11807: lt_prog_compiler_static='-static'
11808: ;;
11809: *Portland\ Group*)
11810: lt_prog_compiler_wl='-Wl,'
11811: lt_prog_compiler_pic='-fpic'
11812: lt_prog_compiler_static='-Bstatic'
11813: ;;
11814: esac
11815: ;;
11816: esac
11817: ;;
11818:
11819: newsos6)
11820: lt_prog_compiler_pic='-KPIC'
11821: lt_prog_compiler_static='-Bstatic'
11822: ;;
11823:
1.237 ! moko 11824: *-mlibc)
! 11825: lt_prog_compiler_wl='-Wl,'
! 11826: lt_prog_compiler_pic='-fPIC'
! 11827: lt_prog_compiler_static='-static'
! 11828: ;;
! 11829:
1.128 moko 11830: *nto* | *qnx*)
11831: # QNX uses GNU C++, but need to define -shared option too, otherwise
11832: # it will coredump.
11833: lt_prog_compiler_pic='-fPIC -shared'
11834: ;;
11835:
11836: osf3* | osf4* | osf5*)
11837: lt_prog_compiler_wl='-Wl,'
11838: # All OSF/1 code is PIC.
11839: lt_prog_compiler_static='-non_shared'
11840: ;;
11841:
11842: rdos*)
11843: lt_prog_compiler_static='-non_shared'
11844: ;;
11845:
1.237 ! moko 11846: serenity*)
! 11847: ;;
! 11848:
1.128 moko 11849: solaris*)
11850: lt_prog_compiler_pic='-KPIC'
11851: lt_prog_compiler_static='-Bstatic'
11852: case $cc_basename in
11853: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11854: lt_prog_compiler_wl='-Qoption ld ';;
11855: *)
11856: lt_prog_compiler_wl='-Wl,';;
11857: esac
11858: ;;
11859:
11860: sunos4*)
11861: lt_prog_compiler_wl='-Qoption ld '
11862: lt_prog_compiler_pic='-PIC'
11863: lt_prog_compiler_static='-Bstatic'
11864: ;;
11865:
11866: sysv4 | sysv4.2uw2* | sysv4.3*)
11867: lt_prog_compiler_wl='-Wl,'
11868: lt_prog_compiler_pic='-KPIC'
11869: lt_prog_compiler_static='-Bstatic'
11870: ;;
11871:
11872: sysv4*MP*)
1.237 ! moko 11873: if test -d /usr/nec; then
1.128 moko 11874: lt_prog_compiler_pic='-Kconform_pic'
11875: lt_prog_compiler_static='-Bstatic'
11876: fi
11877: ;;
11878:
11879: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11880: lt_prog_compiler_wl='-Wl,'
11881: lt_prog_compiler_pic='-KPIC'
11882: lt_prog_compiler_static='-Bstatic'
11883: ;;
11884:
11885: unicos*)
11886: lt_prog_compiler_wl='-Wl,'
11887: lt_prog_compiler_can_build_shared=no
11888: ;;
11889:
11890: uts4*)
11891: lt_prog_compiler_pic='-pic'
11892: lt_prog_compiler_static='-Bstatic'
11893: ;;
11894:
11895: *)
11896: lt_prog_compiler_can_build_shared=no
11897: ;;
11898: esac
11899: fi
11900:
11901: case $host_os in
1.237 ! moko 11902: # For platforms that do not support PIC, -DPIC is meaningless:
1.128 moko 11903: *djgpp*)
11904: lt_prog_compiler_pic=
11905: ;;
11906: *)
11907: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11908: ;;
11909: esac
11910:
1.237 ! moko 11911: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
! 11912: printf %s "checking for $compiler option to produce PIC... " >&6; }
! 11913: if test ${lt_cv_prog_compiler_pic+y}
! 11914: then :
! 11915: printf %s "(cached) " >&6
! 11916: else case e in #(
! 11917: e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
! 11918: esac
1.128 moko 11919: fi
1.237 ! moko 11920: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
! 11921: printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
1.128 moko 11922: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11923:
11924: #
11925: # Check to make sure the PIC flag actually works.
11926: #
11927: if test -n "$lt_prog_compiler_pic"; then
1.237 ! moko 11928: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 11929: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
! 11930: if test ${lt_cv_prog_compiler_pic_works+y}
! 11931: then :
! 11932: printf %s "(cached) " >&6
! 11933: else case e in #(
! 11934: e) lt_cv_prog_compiler_pic_works=no
1.128 moko 11935: ac_outfile=conftest.$ac_objext
11936: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.237 ! moko 11937: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
1.128 moko 11938: # Insert the option either (1) after the last *FLAGS variable, or
11939: # (2) before a word containing "conftest.", or (3) at the end.
11940: # Note that $ac_compile itself does not contain backslashes and begins
11941: # with a dollar sign (not a hyphen), so the echo should work correctly.
11942: # The option is referenced via a variable to avoid confusing sed.
11943: lt_compile=`echo "$ac_compile" | $SED \
11944: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11945: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11946: -e 's:$: $lt_compiler_flag:'`
11947: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11948: (eval "$lt_compile" 2>conftest.err)
11949: ac_status=$?
11950: cat conftest.err >&5
11951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952: if (exit $ac_status) && test -s "$ac_outfile"; then
11953: # The compiler can only warn and ignore the option if not recognized
11954: # So say no if there are warnings other than the usual output.
11955: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11956: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11957: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11958: lt_cv_prog_compiler_pic_works=yes
11959: fi
11960: fi
11961: $RM conftest*
1.237 ! moko 11962: ;;
! 11963: esac
1.128 moko 11964: fi
1.237 ! moko 11965: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
! 11966: printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
1.128 moko 11967:
1.237 ! moko 11968: if test yes = "$lt_cv_prog_compiler_pic_works"; then
1.128 moko 11969: case $lt_prog_compiler_pic in
11970: "" | " "*) ;;
11971: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11972: esac
11973: else
11974: lt_prog_compiler_pic=
11975: lt_prog_compiler_can_build_shared=no
11976: fi
11977:
11978: fi
11979:
11980:
11981:
11982:
11983:
11984:
11985:
11986:
11987:
11988:
11989:
11990: #
11991: # Check to make sure the static flag actually works.
11992: #
11993: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
1.237 ! moko 11994: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 11995: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
! 11996: if test ${lt_cv_prog_compiler_static_works+y}
! 11997: then :
! 11998: printf %s "(cached) " >&6
! 11999: else case e in #(
! 12000: e) lt_cv_prog_compiler_static_works=no
! 12001: save_LDFLAGS=$LDFLAGS
1.128 moko 12002: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12003: echo "$lt_simple_link_test_code" > conftest.$ac_ext
12004: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12005: # The linker can only warn and ignore the option if not recognized
12006: # So say no if there are warnings
12007: if test -s conftest.err; then
12008: # Append any errors to the config.log.
12009: cat conftest.err 1>&5
12010: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12011: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12012: if diff conftest.exp conftest.er2 >/dev/null; then
12013: lt_cv_prog_compiler_static_works=yes
12014: fi
12015: else
12016: lt_cv_prog_compiler_static_works=yes
12017: fi
12018: fi
12019: $RM -r conftest*
1.237 ! moko 12020: LDFLAGS=$save_LDFLAGS
! 12021: ;;
! 12022: esac
1.128 moko 12023: fi
1.237 ! moko 12024: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
! 12025: printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
1.128 moko 12026:
1.237 ! moko 12027: if test yes = "$lt_cv_prog_compiler_static_works"; then
1.128 moko 12028: :
12029: else
12030: lt_prog_compiler_static=
12031: fi
12032:
12033:
12034:
12035:
12036:
12037:
12038:
1.237 ! moko 12039: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 12040: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 12041: if test ${lt_cv_prog_compiler_c_o+y}
! 12042: then :
! 12043: printf %s "(cached) " >&6
! 12044: else case e in #(
! 12045: e) lt_cv_prog_compiler_c_o=no
1.128 moko 12046: $RM -r conftest 2>/dev/null
12047: mkdir conftest
12048: cd conftest
12049: mkdir out
12050: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12051:
12052: lt_compiler_flag="-o out/conftest2.$ac_objext"
12053: # Insert the option either (1) after the last *FLAGS variable, or
12054: # (2) before a word containing "conftest.", or (3) at the end.
12055: # Note that $ac_compile itself does not contain backslashes and begins
12056: # with a dollar sign (not a hyphen), so the echo should work correctly.
12057: lt_compile=`echo "$ac_compile" | $SED \
12058: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12059: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12060: -e 's:$: $lt_compiler_flag:'`
12061: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12062: (eval "$lt_compile" 2>out/conftest.err)
12063: ac_status=$?
12064: cat out/conftest.err >&5
12065: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066: if (exit $ac_status) && test -s out/conftest2.$ac_objext
12067: then
12068: # The compiler can only warn and ignore the option if not recognized
12069: # So say no if there are warnings
12070: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12071: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12072: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12073: lt_cv_prog_compiler_c_o=yes
12074: fi
12075: fi
12076: chmod u+w . 2>&5
12077: $RM conftest*
12078: # SGI C++ compiler will create directory out/ii_files/ for
12079: # template instantiation
12080: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12081: $RM out/* && rmdir out
12082: cd ..
12083: $RM -r conftest
12084: $RM conftest*
1.237 ! moko 12085: ;;
! 12086: esac
1.128 moko 12087: fi
1.237 ! moko 12088: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
! 12089: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 12090:
12091:
12092:
12093:
12094:
12095:
1.237 ! moko 12096: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 12097: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 12098: if test ${lt_cv_prog_compiler_c_o+y}
! 12099: then :
! 12100: printf %s "(cached) " >&6
! 12101: else case e in #(
! 12102: e) lt_cv_prog_compiler_c_o=no
1.128 moko 12103: $RM -r conftest 2>/dev/null
12104: mkdir conftest
12105: cd conftest
12106: mkdir out
12107: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12108:
12109: lt_compiler_flag="-o out/conftest2.$ac_objext"
12110: # Insert the option either (1) after the last *FLAGS variable, or
12111: # (2) before a word containing "conftest.", or (3) at the end.
12112: # Note that $ac_compile itself does not contain backslashes and begins
12113: # with a dollar sign (not a hyphen), so the echo should work correctly.
12114: lt_compile=`echo "$ac_compile" | $SED \
12115: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12116: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12117: -e 's:$: $lt_compiler_flag:'`
12118: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12119: (eval "$lt_compile" 2>out/conftest.err)
12120: ac_status=$?
12121: cat out/conftest.err >&5
12122: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123: if (exit $ac_status) && test -s out/conftest2.$ac_objext
12124: then
12125: # The compiler can only warn and ignore the option if not recognized
12126: # So say no if there are warnings
12127: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12128: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12129: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12130: lt_cv_prog_compiler_c_o=yes
12131: fi
12132: fi
12133: chmod u+w . 2>&5
12134: $RM conftest*
12135: # SGI C++ compiler will create directory out/ii_files/ for
12136: # template instantiation
12137: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12138: $RM out/* && rmdir out
12139: cd ..
12140: $RM -r conftest
12141: $RM conftest*
1.237 ! moko 12142: ;;
! 12143: esac
1.128 moko 12144: fi
1.237 ! moko 12145: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
! 12146: printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
1.128 moko 12147:
12148:
12149:
12150:
1.237 ! moko 12151: hard_links=nottested
! 12152: if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
1.128 moko 12153: # do not overwrite the value of need_locks provided by the user
1.237 ! moko 12154: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
! 12155: printf %s "checking if we can lock with hard links... " >&6; }
1.128 moko 12156: hard_links=yes
12157: $RM conftest*
12158: ln conftest.a conftest.b 2>/dev/null && hard_links=no
12159: touch conftest.a
12160: ln conftest.a conftest.b 2>&5 || hard_links=no
12161: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.237 ! moko 12162: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
! 12163: printf "%s\n" "$hard_links" >&6; }
! 12164: if test no = "$hard_links"; then
! 12165: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
! 12166: printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1.128 moko 12167: need_locks=warn
12168: fi
12169: else
12170: need_locks=no
12171: fi
12172:
12173:
12174:
12175:
12176:
12177:
1.237 ! moko 12178: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 12179: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 12180:
12181: runpath_var=
12182: allow_undefined_flag=
12183: always_export_symbols=no
12184: archive_cmds=
12185: archive_expsym_cmds=
12186: compiler_needs_object=no
12187: enable_shared_with_static_runtimes=no
12188: export_dynamic_flag_spec=
12189: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12190: hardcode_automatic=no
12191: hardcode_direct=no
12192: hardcode_direct_absolute=no
12193: hardcode_libdir_flag_spec=
12194: hardcode_libdir_separator=
12195: hardcode_minus_L=no
12196: hardcode_shlibpath_var=unsupported
12197: inherit_rpath=no
12198: link_all_deplibs=unknown
12199: module_cmds=
12200: module_expsym_cmds=
12201: old_archive_from_new_cmds=
12202: old_archive_from_expsyms_cmds=
12203: thread_safe_flag_spec=
12204: whole_archive_flag_spec=
12205: # include_expsyms should be a list of space-separated symbols to be *always*
12206: # included in the symbol list
12207: include_expsyms=
12208: # exclude_expsyms can be an extended regexp of symbols to exclude
1.237 ! moko 12209: # it will be wrapped by ' (' and ')$', so one must not match beginning or
! 12210: # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
! 12211: # as well as any symbol that contains 'd'.
1.128 moko 12212: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12213: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12214: # platforms (ab)use it in PIC code, but their linkers get confused if
12215: # the symbol is explicitly referenced. Since portable code cannot
12216: # rely on this symbol name, it's probably fine to never include it in
12217: # preloaded symbol tables.
12218: # Exclude shared library initialization/finalization symbols.
12219: extract_expsyms_cmds=
12220:
12221: case $host_os in
1.237 ! moko 12222: cygwin* | mingw* | windows* | pw32* | cegcc*)
! 12223: # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
1.128 moko 12224: # When not using gcc, we currently assume that we are using
1.237 ! moko 12225: # Microsoft Visual C++ or Intel C++ Compiler.
! 12226: if test yes != "$GCC"; then
1.128 moko 12227: with_gnu_ld=no
12228: fi
12229: ;;
12230: interix*)
1.237 ! moko 12231: # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
1.128 moko 12232: with_gnu_ld=yes
12233: ;;
1.237 ! moko 12234: linux* | k*bsd*-gnu | gnu*)
! 12235: link_all_deplibs=no
1.128 moko 12236: ;;
12237: esac
12238:
12239: ld_shlibs=yes
12240:
12241: # On some targets, GNU ld is compatible enough with the native linker
12242: # that we're better off using the native interface for both.
12243: lt_use_gnu_ld_interface=no
1.237 ! moko 12244: if test yes = "$with_gnu_ld"; then
1.128 moko 12245: case $host_os in
12246: aix*)
12247: # The AIX port of GNU ld has always aspired to compatibility
12248: # with the native linker. However, as the warning in the GNU ld
12249: # block says, versions before 2.19.5* couldn't really create working
12250: # shared libraries, regardless of the interface used.
12251: case `$LD -v 2>&1` in
12252: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12253: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12254: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12255: *)
12256: lt_use_gnu_ld_interface=yes
12257: ;;
12258: esac
12259: ;;
12260: *)
12261: lt_use_gnu_ld_interface=yes
12262: ;;
12263: esac
12264: fi
12265:
1.237 ! moko 12266: if test yes = "$lt_use_gnu_ld_interface"; then
1.128 moko 12267: # If archive_cmds runs LD, not CC, wlarc should be empty
1.237 ! moko 12268: wlarc='$wl'
1.128 moko 12269:
12270: # Set some defaults for GNU ld with shared library support. These
12271: # are reset later if shared libraries are not supported. Putting them
12272: # here allows them to be overridden if necessary.
12273: runpath_var=LD_RUN_PATH
1.237 ! moko 12274: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
! 12275: export_dynamic_flag_spec='$wl--export-dynamic'
1.128 moko 12276: # ancient GNU ld didn't support --whole-archive et. al.
12277: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
1.237 ! moko 12278: whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.128 moko 12279: else
12280: whole_archive_flag_spec=
12281: fi
12282: supports_anon_versioning=no
1.237 ! moko 12283: case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
1.128 moko 12284: *GNU\ gold*) supports_anon_versioning=yes ;;
12285: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12286: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12287: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12288: *\ 2.11.*) ;; # other 2.11 versions
12289: *) supports_anon_versioning=yes ;;
12290: esac
12291:
12292: # See if GNU ld supports shared libraries.
12293: case $host_os in
12294: aix[3-9]*)
12295: # On AIX/PPC, the GNU linker is very broken
1.237 ! moko 12296: if test ia64 != "$host_cpu"; then
1.128 moko 12297: ld_shlibs=no
12298: cat <<_LT_EOF 1>&2
12299:
12300: *** Warning: the GNU linker, at least up to release 2.19, is reported
12301: *** to be unable to reliably create shared libraries on AIX.
12302: *** Therefore, libtool is disabling shared libraries support. If you
12303: *** really care for shared libraries, you may want to install binutils
12304: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12305: *** You will then need to restart the configuration process.
12306:
12307: _LT_EOF
12308: fi
12309: ;;
12310:
12311: amigaos*)
12312: case $host_cpu in
12313: powerpc)
12314: # see comment about AmigaOS4 .so support
1.237 ! moko 12315: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12316: archive_expsym_cmds=''
12317: ;;
12318: m68k)
12319: 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)'
12320: hardcode_libdir_flag_spec='-L$libdir'
12321: hardcode_minus_L=yes
12322: ;;
12323: esac
12324: ;;
12325:
12326: beos*)
12327: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12328: allow_undefined_flag=unsupported
12329: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12330: # support --undefined. This deserves some investigation. FIXME
1.237 ! moko 12331: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12332: else
12333: ld_shlibs=no
12334: fi
12335: ;;
12336:
1.237 ! moko 12337: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 12338: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12339: # as there is no search path for DLLs.
12340: hardcode_libdir_flag_spec='-L$libdir'
1.237 ! moko 12341: export_dynamic_flag_spec='$wl--export-all-symbols'
1.128 moko 12342: allow_undefined_flag=unsupported
12343: always_export_symbols=no
12344: enable_shared_with_static_runtimes=yes
12345: 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'
12346: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
1.237 ! moko 12347: file_list_spec='@'
1.128 moko 12348:
12349: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
1.237 ! moko 12350: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
! 12351: # If the export-symbols file already is a .def file, use it as
! 12352: # is; otherwise, prepend EXPORTS...
! 12353: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
! 12354: cp $export_symbols $output_objdir/$soname.def;
! 12355: else
! 12356: echo EXPORTS > $output_objdir/$soname.def;
! 12357: cat $export_symbols >> $output_objdir/$soname.def;
! 12358: fi~
! 12359: $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 12360: else
12361: ld_shlibs=no
12362: fi
12363: ;;
12364:
12365: haiku*)
1.237 ! moko 12366: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
! 12367: link_all_deplibs=no
! 12368: ;;
! 12369:
! 12370: os2*)
! 12371: hardcode_libdir_flag_spec='-L$libdir'
! 12372: hardcode_minus_L=yes
! 12373: allow_undefined_flag=unsupported
! 12374: shrext_cmds=.dll
! 12375: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
! 12376: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
! 12377: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
! 12378: $ECHO EXPORTS >> $output_objdir/$libname.def~
! 12379: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
! 12380: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
! 12381: emximp -o $lib $output_objdir/$libname.def'
! 12382: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
! 12383: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
! 12384: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
! 12385: $ECHO EXPORTS >> $output_objdir/$libname.def~
! 12386: prefix_cmds="$SED"~
! 12387: if test EXPORTS = "`$SED 1q $export_symbols`"; then
! 12388: prefix_cmds="$prefix_cmds -e 1d";
! 12389: fi~
! 12390: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
! 12391: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
! 12392: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
! 12393: emximp -o $lib $output_objdir/$libname.def'
! 12394: old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
! 12395: enable_shared_with_static_runtimes=yes
! 12396: file_list_spec='@'
1.128 moko 12397: ;;
12398:
12399: interix[3-9]*)
12400: hardcode_direct=no
12401: hardcode_shlibpath_var=no
1.237 ! moko 12402: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
! 12403: export_dynamic_flag_spec='$wl-E'
1.128 moko 12404: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12405: # Instead, shared libraries are loaded at an image base (0x10000000 by
12406: # default) and relocated if they conflict, which is a slow very memory
12407: # consuming and fragmenting process. To avoid this, we pick a random,
12408: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12409: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.237 ! moko 12410: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
! 12411: 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 12412: ;;
12413:
12414: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12415: tmp_diet=no
1.237 ! moko 12416: if test linux-dietlibc = "$host_os"; then
1.128 moko 12417: case $cc_basename in
12418: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12419: esac
12420: fi
12421: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
1.237 ! moko 12422: && test no = "$tmp_diet"
1.128 moko 12423: then
12424: tmp_addflag=' $pic_flag'
12425: tmp_sharedflag='-shared'
12426: case $cc_basename,$host_cpu in
12427: pgcc*) # Portland Group C compiler
1.237 ! moko 12428: 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 12429: tmp_addflag=' $pic_flag'
12430: ;;
12431: pgf77* | pgf90* | pgf95* | pgfortran*)
12432: # Portland Group f77 and f90 compilers
1.237 ! moko 12433: 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 12434: tmp_addflag=' $pic_flag -Mnomain' ;;
12435: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12436: tmp_addflag=' -i_dynamic' ;;
12437: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12438: tmp_addflag=' -i_dynamic -nofor_main' ;;
12439: ifc* | ifort*) # Intel Fortran compiler
12440: tmp_addflag=' -nofor_main' ;;
12441: lf95*) # Lahey Fortran 8.1
12442: whole_archive_flag_spec=
12443: tmp_sharedflag='--shared' ;;
1.237 ! moko 12444: nagfor*) # NAGFOR 5.3
! 12445: tmp_sharedflag='-Wl,-shared' ;;
1.128 moko 12446: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12447: tmp_sharedflag='-qmkshrobj'
12448: tmp_addflag= ;;
12449: nvcc*) # Cuda Compiler Driver 2.2
1.237 ! moko 12450: 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 12451: compiler_needs_object=yes
12452: ;;
12453: esac
1.237 ! moko 12454: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 12455: *Sun\ C*) # Sun C 5.9
1.237 ! moko 12456: 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 12457: compiler_needs_object=yes
12458: tmp_sharedflag='-G' ;;
12459: *Sun\ F*) # Sun Fortran 8.3
12460: tmp_sharedflag='-G' ;;
12461: esac
1.237 ! moko 12462: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12463:
1.237 ! moko 12464: if test yes = "$supports_anon_versioning"; then
1.128 moko 12465: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.237 ! moko 12466: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 12467: echo "local: *; };" >> $output_objdir/$libname.ver~
! 12468: $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 12469: fi
12470:
12471: case $cc_basename in
1.237 ! moko 12472: tcc*)
! 12473: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
! 12474: export_dynamic_flag_spec='-rdynamic'
! 12475: ;;
1.128 moko 12476: xlf* | bgf* | bgxlf* | mpixlf*)
12477: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12478: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
1.237 ! moko 12479: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 12480: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
1.237 ! moko 12481: if test yes = "$supports_anon_versioning"; then
1.128 moko 12482: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
1.237 ! moko 12483: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 12484: echo "local: *; };" >> $output_objdir/$libname.ver~
! 12485: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
1.128 moko 12486: fi
12487: ;;
12488: esac
12489: else
12490: ld_shlibs=no
12491: fi
12492: ;;
12493:
1.237 ! moko 12494: *-mlibc)
! 12495: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
! 12496: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
! 12497: ;;
! 12498:
! 12499: netbsd* | netbsdelf*-gnu)
1.128 moko 12500: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12501: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12502: wlarc=
12503: else
1.237 ! moko 12504: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
! 12505: 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 12506: fi
12507: ;;
12508:
12509: solaris*)
12510: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12511: ld_shlibs=no
12512: cat <<_LT_EOF 1>&2
12513:
12514: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12515: *** create shared libraries on Solaris systems. Therefore, libtool
12516: *** is disabling shared libraries support. We urge you to upgrade GNU
12517: *** binutils to release 2.9.1 or newer. Another option is to modify
12518: *** your PATH or compiler configuration so that the native linker is
12519: *** used, and then restart.
12520:
12521: _LT_EOF
12522: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.237 ! moko 12523: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
! 12524: 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 12525: else
12526: ld_shlibs=no
12527: fi
12528: ;;
12529:
12530: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12531: case `$LD -v 2>&1` in
12532: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12533: ld_shlibs=no
12534: cat <<_LT_EOF 1>&2
12535:
1.237 ! moko 12536: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
1.128 moko 12537: *** reliably create shared libraries on SCO systems. Therefore, libtool
12538: *** is disabling shared libraries support. We urge you to upgrade GNU
12539: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12540: *** your PATH or compiler configuration so that the native linker is
12541: *** used, and then restart.
12542:
12543: _LT_EOF
12544: ;;
12545: *)
12546: # For security reasons, it is highly recommended that you always
12547: # use absolute paths for naming shared libraries, and exclude the
12548: # DT_RUNPATH tag from executables and libraries. But doing so
12549: # requires that you compile everything twice, which is a pain.
12550: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.237 ! moko 12551: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
! 12552: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
! 12553: 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 12554: else
12555: ld_shlibs=no
12556: fi
12557: ;;
12558: esac
12559: ;;
12560:
12561: sunos4*)
12562: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12563: wlarc=
12564: hardcode_direct=yes
12565: hardcode_shlibpath_var=no
12566: ;;
12567:
12568: *)
12569: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
1.237 ! moko 12570: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
! 12571: 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 12572: else
12573: ld_shlibs=no
12574: fi
12575: ;;
12576: esac
12577:
1.237 ! moko 12578: if test no = "$ld_shlibs"; then
1.128 moko 12579: runpath_var=
12580: hardcode_libdir_flag_spec=
12581: export_dynamic_flag_spec=
12582: whole_archive_flag_spec=
12583: fi
12584: else
12585: # PORTME fill in a description of your system's linker (not GNU ld)
12586: case $host_os in
12587: aix3*)
12588: allow_undefined_flag=unsupported
12589: always_export_symbols=yes
12590: 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'
12591: # Note: this linker hardcodes the directories in LIBPATH if there
12592: # are no directories specified by -L.
12593: hardcode_minus_L=yes
1.237 ! moko 12594: if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
1.128 moko 12595: # Neither direct hardcoding nor static linking is supported with a
12596: # broken collect2.
12597: hardcode_direct=unsupported
12598: fi
12599: ;;
12600:
12601: aix[4-9]*)
1.237 ! moko 12602: if test ia64 = "$host_cpu"; then
1.128 moko 12603: # On IA64, the linker does run time linking by default, so we don't
12604: # have to do anything special.
12605: aix_use_runtimelinking=no
12606: exp_sym_flag='-Bexport'
1.237 ! moko 12607: no_entry_flag=
1.128 moko 12608: else
12609: # If we're using GNU nm, then we don't want the "-C" option.
1.237 ! moko 12610: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
! 12611: # Without the "-l" option, or with the "-B" option, AIX nm treats
! 12612: # weak defined symbols like other global defined symbols, whereas
! 12613: # GNU nm marks them as "W".
! 12614: # While the 'weak' keyword is ignored in the Export File, we need
! 12615: # it in the Import File for the 'aix-soname' feature, so we have
! 12616: # to replace the "-B" option with "-P" for AIX nm.
1.128 moko 12617: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1.237 ! moko 12618: 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 12619: else
1.237 ! moko 12620: 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 12621: fi
12622: aix_use_runtimelinking=no
12623:
12624: # Test if we are trying to use run time linking or normal
12625: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.237 ! moko 12626: # have runtime linking enabled, and use it for executables.
! 12627: # For shared libraries, we enable/disable runtime linking
! 12628: # depending on the kind of the shared library created -
! 12629: # when "with_aix_soname,aix_use_runtimelinking" is:
! 12630: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
! 12631: # "aix,yes" lib.so shared, rtl:yes, for executables
! 12632: # lib.a static archive
! 12633: # "both,no" lib.so.V(shr.o) shared, rtl:yes
! 12634: # lib.a(lib.so.V) shared, rtl:no, for executables
! 12635: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
! 12636: # lib.a(lib.so.V) shared, rtl:no
! 12637: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
! 12638: # lib.a static archive
1.128 moko 12639: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12640: for ld_flag in $LDFLAGS; do
1.237 ! moko 12641: if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
1.128 moko 12642: aix_use_runtimelinking=yes
12643: break
12644: fi
12645: done
1.237 ! moko 12646: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
! 12647: # With aix-soname=svr4, we create the lib.so.V shared archives only,
! 12648: # so we don't have lib.a shared libs to link our executables.
! 12649: # We have to force runtime linking in this case.
! 12650: aix_use_runtimelinking=yes
! 12651: LDFLAGS="$LDFLAGS -Wl,-brtl"
! 12652: fi
1.128 moko 12653: ;;
12654: esac
12655:
12656: exp_sym_flag='-bexport'
12657: no_entry_flag='-bnoentry'
12658: fi
12659:
12660: # When large executables or shared objects are built, AIX ld can
12661: # have problems creating the table of contents. If linking a library
12662: # or program results in "error TOC overflow" add -mminimal-toc to
12663: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12664: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12665:
12666: archive_cmds=''
12667: hardcode_direct=yes
12668: hardcode_direct_absolute=yes
12669: hardcode_libdir_separator=':'
12670: link_all_deplibs=yes
1.237 ! moko 12671: file_list_spec='$wl-f,'
! 12672: case $with_aix_soname,$aix_use_runtimelinking in
! 12673: aix,*) ;; # traditional, no import file
! 12674: svr4,* | *,yes) # use import file
! 12675: # The Import File defines what to hardcode.
! 12676: hardcode_direct=no
! 12677: hardcode_direct_absolute=no
! 12678: ;;
! 12679: esac
1.128 moko 12680:
1.237 ! moko 12681: if test yes = "$GCC"; then
1.128 moko 12682: case $host_os in aix4.[012]|aix4.[012].*)
12683: # We only want to do this on AIX 4.2 and lower, the check
12684: # below for broken collect2 doesn't work under 4.3+
1.237 ! moko 12685: collect2name=`$CC -print-prog-name=collect2`
1.128 moko 12686: if test -f "$collect2name" &&
12687: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12688: then
12689: # We have reworked collect2
12690: :
12691: else
12692: # We have old collect2
12693: hardcode_direct=unsupported
12694: # It fails to find uninstalled libraries when the uninstalled
12695: # path is not listed in the libpath. Setting hardcode_minus_L
12696: # to unsupported forces relinking
12697: hardcode_minus_L=yes
12698: hardcode_libdir_flag_spec='-L$libdir'
12699: hardcode_libdir_separator=
12700: fi
12701: ;;
12702: esac
12703: shared_flag='-shared'
1.237 ! moko 12704: if test yes = "$aix_use_runtimelinking"; then
! 12705: shared_flag="$shared_flag "'$wl-G'
1.128 moko 12706: fi
1.237 ! moko 12707: # Need to ensure runtime linking is disabled for the traditional
! 12708: # shared library, or the linker may eventually find shared libraries
! 12709: # /with/ Import File - we do not want to mix them.
! 12710: shared_flag_aix='-shared'
! 12711: shared_flag_svr4='-shared $wl-G'
1.128 moko 12712: else
12713: # not using gcc
1.237 ! moko 12714: if test ia64 = "$host_cpu"; then
1.128 moko 12715: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12716: # chokes on -Wl,-G. The following line is correct:
12717: shared_flag='-G'
12718: else
1.237 ! moko 12719: if test yes = "$aix_use_runtimelinking"; then
! 12720: shared_flag='$wl-G'
1.128 moko 12721: else
1.237 ! moko 12722: shared_flag='$wl-bM:SRE'
1.128 moko 12723: fi
1.237 ! moko 12724: shared_flag_aix='$wl-bM:SRE'
! 12725: shared_flag_svr4='$wl-G'
1.128 moko 12726: fi
12727: fi
12728:
1.237 ! moko 12729: export_dynamic_flag_spec='$wl-bexpall'
1.128 moko 12730: # It seems that -bexpall does not export symbols beginning with
12731: # underscore (_), so it is better to generate a list of symbols to export.
12732: always_export_symbols=yes
1.237 ! moko 12733: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1.128 moko 12734: # Warning - without using the other runtime loading flags (-brtl),
12735: # -berok will link without error, but may produce a broken library.
12736: allow_undefined_flag='-berok'
12737: # Determine the default libpath from the value encoded in an
12738: # empty executable.
1.237 ! moko 12739: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 12740: aix_libpath=$lt_cv_aix_libpath
12741: else
1.237 ! moko 12742: if test ${lt_cv_aix_libpath_+y}
! 12743: then :
! 12744: printf %s "(cached) " >&6
! 12745: else case e in #(
! 12746: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12747: /* end confdefs.h. */
12748:
12749: int
1.237 ! moko 12750: main (void)
1.128 moko 12751: {
12752:
12753: ;
12754: return 0;
12755: }
12756: _ACEOF
1.237 ! moko 12757: if ac_fn_c_try_link "$LINENO"
! 12758: then :
1.128 moko 12759:
12760: lt_aix_libpath_sed='
12761: /Import File Strings/,/^$/ {
12762: /^0/ {
12763: s/^0 *\([^ ]*\) *$/\1/
12764: p
12765: }
12766: }'
12767: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12768: # Check for a 64-bit object if we didn't find anything.
12769: if test -z "$lt_cv_aix_libpath_"; then
12770: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12771: fi
12772: fi
1.237 ! moko 12773: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 12774: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12775: if test -z "$lt_cv_aix_libpath_"; then
1.237 ! moko 12776: lt_cv_aix_libpath_=/usr/lib:/lib
1.128 moko 12777: fi
1.237 ! moko 12778: ;;
! 12779: esac
1.128 moko 12780: fi
12781:
12782: aix_libpath=$lt_cv_aix_libpath_
12783: fi
12784:
1.237 ! moko 12785: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
! 12786: 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 12787: else
1.237 ! moko 12788: if test ia64 = "$host_cpu"; then
! 12789: hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
1.128 moko 12790: allow_undefined_flag="-z nodefs"
1.237 ! moko 12791: 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 12792: else
12793: # Determine the default libpath from the value encoded in an
12794: # empty executable.
1.237 ! moko 12795: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 12796: aix_libpath=$lt_cv_aix_libpath
12797: else
1.237 ! moko 12798: if test ${lt_cv_aix_libpath_+y}
! 12799: then :
! 12800: printf %s "(cached) " >&6
! 12801: else case e in #(
! 12802: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 12803: /* end confdefs.h. */
12804:
12805: int
1.237 ! moko 12806: main (void)
1.128 moko 12807: {
12808:
12809: ;
12810: return 0;
12811: }
12812: _ACEOF
1.237 ! moko 12813: if ac_fn_c_try_link "$LINENO"
! 12814: then :
1.128 moko 12815:
12816: lt_aix_libpath_sed='
12817: /Import File Strings/,/^$/ {
12818: /^0/ {
12819: s/^0 *\([^ ]*\) *$/\1/
12820: p
12821: }
12822: }'
12823: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12824: # Check for a 64-bit object if we didn't find anything.
12825: if test -z "$lt_cv_aix_libpath_"; then
12826: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12827: fi
12828: fi
1.237 ! moko 12829: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 12830: conftest$ac_exeext conftest.$ac_ext
1.128 moko 12831: if test -z "$lt_cv_aix_libpath_"; then
1.237 ! moko 12832: lt_cv_aix_libpath_=/usr/lib:/lib
1.128 moko 12833: fi
1.237 ! moko 12834: ;;
! 12835: esac
1.128 moko 12836: fi
12837:
12838: aix_libpath=$lt_cv_aix_libpath_
12839: fi
12840:
1.237 ! moko 12841: hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
1.128 moko 12842: # Warning - without using the other run time loading flags,
12843: # -berok will link without error, but may produce a broken library.
1.237 ! moko 12844: no_undefined_flag=' $wl-bernotok'
! 12845: allow_undefined_flag=' $wl-berok'
! 12846: if test yes = "$with_gnu_ld"; then
1.128 moko 12847: # We only use this code for GNU lds that support --whole-archive.
1.237 ! moko 12848: whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
1.128 moko 12849: else
12850: # Exported symbols can be pulled into shared objects from archives
12851: whole_archive_flag_spec='$convenience'
12852: fi
12853: archive_cmds_need_lc=yes
1.237 ! moko 12854: archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
! 12855: # -brtl affects multiple linker settings, -berok does not and is overridden later
! 12856: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
! 12857: if test svr4 != "$with_aix_soname"; then
! 12858: # This is similar to how AIX traditionally builds its shared libraries.
! 12859: 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'
! 12860: fi
! 12861: if test aix != "$with_aix_soname"; then
! 12862: 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'
! 12863: else
! 12864: # used by -dlpreopen to get the symbols
! 12865: archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
! 12866: fi
! 12867: archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
1.128 moko 12868: fi
12869: fi
12870: ;;
12871:
12872: amigaos*)
12873: case $host_cpu in
12874: powerpc)
12875: # see comment about AmigaOS4 .so support
1.237 ! moko 12876: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 12877: archive_expsym_cmds=''
12878: ;;
12879: m68k)
12880: 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)'
12881: hardcode_libdir_flag_spec='-L$libdir'
12882: hardcode_minus_L=yes
12883: ;;
12884: esac
12885: ;;
12886:
12887: bsdi[45]*)
12888: export_dynamic_flag_spec=-rdynamic
12889: ;;
12890:
1.237 ! moko 12891: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 12892: # When not using gcc, we currently assume that we are using
1.237 ! moko 12893: # Microsoft Visual C++ or Intel C++ Compiler.
1.128 moko 12894: # hardcode_libdir_flag_spec is actually meaningless, as there is
12895: # no search path for DLLs.
12896: case $cc_basename in
1.237 ! moko 12897: cl* | icl*)
! 12898: # Native MSVC or ICC
1.128 moko 12899: hardcode_libdir_flag_spec=' '
12900: allow_undefined_flag=unsupported
12901: always_export_symbols=yes
12902: file_list_spec='@'
12903: # Tell ltmain to make .lib files, not .a files.
12904: libext=lib
12905: # Tell ltmain to make .dll files, not .so files.
1.237 ! moko 12906: shrext_cmds=.dll
1.128 moko 12907: # FIXME: Setting linknames here is a bad hack.
1.237 ! moko 12908: archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
! 12909: archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
! 12910: cp "$export_symbols" "$output_objdir/$soname.def";
! 12911: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
! 12912: else
! 12913: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
! 12914: fi~
! 12915: $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
! 12916: linknames='
1.128 moko 12917: # The linker will not automatically build a static lib if we build a DLL.
12918: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12919: enable_shared_with_static_runtimes=yes
12920: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12921: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12922: # Don't use ranlib
12923: old_postinstall_cmds='chmod 644 $oldlib'
12924: postlink_cmds='lt_outputfile="@OUTPUT@"~
1.237 ! moko 12925: lt_tool_outputfile="@TOOL_OUTPUT@"~
! 12926: case $lt_outputfile in
! 12927: *.exe|*.EXE) ;;
! 12928: *)
! 12929: lt_outputfile=$lt_outputfile.exe
! 12930: lt_tool_outputfile=$lt_tool_outputfile.exe
! 12931: ;;
! 12932: esac~
! 12933: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
! 12934: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
! 12935: $RM "$lt_outputfile.manifest";
! 12936: fi'
1.128 moko 12937: ;;
12938: *)
1.237 ! moko 12939: # Assume MSVC and ICC wrapper
1.128 moko 12940: hardcode_libdir_flag_spec=' '
12941: allow_undefined_flag=unsupported
12942: # Tell ltmain to make .lib files, not .a files.
12943: libext=lib
12944: # Tell ltmain to make .dll files, not .so files.
1.237 ! moko 12945: shrext_cmds=.dll
1.128 moko 12946: # FIXME: Setting linknames here is a bad hack.
12947: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12948: # The linker will automatically build a .lib file if we build a DLL.
12949: old_archive_from_new_cmds='true'
12950: # FIXME: Should let the user specify the lib program.
12951: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12952: enable_shared_with_static_runtimes=yes
12953: ;;
12954: esac
12955: ;;
12956:
12957: darwin* | rhapsody*)
12958:
12959:
12960: archive_cmds_need_lc=no
12961: hardcode_direct=no
12962: hardcode_automatic=yes
12963: hardcode_shlibpath_var=unsupported
1.237 ! moko 12964: if test yes = "$lt_cv_ld_force_load"; then
! 12965: 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 12966:
12967: else
12968: whole_archive_flag_spec=''
12969: fi
12970: link_all_deplibs=yes
1.237 ! moko 12971: allow_undefined_flag=$_lt_dar_allow_undefined
1.128 moko 12972: case $cc_basename in
1.237 ! moko 12973: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1.128 moko 12974: *) _lt_dar_can_shared=$GCC ;;
12975: esac
1.237 ! moko 12976: if test yes = "$_lt_dar_can_shared"; then
1.128 moko 12977: output_verbose_link_cmd=func_echo_all
1.237 ! moko 12978: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
! 12979: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
! 12980: 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"
! 12981: 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 12982:
12983: else
12984: ld_shlibs=no
12985: fi
12986:
12987: ;;
12988:
12989: dgux*)
12990: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12991: hardcode_libdir_flag_spec='-L$libdir'
12992: hardcode_shlibpath_var=no
12993: ;;
12994:
12995: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12996: # support. Future versions do this automatically, but an explicit c++rt0.o
12997: # does not break anything, and helps significantly (at the cost of a little
12998: # extra space).
12999: freebsd2.2*)
13000: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13001: hardcode_libdir_flag_spec='-R$libdir'
13002: hardcode_direct=yes
13003: hardcode_shlibpath_var=no
13004: ;;
13005:
13006: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13007: freebsd2.*)
13008: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13009: hardcode_direct=yes
13010: hardcode_minus_L=yes
13011: hardcode_shlibpath_var=no
13012: ;;
13013:
13014: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.237 ! moko 13015: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 13016: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13017: hardcode_libdir_flag_spec='-R$libdir'
13018: hardcode_direct=yes
13019: hardcode_shlibpath_var=no
13020: ;;
13021:
13022: hpux9*)
1.237 ! moko 13023: if test yes = "$GCC"; then
! 13024: 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 13025: else
1.237 ! moko 13026: 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 13027: fi
1.237 ! moko 13028: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.128 moko 13029: hardcode_libdir_separator=:
13030: hardcode_direct=yes
13031:
13032: # hardcode_minus_L: Not really in the search PATH,
13033: # but as the default location of the library.
13034: hardcode_minus_L=yes
1.237 ! moko 13035: export_dynamic_flag_spec='$wl-E'
1.128 moko 13036: ;;
13037:
13038: hpux10*)
1.237 ! moko 13039: if test yes,no = "$GCC,$with_gnu_ld"; then
! 13040: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13041: else
13042: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13043: fi
1.237 ! moko 13044: if test no = "$with_gnu_ld"; then
! 13045: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.128 moko 13046: hardcode_libdir_separator=:
13047: hardcode_direct=yes
13048: hardcode_direct_absolute=yes
1.237 ! moko 13049: export_dynamic_flag_spec='$wl-E'
1.128 moko 13050: # hardcode_minus_L: Not really in the search PATH,
13051: # but as the default location of the library.
13052: hardcode_minus_L=yes
13053: fi
13054: ;;
13055:
13056: hpux11*)
1.237 ! moko 13057: if test yes,no = "$GCC,$with_gnu_ld"; then
1.128 moko 13058: case $host_cpu in
13059: hppa*64*)
1.237 ! moko 13060: archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13061: ;;
13062: ia64*)
1.237 ! moko 13063: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13064: ;;
13065: *)
1.237 ! moko 13066: archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13067: ;;
13068: esac
13069: else
13070: case $host_cpu in
13071: hppa*64*)
1.237 ! moko 13072: archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13073: ;;
13074: ia64*)
1.237 ! moko 13075: archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13076: ;;
13077: *)
13078:
13079: # Older versions of the 11.00 compiler do not understand -b yet
13080: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1.237 ! moko 13081: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
! 13082: printf %s "checking if $CC understands -b... " >&6; }
! 13083: if test ${lt_cv_prog_compiler__b+y}
! 13084: then :
! 13085: printf %s "(cached) " >&6
! 13086: else case e in #(
! 13087: e) lt_cv_prog_compiler__b=no
! 13088: save_LDFLAGS=$LDFLAGS
1.128 moko 13089: LDFLAGS="$LDFLAGS -b"
13090: echo "$lt_simple_link_test_code" > conftest.$ac_ext
13091: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13092: # The linker can only warn and ignore the option if not recognized
13093: # So say no if there are warnings
13094: if test -s conftest.err; then
13095: # Append any errors to the config.log.
13096: cat conftest.err 1>&5
13097: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13098: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13099: if diff conftest.exp conftest.er2 >/dev/null; then
13100: lt_cv_prog_compiler__b=yes
13101: fi
13102: else
13103: lt_cv_prog_compiler__b=yes
13104: fi
13105: fi
13106: $RM -r conftest*
1.237 ! moko 13107: LDFLAGS=$save_LDFLAGS
! 13108: ;;
! 13109: esac
1.128 moko 13110: fi
1.237 ! moko 13111: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
! 13112: printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
1.128 moko 13113:
1.237 ! moko 13114: if test yes = "$lt_cv_prog_compiler__b"; then
! 13115: archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13116: else
13117: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13118: fi
13119:
13120: ;;
13121: esac
13122: fi
1.237 ! moko 13123: if test no = "$with_gnu_ld"; then
! 13124: hardcode_libdir_flag_spec='$wl+b $wl$libdir'
1.128 moko 13125: hardcode_libdir_separator=:
13126:
13127: case $host_cpu in
13128: hppa*64*|ia64*)
13129: hardcode_direct=no
13130: hardcode_shlibpath_var=no
13131: ;;
13132: *)
13133: hardcode_direct=yes
13134: hardcode_direct_absolute=yes
1.237 ! moko 13135: export_dynamic_flag_spec='$wl-E'
1.128 moko 13136:
13137: # hardcode_minus_L: Not really in the search PATH,
13138: # but as the default location of the library.
13139: hardcode_minus_L=yes
13140: ;;
13141: esac
13142: fi
13143: ;;
13144:
13145: irix5* | irix6* | nonstopux*)
1.237 ! moko 13146: if test yes = "$GCC"; then
! 13147: 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 13148: # Try to use the -exported_symbol ld option, if it does not
13149: # work, assume that -exports_file does not work either and
13150: # implicitly export all symbols.
13151: # This should be the same for all languages, so no per-tag cache variable.
1.237 ! moko 13152: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
! 13153: printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
! 13154: if test ${lt_cv_irix_exported_symbol+y}
! 13155: then :
! 13156: printf %s "(cached) " >&6
! 13157: else case e in #(
! 13158: e) save_LDFLAGS=$LDFLAGS
! 13159: LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
1.150 moko 13160: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 13161: /* end confdefs.h. */
13162: int foo (void) { return 0; }
13163: _ACEOF
1.237 ! moko 13164: if ac_fn_c_try_link "$LINENO"
! 13165: then :
1.128 moko 13166: lt_cv_irix_exported_symbol=yes
1.237 ! moko 13167: else case e in #(
! 13168: e) lt_cv_irix_exported_symbol=no ;;
! 13169: esac
1.128 moko 13170: fi
1.237 ! moko 13171: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 13172: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 13173: LDFLAGS=$save_LDFLAGS ;;
! 13174: esac
1.128 moko 13175: fi
1.237 ! moko 13176: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
! 13177: printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
! 13178: if test yes = "$lt_cv_irix_exported_symbol"; then
! 13179: 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 13180: fi
1.237 ! moko 13181: link_all_deplibs=no
1.128 moko 13182: else
1.237 ! moko 13183: 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'
! 13184: 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 13185: fi
13186: archive_cmds_need_lc='no'
1.237 ! moko 13187: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13188: hardcode_libdir_separator=:
13189: inherit_rpath=yes
13190: link_all_deplibs=yes
13191: ;;
13192:
1.237 ! moko 13193: linux*)
! 13194: case $cc_basename in
! 13195: tcc*)
! 13196: # Fabrice Bellard et al's Tiny C Compiler
! 13197: ld_shlibs=yes
! 13198: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 13199: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
! 13200: ;;
! 13201: esac
! 13202: ;;
! 13203:
! 13204: *-mlibc)
! 13205: ;;
! 13206:
! 13207: netbsd* | netbsdelf*-gnu)
1.128 moko 13208: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13209: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13210: else
13211: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13212: fi
13213: hardcode_libdir_flag_spec='-R$libdir'
13214: hardcode_direct=yes
13215: hardcode_shlibpath_var=no
13216: ;;
13217:
13218: newsos6)
13219: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13220: hardcode_direct=yes
1.237 ! moko 13221: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13222: hardcode_libdir_separator=:
13223: hardcode_shlibpath_var=no
13224: ;;
13225:
13226: *nto* | *qnx*)
13227: ;;
13228:
13229: openbsd*)
13230: if test -f /usr/libexec/ld.so; then
13231: hardcode_direct=yes
13232: hardcode_shlibpath_var=no
13233: hardcode_direct_absolute=yes
1.237 ! moko 13234: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
1.128 moko 13235: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.237 ! moko 13236: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
! 13237: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
! 13238: export_dynamic_flag_spec='$wl-E'
1.128 moko 13239: else
1.237 ! moko 13240: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 13241: hardcode_libdir_flag_spec='$wl-rpath,$libdir'
1.128 moko 13242: fi
13243: else
13244: ld_shlibs=no
13245: fi
13246: ;;
13247:
13248: os2*)
13249: hardcode_libdir_flag_spec='-L$libdir'
13250: hardcode_minus_L=yes
13251: allow_undefined_flag=unsupported
1.237 ! moko 13252: shrext_cmds=.dll
! 13253: archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
! 13254: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
! 13255: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
! 13256: $ECHO EXPORTS >> $output_objdir/$libname.def~
! 13257: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
! 13258: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
! 13259: emximp -o $lib $output_objdir/$libname.def'
! 13260: archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
! 13261: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
! 13262: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
! 13263: $ECHO EXPORTS >> $output_objdir/$libname.def~
! 13264: prefix_cmds="$SED"~
! 13265: if test EXPORTS = "`$SED 1q $export_symbols`"; then
! 13266: prefix_cmds="$prefix_cmds -e 1d";
! 13267: fi~
! 13268: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
! 13269: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
! 13270: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
! 13271: emximp -o $lib $output_objdir/$libname.def'
! 13272: old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
! 13273: enable_shared_with_static_runtimes=yes
! 13274: file_list_spec='@'
1.128 moko 13275: ;;
13276:
13277: osf3*)
1.237 ! moko 13278: if test yes = "$GCC"; then
! 13279: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
! 13280: 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 13281: else
13282: allow_undefined_flag=' -expect_unresolved \*'
1.237 ! moko 13283: 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 13284: fi
13285: archive_cmds_need_lc='no'
1.237 ! moko 13286: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13287: hardcode_libdir_separator=:
13288: ;;
13289:
13290: osf4* | osf5*) # as osf3* with the addition of -msym flag
1.237 ! moko 13291: if test yes = "$GCC"; then
! 13292: allow_undefined_flag=' $wl-expect_unresolved $wl\*'
! 13293: 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'
! 13294: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
1.128 moko 13295: else
13296: allow_undefined_flag=' -expect_unresolved \*'
1.237 ! moko 13297: 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 13298: 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 13299: $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 13300:
13301: # Both c and cxx compiler support -rpath directly
13302: hardcode_libdir_flag_spec='-rpath $libdir'
13303: fi
13304: archive_cmds_need_lc='no'
13305: hardcode_libdir_separator=:
13306: ;;
13307:
1.237 ! moko 13308: serenity*)
! 13309: ;;
! 13310:
1.128 moko 13311: solaris*)
13312: no_undefined_flag=' -z defs'
1.237 ! moko 13313: if test yes = "$GCC"; then
! 13314: wlarc='$wl'
! 13315: archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13316: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 ! moko 13317: $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 13318: else
13319: case `$CC -V 2>&1` in
13320: *"Compilers 5.0"*)
13321: wlarc=''
1.237 ! moko 13322: archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.128 moko 13323: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 ! moko 13324: $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
1.128 moko 13325: ;;
13326: *)
1.237 ! moko 13327: wlarc='$wl'
! 13328: archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13329: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 ! moko 13330: $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1.128 moko 13331: ;;
13332: esac
13333: fi
13334: hardcode_libdir_flag_spec='-R$libdir'
13335: hardcode_shlibpath_var=no
13336: case $host_os in
13337: solaris2.[0-5] | solaris2.[0-5].*) ;;
13338: *)
13339: # The compiler driver will combine and reorder linker options,
1.237 ! moko 13340: # but understands '-z linker_flag'. GCC discards it without '$wl',
1.128 moko 13341: # but is careful enough not to reorder.
13342: # Supported since Solaris 2.6 (maybe 2.5.1?)
1.237 ! moko 13343: if test yes = "$GCC"; then
! 13344: whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1.128 moko 13345: else
13346: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13347: fi
13348: ;;
13349: esac
13350: link_all_deplibs=yes
13351: ;;
13352:
13353: sunos4*)
1.237 ! moko 13354: if test sequent = "$host_vendor"; then
1.128 moko 13355: # Use $CC to link under sequent, because it throws in some extra .o
13356: # files that make .init and .fini sections work.
1.237 ! moko 13357: archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13358: else
13359: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13360: fi
13361: hardcode_libdir_flag_spec='-L$libdir'
13362: hardcode_direct=yes
13363: hardcode_minus_L=yes
13364: hardcode_shlibpath_var=no
13365: ;;
13366:
13367: sysv4)
13368: case $host_vendor in
13369: sni)
13370: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13371: hardcode_direct=yes # is this really true???
13372: ;;
13373: siemens)
13374: ## LD is ld it makes a PLAMLIB
13375: ## CC just makes a GrossModule.
13376: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13377: reload_cmds='$CC -r -o $output$reload_objs'
13378: hardcode_direct=no
13379: ;;
13380: motorola)
13381: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13382: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13383: ;;
13384: esac
13385: runpath_var='LD_RUN_PATH'
13386: hardcode_shlibpath_var=no
13387: ;;
13388:
13389: sysv4.3*)
13390: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13391: hardcode_shlibpath_var=no
13392: export_dynamic_flag_spec='-Bexport'
13393: ;;
13394:
13395: sysv4*MP*)
13396: if test -d /usr/nec; then
13397: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13398: hardcode_shlibpath_var=no
13399: runpath_var=LD_RUN_PATH
13400: hardcode_runpath_var=yes
13401: ld_shlibs=yes
13402: fi
13403: ;;
13404:
13405: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.237 ! moko 13406: no_undefined_flag='$wl-z,text'
1.128 moko 13407: archive_cmds_need_lc=no
13408: hardcode_shlibpath_var=no
13409: runpath_var='LD_RUN_PATH'
13410:
1.237 ! moko 13411: if test yes = "$GCC"; then
! 13412: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 13413: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13414: else
1.237 ! moko 13415: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 13416: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13417: fi
13418: ;;
13419:
13420: sysv5* | sco3.2v5* | sco5v6*)
1.237 ! moko 13421: # Note: We CANNOT use -z defs as we might desire, because we do not
1.128 moko 13422: # link with -lc, and that would cause any symbols used from libc to
13423: # always be unresolved, which means just about no library would
13424: # ever link correctly. If we're not using GNU ld we use -z text
13425: # though, which does catch some bad symbols but isn't as heavy-handed
13426: # as -z defs.
1.237 ! moko 13427: no_undefined_flag='$wl-z,text'
! 13428: allow_undefined_flag='$wl-z,nodefs'
1.128 moko 13429: archive_cmds_need_lc=no
13430: hardcode_shlibpath_var=no
1.237 ! moko 13431: hardcode_libdir_flag_spec='$wl-R,$libdir'
1.128 moko 13432: hardcode_libdir_separator=':'
13433: link_all_deplibs=yes
1.237 ! moko 13434: export_dynamic_flag_spec='$wl-Bexport'
1.128 moko 13435: runpath_var='LD_RUN_PATH'
13436:
1.237 ! moko 13437: if test yes = "$GCC"; then
! 13438: archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 13439: archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13440: else
1.237 ! moko 13441: archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 13442: archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 13443: fi
13444: ;;
13445:
13446: uts4*)
13447: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13448: hardcode_libdir_flag_spec='-L$libdir'
13449: hardcode_shlibpath_var=no
13450: ;;
13451:
13452: *)
13453: ld_shlibs=no
13454: ;;
13455: esac
13456:
1.237 ! moko 13457: if test sni = "$host_vendor"; then
1.128 moko 13458: case $host in
13459: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.237 ! moko 13460: export_dynamic_flag_spec='$wl-Blargedynsym'
1.128 moko 13461: ;;
13462: esac
13463: fi
13464: fi
13465:
1.237 ! moko 13466: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
! 13467: printf "%s\n" "$ld_shlibs" >&6; }
! 13468: test no = "$ld_shlibs" && can_build_shared=no
1.128 moko 13469:
13470: with_gnu_ld=$with_gnu_ld
13471:
13472:
13473:
13474:
13475:
13476:
13477:
13478:
13479:
13480:
13481:
13482:
13483:
13484:
13485:
13486: #
13487: # Do we need to explicitly link libc?
13488: #
13489: case "x$archive_cmds_need_lc" in
13490: x|xyes)
13491: # Assume -lc should be added
13492: archive_cmds_need_lc=yes
13493:
1.237 ! moko 13494: if test yes,yes = "$GCC,$enable_shared"; then
1.128 moko 13495: case $archive_cmds in
13496: *'~'*)
13497: # FIXME: we may have to deal with multi-command sequences.
13498: ;;
13499: '$CC '*)
13500: # Test whether the compiler implicitly links with -lc since on some
13501: # systems, -lgcc has to come before -lc. If gcc already passes -lc
13502: # to ld, don't add -lc before -lgcc.
1.237 ! moko 13503: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
! 13504: printf %s "checking whether -lc should be explicitly linked in... " >&6; }
! 13505: if test ${lt_cv_archive_cmds_need_lc+y}
! 13506: then :
! 13507: printf %s "(cached) " >&6
! 13508: else case e in #(
! 13509: e) $RM conftest*
1.128 moko 13510: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13511:
1.150 moko 13512: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 13513: (eval $ac_compile) 2>&5
13514: ac_status=$?
1.237 ! moko 13515: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 13516: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 13517: soname=conftest
13518: lib=conftest
13519: libobjs=conftest.$ac_objext
13520: deplibs=
13521: wl=$lt_prog_compiler_wl
13522: pic_flag=$lt_prog_compiler_pic
13523: compiler_flags=-v
13524: linker_flags=-v
13525: verstring=
13526: output_objdir=.
13527: libname=conftest
13528: lt_save_allow_undefined_flag=$allow_undefined_flag
13529: allow_undefined_flag=
1.150 moko 13530: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 13531: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13532: ac_status=$?
1.237 ! moko 13533: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 13534: test $ac_status = 0; }
1.128 moko 13535: then
13536: lt_cv_archive_cmds_need_lc=no
13537: else
13538: lt_cv_archive_cmds_need_lc=yes
13539: fi
13540: allow_undefined_flag=$lt_save_allow_undefined_flag
13541: else
13542: cat conftest.err 1>&5
13543: fi
13544: $RM conftest*
1.237 ! moko 13545: ;;
! 13546: esac
1.128 moko 13547: fi
1.237 ! moko 13548: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
! 13549: printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
1.128 moko 13550: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13551: ;;
13552: esac
13553: fi
13554: ;;
13555: esac
13556:
13557:
13558:
13559:
13560:
13561:
13562:
13563:
13564:
13565:
13566:
13567:
13568:
13569:
13570:
13571:
13572:
13573:
13574:
13575:
13576:
13577:
13578:
13579:
13580:
13581:
13582:
13583:
13584:
13585:
13586:
13587:
13588:
13589:
13590:
13591:
13592:
13593:
13594:
13595:
13596:
13597:
13598:
13599:
13600:
13601:
13602:
13603:
13604:
13605:
13606:
13607:
13608:
13609:
13610:
13611:
13612:
13613:
13614:
13615:
13616:
13617:
13618:
13619:
13620:
13621:
13622:
13623:
13624:
13625:
13626:
13627:
13628:
13629:
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:
1.237 ! moko 13708: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
! 13709: printf %s "checking dynamic linker characteristics... " >&6; }
1.128 moko 13710:
1.237 ! moko 13711: if test yes = "$GCC"; then
1.128 moko 13712: case $host_os in
1.237 ! moko 13713: darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
! 13714: *) lt_awk_arg='/^libraries:/' ;;
1.128 moko 13715: esac
13716: case $host_os in
1.237 ! moko 13717: mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
! 13718: *) lt_sed_strip_eq='s|=/|/|g' ;;
1.128 moko 13719: esac
13720: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13721: case $lt_search_path_spec in
13722: *\;*)
13723: # if the path contains ";" then we assume it to be the separator
13724: # otherwise default to the standard path separator (i.e. ":") - it is
13725: # assumed that no part of a normal pathname contains ";" but that should
13726: # okay in the real world where ";" in dirpaths is itself problematic.
13727: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13728: ;;
13729: *)
13730: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13731: ;;
13732: esac
13733: # Ok, now we have the path, separated by spaces, we can step through it
1.237 ! moko 13734: # and add multilib dir if necessary...
1.128 moko 13735: lt_tmp_lt_search_path_spec=
1.237 ! moko 13736: lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
! 13737: # ...but if some path component already ends with the multilib dir we assume
! 13738: # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
! 13739: case "$lt_multi_os_dir; $lt_search_path_spec " in
! 13740: "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
! 13741: lt_multi_os_dir=
! 13742: ;;
! 13743: esac
1.128 moko 13744: for lt_sys_path in $lt_search_path_spec; do
1.237 ! moko 13745: if test -d "$lt_sys_path$lt_multi_os_dir"; then
! 13746: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
! 13747: elif test -n "$lt_multi_os_dir"; then
1.128 moko 13748: test -d "$lt_sys_path" && \
13749: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13750: fi
13751: done
13752: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
1.237 ! moko 13753: BEGIN {RS = " "; FS = "/|\n";} {
! 13754: lt_foo = "";
! 13755: lt_count = 0;
1.128 moko 13756: for (lt_i = NF; lt_i > 0; lt_i--) {
13757: if ($lt_i != "" && $lt_i != ".") {
13758: if ($lt_i == "..") {
13759: lt_count++;
13760: } else {
13761: if (lt_count == 0) {
1.237 ! moko 13762: lt_foo = "/" $lt_i lt_foo;
1.128 moko 13763: } else {
13764: lt_count--;
13765: }
13766: }
13767: }
13768: }
13769: if (lt_foo != "") { lt_freq[lt_foo]++; }
13770: if (lt_freq[lt_foo] == 1) { print lt_foo; }
13771: }'`
13772: # AWK program above erroneously prepends '/' to C:/dos/paths
13773: # for these hosts.
13774: case $host_os in
1.237 ! moko 13775: mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
! 13776: $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
1.128 moko 13777: esac
13778: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13779: else
13780: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13781: fi
13782: library_names_spec=
13783: libname_spec='lib$name'
13784: soname_spec=
1.237 ! moko 13785: shrext_cmds=.so
1.128 moko 13786: postinstall_cmds=
13787: postuninstall_cmds=
13788: finish_cmds=
13789: finish_eval=
13790: shlibpath_var=
13791: shlibpath_overrides_runpath=unknown
13792: version_type=none
13793: dynamic_linker="$host_os ld.so"
13794: sys_lib_dlsearch_path_spec="/lib /usr/lib"
13795: need_lib_prefix=unknown
13796: hardcode_into_libs=no
13797:
13798: # when you set need_version to no, make sure it does not cause -set_version
13799: # flags to be left without arguments
13800: need_version=unknown
13801:
1.237 ! moko 13802:
! 13803:
1.128 moko 13804: case $host_os in
13805: aix3*)
13806: version_type=linux # correct to gnu/linux during the next big refactor
1.237 ! moko 13807: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1.128 moko 13808: shlibpath_var=LIBPATH
13809:
13810: # AIX 3 has no versioning support, so we append a major version to the name.
1.237 ! moko 13811: soname_spec='$libname$release$shared_ext$major'
1.128 moko 13812: ;;
13813:
13814: aix[4-9]*)
13815: version_type=linux # correct to gnu/linux during the next big refactor
13816: need_lib_prefix=no
13817: need_version=no
13818: hardcode_into_libs=yes
1.237 ! moko 13819: if test ia64 = "$host_cpu"; then
1.128 moko 13820: # AIX 5 supports IA64
1.237 ! moko 13821: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1.128 moko 13822: shlibpath_var=LD_LIBRARY_PATH
13823: else
13824: # With GCC up to 2.95.x, collect2 would create an import file
13825: # for dependence libraries. The import file would start with
1.237 ! moko 13826: # the line '#! .'. This would cause the generated library to
! 13827: # depend on '.', always an invalid library. This was fixed in
1.128 moko 13828: # development snapshots of GCC prior to 3.0.
13829: case $host_os in
13830: aix4 | aix4.[01] | aix4.[01].*)
13831: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13832: echo ' yes '
1.237 ! moko 13833: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1.128 moko 13834: :
13835: else
13836: can_build_shared=no
13837: fi
13838: ;;
13839: esac
1.237 ! moko 13840: # Using Import Files as archive members, it is possible to support
! 13841: # filename-based versioning of shared library archives on AIX. While
! 13842: # this would work for both with and without runtime linking, it will
! 13843: # prevent static linking of such archives. So we do filename-based
! 13844: # shared library versioning with .so extension only, which is used
! 13845: # when both runtime linking and shared linking is enabled.
! 13846: # Unfortunately, runtime linking may impact performance, so we do
! 13847: # not want this to be the default eventually. Also, we use the
! 13848: # versioned .so libs for executables only if there is the -brtl
! 13849: # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
! 13850: # To allow for filename-based versioning support, we need to create
! 13851: # libNAME.so.V as an archive file, containing:
! 13852: # *) an Import File, referring to the versioned filename of the
! 13853: # archive as well as the shared archive member, telling the
! 13854: # bitwidth (32 or 64) of that shared object, and providing the
! 13855: # list of exported symbols of that shared object, eventually
! 13856: # decorated with the 'weak' keyword
! 13857: # *) the shared object with the F_LOADONLY flag set, to really avoid
! 13858: # it being seen by the linker.
! 13859: # At run time we better use the real file rather than another symlink,
! 13860: # but for link time we create the symlink libNAME.so -> libNAME.so.V
! 13861:
! 13862: case $with_aix_soname,$aix_use_runtimelinking in
! 13863: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1.128 moko 13864: # soname into executable. Probably we can add versioning support to
13865: # collect2, so additional links can be useful in future.
1.237 ! moko 13866: aix,yes) # traditional libtool
! 13867: dynamic_linker='AIX unversionable lib.so'
1.128 moko 13868: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13869: # instead of lib<name>.a to let people know that these are not
13870: # typical AIX shared libraries.
1.237 ! moko 13871: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 13872: ;;
! 13873: aix,no) # traditional AIX only
! 13874: dynamic_linker='AIX lib.a(lib.so.V)'
1.128 moko 13875: # We preserve .a as extension for shared libraries through AIX4.2
13876: # and later when we are not doing run time linking.
1.237 ! moko 13877: library_names_spec='$libname$release.a $libname.a'
! 13878: soname_spec='$libname$release$shared_ext$major'
! 13879: ;;
! 13880: svr4,*) # full svr4 only
! 13881: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
! 13882: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
! 13883: # We do not specify a path in Import Files, so LIBPATH fires.
! 13884: shlibpath_overrides_runpath=yes
! 13885: ;;
! 13886: *,yes) # both, prefer svr4
! 13887: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
! 13888: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
! 13889: # unpreferred sharedlib libNAME.a needs extra handling
! 13890: 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"'
! 13891: 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"'
! 13892: # We do not specify a path in Import Files, so LIBPATH fires.
! 13893: shlibpath_overrides_runpath=yes
! 13894: ;;
! 13895: *,no) # both, prefer aix
! 13896: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
! 13897: library_names_spec='$libname$release.a $libname.a'
! 13898: soname_spec='$libname$release$shared_ext$major'
! 13899: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
! 13900: 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)'
! 13901: 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"'
! 13902: ;;
! 13903: esac
1.128 moko 13904: shlibpath_var=LIBPATH
13905: fi
13906: ;;
13907:
13908: amigaos*)
13909: case $host_cpu in
13910: powerpc)
13911: # Since July 2007 AmigaOS4 officially supports .so libraries.
13912: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
1.237 ! moko 13913: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 13914: ;;
13915: m68k)
13916: library_names_spec='$libname.ixlibrary $libname.a'
13917: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.237 ! moko 13918: 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 13919: ;;
13920: esac
13921: ;;
13922:
13923: beos*)
1.237 ! moko 13924: library_names_spec='$libname$shared_ext'
1.128 moko 13925: dynamic_linker="$host_os ld.so"
13926: shlibpath_var=LIBRARY_PATH
13927: ;;
13928:
13929: bsdi[45]*)
13930: version_type=linux # correct to gnu/linux during the next big refactor
13931: need_version=no
1.237 ! moko 13932: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 13933: soname_spec='$libname$release$shared_ext$major'
1.128 moko 13934: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13935: shlibpath_var=LD_LIBRARY_PATH
13936: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13937: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13938: # the default ld.so.conf also contains /usr/contrib/lib and
13939: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13940: # libtool to hard-code these into programs
13941: ;;
13942:
1.237 ! moko 13943: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 13944: version_type=windows
1.237 ! moko 13945: shrext_cmds=.dll
1.128 moko 13946: need_version=no
13947: need_lib_prefix=no
13948:
13949: case $GCC,$cc_basename in
13950: yes,*)
13951: # gcc
13952: library_names_spec='$libname.dll.a'
13953: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 ! moko 13954: # If user builds GCC with multilib enabled,
! 13955: # it should just install on $(libdir)
! 13956: # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
! 13957: if test xyes = x"$multilib"; then
! 13958: postinstall_cmds='base_file=`basename \$file`~
! 13959: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
! 13960: dldir=$destdir/`dirname \$dlpath`~
! 13961: $install_prog $dir/$dlname $destdir/$dlname~
! 13962: chmod a+x $destdir/$dlname~
! 13963: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
! 13964: eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
! 13965: fi'
! 13966: else
! 13967: postinstall_cmds='base_file=`basename \$file`~
! 13968: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
! 13969: dldir=$destdir/`dirname \$dlpath`~
! 13970: test -d \$dldir || mkdir -p \$dldir~
! 13971: $install_prog $dir/$dlname \$dldir/$dlname~
! 13972: chmod a+x \$dldir/$dlname~
! 13973: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
! 13974: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
! 13975: fi'
! 13976: fi
1.128 moko 13977: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13978: dlpath=$dir/\$dldll~
13979: $RM \$dlpath'
13980: shlibpath_overrides_runpath=yes
13981:
13982: case $host_os in
13983: cygwin*)
13984: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.237 ! moko 13985: soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 13986:
13987: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13988: ;;
1.237 ! moko 13989: mingw* | windows* | cegcc*)
1.128 moko 13990: # MinGW DLLs use traditional 'lib' prefix
1.237 ! moko 13991: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 13992: ;;
13993: pw32*)
13994: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.237 ! moko 13995: library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 13996: ;;
13997: esac
13998: dynamic_linker='Win32 ld.exe'
13999: ;;
14000:
1.237 ! moko 14001: *,cl* | *,icl*)
! 14002: # Native MSVC or ICC
1.128 moko 14003: libname_spec='$name'
1.237 ! moko 14004: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
! 14005: library_names_spec='$libname.dll.lib'
1.128 moko 14006:
14007: case $build_os in
1.237 ! moko 14008: mingw* | windows*)
1.128 moko 14009: sys_lib_search_path_spec=
14010: lt_save_ifs=$IFS
14011: IFS=';'
14012: for lt_path in $LIB
14013: do
14014: IFS=$lt_save_ifs
14015: # Let DOS variable expansion print the short 8.3 style file name.
14016: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14017: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14018: done
14019: IFS=$lt_save_ifs
14020: # Convert to MSYS style.
1.237 ! moko 14021: 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 14022: ;;
14023: cygwin*)
14024: # Convert to unix form, then to dos form, then back to unix form
14025: # but this time dos style (no spaces!) so that the unix form looks
14026: # like /cygdrive/c/PROGRA~1:/cygdr...
14027: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14028: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14029: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14030: ;;
14031: *)
1.237 ! moko 14032: sys_lib_search_path_spec=$LIB
1.128 moko 14033: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14034: # It is most probably a Windows format PATH.
14035: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14036: else
14037: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14038: fi
14039: # FIXME: find the short name or the path components, as spaces are
14040: # common. (e.g. "Program Files" -> "PROGRA~1")
14041: ;;
14042: esac
14043:
14044: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 ! moko 14045: postinstall_cmds='base_file=`basename \$file`~
! 14046: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1.128 moko 14047: dldir=$destdir/`dirname \$dlpath`~
14048: test -d \$dldir || mkdir -p \$dldir~
14049: $install_prog $dir/$dlname \$dldir/$dlname'
14050: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14051: dlpath=$dir/\$dldll~
14052: $RM \$dlpath'
14053: shlibpath_overrides_runpath=yes
14054: dynamic_linker='Win32 link.exe'
14055: ;;
14056:
14057: *)
1.237 ! moko 14058: # Assume MSVC and ICC wrapper
! 14059: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1.128 moko 14060: dynamic_linker='Win32 ld.exe'
14061: ;;
14062: esac
14063: # FIXME: first we should search . and the directory the executable is in
14064: shlibpath_var=PATH
14065: ;;
14066:
14067: darwin* | rhapsody*)
14068: dynamic_linker="$host_os dyld"
14069: version_type=darwin
14070: need_lib_prefix=no
14071: need_version=no
1.237 ! moko 14072: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
! 14073: soname_spec='$libname$release$major$shared_ext'
1.128 moko 14074: shlibpath_overrides_runpath=yes
14075: shlibpath_var=DYLD_LIBRARY_PATH
14076: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14077:
14078: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14079: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14080: ;;
14081:
14082: dgux*)
14083: version_type=linux # correct to gnu/linux during the next big refactor
14084: need_lib_prefix=no
14085: need_version=no
1.237 ! moko 14086: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14087: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14088: shlibpath_var=LD_LIBRARY_PATH
14089: ;;
14090:
1.237 ! moko 14091: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 14092: # DragonFly does not have aout. When/if they implement a new
14093: # versioning mechanism, adjust this.
14094: if test -x /usr/bin/objformat; then
14095: objformat=`/usr/bin/objformat`
14096: else
14097: case $host_os in
14098: freebsd[23].*) objformat=aout ;;
14099: *) objformat=elf ;;
14100: esac
14101: fi
14102: version_type=freebsd-$objformat
14103: case $version_type in
14104: freebsd-elf*)
1.237 ! moko 14105: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14106: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14107: need_version=no
14108: need_lib_prefix=no
14109: ;;
14110: freebsd-*)
1.237 ! moko 14111: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14112: need_version=yes
14113: ;;
14114: esac
1.237 ! moko 14115: case $host_cpu in
! 14116: powerpc64)
! 14117: # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
! 14118: # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
! 14119: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 14120: /* end confdefs.h. */
! 14121: int test_pointer_size[sizeof (void *) - 5];
! 14122:
! 14123: _ACEOF
! 14124: if ac_fn_c_try_compile "$LINENO"
! 14125: then :
1.128 moko 14126: shlibpath_var=LD_LIBRARY_PATH
1.237 ! moko 14127: else case e in #(
! 14128: e) shlibpath_var=LD_32_LIBRARY_PATH ;;
! 14129: esac
! 14130: fi
! 14131: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 14132: ;;
! 14133: *)
! 14134: shlibpath_var=LD_LIBRARY_PATH
! 14135: ;;
! 14136: esac
1.128 moko 14137: case $host_os in
14138: freebsd2.*)
14139: shlibpath_overrides_runpath=yes
14140: ;;
14141: freebsd3.[01]* | freebsdelf3.[01]*)
14142: shlibpath_overrides_runpath=yes
14143: hardcode_into_libs=yes
14144: ;;
14145: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14146: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14147: shlibpath_overrides_runpath=no
14148: hardcode_into_libs=yes
14149: ;;
14150: *) # from 4.6 on, and DragonFly
14151: shlibpath_overrides_runpath=yes
14152: hardcode_into_libs=yes
14153: ;;
14154: esac
14155: ;;
14156:
14157: haiku*)
14158: version_type=linux # correct to gnu/linux during the next big refactor
14159: need_lib_prefix=no
14160: need_version=no
14161: dynamic_linker="$host_os runtime_loader"
1.237 ! moko 14162: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14163: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14164: shlibpath_var=LIBRARY_PATH
1.237 ! moko 14165: shlibpath_overrides_runpath=no
! 14166: sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
! 14167: sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
! 14168: hardcode_into_libs=no
1.128 moko 14169: ;;
14170:
14171: hpux9* | hpux10* | hpux11*)
14172: # Give a soname corresponding to the major version so that dld.sl refuses to
14173: # link against other versions.
14174: version_type=sunos
14175: need_lib_prefix=no
14176: need_version=no
14177: case $host_cpu in
14178: ia64*)
14179: shrext_cmds='.so'
14180: hardcode_into_libs=yes
14181: dynamic_linker="$host_os dld.so"
14182: shlibpath_var=LD_LIBRARY_PATH
14183: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 ! moko 14184: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14185: soname_spec='$libname$release$shared_ext$major'
! 14186: if test 32 = "$HPUX_IA64_MODE"; then
1.128 moko 14187: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.237 ! moko 14188: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1.128 moko 14189: else
14190: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.237 ! moko 14191: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1.128 moko 14192: fi
14193: ;;
14194: hppa*64*)
14195: shrext_cmds='.sl'
14196: hardcode_into_libs=yes
14197: dynamic_linker="$host_os dld.sl"
14198: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14199: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 ! moko 14200: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14201: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14202: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14203: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14204: ;;
14205: *)
14206: shrext_cmds='.sl'
14207: dynamic_linker="$host_os dld.sl"
14208: shlibpath_var=SHLIB_PATH
14209: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.237 ! moko 14210: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14211: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14212: ;;
14213: esac
14214: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14215: postinstall_cmds='chmod 555 $lib'
14216: # or fails outright, so override atomically:
14217: install_override_mode=555
14218: ;;
14219:
14220: interix[3-9]*)
14221: version_type=linux # correct to gnu/linux during the next big refactor
14222: need_lib_prefix=no
14223: need_version=no
1.237 ! moko 14224: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14225: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14226: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14227: shlibpath_var=LD_LIBRARY_PATH
14228: shlibpath_overrides_runpath=no
14229: hardcode_into_libs=yes
14230: ;;
14231:
14232: irix5* | irix6* | nonstopux*)
14233: case $host_os in
14234: nonstopux*) version_type=nonstopux ;;
14235: *)
1.237 ! moko 14236: if test yes = "$lt_cv_prog_gnu_ld"; then
1.128 moko 14237: version_type=linux # correct to gnu/linux during the next big refactor
14238: else
14239: version_type=irix
14240: fi ;;
14241: esac
14242: need_lib_prefix=no
14243: need_version=no
1.237 ! moko 14244: soname_spec='$libname$release$shared_ext$major'
! 14245: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1.128 moko 14246: case $host_os in
14247: irix5* | nonstopux*)
14248: libsuff= shlibsuff=
14249: ;;
14250: *)
14251: case $LD in # libtool.m4 will add one of these switches to LD
14252: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14253: libsuff= shlibsuff= libmagic=32-bit;;
14254: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14255: libsuff=32 shlibsuff=N32 libmagic=N32;;
14256: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14257: libsuff=64 shlibsuff=64 libmagic=64-bit;;
14258: *) libsuff= shlibsuff= libmagic=never-match;;
14259: esac
14260: ;;
14261: esac
14262: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14263: shlibpath_overrides_runpath=no
1.237 ! moko 14264: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
! 14265: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1.128 moko 14266: hardcode_into_libs=yes
14267: ;;
14268:
14269: # No shared lib support for Linux oldld, aout, or coff.
14270: linux*oldld* | linux*aout* | linux*coff*)
14271: dynamic_linker=no
14272: ;;
14273:
1.237 ! moko 14274: linux*android*)
! 14275: version_type=none # Android doesn't support versioned libraries.
! 14276: need_lib_prefix=no
! 14277: need_version=no
! 14278: library_names_spec='$libname$release$shared_ext $libname$shared_ext'
! 14279: soname_spec='$libname$release$shared_ext'
! 14280: finish_cmds=
! 14281: shlibpath_var=LD_LIBRARY_PATH
! 14282: shlibpath_overrides_runpath=yes
! 14283:
! 14284: # This implies no fast_install, which is unacceptable.
! 14285: # Some rework will be needed to allow for fast_install
! 14286: # before this can be enabled.
! 14287: hardcode_into_libs=yes
! 14288:
! 14289: dynamic_linker='Android linker'
! 14290: # -rpath works at least for libraries that are not overridden by
! 14291: # libraries installed in system locations.
! 14292: hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
! 14293: ;;
! 14294:
1.128 moko 14295: # This must be glibc/ELF.
1.237 ! moko 14296: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 14297: version_type=linux # correct to gnu/linux during the next big refactor
14298: need_lib_prefix=no
14299: need_version=no
1.237 ! moko 14300: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14301: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14302: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14303: shlibpath_var=LD_LIBRARY_PATH
14304: shlibpath_overrides_runpath=no
14305:
14306: # Some binutils ld are patched to set DT_RUNPATH
1.237 ! moko 14307: if test ${lt_cv_shlibpath_overrides_runpath+y}
! 14308: then :
! 14309: printf %s "(cached) " >&6
! 14310: else case e in #(
! 14311: e) lt_cv_shlibpath_overrides_runpath=no
1.128 moko 14312: save_LDFLAGS=$LDFLAGS
14313: save_libdir=$libdir
14314: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14315: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
1.150 moko 14316: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 14317: /* end confdefs.h. */
14318:
14319: int
1.237 ! moko 14320: main (void)
1.128 moko 14321: {
14322:
14323: ;
14324: return 0;
14325: }
14326: _ACEOF
1.237 ! moko 14327: if ac_fn_c_try_link "$LINENO"
! 14328: then :
! 14329: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
! 14330: then :
1.128 moko 14331: lt_cv_shlibpath_overrides_runpath=yes
14332: fi
14333: fi
1.237 ! moko 14334: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 14335: conftest$ac_exeext conftest.$ac_ext
1.128 moko 14336: LDFLAGS=$save_LDFLAGS
14337: libdir=$save_libdir
1.237 ! moko 14338: ;;
! 14339: esac
1.128 moko 14340: fi
14341:
14342: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14343:
14344: # This implies no fast_install, which is unacceptable.
14345: # Some rework will be needed to allow for fast_install
14346: # before this can be enabled.
14347: hardcode_into_libs=yes
14348:
1.237 ! moko 14349: # Ideally, we could use ldconfig to report *all* directories which are
! 14350: # searched for libraries, however this is still not possible. Aside from not
! 14351: # being certain /sbin/ldconfig is available, command
! 14352: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
! 14353: # even though it is searched at run-time. Try to do the best guess by
! 14354: # appending ld.so.conf contents (and includes) to the search path.
1.128 moko 14355: if test -f /etc/ld.so.conf; then
14356: 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' ' '`
14357: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14358: fi
14359:
14360: # We used to test for /lib/ld.so.1 and disable shared libraries on
14361: # powerpc, because MkLinux only supported shared libraries with the
14362: # GNU dynamic linker. Since this was broken with cross compilers,
14363: # most powerpc-linux boxes support dynamic linking these days and
14364: # people can always --disable-shared, the test was removed, and we
14365: # assume the GNU/Linux dynamic linker is in use.
14366: dynamic_linker='GNU/Linux ld.so'
14367: ;;
14368:
1.237 ! moko 14369: netbsdelf*-gnu)
! 14370: version_type=linux
! 14371: need_lib_prefix=no
! 14372: need_version=no
! 14373: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14374: soname_spec='$libname$release$shared_ext$major'
! 14375: shlibpath_var=LD_LIBRARY_PATH
! 14376: shlibpath_overrides_runpath=no
! 14377: hardcode_into_libs=yes
! 14378: dynamic_linker='NetBSD ld.elf_so'
! 14379: ;;
! 14380:
! 14381: netbsdelf*-gnu)
! 14382: version_type=linux
! 14383: need_lib_prefix=no
! 14384: need_version=no
! 14385: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 14386: soname_spec='${libname}${release}${shared_ext}$major'
! 14387: shlibpath_var=LD_LIBRARY_PATH
! 14388: shlibpath_overrides_runpath=no
! 14389: hardcode_into_libs=yes
! 14390: dynamic_linker='NetBSD ld.elf_so'
! 14391: ;;
! 14392:
1.128 moko 14393: netbsd*)
14394: version_type=sunos
14395: need_lib_prefix=no
14396: need_version=no
14397: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.237 ! moko 14398: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14399: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14400: dynamic_linker='NetBSD (a.out) ld.so'
14401: else
1.237 ! moko 14402: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14403: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14404: dynamic_linker='NetBSD ld.elf_so'
14405: fi
14406: shlibpath_var=LD_LIBRARY_PATH
14407: shlibpath_overrides_runpath=yes
14408: hardcode_into_libs=yes
14409: ;;
14410:
1.237 ! moko 14411: *-mlibc)
! 14412: version_type=linux # correct to gnu/linux during the next big refactor
! 14413: need_lib_prefix=no
! 14414: need_version=no
! 14415: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14416: soname_spec='$libname$release$shared_ext$major'
! 14417: dynamic_linker='mlibc ld.so'
! 14418: shlibpath_var=LD_LIBRARY_PATH
! 14419: shlibpath_overrides_runpath=no
! 14420: hardcode_into_libs=yes
! 14421: ;;
! 14422:
1.128 moko 14423: newsos6)
14424: version_type=linux # correct to gnu/linux during the next big refactor
1.237 ! moko 14425: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 14426: shlibpath_var=LD_LIBRARY_PATH
14427: shlibpath_overrides_runpath=yes
14428: ;;
14429:
14430: *nto* | *qnx*)
14431: version_type=qnx
14432: need_lib_prefix=no
14433: need_version=no
1.237 ! moko 14434: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14435: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14436: shlibpath_var=LD_LIBRARY_PATH
14437: shlibpath_overrides_runpath=no
14438: hardcode_into_libs=yes
14439: dynamic_linker='ldqnx.so'
14440: ;;
14441:
14442: openbsd*)
14443: version_type=sunos
1.237 ! moko 14444: sys_lib_dlsearch_path_spec=/usr/lib
1.128 moko 14445: need_lib_prefix=no
1.237 ! moko 14446: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
! 14447: need_version=no
! 14448: else
! 14449: need_version=yes
! 14450: fi
! 14451: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14452: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14453: shlibpath_var=LD_LIBRARY_PATH
1.237 ! moko 14454: shlibpath_overrides_runpath=yes
1.128 moko 14455: ;;
14456:
14457: os2*)
14458: libname_spec='$name'
1.237 ! moko 14459: version_type=windows
! 14460: shrext_cmds=.dll
! 14461: need_version=no
1.128 moko 14462: need_lib_prefix=no
1.237 ! moko 14463: # OS/2 can only load a DLL with a base name of 8 characters or less.
! 14464: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
! 14465: v=$($ECHO $release$versuffix | tr -d .-);
! 14466: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
! 14467: $ECHO $n$v`$shared_ext'
! 14468: library_names_spec='${libname}_dll.$libext'
1.128 moko 14469: dynamic_linker='OS/2 ld.exe'
1.237 ! moko 14470: shlibpath_var=BEGINLIBPATH
! 14471: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 14472: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 14473: postinstall_cmds='base_file=`basename \$file`~
! 14474: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
! 14475: dldir=$destdir/`dirname \$dlpath`~
! 14476: test -d \$dldir || mkdir -p \$dldir~
! 14477: $install_prog $dir/$dlname \$dldir/$dlname~
! 14478: chmod a+x \$dldir/$dlname~
! 14479: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
! 14480: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
! 14481: fi'
! 14482: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
! 14483: dlpath=$dir/\$dldll~
! 14484: $RM \$dlpath'
1.128 moko 14485: ;;
14486:
14487: osf3* | osf4* | osf5*)
14488: version_type=osf
14489: need_lib_prefix=no
14490: need_version=no
1.237 ! moko 14491: soname_spec='$libname$release$shared_ext$major'
! 14492: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 14493: shlibpath_var=LD_LIBRARY_PATH
14494: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.237 ! moko 14495: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.128 moko 14496: ;;
14497:
14498: rdos*)
14499: dynamic_linker=no
14500: ;;
14501:
1.237 ! moko 14502: serenity*)
! 14503: version_type=linux # correct to gnu/linux during the next big refactor
! 14504: need_lib_prefix=no
! 14505: need_version=no
! 14506: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14507: soname_spec='$libname$release$shared_ext$major'
! 14508: shlibpath_var=LD_LIBRARY_PATH
! 14509: shlibpath_overrides_runpath=no
! 14510: dynamic_linker='SerenityOS LibELF'
! 14511: ;;
! 14512:
1.128 moko 14513: solaris*)
14514: version_type=linux # correct to gnu/linux during the next big refactor
14515: need_lib_prefix=no
14516: need_version=no
1.237 ! moko 14517: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14518: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14519: shlibpath_var=LD_LIBRARY_PATH
14520: shlibpath_overrides_runpath=yes
14521: hardcode_into_libs=yes
14522: # ldd complains unless libraries are executable
14523: postinstall_cmds='chmod +x $lib'
14524: ;;
14525:
14526: sunos4*)
14527: version_type=sunos
1.237 ! moko 14528: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 14529: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14530: shlibpath_var=LD_LIBRARY_PATH
14531: shlibpath_overrides_runpath=yes
1.237 ! moko 14532: if test yes = "$with_gnu_ld"; then
1.128 moko 14533: need_lib_prefix=no
14534: fi
14535: need_version=yes
14536: ;;
14537:
14538: sysv4 | sysv4.3*)
14539: version_type=linux # correct to gnu/linux during the next big refactor
1.237 ! moko 14540: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14541: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14542: shlibpath_var=LD_LIBRARY_PATH
14543: case $host_vendor in
14544: sni)
14545: shlibpath_overrides_runpath=no
14546: need_lib_prefix=no
14547: runpath_var=LD_RUN_PATH
14548: ;;
14549: siemens)
14550: need_lib_prefix=no
14551: ;;
14552: motorola)
14553: need_lib_prefix=no
14554: need_version=no
14555: shlibpath_overrides_runpath=no
14556: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14557: ;;
14558: esac
14559: ;;
14560:
14561: sysv4*MP*)
1.237 ! moko 14562: if test -d /usr/nec; then
1.128 moko 14563: version_type=linux # correct to gnu/linux during the next big refactor
1.237 ! moko 14564: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
! 14565: soname_spec='$libname$shared_ext.$major'
1.128 moko 14566: shlibpath_var=LD_LIBRARY_PATH
14567: fi
14568: ;;
14569:
14570: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.237 ! moko 14571: version_type=sco
1.128 moko 14572: need_lib_prefix=no
14573: need_version=no
1.237 ! moko 14574: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
! 14575: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14576: shlibpath_var=LD_LIBRARY_PATH
14577: shlibpath_overrides_runpath=yes
14578: hardcode_into_libs=yes
1.237 ! moko 14579: if test yes = "$with_gnu_ld"; then
1.128 moko 14580: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14581: else
14582: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14583: case $host_os in
14584: sco3.2v5*)
14585: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14586: ;;
14587: esac
14588: fi
14589: sys_lib_dlsearch_path_spec='/usr/lib'
14590: ;;
14591:
14592: tpf*)
14593: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14594: version_type=linux # correct to gnu/linux during the next big refactor
14595: need_lib_prefix=no
14596: need_version=no
1.237 ! moko 14597: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 14598: shlibpath_var=LD_LIBRARY_PATH
14599: shlibpath_overrides_runpath=no
14600: hardcode_into_libs=yes
14601: ;;
14602:
14603: uts4*)
14604: version_type=linux # correct to gnu/linux during the next big refactor
1.237 ! moko 14605: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 14606: soname_spec='$libname$release$shared_ext$major'
1.128 moko 14607: shlibpath_var=LD_LIBRARY_PATH
14608: ;;
14609:
1.237 ! moko 14610: emscripten*)
! 14611: version_type=none
! 14612: need_lib_prefix=no
! 14613: need_version=no
! 14614: library_names_spec='$libname$release$shared_ext'
! 14615: soname_spec='$libname$release$shared_ext'
! 14616: finish_cmds=
! 14617: dynamic_linker="Emscripten linker"
! 14618: lt_prog_compiler_wl=
! 14619: lt_prog_compiler_pic=
! 14620: lt_prog_compiler_static=
1.128 moko 14621:
14622:
1.237 ! moko 14623: if test yes = "$GCC"; then
! 14624: lt_prog_compiler_wl='-Wl,'
! 14625: lt_prog_compiler_static='-static'
1.128 moko 14626:
1.237 ! moko 14627: case $host_os in
! 14628: aix*)
! 14629: # All AIX code is PIC.
! 14630: if test ia64 = "$host_cpu"; then
! 14631: # AIX 5 now supports IA64 processor
! 14632: lt_prog_compiler_static='-Bstatic'
! 14633: fi
! 14634: lt_prog_compiler_pic='-fPIC'
! 14635: ;;
1.128 moko 14636:
1.237 ! moko 14637: amigaos*)
! 14638: case $host_cpu in
! 14639: powerpc)
! 14640: # see comment about AmigaOS4 .so support
! 14641: lt_prog_compiler_pic='-fPIC'
! 14642: ;;
! 14643: m68k)
! 14644: # FIXME: we need at least 68020 code to build shared libraries, but
! 14645: # adding the '-m68020' flag to GCC prevents building anything better,
! 14646: # like '-m68040'.
! 14647: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
! 14648: ;;
! 14649: esac
! 14650: ;;
1.128 moko 14651:
1.237 ! moko 14652: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 14653: # PIC is the default for these OSes.
! 14654: ;;
1.128 moko 14655:
1.237 ! moko 14656: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
! 14657: # This hack is so that the source file can tell whether it is being
! 14658: # built for inclusion in a dll (and should export symbols for example).
! 14659: # Although the cygwin gcc ignores -fPIC, still need this for old-style
! 14660: # (--disable-auto-import) libraries
! 14661: lt_prog_compiler_pic='-DDLL_EXPORT'
! 14662: case $host_os in
! 14663: os2*)
! 14664: lt_prog_compiler_static='$wl-static'
! 14665: ;;
! 14666: esac
! 14667: ;;
1.128 moko 14668:
1.237 ! moko 14669: darwin* | rhapsody*)
! 14670: # PIC is the default on this platform
! 14671: # Common symbols not allowed in MH_DYLIB files
! 14672: lt_prog_compiler_pic='-fno-common'
! 14673: ;;
1.128 moko 14674:
1.237 ! moko 14675: haiku*)
! 14676: # PIC is the default for Haiku.
! 14677: # The "-static" flag exists, but is broken.
! 14678: lt_prog_compiler_static=
! 14679: ;;
1.128 moko 14680:
1.237 ! moko 14681: hpux*)
! 14682: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
! 14683: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
! 14684: # sets the default TLS model and affects inlining.
! 14685: case $host_cpu in
! 14686: hppa*64*)
! 14687: # +Z the default
! 14688: ;;
! 14689: *)
! 14690: lt_prog_compiler_pic='-fPIC'
! 14691: ;;
! 14692: esac
! 14693: ;;
1.128 moko 14694:
1.237 ! moko 14695: interix[3-9]*)
! 14696: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 14697: # Instead, we relocate shared libraries at runtime.
! 14698: ;;
1.128 moko 14699:
1.237 ! moko 14700: msdosdjgpp*)
! 14701: # Just because we use GCC doesn't mean we suddenly get shared libraries
! 14702: # on systems that don't support them.
! 14703: lt_prog_compiler_can_build_shared=no
! 14704: enable_shared=no
! 14705: ;;
1.128 moko 14706:
1.237 ! moko 14707: *nto* | *qnx*)
! 14708: # QNX uses GNU C++, but need to define -shared option too, otherwise
! 14709: # it will coredump.
! 14710: lt_prog_compiler_pic='-fPIC -shared'
! 14711: ;;
1.128 moko 14712:
1.237 ! moko 14713: sysv4*MP*)
! 14714: if test -d /usr/nec; then
! 14715: lt_prog_compiler_pic=-Kconform_pic
! 14716: fi
! 14717: ;;
1.128 moko 14718:
1.237 ! moko 14719: *)
! 14720: lt_prog_compiler_pic='-fPIC'
! 14721: ;;
! 14722: esac
1.128 moko 14723:
1.237 ! moko 14724: case $cc_basename in
! 14725: nvcc*) # Cuda Compiler Driver 2.2
! 14726: lt_prog_compiler_wl='-Xlinker '
! 14727: if test -n "$lt_prog_compiler_pic"; then
! 14728: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
! 14729: fi
! 14730: ;;
! 14731: esac
! 14732: else
! 14733: # PORTME Check for flag to pass linker flags through the system compiler.
! 14734: case $host_os in
! 14735: aix*)
! 14736: lt_prog_compiler_wl='-Wl,'
! 14737: if test ia64 = "$host_cpu"; then
! 14738: # AIX 5 now supports IA64 processor
! 14739: lt_prog_compiler_static='-Bstatic'
! 14740: else
! 14741: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
! 14742: fi
! 14743: ;;
1.128 moko 14744:
1.237 ! moko 14745: darwin* | rhapsody*)
! 14746: # PIC is the default on this platform
! 14747: # Common symbols not allowed in MH_DYLIB files
! 14748: lt_prog_compiler_pic='-fno-common'
! 14749: case $cc_basename in
! 14750: nagfor*)
! 14751: # NAG Fortran compiler
! 14752: lt_prog_compiler_wl='-Wl,-Wl,,'
! 14753: lt_prog_compiler_pic='-PIC'
! 14754: lt_prog_compiler_static='-Bstatic'
! 14755: ;;
! 14756: esac
! 14757: ;;
1.128 moko 14758:
1.237 ! moko 14759: mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
! 14760: # This hack is so that the source file can tell whether it is being
! 14761: # built for inclusion in a dll (and should export symbols for example).
! 14762: lt_prog_compiler_pic='-DDLL_EXPORT'
! 14763: case $host_os in
! 14764: os2*)
! 14765: lt_prog_compiler_static='$wl-static'
! 14766: ;;
! 14767: esac
! 14768: ;;
1.128 moko 14769:
1.237 ! moko 14770: hpux9* | hpux10* | hpux11*)
! 14771: lt_prog_compiler_wl='-Wl,'
! 14772: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 14773: # not for PA HP-UX.
! 14774: case $host_cpu in
! 14775: hppa*64*|ia64*)
! 14776: # +Z the default
! 14777: ;;
! 14778: *)
! 14779: lt_prog_compiler_pic='+Z'
! 14780: ;;
! 14781: esac
! 14782: # Is there a better lt_prog_compiler_static that works with the bundled CC?
! 14783: lt_prog_compiler_static='$wl-a ${wl}archive'
! 14784: ;;
1.128 moko 14785:
1.237 ! moko 14786: irix5* | irix6* | nonstopux*)
! 14787: lt_prog_compiler_wl='-Wl,'
! 14788: # PIC (with -KPIC) is the default.
! 14789: lt_prog_compiler_static='-non_shared'
! 14790: ;;
1.128 moko 14791:
1.237 ! moko 14792: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
! 14793: case $cc_basename in
! 14794: # old Intel for x86_64, which still supported -KPIC.
! 14795: ecc*)
! 14796: lt_prog_compiler_wl='-Wl,'
! 14797: lt_prog_compiler_pic='-KPIC'
! 14798: lt_prog_compiler_static='-static'
! 14799: ;;
! 14800: *flang* | ftn | f18* | f95*)
! 14801: # Flang compiler.
! 14802: lt_prog_compiler_wl='-Wl,'
! 14803: lt_prog_compiler_pic='-fPIC'
! 14804: lt_prog_compiler_static='-static'
! 14805: ;;
! 14806: # flang / f18. f95 an alias for gfortran or flang on Debian
! 14807: flang* | f18* | f95*)
! 14808: lt_prog_compiler_wl='-Wl,'
! 14809: lt_prog_compiler_pic='-fPIC'
! 14810: lt_prog_compiler_static='-static'
! 14811: ;;
! 14812: # icc used to be incompatible with GCC.
! 14813: # ICC 10 doesn't accept -KPIC any more.
! 14814: icc* | ifort*)
! 14815: lt_prog_compiler_wl='-Wl,'
! 14816: lt_prog_compiler_pic='-fPIC'
! 14817: lt_prog_compiler_static='-static'
! 14818: ;;
! 14819: # Lahey Fortran 8.1.
! 14820: lf95*)
! 14821: lt_prog_compiler_wl='-Wl,'
! 14822: lt_prog_compiler_pic='--shared'
! 14823: lt_prog_compiler_static='--static'
! 14824: ;;
! 14825: nagfor*)
! 14826: # NAG Fortran compiler
! 14827: lt_prog_compiler_wl='-Wl,-Wl,,'
! 14828: lt_prog_compiler_pic='-PIC'
! 14829: lt_prog_compiler_static='-Bstatic'
! 14830: ;;
! 14831: tcc*)
! 14832: # Fabrice Bellard et al's Tiny C Compiler
! 14833: lt_prog_compiler_wl='-Wl,'
! 14834: lt_prog_compiler_pic='-fPIC'
! 14835: lt_prog_compiler_static='-static'
! 14836: ;;
! 14837: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
! 14838: # Portland Group compilers (*not* the Pentium gcc compiler,
! 14839: # which looks to be a dead project)
! 14840: lt_prog_compiler_wl='-Wl,'
! 14841: lt_prog_compiler_pic='-fpic'
! 14842: lt_prog_compiler_static='-Bstatic'
! 14843: ;;
! 14844: ccc*)
! 14845: lt_prog_compiler_wl='-Wl,'
! 14846: # All Alpha code is PIC.
! 14847: lt_prog_compiler_static='-non_shared'
! 14848: ;;
! 14849: xl* | bgxl* | bgf* | mpixl*)
! 14850: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
! 14851: lt_prog_compiler_wl='-Wl,'
! 14852: lt_prog_compiler_pic='-qpic'
! 14853: lt_prog_compiler_static='-qstaticlink'
! 14854: ;;
! 14855: *)
! 14856: case `$CC -V 2>&1 | $SED 5q` in
! 14857: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
! 14858: # Sun Fortran 8.3 passes all unrecognized flags to the linker
! 14859: lt_prog_compiler_pic='-KPIC'
! 14860: lt_prog_compiler_static='-Bstatic'
! 14861: lt_prog_compiler_wl=''
! 14862: ;;
! 14863: *Sun\ F* | *Sun*Fortran*)
! 14864: lt_prog_compiler_pic='-KPIC'
! 14865: lt_prog_compiler_static='-Bstatic'
! 14866: lt_prog_compiler_wl='-Qoption ld '
! 14867: ;;
! 14868: *Sun\ C*)
! 14869: # Sun C 5.9
! 14870: lt_prog_compiler_pic='-KPIC'
! 14871: lt_prog_compiler_static='-Bstatic'
! 14872: lt_prog_compiler_wl='-Wl,'
! 14873: ;;
! 14874: *Intel*\ [CF]*Compiler*)
! 14875: lt_prog_compiler_wl='-Wl,'
! 14876: lt_prog_compiler_pic='-fPIC'
! 14877: lt_prog_compiler_static='-static'
! 14878: ;;
! 14879: *Portland\ Group*)
! 14880: lt_prog_compiler_wl='-Wl,'
! 14881: lt_prog_compiler_pic='-fpic'
! 14882: lt_prog_compiler_static='-Bstatic'
! 14883: ;;
! 14884: esac
! 14885: ;;
! 14886: esac
! 14887: ;;
1.128 moko 14888:
1.237 ! moko 14889: newsos6)
! 14890: lt_prog_compiler_pic='-KPIC'
! 14891: lt_prog_compiler_static='-Bstatic'
! 14892: ;;
1.128 moko 14893:
1.237 ! moko 14894: *-mlibc)
! 14895: lt_prog_compiler_wl='-Wl,'
! 14896: lt_prog_compiler_pic='-fPIC'
! 14897: lt_prog_compiler_static='-static'
! 14898: ;;
1.128 moko 14899:
1.237 ! moko 14900: *nto* | *qnx*)
! 14901: # QNX uses GNU C++, but need to define -shared option too, otherwise
! 14902: # it will coredump.
! 14903: lt_prog_compiler_pic='-fPIC -shared'
! 14904: ;;
1.128 moko 14905:
1.237 ! moko 14906: osf3* | osf4* | osf5*)
! 14907: lt_prog_compiler_wl='-Wl,'
! 14908: # All OSF/1 code is PIC.
! 14909: lt_prog_compiler_static='-non_shared'
! 14910: ;;
1.128 moko 14911:
1.237 ! moko 14912: rdos*)
! 14913: lt_prog_compiler_static='-non_shared'
! 14914: ;;
1.128 moko 14915:
1.237 ! moko 14916: serenity*)
! 14917: ;;
! 14918:
! 14919: solaris*)
! 14920: lt_prog_compiler_pic='-KPIC'
! 14921: lt_prog_compiler_static='-Bstatic'
! 14922: case $cc_basename in
! 14923: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
! 14924: lt_prog_compiler_wl='-Qoption ld ';;
! 14925: *)
! 14926: lt_prog_compiler_wl='-Wl,';;
! 14927: esac
! 14928: ;;
! 14929:
! 14930: sunos4*)
! 14931: lt_prog_compiler_wl='-Qoption ld '
! 14932: lt_prog_compiler_pic='-PIC'
! 14933: lt_prog_compiler_static='-Bstatic'
! 14934: ;;
! 14935:
! 14936: sysv4 | sysv4.2uw2* | sysv4.3*)
! 14937: lt_prog_compiler_wl='-Wl,'
! 14938: lt_prog_compiler_pic='-KPIC'
! 14939: lt_prog_compiler_static='-Bstatic'
! 14940: ;;
! 14941:
! 14942: sysv4*MP*)
! 14943: if test -d /usr/nec; then
! 14944: lt_prog_compiler_pic='-Kconform_pic'
! 14945: lt_prog_compiler_static='-Bstatic'
! 14946: fi
! 14947: ;;
! 14948:
! 14949: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 14950: lt_prog_compiler_wl='-Wl,'
! 14951: lt_prog_compiler_pic='-KPIC'
! 14952: lt_prog_compiler_static='-Bstatic'
! 14953: ;;
! 14954:
! 14955: unicos*)
! 14956: lt_prog_compiler_wl='-Wl,'
! 14957: lt_prog_compiler_can_build_shared=no
! 14958: ;;
! 14959:
! 14960: uts4*)
! 14961: lt_prog_compiler_pic='-pic'
! 14962: lt_prog_compiler_static='-Bstatic'
! 14963: ;;
! 14964:
! 14965: *)
! 14966: lt_prog_compiler_can_build_shared=no
! 14967: ;;
! 14968: esac
! 14969: fi
! 14970:
! 14971: case $host_os in
! 14972: # For platforms that do not support PIC, -DPIC is meaningless:
! 14973: *djgpp*)
! 14974: lt_prog_compiler_pic=
! 14975: ;;
! 14976: *)
! 14977: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
! 14978: ;;
! 14979: esac
! 14980:
! 14981: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
! 14982: printf %s "checking for $compiler option to produce PIC... " >&6; }
! 14983: if test ${lt_cv_prog_compiler_pic+y}
! 14984: then :
! 14985: printf %s "(cached) " >&6
! 14986: else case e in #(
! 14987: e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
! 14988: esac
! 14989: fi
! 14990: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
! 14991: printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
! 14992: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
! 14993:
! 14994: #
! 14995: # Check to make sure the PIC flag actually works.
! 14996: #
! 14997: if test -n "$lt_prog_compiler_pic"; then
! 14998: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 14999: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
! 15000: if test ${lt_cv_prog_compiler_pic_works+y}
! 15001: then :
! 15002: printf %s "(cached) " >&6
! 15003: else case e in #(
! 15004: e) lt_cv_prog_compiler_pic_works=no
! 15005: ac_outfile=conftest.$ac_objext
! 15006: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 15007: lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
! 15008: # Insert the option either (1) after the last *FLAGS variable, or
! 15009: # (2) before a word containing "conftest.", or (3) at the end.
! 15010: # Note that $ac_compile itself does not contain backslashes and begins
! 15011: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 15012: # The option is referenced via a variable to avoid confusing sed.
! 15013: lt_compile=`echo "$ac_compile" | $SED \
! 15014: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 15015: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 15016: -e 's:$: $lt_compiler_flag:'`
! 15017: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
! 15018: (eval "$lt_compile" 2>conftest.err)
! 15019: ac_status=$?
! 15020: cat conftest.err >&5
! 15021: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15022: if (exit $ac_status) && test -s "$ac_outfile"; then
! 15023: # The compiler can only warn and ignore the option if not recognized
! 15024: # So say no if there are warnings other than the usual output.
! 15025: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
! 15026: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 15027: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
! 15028: lt_cv_prog_compiler_pic_works=yes
! 15029: fi
! 15030: fi
! 15031: $RM conftest*
! 15032: ;;
! 15033: esac
! 15034: fi
! 15035: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
! 15036: printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
! 15037:
! 15038: if test yes = "$lt_cv_prog_compiler_pic_works"; then
! 15039: case $lt_prog_compiler_pic in
! 15040: "" | " "*) ;;
! 15041: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
! 15042: esac
! 15043: else
! 15044: lt_prog_compiler_pic=
! 15045: lt_prog_compiler_can_build_shared=no
! 15046: fi
! 15047:
! 15048: fi
! 15049:
! 15050:
! 15051:
! 15052:
! 15053:
! 15054: #
! 15055: # Check to make sure the static flag actually works.
! 15056: #
! 15057: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
! 15058: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 15059: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
! 15060: if test ${lt_cv_prog_compiler_static_works+y}
! 15061: then :
! 15062: printf %s "(cached) " >&6
! 15063: else case e in #(
! 15064: e) lt_cv_prog_compiler_static_works=no
! 15065: save_LDFLAGS=$LDFLAGS
! 15066: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 15067: echo "$lt_simple_link_test_code" > conftest.$ac_ext
! 15068: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 15069: # The linker can only warn and ignore the option if not recognized
! 15070: # So say no if there are warnings
! 15071: if test -s conftest.err; then
! 15072: # Append any errors to the config.log.
! 15073: cat conftest.err 1>&5
! 15074: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
! 15075: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 15076: if diff conftest.exp conftest.er2 >/dev/null; then
! 15077: lt_cv_prog_compiler_static_works=yes
! 15078: fi
! 15079: else
! 15080: lt_cv_prog_compiler_static_works=yes
! 15081: fi
! 15082: fi
! 15083: $RM -r conftest*
! 15084: LDFLAGS=$save_LDFLAGS
! 15085: ;;
! 15086: esac
! 15087: fi
! 15088: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
! 15089: printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
! 15090:
! 15091: if test yes = "$lt_cv_prog_compiler_static_works"; then
! 15092: :
! 15093: else
! 15094: lt_prog_compiler_static=
! 15095: fi
! 15096:
! 15097:
! 15098:
! 15099: ='-fPIC'
! 15100: archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
! 15101: 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'
! 15102: archive_cmds_need_lc=no
! 15103: no_undefined_flag=
! 15104: ;;
! 15105:
! 15106: *)
! 15107: dynamic_linker=no
! 15108: ;;
! 15109: esac
! 15110: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
! 15111: printf "%s\n" "$dynamic_linker" >&6; }
! 15112: test no = "$dynamic_linker" && can_build_shared=no
! 15113:
! 15114: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 15115: if test yes = "$GCC"; then
! 15116: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 15117: fi
! 15118:
! 15119: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
! 15120: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
! 15121: fi
! 15122:
! 15123: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
! 15124: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
! 15125: fi
! 15126:
! 15127: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
! 15128: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
! 15129:
! 15130: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
! 15131: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
! 15132:
! 15133: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
! 15134: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
1.128 moko 15135:
15136:
15137:
15138:
15139:
15140:
15141:
15142:
15143:
15144:
15145:
15146:
15147:
15148:
15149:
15150:
15151:
15152:
15153:
15154:
15155:
15156:
15157:
15158:
15159:
15160:
15161:
15162:
15163:
15164:
15165:
15166:
15167:
15168:
15169:
15170:
15171:
15172:
15173:
15174:
15175:
15176:
15177:
15178:
15179:
15180:
15181:
15182:
15183:
15184:
15185:
15186:
15187:
15188:
15189:
15190:
15191:
15192:
15193:
15194:
15195:
15196:
15197:
15198:
15199:
15200:
15201:
15202:
1.237 ! moko 15203:
! 15204:
! 15205:
! 15206:
! 15207:
! 15208:
! 15209:
! 15210:
! 15211:
! 15212:
! 15213:
! 15214:
! 15215:
! 15216:
! 15217:
! 15218:
! 15219:
! 15220:
! 15221:
! 15222:
! 15223:
! 15224:
! 15225:
! 15226:
! 15227:
! 15228:
! 15229:
! 15230:
! 15231:
! 15232: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
! 15233: printf %s "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 15234: hardcode_action=
15235: if test -n "$hardcode_libdir_flag_spec" ||
15236: test -n "$runpath_var" ||
1.237 ! moko 15237: test yes = "$hardcode_automatic"; then
1.128 moko 15238:
15239: # We can hardcode non-existent directories.
1.237 ! moko 15240: if test no != "$hardcode_direct" &&
1.128 moko 15241: # If the only mechanism to avoid hardcoding is shlibpath_var, we
15242: # have to relink, otherwise we might link with an installed library
15243: # when we should be linking with a yet-to-be-installed one
1.237 ! moko 15244: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
! 15245: test no != "$hardcode_minus_L"; then
1.128 moko 15246: # Linking always hardcodes the temporary library directory.
15247: hardcode_action=relink
15248: else
15249: # We can link without hardcoding, and we can hardcode nonexisting dirs.
15250: hardcode_action=immediate
15251: fi
15252: else
15253: # We cannot hardcode anything, or else we can only hardcode existing
15254: # directories.
15255: hardcode_action=unsupported
15256: fi
1.237 ! moko 15257: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
! 15258: printf "%s\n" "$hardcode_action" >&6; }
1.128 moko 15259:
1.237 ! moko 15260: if test relink = "$hardcode_action" ||
! 15261: test yes = "$inherit_rpath"; then
1.128 moko 15262: # Fast installation is not supported
15263: enable_fast_install=no
1.237 ! moko 15264: elif test yes = "$shlibpath_overrides_runpath" ||
! 15265: test no = "$enable_shared"; then
1.128 moko 15266: # Fast installation is not necessary
15267: enable_fast_install=needless
15268: fi
15269:
15270:
15271:
15272:
15273:
15274:
1.237 ! moko 15275: if test yes != "$enable_dlopen"; then
1.128 moko 15276: enable_dlopen=unknown
15277: enable_dlopen_self=unknown
15278: enable_dlopen_self_static=unknown
15279: else
15280: lt_cv_dlopen=no
15281: lt_cv_dlopen_libs=
15282:
15283: case $host_os in
15284: beos*)
1.237 ! moko 15285: lt_cv_dlopen=load_add_on
1.128 moko 15286: lt_cv_dlopen_libs=
15287: lt_cv_dlopen_self=yes
15288: ;;
15289:
1.237 ! moko 15290: mingw* | windows* | pw32* | cegcc*)
! 15291: lt_cv_dlopen=LoadLibrary
1.128 moko 15292: lt_cv_dlopen_libs=
15293: ;;
15294:
15295: cygwin*)
1.237 ! moko 15296: lt_cv_dlopen=dlopen
1.128 moko 15297: lt_cv_dlopen_libs=
15298: ;;
15299:
15300: darwin*)
1.237 ! moko 15301: # if libdl is installed we need to link against it
! 15302: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
! 15303: printf %s "checking for dlopen in -ldl... " >&6; }
! 15304: if test ${ac_cv_lib_dl_dlopen+y}
! 15305: then :
! 15306: printf %s "(cached) " >&6
! 15307: else case e in #(
! 15308: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15309: LIBS="-ldl $LIBS"
1.150 moko 15310: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15311: /* end confdefs.h. */
15312:
1.150 moko 15313: /* Override any GCC internal prototype to avoid an error.
15314: Use char because int might match the return type of a GCC
1.237 ! moko 15315: builtin and then its argument prototype would still apply.
! 15316: The 'extern "C"' is for builds by C++ compilers;
! 15317: although this is not generally supported in C code supporting it here
! 15318: has little cost and some practical benefit (sr 110532). */
1.128 moko 15319: #ifdef __cplusplus
15320: extern "C"
15321: #endif
1.237 ! moko 15322: char dlopen (void);
1.128 moko 15323: int
1.237 ! moko 15324: main (void)
1.128 moko 15325: {
1.150 moko 15326: return dlopen ();
1.128 moko 15327: ;
15328: return 0;
15329: }
15330: _ACEOF
1.237 ! moko 15331: if ac_fn_c_try_link "$LINENO"
! 15332: then :
1.128 moko 15333: ac_cv_lib_dl_dlopen=yes
1.237 ! moko 15334: else case e in #(
! 15335: e) ac_cv_lib_dl_dlopen=no ;;
! 15336: esac
1.128 moko 15337: fi
1.237 ! moko 15338: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15339: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 15340: LIBS=$ac_check_lib_save_LIBS ;;
! 15341: esac
1.128 moko 15342: fi
1.237 ! moko 15343: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 15344: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
! 15345: if test "x$ac_cv_lib_dl_dlopen" = xyes
! 15346: then :
! 15347: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
! 15348: else case e in #(
! 15349: e)
! 15350: lt_cv_dlopen=dyld
1.128 moko 15351: lt_cv_dlopen_libs=
15352: lt_cv_dlopen_self=yes
1.237 ! moko 15353: ;;
! 15354: esac
! 15355: fi
1.128 moko 15356:
1.237 ! moko 15357: ;;
1.128 moko 15358:
1.237 ! moko 15359: tpf*)
! 15360: # Don't try to run any link tests for TPF. We know it's impossible
! 15361: # because TPF is a cross-compiler, and we know how we open DSOs.
! 15362: lt_cv_dlopen=dlopen
! 15363: lt_cv_dlopen_libs=
! 15364: lt_cv_dlopen_self=no
1.128 moko 15365: ;;
15366:
15367: *)
1.150 moko 15368: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.237 ! moko 15369: if test "x$ac_cv_func_shl_load" = xyes
! 15370: then :
! 15371: lt_cv_dlopen=shl_load
! 15372: else case e in #(
! 15373: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
! 15374: printf %s "checking for shl_load in -ldld... " >&6; }
! 15375: if test ${ac_cv_lib_dld_shl_load+y}
! 15376: then :
! 15377: printf %s "(cached) " >&6
! 15378: else case e in #(
! 15379: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15380: LIBS="-ldld $LIBS"
1.150 moko 15381: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15382: /* end confdefs.h. */
15383:
1.150 moko 15384: /* Override any GCC internal prototype to avoid an error.
15385: Use char because int might match the return type of a GCC
1.237 ! moko 15386: builtin and then its argument prototype would still apply.
! 15387: The 'extern "C"' is for builds by C++ compilers;
! 15388: although this is not generally supported in C code supporting it here
! 15389: has little cost and some practical benefit (sr 110532). */
1.128 moko 15390: #ifdef __cplusplus
15391: extern "C"
15392: #endif
1.237 ! moko 15393: char shl_load (void);
1.128 moko 15394: int
1.237 ! moko 15395: main (void)
1.128 moko 15396: {
1.150 moko 15397: return shl_load ();
1.128 moko 15398: ;
15399: return 0;
15400: }
15401: _ACEOF
1.237 ! moko 15402: if ac_fn_c_try_link "$LINENO"
! 15403: then :
1.128 moko 15404: ac_cv_lib_dld_shl_load=yes
1.237 ! moko 15405: else case e in #(
! 15406: e) ac_cv_lib_dld_shl_load=no ;;
! 15407: esac
1.128 moko 15408: fi
1.237 ! moko 15409: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15410: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 15411: LIBS=$ac_check_lib_save_LIBS ;;
! 15412: esac
1.128 moko 15413: fi
1.237 ! moko 15414: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
! 15415: printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
! 15416: if test "x$ac_cv_lib_dld_shl_load" = xyes
! 15417: then :
! 15418: lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
! 15419: else case e in #(
! 15420: e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
! 15421: if test "x$ac_cv_func_dlopen" = xyes
! 15422: then :
! 15423: lt_cv_dlopen=dlopen
! 15424: else case e in #(
! 15425: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
! 15426: printf %s "checking for dlopen in -ldl... " >&6; }
! 15427: if test ${ac_cv_lib_dl_dlopen+y}
! 15428: then :
! 15429: printf %s "(cached) " >&6
! 15430: else case e in #(
! 15431: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15432: LIBS="-ldl $LIBS"
1.150 moko 15433: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15434: /* end confdefs.h. */
15435:
1.150 moko 15436: /* Override any GCC internal prototype to avoid an error.
15437: Use char because int might match the return type of a GCC
1.237 ! moko 15438: builtin and then its argument prototype would still apply.
! 15439: The 'extern "C"' is for builds by C++ compilers;
! 15440: although this is not generally supported in C code supporting it here
! 15441: has little cost and some practical benefit (sr 110532). */
1.128 moko 15442: #ifdef __cplusplus
15443: extern "C"
15444: #endif
1.237 ! moko 15445: char dlopen (void);
1.128 moko 15446: int
1.237 ! moko 15447: main (void)
1.128 moko 15448: {
1.150 moko 15449: return dlopen ();
1.128 moko 15450: ;
15451: return 0;
15452: }
15453: _ACEOF
1.237 ! moko 15454: if ac_fn_c_try_link "$LINENO"
! 15455: then :
1.128 moko 15456: ac_cv_lib_dl_dlopen=yes
1.237 ! moko 15457: else case e in #(
! 15458: e) ac_cv_lib_dl_dlopen=no ;;
! 15459: esac
1.128 moko 15460: fi
1.237 ! moko 15461: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15462: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 15463: LIBS=$ac_check_lib_save_LIBS ;;
! 15464: esac
1.128 moko 15465: fi
1.237 ! moko 15466: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
! 15467: printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
! 15468: if test "x$ac_cv_lib_dl_dlopen" = xyes
! 15469: then :
! 15470: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
! 15471: else case e in #(
! 15472: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
! 15473: printf %s "checking for dlopen in -lsvld... " >&6; }
! 15474: if test ${ac_cv_lib_svld_dlopen+y}
! 15475: then :
! 15476: printf %s "(cached) " >&6
! 15477: else case e in #(
! 15478: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15479: LIBS="-lsvld $LIBS"
1.150 moko 15480: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15481: /* end confdefs.h. */
15482:
1.150 moko 15483: /* Override any GCC internal prototype to avoid an error.
15484: Use char because int might match the return type of a GCC
1.237 ! moko 15485: builtin and then its argument prototype would still apply.
! 15486: The 'extern "C"' is for builds by C++ compilers;
! 15487: although this is not generally supported in C code supporting it here
! 15488: has little cost and some practical benefit (sr 110532). */
1.128 moko 15489: #ifdef __cplusplus
15490: extern "C"
15491: #endif
1.237 ! moko 15492: char dlopen (void);
1.128 moko 15493: int
1.237 ! moko 15494: main (void)
1.128 moko 15495: {
1.150 moko 15496: return dlopen ();
1.128 moko 15497: ;
15498: return 0;
15499: }
15500: _ACEOF
1.237 ! moko 15501: if ac_fn_c_try_link "$LINENO"
! 15502: then :
1.128 moko 15503: ac_cv_lib_svld_dlopen=yes
1.237 ! moko 15504: else case e in #(
! 15505: e) ac_cv_lib_svld_dlopen=no ;;
! 15506: esac
1.128 moko 15507: fi
1.237 ! moko 15508: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15509: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 15510: LIBS=$ac_check_lib_save_LIBS ;;
! 15511: esac
1.128 moko 15512: fi
1.237 ! moko 15513: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
! 15514: printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
! 15515: if test "x$ac_cv_lib_svld_dlopen" = xyes
! 15516: then :
! 15517: lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
! 15518: else case e in #(
! 15519: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
! 15520: printf %s "checking for dld_link in -ldld... " >&6; }
! 15521: if test ${ac_cv_lib_dld_dld_link+y}
! 15522: then :
! 15523: printf %s "(cached) " >&6
! 15524: else case e in #(
! 15525: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 15526: LIBS="-ldld $LIBS"
1.150 moko 15527: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15528: /* end confdefs.h. */
15529:
1.150 moko 15530: /* Override any GCC internal prototype to avoid an error.
15531: Use char because int might match the return type of a GCC
1.237 ! moko 15532: builtin and then its argument prototype would still apply.
! 15533: The 'extern "C"' is for builds by C++ compilers;
! 15534: although this is not generally supported in C code supporting it here
! 15535: has little cost and some practical benefit (sr 110532). */
1.128 moko 15536: #ifdef __cplusplus
15537: extern "C"
15538: #endif
1.237 ! moko 15539: char dld_link (void);
1.128 moko 15540: int
1.237 ! moko 15541: main (void)
1.128 moko 15542: {
1.150 moko 15543: return dld_link ();
1.128 moko 15544: ;
15545: return 0;
15546: }
15547: _ACEOF
1.237 ! moko 15548: if ac_fn_c_try_link "$LINENO"
! 15549: then :
1.128 moko 15550: ac_cv_lib_dld_dld_link=yes
1.237 ! moko 15551: else case e in #(
! 15552: e) ac_cv_lib_dld_dld_link=no ;;
! 15553: esac
1.150 moko 15554: fi
1.237 ! moko 15555: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 15556: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 15557: LIBS=$ac_check_lib_save_LIBS ;;
! 15558: esac
1.128 moko 15559: fi
1.237 ! moko 15560: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
! 15561: printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
! 15562: if test "x$ac_cv_lib_dld_dld_link" = xyes
! 15563: then :
! 15564: lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1.128 moko 15565: fi
15566:
1.237 ! moko 15567: ;;
! 15568: esac
1.128 moko 15569: fi
15570:
1.237 ! moko 15571: ;;
! 15572: esac
1.128 moko 15573: fi
15574:
1.237 ! moko 15575: ;;
! 15576: esac
1.128 moko 15577: fi
15578:
1.237 ! moko 15579: ;;
! 15580: esac
1.128 moko 15581: fi
15582:
1.237 ! moko 15583: ;;
! 15584: esac
1.128 moko 15585: fi
15586:
15587: ;;
15588: esac
15589:
1.237 ! moko 15590: if test no = "$lt_cv_dlopen"; then
! 15591: enable_dlopen=no
! 15592: else
1.128 moko 15593: enable_dlopen=yes
15594: fi
15595:
15596: case $lt_cv_dlopen in
15597: dlopen)
1.237 ! moko 15598: save_CPPFLAGS=$CPPFLAGS
! 15599: test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.128 moko 15600:
1.237 ! moko 15601: save_LDFLAGS=$LDFLAGS
1.128 moko 15602: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15603:
1.237 ! moko 15604: save_LIBS=$LIBS
1.128 moko 15605: LIBS="$lt_cv_dlopen_libs $LIBS"
15606:
1.237 ! moko 15607: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
! 15608: printf %s "checking whether a program can dlopen itself... " >&6; }
! 15609: if test ${lt_cv_dlopen_self+y}
! 15610: then :
! 15611: printf %s "(cached) " >&6
! 15612: else case e in #(
! 15613: e) if test yes = "$cross_compiling"; then :
1.128 moko 15614: lt_cv_dlopen_self=cross
15615: else
15616: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15617: lt_status=$lt_dlunknown
15618: cat > conftest.$ac_ext <<_LT_EOF
15619: #line $LINENO "configure"
15620: #include "confdefs.h"
15621:
15622: #if HAVE_DLFCN_H
15623: #include <dlfcn.h>
15624: #endif
15625:
15626: #include <stdio.h>
15627:
15628: #ifdef RTLD_GLOBAL
15629: # define LT_DLGLOBAL RTLD_GLOBAL
15630: #else
15631: # ifdef DL_GLOBAL
15632: # define LT_DLGLOBAL DL_GLOBAL
15633: # else
15634: # define LT_DLGLOBAL 0
15635: # endif
15636: #endif
15637:
15638: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15639: find out it does not work in some platform. */
15640: #ifndef LT_DLLAZY_OR_NOW
15641: # ifdef RTLD_LAZY
15642: # define LT_DLLAZY_OR_NOW RTLD_LAZY
15643: # else
15644: # ifdef DL_LAZY
15645: # define LT_DLLAZY_OR_NOW DL_LAZY
15646: # else
15647: # ifdef RTLD_NOW
15648: # define LT_DLLAZY_OR_NOW RTLD_NOW
15649: # else
15650: # ifdef DL_NOW
15651: # define LT_DLLAZY_OR_NOW DL_NOW
15652: # else
15653: # define LT_DLLAZY_OR_NOW 0
15654: # endif
15655: # endif
15656: # endif
15657: # endif
15658: #endif
15659:
1.237 ! moko 15660: /* When -fvisibility=hidden is used, assume the code has been annotated
1.128 moko 15661: correspondingly for the symbols needed. */
1.237 ! moko 15662: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
! 15663: int fnord (void) __attribute__((visibility("default")));
1.128 moko 15664: #endif
15665:
1.237 ! moko 15666: int fnord (void) { return 42; }
! 15667: int main (void)
1.128 moko 15668: {
15669: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15670: int status = $lt_dlunknown;
15671:
15672: if (self)
15673: {
15674: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15675: else
15676: {
15677: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15678: else puts (dlerror ());
15679: }
15680: /* dlclose (self); */
15681: }
15682: else
15683: puts (dlerror ());
15684:
15685: return status;
15686: }
15687: _LT_EOF
1.150 moko 15688: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 15689: (eval $ac_link) 2>&5
15690: ac_status=$?
1.237 ! moko 15691: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 15692: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.128 moko 15693: (./conftest; exit; ) >&5 2>/dev/null
15694: lt_status=$?
15695: case x$lt_status in
15696: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15697: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15698: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15699: esac
15700: else :
15701: # compilation failed
15702: lt_cv_dlopen_self=no
15703: fi
15704: fi
15705: rm -fr conftest*
15706:
1.237 ! moko 15707: ;;
! 15708: esac
1.128 moko 15709: fi
1.237 ! moko 15710: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
! 15711: printf "%s\n" "$lt_cv_dlopen_self" >&6; }
1.128 moko 15712:
1.237 ! moko 15713: if test yes = "$lt_cv_dlopen_self"; then
1.128 moko 15714: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1.237 ! moko 15715: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
! 15716: printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
! 15717: if test ${lt_cv_dlopen_self_static+y}
! 15718: then :
! 15719: printf %s "(cached) " >&6
! 15720: else case e in #(
! 15721: e) if test yes = "$cross_compiling"; then :
1.128 moko 15722: lt_cv_dlopen_self_static=cross
15723: else
15724: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15725: lt_status=$lt_dlunknown
15726: cat > conftest.$ac_ext <<_LT_EOF
15727: #line $LINENO "configure"
15728: #include "confdefs.h"
15729:
15730: #if HAVE_DLFCN_H
15731: #include <dlfcn.h>
15732: #endif
15733:
15734: #include <stdio.h>
15735:
15736: #ifdef RTLD_GLOBAL
15737: # define LT_DLGLOBAL RTLD_GLOBAL
15738: #else
15739: # ifdef DL_GLOBAL
15740: # define LT_DLGLOBAL DL_GLOBAL
15741: # else
15742: # define LT_DLGLOBAL 0
15743: # endif
15744: #endif
15745:
15746: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15747: find out it does not work in some platform. */
15748: #ifndef LT_DLLAZY_OR_NOW
15749: # ifdef RTLD_LAZY
15750: # define LT_DLLAZY_OR_NOW RTLD_LAZY
15751: # else
15752: # ifdef DL_LAZY
15753: # define LT_DLLAZY_OR_NOW DL_LAZY
15754: # else
15755: # ifdef RTLD_NOW
15756: # define LT_DLLAZY_OR_NOW RTLD_NOW
15757: # else
15758: # ifdef DL_NOW
15759: # define LT_DLLAZY_OR_NOW DL_NOW
15760: # else
15761: # define LT_DLLAZY_OR_NOW 0
15762: # endif
15763: # endif
15764: # endif
15765: # endif
15766: #endif
15767:
1.237 ! moko 15768: /* When -fvisibility=hidden is used, assume the code has been annotated
1.128 moko 15769: correspondingly for the symbols needed. */
1.237 ! moko 15770: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
! 15771: int fnord (void) __attribute__((visibility("default")));
1.128 moko 15772: #endif
15773:
1.237 ! moko 15774: int fnord (void) { return 42; }
! 15775: int main (void)
1.128 moko 15776: {
15777: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15778: int status = $lt_dlunknown;
15779:
15780: if (self)
15781: {
15782: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15783: else
15784: {
15785: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15786: else puts (dlerror ());
15787: }
15788: /* dlclose (self); */
15789: }
15790: else
15791: puts (dlerror ());
15792:
15793: return status;
15794: }
15795: _LT_EOF
1.150 moko 15796: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 15797: (eval $ac_link) 2>&5
15798: ac_status=$?
1.237 ! moko 15799: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 15800: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1.128 moko 15801: (./conftest; exit; ) >&5 2>/dev/null
15802: lt_status=$?
15803: case x$lt_status in
15804: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15805: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15806: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15807: esac
15808: else :
15809: # compilation failed
15810: lt_cv_dlopen_self_static=no
15811: fi
15812: fi
15813: rm -fr conftest*
15814:
1.237 ! moko 15815: ;;
! 15816: esac
1.128 moko 15817: fi
1.237 ! moko 15818: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
! 15819: printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
1.128 moko 15820: fi
15821:
1.237 ! moko 15822: CPPFLAGS=$save_CPPFLAGS
! 15823: LDFLAGS=$save_LDFLAGS
! 15824: LIBS=$save_LIBS
1.128 moko 15825: ;;
15826: esac
15827:
15828: case $lt_cv_dlopen_self in
15829: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15830: *) enable_dlopen_self=unknown ;;
15831: esac
15832:
15833: case $lt_cv_dlopen_self_static in
15834: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15835: *) enable_dlopen_self_static=unknown ;;
15836: esac
15837: fi
15838:
15839:
15840:
15841:
15842:
15843:
15844:
15845:
15846:
15847:
15848:
15849:
15850:
15851:
15852:
15853:
15854:
15855: striplib=
15856: old_striplib=
1.237 ! moko 15857: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
! 15858: printf %s "checking whether stripping libraries is possible... " >&6; }
! 15859: if test -z "$STRIP"; then
! 15860: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 15861: printf "%s\n" "no" >&6; }
! 15862: else
! 15863: if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
! 15864: old_striplib="$STRIP --strip-debug"
! 15865: striplib="$STRIP --strip-unneeded"
! 15866: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 15867: printf "%s\n" "yes" >&6; }
! 15868: else
! 15869: case $host_os in
! 15870: darwin*)
! 15871: # FIXME - insert some real tests, host_os isn't really good enough
1.128 moko 15872: striplib="$STRIP -x"
15873: old_striplib="$STRIP -S"
1.237 ! moko 15874: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 15875: printf "%s\n" "yes" >&6; }
! 15876: ;;
! 15877: freebsd*)
! 15878: if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
! 15879: old_striplib="$STRIP --strip-debug"
! 15880: striplib="$STRIP --strip-unneeded"
! 15881: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 15882: printf "%s\n" "yes" >&6; }
! 15883: else
! 15884: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 15885: printf "%s\n" "no" >&6; }
! 15886: fi
! 15887: ;;
! 15888: *)
! 15889: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 15890: printf "%s\n" "no" >&6; }
! 15891: ;;
! 15892: esac
! 15893: fi
1.128 moko 15894: fi
15895:
15896:
15897:
15898:
15899:
15900:
15901:
15902:
15903:
15904:
15905:
15906:
1.237 ! moko 15907: # Report what library types will actually be built
! 15908: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
! 15909: printf %s "checking if libtool supports shared libraries... " >&6; }
! 15910: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
! 15911: printf "%s\n" "$can_build_shared" >&6; }
! 15912:
! 15913: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
! 15914: printf %s "checking whether to build shared libraries... " >&6; }
! 15915: test no = "$can_build_shared" && enable_shared=no
1.128 moko 15916:
15917: # On AIX, shared libraries and static libraries use the same namespace, and
15918: # are all built from PIC.
15919: case $host_os in
15920: aix3*)
1.237 ! moko 15921: test yes = "$enable_shared" && enable_static=no
1.128 moko 15922: if test -n "$RANLIB"; then
15923: archive_cmds="$archive_cmds~\$RANLIB \$lib"
15924: postinstall_cmds='$RANLIB $lib'
15925: fi
15926: ;;
15927:
15928: aix[4-9]*)
1.237 ! moko 15929: if test ia64 != "$host_cpu"; then
! 15930: case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
! 15931: yes,aix,yes) ;; # shared object as lib.so file only
! 15932: yes,svr4,*) ;; # shared object as lib.so archive member only
! 15933: yes,*) enable_static=no ;; # shared object in lib.a archive as well
! 15934: esac
1.128 moko 15935: fi
15936: ;;
15937: esac
1.237 ! moko 15938: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
! 15939: printf "%s\n" "$enable_shared" >&6; }
1.128 moko 15940:
1.237 ! moko 15941: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
! 15942: printf %s "checking whether to build static libraries... " >&6; }
1.128 moko 15943: # Make sure either enable_shared or enable_static is yes.
1.237 ! moko 15944: test yes = "$enable_shared" || enable_static=yes
! 15945: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
! 15946: printf "%s\n" "$enable_static" >&6; }
1.128 moko 15947:
15948:
15949:
15950:
15951: fi
15952: ac_ext=c
15953: ac_cpp='$CPP $CPPFLAGS'
15954: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15955: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15956: ac_compiler_gnu=$ac_cv_c_compiler_gnu
15957:
1.237 ! moko 15958: CC=$lt_save_CC
1.128 moko 15959:
1.237 ! moko 15960: if test -n "$CXX" && ( test no != "$CXX" &&
! 15961: ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
! 15962: (test g++ != "$CXX"))); then
1.150 moko 15963: ac_ext=cpp
1.128 moko 15964: ac_cpp='$CXXCPP $CPPFLAGS'
15965: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15966: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15967: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.237 ! moko 15968: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
! 15969: printf %s "checking how to run the C++ preprocessor... " >&6; }
1.128 moko 15970: if test -z "$CXXCPP"; then
1.237 ! moko 15971: if test ${ac_cv_prog_CXXCPP+y}
! 15972: then :
! 15973: printf %s "(cached) " >&6
! 15974: else case e in #(
! 15975: e) # Double quotes because $CXX needs to be expanded
! 15976: for CXXCPP in "$CXX -E" cpp /lib/cpp
1.128 moko 15977: do
15978: ac_preproc_ok=false
15979: for ac_cxx_preproc_warn_flag in '' yes
15980: do
15981: # Use a header file that comes with gcc, so configuring glibc
15982: # with a fresh cross-compiler works.
15983: # On the NeXT, cc -E runs the code through the compiler's parser,
15984: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 15985: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 15986: /* end confdefs.h. */
1.237 ! moko 15987: #include <limits.h>
1.128 moko 15988: Syntax error
15989: _ACEOF
1.237 ! moko 15990: if ac_fn_cxx_try_cpp "$LINENO"
! 15991: then :
1.150 moko 15992:
1.237 ! moko 15993: else case e in #(
! 15994: e) # Broken: fails on valid input.
! 15995: continue ;;
! 15996: esac
1.128 moko 15997: fi
1.150 moko 15998: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 15999:
1.150 moko 16000: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 16001: # can be detected and how.
1.150 moko 16002: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16003: /* end confdefs.h. */
16004: #include <ac_nonexistent.h>
16005: _ACEOF
1.237 ! moko 16006: if ac_fn_cxx_try_cpp "$LINENO"
! 16007: then :
1.128 moko 16008: # Broken: success on invalid input.
16009: continue
1.237 ! moko 16010: else case e in #(
! 16011: e) # Passes both tests.
1.128 moko 16012: ac_preproc_ok=:
1.237 ! moko 16013: break ;;
! 16014: esac
1.128 moko 16015: fi
1.150 moko 16016: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16017:
16018: done
1.237 ! moko 16019: # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 16020: rm -f conftest.i conftest.err conftest.$ac_ext
1.237 ! moko 16021: if $ac_preproc_ok
! 16022: then :
1.128 moko 16023: break
16024: fi
16025:
16026: done
16027: ac_cv_prog_CXXCPP=$CXXCPP
1.237 ! moko 16028: ;;
! 16029: esac
1.128 moko 16030: fi
16031: CXXCPP=$ac_cv_prog_CXXCPP
16032: else
16033: ac_cv_prog_CXXCPP=$CXXCPP
16034: fi
1.237 ! moko 16035: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
! 16036: printf "%s\n" "$CXXCPP" >&6; }
1.128 moko 16037: ac_preproc_ok=false
16038: for ac_cxx_preproc_warn_flag in '' yes
16039: do
16040: # Use a header file that comes with gcc, so configuring glibc
16041: # with a fresh cross-compiler works.
16042: # On the NeXT, cc -E runs the code through the compiler's parser,
16043: # not just through cpp. "Syntax error" is here to catch this case.
1.150 moko 16044: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16045: /* end confdefs.h. */
1.237 ! moko 16046: #include <limits.h>
1.128 moko 16047: Syntax error
16048: _ACEOF
1.237 ! moko 16049: if ac_fn_cxx_try_cpp "$LINENO"
! 16050: then :
1.150 moko 16051:
1.237 ! moko 16052: else case e in #(
! 16053: e) # Broken: fails on valid input.
! 16054: continue ;;
! 16055: esac
1.128 moko 16056: fi
1.150 moko 16057: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16058:
1.150 moko 16059: # OK, works on sane cases. Now check whether nonexistent headers
1.128 moko 16060: # can be detected and how.
1.150 moko 16061: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16062: /* end confdefs.h. */
16063: #include <ac_nonexistent.h>
16064: _ACEOF
1.237 ! moko 16065: if ac_fn_cxx_try_cpp "$LINENO"
! 16066: then :
1.128 moko 16067: # Broken: success on invalid input.
16068: continue
1.237 ! moko 16069: else case e in #(
! 16070: e) # Passes both tests.
1.128 moko 16071: ac_preproc_ok=:
1.237 ! moko 16072: break ;;
! 16073: esac
1.128 moko 16074: fi
1.150 moko 16075: rm -f conftest.err conftest.i conftest.$ac_ext
1.128 moko 16076:
16077: done
1.237 ! moko 16078: # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.150 moko 16079: rm -f conftest.i conftest.err conftest.$ac_ext
1.237 ! moko 16080: if $ac_preproc_ok
! 16081: then :
1.150 moko 16082:
1.237 ! moko 16083: else case e in #(
! 16084: e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
! 16085: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.150 moko 16086: as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
1.237 ! moko 16087: See 'config.log' for more details" "$LINENO" 5; } ;;
! 16088: esac
1.128 moko 16089: fi
16090:
16091: ac_ext=c
16092: ac_cpp='$CPP $CPPFLAGS'
16093: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16094: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16095: ac_compiler_gnu=$ac_cv_c_compiler_gnu
16096:
16097: else
16098: _lt_caught_CXX_error=yes
16099: fi
16100:
1.150 moko 16101: ac_ext=cpp
1.128 moko 16102: ac_cpp='$CXXCPP $CPPFLAGS'
16103: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16104: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16105: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16106:
16107: archive_cmds_need_lc_CXX=no
16108: allow_undefined_flag_CXX=
16109: always_export_symbols_CXX=no
16110: archive_expsym_cmds_CXX=
16111: compiler_needs_object_CXX=no
16112: export_dynamic_flag_spec_CXX=
16113: hardcode_direct_CXX=no
16114: hardcode_direct_absolute_CXX=no
16115: hardcode_libdir_flag_spec_CXX=
16116: hardcode_libdir_separator_CXX=
16117: hardcode_minus_L_CXX=no
16118: hardcode_shlibpath_var_CXX=unsupported
16119: hardcode_automatic_CXX=no
16120: inherit_rpath_CXX=no
16121: module_cmds_CXX=
16122: module_expsym_cmds_CXX=
16123: link_all_deplibs_CXX=unknown
16124: old_archive_cmds_CXX=$old_archive_cmds
16125: reload_flag_CXX=$reload_flag
16126: reload_cmds_CXX=$reload_cmds
16127: no_undefined_flag_CXX=
16128: whole_archive_flag_spec_CXX=
16129: enable_shared_with_static_runtimes_CXX=no
16130:
16131: # Source file extension for C++ test sources.
16132: ac_ext=cpp
16133:
16134: # Object file extension for compiled C++ test sources.
16135: objext=o
16136: objext_CXX=$objext
16137:
16138: # No sense in running all these tests if we already determined that
16139: # the CXX compiler isn't working. Some variables (like enable_shared)
16140: # are currently assumed to apply to all compilers on this platform,
16141: # and will be corrupted by setting them based on a non-working compiler.
1.237 ! moko 16142: if test yes != "$_lt_caught_CXX_error"; then
1.128 moko 16143: # Code to be used in simple compile tests
16144: lt_simple_compile_test_code="int some_variable = 0;"
16145:
16146: # Code to be used in simple link tests
16147: lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16148:
16149: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16150:
16151:
16152:
16153:
16154:
16155:
16156: # If no C compiler was specified, use CC.
16157: LTCC=${LTCC-"$CC"}
16158:
16159: # If no C compiler flags were specified, use CFLAGS.
16160: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16161:
16162: # Allow CC to be a program name with arguments.
16163: compiler=$CC
16164:
16165:
16166: # save warnings/boilerplate of simple test code
16167: ac_outfile=conftest.$ac_objext
16168: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16169: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16170: _lt_compiler_boilerplate=`cat conftest.err`
16171: $RM conftest*
16172:
16173: ac_outfile=conftest.$ac_objext
16174: echo "$lt_simple_link_test_code" >conftest.$ac_ext
16175: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16176: _lt_linker_boilerplate=`cat conftest.err`
16177: $RM -r conftest*
16178:
16179:
16180: # Allow CC to be a program name with arguments.
16181: lt_save_CC=$CC
16182: lt_save_CFLAGS=$CFLAGS
16183: lt_save_LD=$LD
16184: lt_save_GCC=$GCC
16185: GCC=$GXX
16186: lt_save_with_gnu_ld=$with_gnu_ld
16187: lt_save_path_LD=$lt_cv_path_LD
16188: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16189: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16190: else
16191: $as_unset lt_cv_prog_gnu_ld
16192: fi
16193: if test -n "${lt_cv_path_LDCXX+set}"; then
16194: lt_cv_path_LD=$lt_cv_path_LDCXX
16195: else
16196: $as_unset lt_cv_path_LD
16197: fi
16198: test -z "${LDCXX+set}" || LD=$LDCXX
16199: CC=${CXX-"c++"}
16200: CFLAGS=$CXXFLAGS
16201: compiler=$CC
16202: compiler_CXX=$CC
1.237 ! moko 16203: func_cc_basename $compiler
! 16204: cc_basename=$func_cc_basename_result
1.128 moko 16205:
16206:
16207: if test -n "$compiler"; then
16208: # We don't want -fno-exception when compiling C++ code, so set the
16209: # no_builtin_flag separately
1.237 ! moko 16210: if test yes = "$GXX"; then
1.128 moko 16211: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16212: else
16213: lt_prog_compiler_no_builtin_flag_CXX=
16214: fi
16215:
1.237 ! moko 16216: if test yes = "$GXX"; then
1.128 moko 16217: # Set up default GNU C++ configuration
16218:
16219:
16220:
1.150 moko 16221: # Check whether --with-gnu-ld was given.
1.237 ! moko 16222: if test ${with_gnu_ld+y}
! 16223: then :
! 16224: withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
! 16225: else case e in #(
! 16226: e) with_gnu_ld=no ;;
! 16227: esac
1.150 moko 16228: fi
16229:
1.128 moko 16230: ac_prog=ld
1.237 ! moko 16231: if test yes = "$GCC"; then
1.128 moko 16232: # Check if gcc -print-prog-name=ld gives a path.
1.237 ! moko 16233: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
! 16234: printf %s "checking for ld used by $CC... " >&6; }
1.128 moko 16235: case $host in
1.237 ! moko 16236: *-*-mingw* | *-*-windows*)
! 16237: # gcc leaves a trailing carriage return, which upsets mingw
1.128 moko 16238: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16239: *)
16240: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16241: esac
16242: case $ac_prog in
16243: # Accept absolute paths.
16244: [\\/]* | ?:[\\/]*)
16245: re_direlt='/[^/][^/]*/\.\./'
16246: # Canonicalize the pathname of ld
16247: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16248: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16249: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16250: done
1.237 ! moko 16251: test -z "$LD" && LD=$ac_prog
1.128 moko 16252: ;;
16253: "")
16254: # If it fails, then pretend we aren't using GCC.
16255: ac_prog=ld
16256: ;;
16257: *)
16258: # If it is relative, then search for the first ld in PATH.
16259: with_gnu_ld=unknown
16260: ;;
16261: esac
1.237 ! moko 16262: elif test yes = "$with_gnu_ld"; then
! 16263: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
! 16264: printf %s "checking for GNU ld... " >&6; }
! 16265: else
! 16266: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
! 16267: printf %s "checking for non-GNU ld... " >&6; }
! 16268: fi
! 16269: if test ${lt_cv_path_LD+y}
! 16270: then :
! 16271: printf %s "(cached) " >&6
! 16272: else case e in #(
! 16273: e) if test -z "$LD"; then
! 16274: lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
1.128 moko 16275: for ac_dir in $PATH; do
1.237 ! moko 16276: IFS=$lt_save_ifs
1.128 moko 16277: test -z "$ac_dir" && ac_dir=.
16278: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.237 ! moko 16279: lt_cv_path_LD=$ac_dir/$ac_prog
1.128 moko 16280: # Check to see if the program is GNU ld. I'd rather use --version,
16281: # but apparently some variants of GNU ld only accept -v.
16282: # Break only if it was the GNU/non-GNU ld that we prefer.
16283: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16284: *GNU* | *'with BFD'*)
1.237 ! moko 16285: test no != "$with_gnu_ld" && break
1.128 moko 16286: ;;
16287: *)
1.237 ! moko 16288: test yes != "$with_gnu_ld" && break
1.128 moko 16289: ;;
16290: esac
16291: fi
16292: done
1.237 ! moko 16293: IFS=$lt_save_ifs
1.128 moko 16294: else
1.237 ! moko 16295: lt_cv_path_LD=$LD # Let the user override the test with a path.
! 16296: fi ;;
! 16297: esac
1.128 moko 16298: fi
16299:
1.237 ! moko 16300: LD=$lt_cv_path_LD
1.128 moko 16301: if test -n "$LD"; then
1.237 ! moko 16302: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
! 16303: printf "%s\n" "$LD" >&6; }
1.128 moko 16304: else
1.237 ! moko 16305: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 16306: printf "%s\n" "no" >&6; }
1.128 moko 16307: fi
1.150 moko 16308: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1.237 ! moko 16309: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
! 16310: printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
! 16311: if test ${lt_cv_prog_gnu_ld+y}
! 16312: then :
! 16313: printf %s "(cached) " >&6
! 16314: else case e in #(
! 16315: e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.128 moko 16316: case `$LD -v 2>&1 </dev/null` in
16317: *GNU* | *'with BFD'*)
16318: lt_cv_prog_gnu_ld=yes
16319: ;;
16320: *)
16321: lt_cv_prog_gnu_ld=no
16322: ;;
1.237 ! moko 16323: esac ;;
1.128 moko 16324: esac
16325: fi
1.237 ! moko 16326: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
! 16327: printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
1.128 moko 16328: with_gnu_ld=$lt_cv_prog_gnu_ld
16329:
16330:
16331:
16332:
16333:
16334:
16335:
16336: # Check if GNU C++ uses GNU ld as the underlying linker, since the
16337: # archiving commands below assume that GNU ld is being used.
1.237 ! moko 16338: if test yes = "$with_gnu_ld"; then
! 16339: archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
! 16340: 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 16341:
1.237 ! moko 16342: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
! 16343: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1.128 moko 16344:
16345: # If archive_cmds runs LD, not CC, wlarc should be empty
16346: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16347: # investigate it a little bit more. (MM)
1.237 ! moko 16348: wlarc='$wl'
1.128 moko 16349:
16350: # ancient GNU ld didn't support --whole-archive et. al.
1.237 ! moko 16351: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
! 16352: whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.128 moko 16353: else
16354: whole_archive_flag_spec_CXX=
16355: fi
16356: else
16357: with_gnu_ld=no
16358: wlarc=
16359:
16360: # A generic and very simple default shared library creation
16361: # command for GNU C++ for the case where it uses the native
16362: # linker, instead of GNU ld. If possible, this setting should
16363: # overridden to take advantage of the native linker features on
16364: # the platform it is being used on.
16365: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16366: fi
16367:
16368: # Commands to make compiler produce verbose output that lists
16369: # what "hidden" libraries, object files and flags are used when
16370: # linking a shared library.
1.237 ! moko 16371: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 16372:
16373: else
16374: GXX=no
16375: with_gnu_ld=no
16376: wlarc=
16377: fi
16378:
16379: # PORTME: fill in a description of your system's C++ link characteristics
1.237 ! moko 16380: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 16381: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 16382: ld_shlibs_CXX=yes
16383: case $host_os in
16384: aix3*)
16385: # FIXME: insert proper C++ library support
16386: ld_shlibs_CXX=no
16387: ;;
16388: aix[4-9]*)
1.237 ! moko 16389: if test ia64 = "$host_cpu"; then
1.128 moko 16390: # On IA64, the linker does run time linking by default, so we don't
16391: # have to do anything special.
16392: aix_use_runtimelinking=no
16393: exp_sym_flag='-Bexport'
1.237 ! moko 16394: no_entry_flag=
1.128 moko 16395: else
16396: aix_use_runtimelinking=no
16397:
16398: # Test if we are trying to use run time linking or normal
16399: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.237 ! moko 16400: # have runtime linking enabled, and use it for executables.
! 16401: # For shared libraries, we enable/disable runtime linking
! 16402: # depending on the kind of the shared library created -
! 16403: # when "with_aix_soname,aix_use_runtimelinking" is:
! 16404: # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
! 16405: # "aix,yes" lib.so shared, rtl:yes, for executables
! 16406: # lib.a static archive
! 16407: # "both,no" lib.so.V(shr.o) shared, rtl:yes
! 16408: # lib.a(lib.so.V) shared, rtl:no, for executables
! 16409: # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
! 16410: # lib.a(lib.so.V) shared, rtl:no
! 16411: # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
! 16412: # lib.a static archive
1.128 moko 16413: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16414: for ld_flag in $LDFLAGS; do
16415: case $ld_flag in
16416: *-brtl*)
16417: aix_use_runtimelinking=yes
16418: break
16419: ;;
16420: esac
16421: done
1.237 ! moko 16422: if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
! 16423: # With aix-soname=svr4, we create the lib.so.V shared archives only,
! 16424: # so we don't have lib.a shared libs to link our executables.
! 16425: # We have to force runtime linking in this case.
! 16426: aix_use_runtimelinking=yes
! 16427: LDFLAGS="$LDFLAGS -Wl,-brtl"
! 16428: fi
1.128 moko 16429: ;;
16430: esac
16431:
16432: exp_sym_flag='-bexport'
16433: no_entry_flag='-bnoentry'
16434: fi
16435:
16436: # When large executables or shared objects are built, AIX ld can
16437: # have problems creating the table of contents. If linking a library
16438: # or program results in "error TOC overflow" add -mminimal-toc to
16439: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16440: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16441:
16442: archive_cmds_CXX=''
16443: hardcode_direct_CXX=yes
16444: hardcode_direct_absolute_CXX=yes
16445: hardcode_libdir_separator_CXX=':'
16446: link_all_deplibs_CXX=yes
1.237 ! moko 16447: file_list_spec_CXX='$wl-f,'
! 16448: case $with_aix_soname,$aix_use_runtimelinking in
! 16449: aix,*) ;; # no import file
! 16450: svr4,* | *,yes) # use import file
! 16451: # The Import File defines what to hardcode.
! 16452: hardcode_direct_CXX=no
! 16453: hardcode_direct_absolute_CXX=no
! 16454: ;;
! 16455: esac
1.128 moko 16456:
1.237 ! moko 16457: if test yes = "$GXX"; then
1.128 moko 16458: case $host_os in aix4.[012]|aix4.[012].*)
16459: # We only want to do this on AIX 4.2 and lower, the check
16460: # below for broken collect2 doesn't work under 4.3+
1.237 ! moko 16461: collect2name=`$CC -print-prog-name=collect2`
1.128 moko 16462: if test -f "$collect2name" &&
16463: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16464: then
16465: # We have reworked collect2
16466: :
16467: else
16468: # We have old collect2
16469: hardcode_direct_CXX=unsupported
16470: # It fails to find uninstalled libraries when the uninstalled
16471: # path is not listed in the libpath. Setting hardcode_minus_L
16472: # to unsupported forces relinking
16473: hardcode_minus_L_CXX=yes
16474: hardcode_libdir_flag_spec_CXX='-L$libdir'
16475: hardcode_libdir_separator_CXX=
16476: fi
16477: esac
16478: shared_flag='-shared'
1.237 ! moko 16479: if test yes = "$aix_use_runtimelinking"; then
! 16480: shared_flag=$shared_flag' $wl-G'
1.128 moko 16481: fi
1.237 ! moko 16482: # Need to ensure runtime linking is disabled for the traditional
! 16483: # shared library, or the linker may eventually find shared libraries
! 16484: # /with/ Import File - we do not want to mix them.
! 16485: shared_flag_aix='-shared'
! 16486: shared_flag_svr4='-shared $wl-G'
1.128 moko 16487: else
16488: # not using gcc
1.237 ! moko 16489: if test ia64 = "$host_cpu"; then
1.128 moko 16490: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16491: # chokes on -Wl,-G. The following line is correct:
16492: shared_flag='-G'
16493: else
1.237 ! moko 16494: if test yes = "$aix_use_runtimelinking"; then
! 16495: shared_flag='$wl-G'
1.128 moko 16496: else
1.237 ! moko 16497: shared_flag='$wl-bM:SRE'
1.128 moko 16498: fi
1.237 ! moko 16499: shared_flag_aix='$wl-bM:SRE'
! 16500: shared_flag_svr4='$wl-G'
1.128 moko 16501: fi
16502: fi
16503:
1.237 ! moko 16504: export_dynamic_flag_spec_CXX='$wl-bexpall'
1.128 moko 16505: # It seems that -bexpall does not export symbols beginning with
16506: # underscore (_), so it is better to generate a list of symbols to
16507: # export.
16508: always_export_symbols_CXX=yes
1.237 ! moko 16509: if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
1.128 moko 16510: # Warning - without using the other runtime loading flags (-brtl),
16511: # -berok will link without error, but may produce a broken library.
1.237 ! moko 16512: # The "-G" linker flag allows undefined symbols.
! 16513: no_undefined_flag_CXX='-bernotok'
1.128 moko 16514: # Determine the default libpath from the value encoded in an empty
16515: # executable.
1.237 ! moko 16516: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 16517: aix_libpath=$lt_cv_aix_libpath
16518: else
1.237 ! moko 16519: if test ${lt_cv_aix_libpath__CXX+y}
! 16520: then :
! 16521: printf %s "(cached) " >&6
! 16522: else case e in #(
! 16523: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16524: /* end confdefs.h. */
16525:
16526: int
1.237 ! moko 16527: main (void)
1.128 moko 16528: {
16529:
16530: ;
16531: return 0;
16532: }
16533: _ACEOF
1.237 ! moko 16534: if ac_fn_cxx_try_link "$LINENO"
! 16535: then :
1.128 moko 16536:
16537: lt_aix_libpath_sed='
16538: /Import File Strings/,/^$/ {
16539: /^0/ {
16540: s/^0 *\([^ ]*\) *$/\1/
16541: p
16542: }
16543: }'
16544: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16545: # Check for a 64-bit object if we didn't find anything.
16546: if test -z "$lt_cv_aix_libpath__CXX"; then
16547: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16548: fi
16549: fi
1.237 ! moko 16550: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 16551: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16552: if test -z "$lt_cv_aix_libpath__CXX"; then
1.237 ! moko 16553: lt_cv_aix_libpath__CXX=/usr/lib:/lib
1.128 moko 16554: fi
1.237 ! moko 16555: ;;
! 16556: esac
1.128 moko 16557: fi
16558:
16559: aix_libpath=$lt_cv_aix_libpath__CXX
16560: fi
16561:
1.237 ! moko 16562: hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
1.128 moko 16563:
1.237 ! moko 16564: 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 16565: else
1.237 ! moko 16566: if test ia64 = "$host_cpu"; then
! 16567: hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
1.128 moko 16568: allow_undefined_flag_CXX="-z nodefs"
1.237 ! moko 16569: 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 16570: else
16571: # Determine the default libpath from the value encoded in an
16572: # empty executable.
1.237 ! moko 16573: if test set = "${lt_cv_aix_libpath+set}"; then
1.128 moko 16574: aix_libpath=$lt_cv_aix_libpath
16575: else
1.237 ! moko 16576: if test ${lt_cv_aix_libpath__CXX+y}
! 16577: then :
! 16578: printf %s "(cached) " >&6
! 16579: else case e in #(
! 16580: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 16581: /* end confdefs.h. */
16582:
16583: int
1.237 ! moko 16584: main (void)
1.128 moko 16585: {
16586:
16587: ;
16588: return 0;
16589: }
16590: _ACEOF
1.237 ! moko 16591: if ac_fn_cxx_try_link "$LINENO"
! 16592: then :
1.128 moko 16593:
16594: lt_aix_libpath_sed='
16595: /Import File Strings/,/^$/ {
16596: /^0/ {
16597: s/^0 *\([^ ]*\) *$/\1/
16598: p
16599: }
16600: }'
16601: lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16602: # Check for a 64-bit object if we didn't find anything.
16603: if test -z "$lt_cv_aix_libpath__CXX"; then
16604: lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16605: fi
16606: fi
1.237 ! moko 16607: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 16608: conftest$ac_exeext conftest.$ac_ext
1.128 moko 16609: if test -z "$lt_cv_aix_libpath__CXX"; then
1.237 ! moko 16610: lt_cv_aix_libpath__CXX=/usr/lib:/lib
1.128 moko 16611: fi
1.237 ! moko 16612: ;;
! 16613: esac
1.128 moko 16614: fi
16615:
16616: aix_libpath=$lt_cv_aix_libpath__CXX
16617: fi
16618:
1.237 ! moko 16619: hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
1.128 moko 16620: # Warning - without using the other run time loading flags,
16621: # -berok will link without error, but may produce a broken library.
1.237 ! moko 16622: no_undefined_flag_CXX=' $wl-bernotok'
! 16623: allow_undefined_flag_CXX=' $wl-berok'
! 16624: if test yes = "$with_gnu_ld"; then
1.128 moko 16625: # We only use this code for GNU lds that support --whole-archive.
1.237 ! moko 16626: whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1.128 moko 16627: else
16628: # Exported symbols can be pulled into shared objects from archives
16629: whole_archive_flag_spec_CXX='$convenience'
16630: fi
16631: archive_cmds_need_lc_CXX=yes
1.237 ! moko 16632: archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
! 16633: # -brtl affects multiple linker settings, -berok does not and is overridden later
! 16634: compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
! 16635: if test svr4 != "$with_aix_soname"; then
! 16636: # This is similar to how AIX traditionally builds its shared
! 16637: # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
! 16638: 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'
! 16639: fi
! 16640: if test aix != "$with_aix_soname"; then
! 16641: 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'
! 16642: else
! 16643: # used by -dlpreopen to get the symbols
! 16644: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
! 16645: fi
! 16646: archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
1.128 moko 16647: fi
16648: fi
16649: ;;
16650:
16651: beos*)
16652: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16653: allow_undefined_flag_CXX=unsupported
16654: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16655: # support --undefined. This deserves some investigation. FIXME
1.237 ! moko 16656: archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
1.128 moko 16657: else
16658: ld_shlibs_CXX=no
16659: fi
16660: ;;
16661:
16662: chorus*)
16663: case $cc_basename in
16664: *)
16665: # FIXME: insert proper C++ library support
16666: ld_shlibs_CXX=no
16667: ;;
16668: esac
16669: ;;
16670:
1.237 ! moko 16671: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 16672: case $GXX,$cc_basename in
1.237 ! moko 16673: ,cl* | no,cl* | ,icl* | no,icl*)
! 16674: # Native MSVC or ICC
1.128 moko 16675: # hardcode_libdir_flag_spec is actually meaningless, as there is
16676: # no search path for DLLs.
16677: hardcode_libdir_flag_spec_CXX=' '
16678: allow_undefined_flag_CXX=unsupported
16679: always_export_symbols_CXX=yes
16680: file_list_spec_CXX='@'
16681: # Tell ltmain to make .lib files, not .a files.
16682: libext=lib
16683: # Tell ltmain to make .dll files, not .so files.
1.237 ! moko 16684: shrext_cmds=.dll
1.128 moko 16685: # FIXME: Setting linknames here is a bad hack.
1.237 ! moko 16686: archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
! 16687: archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
! 16688: cp "$export_symbols" "$output_objdir/$soname.def";
! 16689: echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
! 16690: else
! 16691: $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
! 16692: fi~
! 16693: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
! 16694: linknames='
1.128 moko 16695: # The linker will not automatically build a static lib if we build a DLL.
16696: # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16697: enable_shared_with_static_runtimes_CXX=yes
16698: # Don't use ranlib
16699: old_postinstall_cmds_CXX='chmod 644 $oldlib'
16700: postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
1.237 ! moko 16701: lt_tool_outputfile="@TOOL_OUTPUT@"~
! 16702: case $lt_outputfile in
! 16703: *.exe|*.EXE) ;;
! 16704: *)
! 16705: lt_outputfile=$lt_outputfile.exe
! 16706: lt_tool_outputfile=$lt_tool_outputfile.exe
! 16707: ;;
! 16708: esac~
! 16709: func_to_tool_file "$lt_outputfile"~
! 16710: if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
! 16711: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
! 16712: $RM "$lt_outputfile.manifest";
! 16713: fi'
1.128 moko 16714: ;;
16715: *)
16716: # g++
16717: # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16718: # as there is no search path for DLLs.
16719: hardcode_libdir_flag_spec_CXX='-L$libdir'
1.237 ! moko 16720: export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
1.128 moko 16721: allow_undefined_flag_CXX=unsupported
16722: always_export_symbols_CXX=no
16723: enable_shared_with_static_runtimes_CXX=yes
1.237 ! moko 16724: file_list_spec_CXX='@'
1.128 moko 16725:
16726: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
1.237 ! moko 16727: 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'
! 16728: # If the export-symbols file already is a .def file, use it as
! 16729: # is; otherwise, prepend EXPORTS...
! 16730: archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
! 16731: cp $export_symbols $output_objdir/$soname.def;
! 16732: else
! 16733: echo EXPORTS > $output_objdir/$soname.def;
! 16734: cat $export_symbols >> $output_objdir/$soname.def;
! 16735: fi~
! 16736: $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 16737: else
16738: ld_shlibs_CXX=no
16739: fi
16740: ;;
16741: esac
16742: ;;
16743: darwin* | rhapsody*)
16744:
16745:
16746: archive_cmds_need_lc_CXX=no
16747: hardcode_direct_CXX=no
16748: hardcode_automatic_CXX=yes
16749: hardcode_shlibpath_var_CXX=unsupported
1.237 ! moko 16750: if test yes = "$lt_cv_ld_force_load"; then
! 16751: 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 16752:
16753: else
16754: whole_archive_flag_spec_CXX=''
16755: fi
16756: link_all_deplibs_CXX=yes
1.237 ! moko 16757: allow_undefined_flag_CXX=$_lt_dar_allow_undefined
1.128 moko 16758: case $cc_basename in
1.237 ! moko 16759: ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1.128 moko 16760: *) _lt_dar_can_shared=$GCC ;;
16761: esac
1.237 ! moko 16762: if test yes = "$_lt_dar_can_shared"; then
1.128 moko 16763: output_verbose_link_cmd=func_echo_all
1.237 ! moko 16764: 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"
! 16765: module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
! 16766: 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"
! 16767: 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"
! 16768: if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
! 16769: 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"
! 16770: 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 16771: fi
16772:
16773: else
16774: ld_shlibs_CXX=no
16775: fi
16776:
16777: ;;
16778:
1.237 ! moko 16779: os2*)
! 16780: hardcode_libdir_flag_spec_CXX='-L$libdir'
! 16781: hardcode_minus_L_CXX=yes
! 16782: allow_undefined_flag_CXX=unsupported
! 16783: shrext_cmds=.dll
! 16784: archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
! 16785: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
! 16786: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
! 16787: $ECHO EXPORTS >> $output_objdir/$libname.def~
! 16788: emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
! 16789: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
! 16790: emximp -o $lib $output_objdir/$libname.def'
! 16791: archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
! 16792: $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
! 16793: $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
! 16794: $ECHO EXPORTS >> $output_objdir/$libname.def~
! 16795: prefix_cmds="$SED"~
! 16796: if test EXPORTS = "`$SED 1q $export_symbols`"; then
! 16797: prefix_cmds="$prefix_cmds -e 1d";
! 16798: fi~
! 16799: prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
! 16800: cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
! 16801: $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
! 16802: emximp -o $lib $output_objdir/$libname.def'
! 16803: old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
! 16804: enable_shared_with_static_runtimes_CXX=yes
! 16805: file_list_spec_CXX='@'
! 16806: ;;
! 16807:
1.128 moko 16808: dgux*)
16809: case $cc_basename in
16810: ec++*)
16811: # FIXME: insert proper C++ library support
16812: ld_shlibs_CXX=no
16813: ;;
16814: ghcx*)
16815: # Green Hills C++ Compiler
16816: # FIXME: insert proper C++ library support
16817: ld_shlibs_CXX=no
16818: ;;
16819: *)
16820: # FIXME: insert proper C++ library support
16821: ld_shlibs_CXX=no
16822: ;;
16823: esac
16824: ;;
16825:
16826: freebsd2.*)
16827: # C++ shared libraries reported to be fairly broken before
16828: # switch to ELF
16829: ld_shlibs_CXX=no
16830: ;;
16831:
16832: freebsd-elf*)
16833: archive_cmds_need_lc_CXX=no
16834: ;;
16835:
1.237 ! moko 16836: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 16837: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16838: # conventions
16839: ld_shlibs_CXX=yes
16840: ;;
16841:
16842: haiku*)
1.237 ! moko 16843: archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
! 16844: link_all_deplibs_CXX=no
1.128 moko 16845: ;;
16846:
16847: hpux9*)
1.237 ! moko 16848: hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1.128 moko 16849: hardcode_libdir_separator_CXX=:
1.237 ! moko 16850: export_dynamic_flag_spec_CXX='$wl-E'
1.128 moko 16851: hardcode_direct_CXX=yes
16852: hardcode_minus_L_CXX=yes # Not in the search PATH,
16853: # but as the default
16854: # location of the library.
16855:
16856: case $cc_basename in
16857: CC*)
16858: # FIXME: insert proper C++ library support
16859: ld_shlibs_CXX=no
16860: ;;
16861: aCC*)
1.237 ! moko 16862: 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 16863: # Commands to make compiler produce verbose output that lists
16864: # what "hidden" libraries, object files and flags are used when
16865: # linking a shared library.
16866: #
16867: # There doesn't appear to be a way to prevent this compiler from
16868: # explicitly linking system object files so we need to strip them
16869: # from the output so that they don't get included in the library
16870: # dependencies.
1.237 ! moko 16871: 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 16872: ;;
16873: *)
1.237 ! moko 16874: if test yes = "$GXX"; then
! 16875: 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 16876: else
16877: # FIXME: insert proper C++ library support
16878: ld_shlibs_CXX=no
16879: fi
16880: ;;
16881: esac
16882: ;;
16883:
16884: hpux10*|hpux11*)
1.237 ! moko 16885: if test no = "$with_gnu_ld"; then
! 16886: hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
1.128 moko 16887: hardcode_libdir_separator_CXX=:
16888:
16889: case $host_cpu in
16890: hppa*64*|ia64*)
16891: ;;
16892: *)
1.237 ! moko 16893: export_dynamic_flag_spec_CXX='$wl-E'
1.128 moko 16894: ;;
16895: esac
16896: fi
16897: case $host_cpu in
16898: hppa*64*|ia64*)
16899: hardcode_direct_CXX=no
16900: hardcode_shlibpath_var_CXX=no
16901: ;;
16902: *)
16903: hardcode_direct_CXX=yes
16904: hardcode_direct_absolute_CXX=yes
16905: hardcode_minus_L_CXX=yes # Not in the search PATH,
16906: # but as the default
16907: # location of the library.
16908: ;;
16909: esac
16910:
16911: case $cc_basename in
16912: CC*)
16913: # FIXME: insert proper C++ library support
16914: ld_shlibs_CXX=no
16915: ;;
16916: aCC*)
16917: case $host_cpu in
16918: hppa*64*)
1.237 ! moko 16919: archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 16920: ;;
16921: ia64*)
1.237 ! moko 16922: archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 16923: ;;
16924: *)
1.237 ! moko 16925: 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 16926: ;;
16927: esac
16928: # Commands to make compiler produce verbose output that lists
16929: # what "hidden" libraries, object files and flags are used when
16930: # linking a shared library.
16931: #
16932: # There doesn't appear to be a way to prevent this compiler from
16933: # explicitly linking system object files so we need to strip them
16934: # from the output so that they don't get included in the library
16935: # dependencies.
1.237 ! moko 16936: 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 16937: ;;
16938: *)
1.237 ! moko 16939: if test yes = "$GXX"; then
! 16940: if test no = "$with_gnu_ld"; then
1.128 moko 16941: case $host_cpu in
16942: hppa*64*)
1.237 ! moko 16943: archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 16944: ;;
16945: ia64*)
1.237 ! moko 16946: 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 16947: ;;
16948: *)
1.237 ! moko 16949: 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 16950: ;;
16951: esac
16952: fi
16953: else
16954: # FIXME: insert proper C++ library support
16955: ld_shlibs_CXX=no
16956: fi
16957: ;;
16958: esac
16959: ;;
16960:
16961: interix[3-9]*)
16962: hardcode_direct_CXX=no
16963: hardcode_shlibpath_var_CXX=no
1.237 ! moko 16964: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
! 16965: export_dynamic_flag_spec_CXX='$wl-E'
1.128 moko 16966: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16967: # Instead, shared libraries are loaded at an image base (0x10000000 by
16968: # default) and relocated if they conflict, which is a slow very memory
16969: # consuming and fragmenting process. To avoid this, we pick a random,
16970: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16971: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
1.237 ! moko 16972: 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'
! 16973: 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 16974: ;;
16975: irix5* | irix6*)
16976: case $cc_basename in
16977: CC*)
16978: # SGI C++
1.237 ! moko 16979: 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 16980:
16981: # Archives containing C++ object files must be created using
16982: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16983: # necessary to make sure instantiated templates are included
16984: # in the archive.
16985: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16986: ;;
16987: *)
1.237 ! moko 16988: if test yes = "$GXX"; then
! 16989: if test no = "$with_gnu_ld"; then
! 16990: 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 16991: else
1.237 ! moko 16992: 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 16993: fi
16994: fi
16995: link_all_deplibs_CXX=yes
16996: ;;
16997: esac
1.237 ! moko 16998: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1.128 moko 16999: hardcode_libdir_separator_CXX=:
17000: inherit_rpath_CXX=yes
17001: ;;
17002:
1.237 ! moko 17003: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 17004: case $cc_basename in
17005: KCC*)
17006: # Kuck and Associates, Inc. (KAI) C++ Compiler
17007:
17008: # KCC will only create a shared library if the output file
17009: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17010: # to its proper name (with version) after linking.
1.237 ! moko 17011: 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'
! 17012: 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 17013: # Commands to make compiler produce verbose output that lists
17014: # what "hidden" libraries, object files and flags are used when
17015: # linking a shared library.
17016: #
17017: # There doesn't appear to be a way to prevent this compiler from
17018: # explicitly linking system object files so we need to strip them
17019: # from the output so that they don't get included in the library
17020: # dependencies.
1.237 ! moko 17021: 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 17022:
1.237 ! moko 17023: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
! 17024: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
1.128 moko 17025:
17026: # Archives containing C++ object files must be created using
17027: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17028: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17029: ;;
17030: icpc* | ecpc* )
17031: # Intel C++
17032: with_gnu_ld=yes
17033: # version 8.0 and above of icpc choke on multiply defined symbols
17034: # if we add $predep_objects and $postdep_objects, however 7.1 and
17035: # earlier do not add the objects themselves.
17036: case `$CC -V 2>&1` in
17037: *"Version 7."*)
1.237 ! moko 17038: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
! 17039: 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 17040: ;;
17041: *) # Version 8.0 or newer
17042: tmp_idyn=
17043: case $host_cpu in
17044: ia64*) tmp_idyn=' -i_dynamic';;
17045: esac
1.237 ! moko 17046: archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
! 17047: 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 17048: ;;
17049: esac
17050: archive_cmds_need_lc_CXX=no
1.237 ! moko 17051: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
! 17052: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
! 17053: whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
1.128 moko 17054: ;;
17055: pgCC* | pgcpp*)
17056: # Portland Group C++ compiler
17057: case `$CC -V` in
17058: *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17059: prelink_cmds_CXX='tpldir=Template.dir~
1.237 ! moko 17060: rm -rf $tpldir~
! 17061: $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
! 17062: compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
1.128 moko 17063: old_archive_cmds_CXX='tpldir=Template.dir~
1.237 ! moko 17064: rm -rf $tpldir~
! 17065: $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
! 17066: $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
! 17067: $RANLIB $oldlib'
1.128 moko 17068: archive_cmds_CXX='tpldir=Template.dir~
1.237 ! moko 17069: rm -rf $tpldir~
! 17070: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
! 17071: $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 17072: archive_expsym_cmds_CXX='tpldir=Template.dir~
1.237 ! moko 17073: rm -rf $tpldir~
! 17074: $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
! 17075: $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 17076: ;;
17077: *) # Version 6 and above use weak symbols
1.237 ! moko 17078: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
! 17079: 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 17080: ;;
17081: esac
17082:
1.237 ! moko 17083: hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
! 17084: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
! 17085: 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 17086: ;;
17087: cxx*)
17088: # Compaq C++
1.237 ! moko 17089: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
! 17090: 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 17091:
17092: runpath_var=LD_RUN_PATH
17093: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17094: hardcode_libdir_separator_CXX=:
17095:
17096: # Commands to make compiler produce verbose output that lists
17097: # what "hidden" libraries, object files and flags are used when
17098: # linking a shared library.
17099: #
17100: # There doesn't appear to be a way to prevent this compiler from
17101: # explicitly linking system object files so we need to strip them
17102: # from the output so that they don't get included in the library
17103: # dependencies.
1.237 ! moko 17104: 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 17105: ;;
17106: xl* | mpixl* | bgxl*)
17107: # IBM XL 8.0 on PPC, with GNU ld
1.237 ! moko 17108: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
! 17109: export_dynamic_flag_spec_CXX='$wl--export-dynamic'
! 17110: archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
! 17111: if test yes = "$supports_anon_versioning"; then
1.128 moko 17112: archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
1.237 ! moko 17113: cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
! 17114: echo "local: *; };" >> $output_objdir/$libname.ver~
! 17115: $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
1.128 moko 17116: fi
17117: ;;
17118: *)
1.237 ! moko 17119: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 17120: *Sun\ C*)
17121: # Sun C++ 5.9
17122: no_undefined_flag_CXX=' -zdefs'
1.237 ! moko 17123: archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 17124: 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 17125: hardcode_libdir_flag_spec_CXX='-R$libdir'
1.237 ! moko 17126: 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 17127: compiler_needs_object_CXX=yes
17128:
17129: # Not sure whether something based on
17130: # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17131: # would be better.
17132: output_verbose_link_cmd='func_echo_all'
17133:
17134: # Archives containing C++ object files must be created using
17135: # "CC -xar", where "CC" is the Sun C++ compiler. This is
17136: # necessary to make sure instantiated templates are included
17137: # in the archive.
17138: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17139: ;;
17140: esac
17141: ;;
17142: esac
17143: ;;
17144:
17145: lynxos*)
17146: # FIXME: insert proper C++ library support
17147: ld_shlibs_CXX=no
17148: ;;
17149:
17150: m88k*)
17151: # FIXME: insert proper C++ library support
17152: ld_shlibs_CXX=no
17153: ;;
17154:
17155: mvs*)
17156: case $cc_basename in
17157: cxx*)
17158: # FIXME: insert proper C++ library support
17159: ld_shlibs_CXX=no
17160: ;;
17161: *)
17162: # FIXME: insert proper C++ library support
17163: ld_shlibs_CXX=no
17164: ;;
17165: esac
17166: ;;
17167:
1.237 ! moko 17168: *-mlibc)
! 17169: ld_shlibs_CXX=yes
! 17170: ;;
! 17171:
1.128 moko 17172: netbsd*)
17173: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17174: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17175: wlarc=
17176: hardcode_libdir_flag_spec_CXX='-R$libdir'
17177: hardcode_direct_CXX=yes
17178: hardcode_shlibpath_var_CXX=no
17179: fi
17180: # Workaround some broken pre-1.5 toolchains
17181: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17182: ;;
17183:
17184: *nto* | *qnx*)
17185: ld_shlibs_CXX=yes
17186: ;;
17187:
17188: openbsd*)
17189: if test -f /usr/libexec/ld.so; then
17190: hardcode_direct_CXX=yes
17191: hardcode_shlibpath_var_CXX=no
17192: hardcode_direct_absolute_CXX=yes
17193: archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1.237 ! moko 17194: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
! 17195: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
! 17196: archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
! 17197: export_dynamic_flag_spec_CXX='$wl-E'
! 17198: whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
1.128 moko 17199: fi
17200: output_verbose_link_cmd=func_echo_all
17201: else
17202: ld_shlibs_CXX=no
17203: fi
17204: ;;
17205:
17206: osf3* | osf4* | osf5*)
17207: case $cc_basename in
17208: KCC*)
17209: # Kuck and Associates, Inc. (KAI) C++ Compiler
17210:
17211: # KCC will only create a shared library if the output file
17212: # ends with ".so" (or ".sl" for HP-UX), so rename the library
17213: # to its proper name (with version) after linking.
1.237 ! moko 17214: 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 17215:
1.237 ! moko 17216: hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
1.128 moko 17217: hardcode_libdir_separator_CXX=:
17218:
17219: # Archives containing C++ object files must be created using
17220: # the KAI C++ compiler.
17221: case $host in
17222: osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17223: *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17224: esac
17225: ;;
17226: RCC*)
17227: # Rational C++ 2.4.1
17228: # FIXME: insert proper C++ library support
17229: ld_shlibs_CXX=no
17230: ;;
17231: cxx*)
17232: case $host in
17233: osf3*)
1.237 ! moko 17234: allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
! 17235: 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'
! 17236: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1.128 moko 17237: ;;
17238: *)
17239: allow_undefined_flag_CXX=' -expect_unresolved \*'
1.237 ! moko 17240: 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 17241: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
1.237 ! moko 17242: echo "-hidden">> $lib.exp~
! 17243: $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~
! 17244: $RM $lib.exp'
1.128 moko 17245: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17246: ;;
17247: esac
17248:
17249: hardcode_libdir_separator_CXX=:
17250:
17251: # Commands to make compiler produce verbose output that lists
17252: # what "hidden" libraries, object files and flags are used when
17253: # linking a shared library.
17254: #
17255: # There doesn't appear to be a way to prevent this compiler from
17256: # explicitly linking system object files so we need to strip them
17257: # from the output so that they don't get included in the library
17258: # dependencies.
1.237 ! moko 17259: 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 17260: ;;
17261: *)
1.237 ! moko 17262: if test yes,no = "$GXX,$with_gnu_ld"; then
! 17263: allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
1.128 moko 17264: case $host in
17265: osf3*)
1.237 ! moko 17266: 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 17267: ;;
17268: *)
1.237 ! moko 17269: 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 17270: ;;
17271: esac
17272:
1.237 ! moko 17273: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
1.128 moko 17274: hardcode_libdir_separator_CXX=:
17275:
17276: # Commands to make compiler produce verbose output that lists
17277: # what "hidden" libraries, object files and flags are used when
17278: # linking a shared library.
1.237 ! moko 17279: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 17280:
17281: else
17282: # FIXME: insert proper C++ library support
17283: ld_shlibs_CXX=no
17284: fi
17285: ;;
17286: esac
17287: ;;
17288:
17289: psos*)
17290: # FIXME: insert proper C++ library support
17291: ld_shlibs_CXX=no
17292: ;;
17293:
1.237 ! moko 17294: serenity*)
! 17295: ;;
! 17296:
1.128 moko 17297: sunos4*)
17298: case $cc_basename in
17299: CC*)
17300: # Sun C++ 4.x
17301: # FIXME: insert proper C++ library support
17302: ld_shlibs_CXX=no
17303: ;;
17304: lcc*)
17305: # Lucid
17306: # FIXME: insert proper C++ library support
17307: ld_shlibs_CXX=no
17308: ;;
17309: *)
17310: # FIXME: insert proper C++ library support
17311: ld_shlibs_CXX=no
17312: ;;
17313: esac
17314: ;;
17315:
17316: solaris*)
17317: case $cc_basename in
17318: CC* | sunCC*)
17319: # Sun C++ 4.2, 5.x and Centerline C++
17320: archive_cmds_need_lc_CXX=yes
17321: no_undefined_flag_CXX=' -zdefs'
1.237 ! moko 17322: archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.128 moko 17323: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 ! moko 17324: $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 17325:
17326: hardcode_libdir_flag_spec_CXX='-R$libdir'
17327: hardcode_shlibpath_var_CXX=no
17328: case $host_os in
17329: solaris2.[0-5] | solaris2.[0-5].*) ;;
17330: *)
17331: # The compiler driver will combine and reorder linker options,
1.237 ! moko 17332: # but understands '-z linker_flag'.
1.128 moko 17333: # Supported since Solaris 2.6 (maybe 2.5.1?)
17334: whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17335: ;;
17336: esac
17337: link_all_deplibs_CXX=yes
17338:
17339: output_verbose_link_cmd='func_echo_all'
17340:
17341: # Archives containing C++ object files must be created using
17342: # "CC -xar", where "CC" is the Sun C++ compiler. This is
17343: # necessary to make sure instantiated templates are included
17344: # in the archive.
17345: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17346: ;;
17347: gcx*)
17348: # Green Hills C++ Compiler
1.237 ! moko 17349: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1.128 moko 17350:
17351: # The C++ compiler must be used to create the archive.
17352: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17353: ;;
17354: *)
17355: # GNU C++ compiler with Solaris linker
1.237 ! moko 17356: if test yes,no = "$GXX,$with_gnu_ld"; then
! 17357: no_undefined_flag_CXX=' $wl-z ${wl}defs'
1.128 moko 17358: if $CC --version | $GREP -v '^2\.7' > /dev/null; then
1.237 ! moko 17359: 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 17360: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 ! moko 17361: $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 17362:
17363: # Commands to make compiler produce verbose output that lists
17364: # what "hidden" libraries, object files and flags are used when
17365: # linking a shared library.
1.237 ! moko 17366: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 17367: else
1.237 ! moko 17368: # g++ 2.7 appears to require '-G' NOT '-shared' on this
1.128 moko 17369: # platform.
1.237 ! moko 17370: archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
1.128 moko 17371: archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
1.237 ! moko 17372: $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 17373:
17374: # Commands to make compiler produce verbose output that lists
17375: # what "hidden" libraries, object files and flags are used when
17376: # linking a shared library.
1.237 ! moko 17377: output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
1.128 moko 17378: fi
17379:
1.237 ! moko 17380: hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
1.128 moko 17381: case $host_os in
17382: solaris2.[0-5] | solaris2.[0-5].*) ;;
17383: *)
1.237 ! moko 17384: whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
1.128 moko 17385: ;;
17386: esac
17387: fi
17388: ;;
17389: esac
17390: ;;
17391:
17392: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
1.237 ! moko 17393: no_undefined_flag_CXX='$wl-z,text'
1.128 moko 17394: archive_cmds_need_lc_CXX=no
17395: hardcode_shlibpath_var_CXX=no
17396: runpath_var='LD_RUN_PATH'
17397:
17398: case $cc_basename in
17399: CC*)
1.237 ! moko 17400: archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17401: archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17402: ;;
17403: *)
1.237 ! moko 17404: archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17405: archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17406: ;;
17407: esac
17408: ;;
17409:
17410: sysv5* | sco3.2v5* | sco5v6*)
1.237 ! moko 17411: # Note: We CANNOT use -z defs as we might desire, because we do not
1.128 moko 17412: # link with -lc, and that would cause any symbols used from libc to
17413: # always be unresolved, which means just about no library would
17414: # ever link correctly. If we're not using GNU ld we use -z text
17415: # though, which does catch some bad symbols but isn't as heavy-handed
17416: # as -z defs.
1.237 ! moko 17417: no_undefined_flag_CXX='$wl-z,text'
! 17418: allow_undefined_flag_CXX='$wl-z,nodefs'
1.128 moko 17419: archive_cmds_need_lc_CXX=no
17420: hardcode_shlibpath_var_CXX=no
1.237 ! moko 17421: hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
1.128 moko 17422: hardcode_libdir_separator_CXX=':'
17423: link_all_deplibs_CXX=yes
1.237 ! moko 17424: export_dynamic_flag_spec_CXX='$wl-Bexport'
1.128 moko 17425: runpath_var='LD_RUN_PATH'
17426:
17427: case $cc_basename in
17428: CC*)
1.237 ! moko 17429: archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17430: archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17431: old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
1.237 ! moko 17432: '"$old_archive_cmds_CXX"
1.128 moko 17433: reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
1.237 ! moko 17434: '"$reload_cmds_CXX"
1.128 moko 17435: ;;
17436: *)
1.237 ! moko 17437: archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17438: archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
1.128 moko 17439: ;;
17440: esac
17441: ;;
17442:
17443: tandem*)
17444: case $cc_basename in
17445: NCC*)
17446: # NonStop-UX NCC 3.20
17447: # FIXME: insert proper C++ library support
17448: ld_shlibs_CXX=no
17449: ;;
17450: *)
17451: # FIXME: insert proper C++ library support
17452: ld_shlibs_CXX=no
17453: ;;
17454: esac
17455: ;;
17456:
17457: vxworks*)
17458: # FIXME: insert proper C++ library support
17459: ld_shlibs_CXX=no
17460: ;;
17461:
17462: *)
17463: # FIXME: insert proper C++ library support
17464: ld_shlibs_CXX=no
17465: ;;
17466: esac
17467:
1.237 ! moko 17468: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
! 17469: printf "%s\n" "$ld_shlibs_CXX" >&6; }
! 17470: test no = "$ld_shlibs_CXX" && can_build_shared=no
1.128 moko 17471:
1.237 ! moko 17472: GCC_CXX=$GXX
! 17473: LD_CXX=$LD
1.128 moko 17474:
17475: ## CAVEAT EMPTOR:
17476: ## There is no encapsulation within the following macros, do not change
17477: ## the running order or otherwise move them around unless you know exactly
17478: ## what you are doing...
17479: # Dependencies to place before and after the object being linked:
17480: predep_objects_CXX=
17481: postdep_objects_CXX=
17482: predeps_CXX=
17483: postdeps_CXX=
17484: compiler_lib_search_path_CXX=
17485:
17486: cat > conftest.$ac_ext <<_LT_EOF
17487: class Foo
17488: {
17489: public:
17490: Foo (void) { a = 0; }
17491: private:
17492: int a;
17493: };
17494: _LT_EOF
17495:
17496:
17497: _lt_libdeps_save_CFLAGS=$CFLAGS
17498: case "$CC $CFLAGS " in #(
17499: *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17500: *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17501: *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17502: esac
17503:
1.150 moko 17504: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 17505: (eval $ac_compile) 2>&5
17506: ac_status=$?
1.237 ! moko 17507: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 17508: test $ac_status = 0; }; then
1.128 moko 17509: # Parse the compiler output and extract the necessary
17510: # objects, libraries and library flags.
17511:
17512: # Sentinel used to keep track of whether or not we are before
17513: # the conftest object file.
17514: pre_test_object_deps_done=no
17515:
17516: for p in `eval "$output_verbose_link_cmd"`; do
1.237 ! moko 17517: case $prev$p in
1.128 moko 17518:
17519: -L* | -R* | -l*)
1.237 ! moko 17520: # Some compilers place space between "-{L,R,l}" and the path.
1.128 moko 17521: # Remove the space.
1.237 ! moko 17522: if test x-L = x"$p" ||
! 17523: test x-R = x"$p" ||
! 17524: test x-l = x"$p"; then
1.128 moko 17525: prev=$p
17526: continue
17527: fi
17528:
17529: # Expand the sysroot to ease extracting the directories later.
17530: if test -z "$prev"; then
17531: case $p in
17532: -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17533: -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17534: -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17535: esac
17536: fi
17537: case $p in
17538: =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17539: esac
1.237 ! moko 17540: if test no = "$pre_test_object_deps_done"; then
! 17541: case $prev in
1.128 moko 17542: -L | -R)
17543: # Internal compiler library paths should come after those
17544: # provided the user. The postdeps already come after the
17545: # user supplied libs so there is no need to process them.
17546: if test -z "$compiler_lib_search_path_CXX"; then
1.237 ! moko 17547: compiler_lib_search_path_CXX=$prev$p
1.128 moko 17548: else
1.237 ! moko 17549: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
1.128 moko 17550: fi
17551: ;;
17552: # The "-l" case would never come before the object being
17553: # linked, so don't bother handling this case.
17554: esac
17555: else
17556: if test -z "$postdeps_CXX"; then
1.237 ! moko 17557: postdeps_CXX=$prev$p
1.128 moko 17558: else
1.237 ! moko 17559: postdeps_CXX="${postdeps_CXX} $prev$p"
1.128 moko 17560: fi
17561: fi
17562: prev=
17563: ;;
17564:
17565: *.lto.$objext) ;; # Ignore GCC LTO objects
17566: *.$objext)
17567: # This assumes that the test object file only shows up
17568: # once in the compiler output.
17569: if test "$p" = "conftest.$objext"; then
17570: pre_test_object_deps_done=yes
17571: continue
17572: fi
17573:
1.237 ! moko 17574: if test no = "$pre_test_object_deps_done"; then
1.128 moko 17575: if test -z "$predep_objects_CXX"; then
1.237 ! moko 17576: predep_objects_CXX=$p
1.128 moko 17577: else
17578: predep_objects_CXX="$predep_objects_CXX $p"
17579: fi
17580: else
17581: if test -z "$postdep_objects_CXX"; then
1.237 ! moko 17582: postdep_objects_CXX=$p
1.128 moko 17583: else
17584: postdep_objects_CXX="$postdep_objects_CXX $p"
17585: fi
17586: fi
17587: ;;
17588:
17589: *) ;; # Ignore the rest.
17590:
17591: esac
17592: done
17593:
17594: # Clean up.
17595: rm -f a.out a.exe
17596: else
17597: echo "libtool.m4: error: problem compiling CXX test program"
17598: fi
17599:
17600: $RM -f confest.$objext
17601: CFLAGS=$_lt_libdeps_save_CFLAGS
17602:
17603: # PORTME: override above test on systems where it is broken
17604: case $host_os in
17605: interix[3-9]*)
17606: # Interix 3.5 installs completely hosed .la files for C++, so rather than
17607: # hack all around it, let's just trust "g++" to DTRT.
17608: predep_objects_CXX=
17609: postdep_objects_CXX=
17610: postdeps_CXX=
17611: ;;
1.237 ! moko 17612: esac
1.128 moko 17613:
17614:
1.237 ! moko 17615: case " $postdeps_CXX " in
! 17616: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
! 17617: esac
1.128 moko 17618: compiler_lib_search_dirs_CXX=
17619: if test -n "${compiler_lib_search_path_CXX}"; then
1.237 ! moko 17620: compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
1.128 moko 17621: fi
17622:
17623:
17624:
17625:
17626:
17627:
17628:
17629:
17630:
17631:
17632:
17633:
17634:
17635:
17636:
17637:
17638:
17639:
17640:
17641:
17642:
17643:
17644:
17645:
17646:
17647:
17648:
17649:
17650:
17651:
17652:
17653: lt_prog_compiler_wl_CXX=
17654: lt_prog_compiler_pic_CXX=
17655: lt_prog_compiler_static_CXX=
17656:
17657:
17658: # C++ specific cases for pic, static, wl, etc.
1.237 ! moko 17659: if test yes = "$GXX"; then
1.128 moko 17660: lt_prog_compiler_wl_CXX='-Wl,'
17661: lt_prog_compiler_static_CXX='-static'
17662:
17663: case $host_os in
17664: aix*)
17665: # All AIX code is PIC.
1.237 ! moko 17666: if test ia64 = "$host_cpu"; then
1.128 moko 17667: # AIX 5 now supports IA64 processor
17668: lt_prog_compiler_static_CXX='-Bstatic'
17669: fi
1.237 ! moko 17670: lt_prog_compiler_pic_CXX='-fPIC'
1.128 moko 17671: ;;
17672:
17673: amigaos*)
17674: case $host_cpu in
17675: powerpc)
17676: # see comment about AmigaOS4 .so support
17677: lt_prog_compiler_pic_CXX='-fPIC'
17678: ;;
17679: m68k)
17680: # FIXME: we need at least 68020 code to build shared libraries, but
1.237 ! moko 17681: # adding the '-m68020' flag to GCC prevents building anything better,
! 17682: # like '-m68040'.
1.128 moko 17683: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17684: ;;
17685: esac
17686: ;;
17687:
17688: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17689: # PIC is the default for these OSes.
17690: ;;
1.237 ! moko 17691: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
1.128 moko 17692: # This hack is so that the source file can tell whether it is being
17693: # built for inclusion in a dll (and should export symbols for example).
17694: # Although the cygwin gcc ignores -fPIC, still need this for old-style
17695: # (--disable-auto-import) libraries
17696: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
1.237 ! moko 17697: case $host_os in
! 17698: os2*)
! 17699: lt_prog_compiler_static_CXX='$wl-static'
! 17700: ;;
! 17701: esac
1.128 moko 17702: ;;
17703: darwin* | rhapsody*)
17704: # PIC is the default on this platform
17705: # Common symbols not allowed in MH_DYLIB files
17706: lt_prog_compiler_pic_CXX='-fno-common'
17707: ;;
17708: *djgpp*)
17709: # DJGPP does not support shared libraries at all
17710: lt_prog_compiler_pic_CXX=
17711: ;;
17712: haiku*)
17713: # PIC is the default for Haiku.
17714: # The "-static" flag exists, but is broken.
17715: lt_prog_compiler_static_CXX=
17716: ;;
17717: interix[3-9]*)
17718: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17719: # Instead, we relocate shared libraries at runtime.
17720: ;;
17721: sysv4*MP*)
17722: if test -d /usr/nec; then
17723: lt_prog_compiler_pic_CXX=-Kconform_pic
17724: fi
17725: ;;
17726: hpux*)
17727: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17728: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17729: # sets the default TLS model and affects inlining.
17730: case $host_cpu in
17731: hppa*64*)
17732: ;;
17733: *)
17734: lt_prog_compiler_pic_CXX='-fPIC'
17735: ;;
17736: esac
17737: ;;
17738: *qnx* | *nto*)
17739: # QNX uses GNU C++, but need to define -shared option too, otherwise
17740: # it will coredump.
17741: lt_prog_compiler_pic_CXX='-fPIC -shared'
17742: ;;
17743: *)
17744: lt_prog_compiler_pic_CXX='-fPIC'
17745: ;;
17746: esac
17747: else
17748: case $host_os in
17749: aix[4-9]*)
17750: # All AIX code is PIC.
1.237 ! moko 17751: if test ia64 = "$host_cpu"; then
1.128 moko 17752: # AIX 5 now supports IA64 processor
17753: lt_prog_compiler_static_CXX='-Bstatic'
17754: else
17755: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17756: fi
17757: ;;
17758: chorus*)
17759: case $cc_basename in
17760: cxch68*)
17761: # Green Hills C++ Compiler
17762: # _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"
17763: ;;
17764: esac
17765: ;;
1.237 ! moko 17766: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
1.128 moko 17767: # This hack is so that the source file can tell whether it is being
17768: # built for inclusion in a dll (and should export symbols for example).
17769: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17770: ;;
17771: dgux*)
17772: case $cc_basename in
17773: ec++*)
17774: lt_prog_compiler_pic_CXX='-KPIC'
17775: ;;
17776: ghcx*)
17777: # Green Hills C++ Compiler
17778: lt_prog_compiler_pic_CXX='-pic'
17779: ;;
17780: *)
17781: ;;
17782: esac
17783: ;;
1.237 ! moko 17784: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 17785: # FreeBSD uses GNU C++
17786: ;;
17787: hpux9* | hpux10* | hpux11*)
17788: case $cc_basename in
17789: CC*)
17790: lt_prog_compiler_wl_CXX='-Wl,'
1.237 ! moko 17791: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
! 17792: if test ia64 != "$host_cpu"; then
1.128 moko 17793: lt_prog_compiler_pic_CXX='+Z'
17794: fi
17795: ;;
17796: aCC*)
17797: lt_prog_compiler_wl_CXX='-Wl,'
1.237 ! moko 17798: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
1.128 moko 17799: case $host_cpu in
17800: hppa*64*|ia64*)
17801: # +Z the default
17802: ;;
17803: *)
17804: lt_prog_compiler_pic_CXX='+Z'
17805: ;;
17806: esac
17807: ;;
17808: *)
17809: ;;
17810: esac
17811: ;;
17812: interix*)
17813: # This is c89, which is MS Visual C++ (no shared libs)
17814: # Anyone wants to do a port?
17815: ;;
17816: irix5* | irix6* | nonstopux*)
17817: case $cc_basename in
17818: CC*)
17819: lt_prog_compiler_wl_CXX='-Wl,'
17820: lt_prog_compiler_static_CXX='-non_shared'
17821: # CC pic flag -KPIC is the default.
17822: ;;
17823: *)
17824: ;;
17825: esac
17826: ;;
1.237 ! moko 17827: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 17828: case $cc_basename in
17829: KCC*)
17830: # KAI C++ Compiler
17831: lt_prog_compiler_wl_CXX='--backend -Wl,'
17832: lt_prog_compiler_pic_CXX='-fPIC'
17833: ;;
17834: ecpc* )
1.237 ! moko 17835: # old Intel C++ for x86_64, which still supported -KPIC.
1.128 moko 17836: lt_prog_compiler_wl_CXX='-Wl,'
17837: lt_prog_compiler_pic_CXX='-KPIC'
17838: lt_prog_compiler_static_CXX='-static'
17839: ;;
17840: icpc* )
17841: # Intel C++, used to be incompatible with GCC.
17842: # ICC 10 doesn't accept -KPIC any more.
17843: lt_prog_compiler_wl_CXX='-Wl,'
17844: lt_prog_compiler_pic_CXX='-fPIC'
17845: lt_prog_compiler_static_CXX='-static'
17846: ;;
17847: pgCC* | pgcpp*)
17848: # Portland Group C++ compiler
17849: lt_prog_compiler_wl_CXX='-Wl,'
17850: lt_prog_compiler_pic_CXX='-fpic'
17851: lt_prog_compiler_static_CXX='-Bstatic'
17852: ;;
17853: cxx*)
17854: # Compaq C++
17855: # Make sure the PIC flag is empty. It appears that all Alpha
17856: # Linux and Compaq Tru64 Unix objects are PIC.
17857: lt_prog_compiler_pic_CXX=
17858: lt_prog_compiler_static_CXX='-non_shared'
17859: ;;
17860: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17861: # IBM XL 8.0, 9.0 on PPC and BlueGene
17862: lt_prog_compiler_wl_CXX='-Wl,'
17863: lt_prog_compiler_pic_CXX='-qpic'
17864: lt_prog_compiler_static_CXX='-qstaticlink'
17865: ;;
17866: *)
1.237 ! moko 17867: case `$CC -V 2>&1 | $SED 5q` in
1.128 moko 17868: *Sun\ C*)
17869: # Sun C++ 5.9
17870: lt_prog_compiler_pic_CXX='-KPIC'
17871: lt_prog_compiler_static_CXX='-Bstatic'
17872: lt_prog_compiler_wl_CXX='-Qoption ld '
17873: ;;
17874: esac
17875: ;;
17876: esac
17877: ;;
17878: lynxos*)
17879: ;;
17880: m88k*)
17881: ;;
17882: mvs*)
17883: case $cc_basename in
17884: cxx*)
17885: lt_prog_compiler_pic_CXX='-W c,exportall'
17886: ;;
17887: *)
17888: ;;
17889: esac
17890: ;;
1.237 ! moko 17891: netbsd* | netbsdelf*-gnu)
! 17892: ;;
! 17893: *-mlibc)
1.128 moko 17894: ;;
17895: *qnx* | *nto*)
17896: # QNX uses GNU C++, but need to define -shared option too, otherwise
17897: # it will coredump.
17898: lt_prog_compiler_pic_CXX='-fPIC -shared'
17899: ;;
17900: osf3* | osf4* | osf5*)
17901: case $cc_basename in
17902: KCC*)
17903: lt_prog_compiler_wl_CXX='--backend -Wl,'
17904: ;;
17905: RCC*)
17906: # Rational C++ 2.4.1
17907: lt_prog_compiler_pic_CXX='-pic'
17908: ;;
17909: cxx*)
17910: # Digital/Compaq C++
17911: lt_prog_compiler_wl_CXX='-Wl,'
17912: # Make sure the PIC flag is empty. It appears that all Alpha
17913: # Linux and Compaq Tru64 Unix objects are PIC.
17914: lt_prog_compiler_pic_CXX=
17915: lt_prog_compiler_static_CXX='-non_shared'
17916: ;;
17917: *)
17918: ;;
17919: esac
17920: ;;
17921: psos*)
17922: ;;
1.237 ! moko 17923: serenity*)
! 17924: ;;
1.128 moko 17925: solaris*)
17926: case $cc_basename in
17927: CC* | sunCC*)
17928: # Sun C++ 4.2, 5.x and Centerline C++
17929: lt_prog_compiler_pic_CXX='-KPIC'
17930: lt_prog_compiler_static_CXX='-Bstatic'
17931: lt_prog_compiler_wl_CXX='-Qoption ld '
17932: ;;
17933: gcx*)
17934: # Green Hills C++ Compiler
17935: lt_prog_compiler_pic_CXX='-PIC'
17936: ;;
17937: *)
17938: ;;
17939: esac
17940: ;;
17941: sunos4*)
17942: case $cc_basename in
17943: CC*)
17944: # Sun C++ 4.x
17945: lt_prog_compiler_pic_CXX='-pic'
17946: lt_prog_compiler_static_CXX='-Bstatic'
17947: ;;
17948: lcc*)
17949: # Lucid
17950: lt_prog_compiler_pic_CXX='-pic'
17951: ;;
17952: *)
17953: ;;
17954: esac
17955: ;;
17956: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17957: case $cc_basename in
17958: CC*)
17959: lt_prog_compiler_wl_CXX='-Wl,'
17960: lt_prog_compiler_pic_CXX='-KPIC'
17961: lt_prog_compiler_static_CXX='-Bstatic'
17962: ;;
17963: esac
17964: ;;
17965: tandem*)
17966: case $cc_basename in
17967: NCC*)
17968: # NonStop-UX NCC 3.20
17969: lt_prog_compiler_pic_CXX='-KPIC'
17970: ;;
17971: *)
17972: ;;
17973: esac
17974: ;;
17975: vxworks*)
17976: ;;
17977: *)
17978: lt_prog_compiler_can_build_shared_CXX=no
17979: ;;
17980: esac
17981: fi
17982:
17983: case $host_os in
1.237 ! moko 17984: # For platforms that do not support PIC, -DPIC is meaningless:
1.128 moko 17985: *djgpp*)
17986: lt_prog_compiler_pic_CXX=
17987: ;;
17988: *)
17989: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17990: ;;
17991: esac
17992:
1.237 ! moko 17993: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
! 17994: printf %s "checking for $compiler option to produce PIC... " >&6; }
! 17995: if test ${lt_cv_prog_compiler_pic_CXX+y}
! 17996: then :
! 17997: printf %s "(cached) " >&6
! 17998: else case e in #(
! 17999: e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
! 18000: esac
1.128 moko 18001: fi
1.237 ! moko 18002: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
! 18003: printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
1.128 moko 18004: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18005:
18006: #
18007: # Check to make sure the PIC flag actually works.
18008: #
18009: if test -n "$lt_prog_compiler_pic_CXX"; then
1.237 ! moko 18010: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
! 18011: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
! 18012: if test ${lt_cv_prog_compiler_pic_works_CXX+y}
! 18013: then :
! 18014: printf %s "(cached) " >&6
! 18015: else case e in #(
! 18016: e) lt_cv_prog_compiler_pic_works_CXX=no
1.128 moko 18017: ac_outfile=conftest.$ac_objext
18018: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.237 ! moko 18019: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
1.128 moko 18020: # Insert the option either (1) after the last *FLAGS variable, or
18021: # (2) before a word containing "conftest.", or (3) at the end.
18022: # Note that $ac_compile itself does not contain backslashes and begins
18023: # with a dollar sign (not a hyphen), so the echo should work correctly.
18024: # The option is referenced via a variable to avoid confusing sed.
18025: lt_compile=`echo "$ac_compile" | $SED \
18026: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18027: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18028: -e 's:$: $lt_compiler_flag:'`
18029: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18030: (eval "$lt_compile" 2>conftest.err)
18031: ac_status=$?
18032: cat conftest.err >&5
18033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034: if (exit $ac_status) && test -s "$ac_outfile"; then
18035: # The compiler can only warn and ignore the option if not recognized
18036: # So say no if there are warnings other than the usual output.
18037: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18038: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18039: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18040: lt_cv_prog_compiler_pic_works_CXX=yes
18041: fi
18042: fi
18043: $RM conftest*
1.237 ! moko 18044: ;;
! 18045: esac
1.128 moko 18046: fi
1.237 ! moko 18047: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
! 18048: printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
1.128 moko 18049:
1.237 ! moko 18050: if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
1.128 moko 18051: case $lt_prog_compiler_pic_CXX in
18052: "" | " "*) ;;
18053: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18054: esac
18055: else
18056: lt_prog_compiler_pic_CXX=
18057: lt_prog_compiler_can_build_shared_CXX=no
18058: fi
18059:
18060: fi
18061:
18062:
18063:
18064:
18065:
18066: #
18067: # Check to make sure the static flag actually works.
18068: #
18069: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1.237 ! moko 18070: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 18071: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
! 18072: if test ${lt_cv_prog_compiler_static_works_CXX+y}
! 18073: then :
! 18074: printf %s "(cached) " >&6
! 18075: else case e in #(
! 18076: e) lt_cv_prog_compiler_static_works_CXX=no
! 18077: save_LDFLAGS=$LDFLAGS
1.128 moko 18078: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18079: echo "$lt_simple_link_test_code" > conftest.$ac_ext
18080: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18081: # The linker can only warn and ignore the option if not recognized
18082: # So say no if there are warnings
18083: if test -s conftest.err; then
18084: # Append any errors to the config.log.
18085: cat conftest.err 1>&5
18086: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18087: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18088: if diff conftest.exp conftest.er2 >/dev/null; then
18089: lt_cv_prog_compiler_static_works_CXX=yes
18090: fi
18091: else
18092: lt_cv_prog_compiler_static_works_CXX=yes
18093: fi
18094: fi
18095: $RM -r conftest*
1.237 ! moko 18096: LDFLAGS=$save_LDFLAGS
! 18097: ;;
! 18098: esac
1.128 moko 18099: fi
1.237 ! moko 18100: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
! 18101: printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 18102:
1.237 ! moko 18103: if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
1.128 moko 18104: :
18105: else
18106: lt_prog_compiler_static_CXX=
18107: fi
18108:
18109:
18110:
18111:
1.237 ! moko 18112: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 18113: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 18114: if test ${lt_cv_prog_compiler_c_o_CXX+y}
! 18115: then :
! 18116: printf %s "(cached) " >&6
! 18117: else case e in #(
! 18118: e) lt_cv_prog_compiler_c_o_CXX=no
1.128 moko 18119: $RM -r conftest 2>/dev/null
18120: mkdir conftest
18121: cd conftest
18122: mkdir out
18123: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18124:
18125: lt_compiler_flag="-o out/conftest2.$ac_objext"
18126: # Insert the option either (1) after the last *FLAGS variable, or
18127: # (2) before a word containing "conftest.", or (3) at the end.
18128: # Note that $ac_compile itself does not contain backslashes and begins
18129: # with a dollar sign (not a hyphen), so the echo should work correctly.
18130: lt_compile=`echo "$ac_compile" | $SED \
18131: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18132: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18133: -e 's:$: $lt_compiler_flag:'`
18134: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18135: (eval "$lt_compile" 2>out/conftest.err)
18136: ac_status=$?
18137: cat out/conftest.err >&5
18138: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139: if (exit $ac_status) && test -s out/conftest2.$ac_objext
18140: then
18141: # The compiler can only warn and ignore the option if not recognized
18142: # So say no if there are warnings
18143: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18144: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18145: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18146: lt_cv_prog_compiler_c_o_CXX=yes
18147: fi
18148: fi
18149: chmod u+w . 2>&5
18150: $RM conftest*
18151: # SGI C++ compiler will create directory out/ii_files/ for
18152: # template instantiation
18153: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18154: $RM out/* && rmdir out
18155: cd ..
18156: $RM -r conftest
18157: $RM conftest*
1.237 ! moko 18158: ;;
! 18159: esac
1.128 moko 18160: fi
1.237 ! moko 18161: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 18162: printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 18163:
18164:
18165:
1.237 ! moko 18166: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
! 18167: printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
! 18168: if test ${lt_cv_prog_compiler_c_o_CXX+y}
! 18169: then :
! 18170: printf %s "(cached) " >&6
! 18171: else case e in #(
! 18172: e) lt_cv_prog_compiler_c_o_CXX=no
1.128 moko 18173: $RM -r conftest 2>/dev/null
18174: mkdir conftest
18175: cd conftest
18176: mkdir out
18177: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18178:
18179: lt_compiler_flag="-o out/conftest2.$ac_objext"
18180: # Insert the option either (1) after the last *FLAGS variable, or
18181: # (2) before a word containing "conftest.", or (3) at the end.
18182: # Note that $ac_compile itself does not contain backslashes and begins
18183: # with a dollar sign (not a hyphen), so the echo should work correctly.
18184: lt_compile=`echo "$ac_compile" | $SED \
18185: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18186: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18187: -e 's:$: $lt_compiler_flag:'`
18188: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18189: (eval "$lt_compile" 2>out/conftest.err)
18190: ac_status=$?
18191: cat out/conftest.err >&5
18192: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193: if (exit $ac_status) && test -s out/conftest2.$ac_objext
18194: then
18195: # The compiler can only warn and ignore the option if not recognized
18196: # So say no if there are warnings
18197: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18198: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18199: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18200: lt_cv_prog_compiler_c_o_CXX=yes
18201: fi
18202: fi
18203: chmod u+w . 2>&5
18204: $RM conftest*
18205: # SGI C++ compiler will create directory out/ii_files/ for
18206: # template instantiation
18207: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18208: $RM out/* && rmdir out
18209: cd ..
18210: $RM -r conftest
18211: $RM conftest*
1.237 ! moko 18212: ;;
! 18213: esac
1.128 moko 18214: fi
1.237 ! moko 18215: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 18216: printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
1.128 moko 18217:
18218:
18219:
18220:
1.237 ! moko 18221: hard_links=nottested
! 18222: if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
1.128 moko 18223: # do not overwrite the value of need_locks provided by the user
1.237 ! moko 18224: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
! 18225: printf %s "checking if we can lock with hard links... " >&6; }
1.128 moko 18226: hard_links=yes
18227: $RM conftest*
18228: ln conftest.a conftest.b 2>/dev/null && hard_links=no
18229: touch conftest.a
18230: ln conftest.a conftest.b 2>&5 || hard_links=no
18231: ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.237 ! moko 18232: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
! 18233: printf "%s\n" "$hard_links" >&6; }
! 18234: if test no = "$hard_links"; then
! 18235: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
! 18236: printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
1.128 moko 18237: need_locks=warn
18238: fi
18239: else
18240: need_locks=no
18241: fi
18242:
18243:
18244:
1.237 ! moko 18245: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 18246: printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1.128 moko 18247:
18248: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18249: exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18250: case $host_os in
18251: aix[4-9]*)
18252: # If we're using GNU nm, then we don't want the "-C" option.
1.237 ! moko 18253: # -C means demangle to GNU nm, but means don't demangle to AIX nm.
! 18254: # Without the "-l" option, or with the "-B" option, AIX nm treats
! 18255: # weak defined symbols like other global defined symbols, whereas
! 18256: # GNU nm marks them as "W".
! 18257: # While the 'weak' keyword is ignored in the Export File, we need
! 18258: # it in the Import File for the 'aix-soname' feature, so we have
! 18259: # to replace the "-B" option with "-P" for AIX nm.
1.128 moko 18260: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
1.237 ! moko 18261: 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 18262: else
1.237 ! moko 18263: 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 18264: fi
18265: ;;
18266: pw32*)
1.237 ! moko 18267: export_symbols_cmds_CXX=$ltdll_cmds
1.128 moko 18268: ;;
1.237 ! moko 18269: cygwin* | mingw* | windows* | cegcc*)
1.128 moko 18270: case $cc_basename in
1.237 ! moko 18271: cl* | icl*)
1.128 moko 18272: exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18273: ;;
18274: *)
18275: 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'
18276: exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18277: ;;
18278: esac
18279: ;;
1.237 ! moko 18280: linux* | k*bsd*-gnu | gnu*)
! 18281: link_all_deplibs_CXX=no
! 18282: ;;
1.128 moko 18283: *)
18284: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18285: ;;
18286: esac
18287:
1.237 ! moko 18288: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
! 18289: printf "%s\n" "$ld_shlibs_CXX" >&6; }
! 18290: test no = "$ld_shlibs_CXX" && can_build_shared=no
1.128 moko 18291:
18292: with_gnu_ld_CXX=$with_gnu_ld
18293:
18294:
18295:
18296:
18297:
18298:
18299: #
18300: # Do we need to explicitly link libc?
18301: #
18302: case "x$archive_cmds_need_lc_CXX" in
18303: x|xyes)
18304: # Assume -lc should be added
18305: archive_cmds_need_lc_CXX=yes
18306:
1.237 ! moko 18307: if test yes,yes = "$GCC,$enable_shared"; then
1.128 moko 18308: case $archive_cmds_CXX in
18309: *'~'*)
18310: # FIXME: we may have to deal with multi-command sequences.
18311: ;;
18312: '$CC '*)
18313: # Test whether the compiler implicitly links with -lc since on some
18314: # systems, -lgcc has to come before -lc. If gcc already passes -lc
18315: # to ld, don't add -lc before -lgcc.
1.237 ! moko 18316: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
! 18317: printf %s "checking whether -lc should be explicitly linked in... " >&6; }
! 18318: if test ${lt_cv_archive_cmds_need_lc_CXX+y}
! 18319: then :
! 18320: printf %s "(cached) " >&6
! 18321: else case e in #(
! 18322: e) $RM conftest*
1.128 moko 18323: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18324:
1.150 moko 18325: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 18326: (eval $ac_compile) 2>&5
18327: ac_status=$?
1.237 ! moko 18328: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 18329: test $ac_status = 0; } 2>conftest.err; then
1.128 moko 18330: soname=conftest
18331: lib=conftest
18332: libobjs=conftest.$ac_objext
18333: deplibs=
18334: wl=$lt_prog_compiler_wl_CXX
18335: pic_flag=$lt_prog_compiler_pic_CXX
18336: compiler_flags=-v
18337: linker_flags=-v
18338: verstring=
18339: output_objdir=.
18340: libname=conftest
18341: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18342: allow_undefined_flag_CXX=
1.150 moko 18343: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
1.128 moko 18344: (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18345: ac_status=$?
1.237 ! moko 18346: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 18347: test $ac_status = 0; }
1.128 moko 18348: then
18349: lt_cv_archive_cmds_need_lc_CXX=no
18350: else
18351: lt_cv_archive_cmds_need_lc_CXX=yes
18352: fi
18353: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18354: else
18355: cat conftest.err 1>&5
18356: fi
18357: $RM conftest*
1.237 ! moko 18358: ;;
! 18359: esac
1.128 moko 18360: fi
1.237 ! moko 18361: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
! 18362: printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
1.128 moko 18363: archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18364: ;;
18365: esac
18366: fi
18367: ;;
18368: esac
18369:
18370:
18371:
18372:
18373:
18374:
18375:
18376:
18377:
18378:
18379:
18380:
18381:
18382:
18383:
18384:
18385:
18386:
18387:
18388:
18389:
18390:
18391:
18392:
18393:
18394:
18395:
18396:
18397:
18398:
18399:
18400:
18401:
18402:
18403:
18404:
18405:
18406:
18407:
18408:
18409:
18410:
18411:
18412:
18413:
18414:
18415:
18416:
18417:
18418:
18419:
18420:
18421:
18422:
18423:
18424:
18425:
18426:
18427:
18428:
18429:
18430:
1.237 ! moko 18431: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
! 18432: printf %s "checking dynamic linker characteristics... " >&6; }
1.128 moko 18433:
18434: library_names_spec=
18435: libname_spec='lib$name'
18436: soname_spec=
1.237 ! moko 18437: shrext_cmds=.so
1.128 moko 18438: postinstall_cmds=
18439: postuninstall_cmds=
18440: finish_cmds=
18441: finish_eval=
18442: shlibpath_var=
18443: shlibpath_overrides_runpath=unknown
18444: version_type=none
18445: dynamic_linker="$host_os ld.so"
18446: sys_lib_dlsearch_path_spec="/lib /usr/lib"
18447: need_lib_prefix=unknown
18448: hardcode_into_libs=no
18449:
18450: # when you set need_version to no, make sure it does not cause -set_version
18451: # flags to be left without arguments
18452: need_version=unknown
18453:
1.237 ! moko 18454:
! 18455:
1.128 moko 18456: case $host_os in
18457: aix3*)
18458: version_type=linux # correct to gnu/linux during the next big refactor
1.237 ! moko 18459: library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
1.128 moko 18460: shlibpath_var=LIBPATH
18461:
18462: # AIX 3 has no versioning support, so we append a major version to the name.
1.237 ! moko 18463: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18464: ;;
18465:
18466: aix[4-9]*)
18467: version_type=linux # correct to gnu/linux during the next big refactor
18468: need_lib_prefix=no
18469: need_version=no
18470: hardcode_into_libs=yes
1.237 ! moko 18471: if test ia64 = "$host_cpu"; then
1.128 moko 18472: # AIX 5 supports IA64
1.237 ! moko 18473: library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
1.128 moko 18474: shlibpath_var=LD_LIBRARY_PATH
18475: else
18476: # With GCC up to 2.95.x, collect2 would create an import file
18477: # for dependence libraries. The import file would start with
1.237 ! moko 18478: # the line '#! .'. This would cause the generated library to
! 18479: # depend on '.', always an invalid library. This was fixed in
1.128 moko 18480: # development snapshots of GCC prior to 3.0.
18481: case $host_os in
18482: aix4 | aix4.[01] | aix4.[01].*)
18483: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18484: echo ' yes '
1.237 ! moko 18485: echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
1.128 moko 18486: :
18487: else
18488: can_build_shared=no
18489: fi
18490: ;;
18491: esac
1.237 ! moko 18492: # Using Import Files as archive members, it is possible to support
! 18493: # filename-based versioning of shared library archives on AIX. While
! 18494: # this would work for both with and without runtime linking, it will
! 18495: # prevent static linking of such archives. So we do filename-based
! 18496: # shared library versioning with .so extension only, which is used
! 18497: # when both runtime linking and shared linking is enabled.
! 18498: # Unfortunately, runtime linking may impact performance, so we do
! 18499: # not want this to be the default eventually. Also, we use the
! 18500: # versioned .so libs for executables only if there is the -brtl
! 18501: # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
! 18502: # To allow for filename-based versioning support, we need to create
! 18503: # libNAME.so.V as an archive file, containing:
! 18504: # *) an Import File, referring to the versioned filename of the
! 18505: # archive as well as the shared archive member, telling the
! 18506: # bitwidth (32 or 64) of that shared object, and providing the
! 18507: # list of exported symbols of that shared object, eventually
! 18508: # decorated with the 'weak' keyword
! 18509: # *) the shared object with the F_LOADONLY flag set, to really avoid
! 18510: # it being seen by the linker.
! 18511: # At run time we better use the real file rather than another symlink,
! 18512: # but for link time we create the symlink libNAME.so -> libNAME.so.V
! 18513:
! 18514: case $with_aix_soname,$aix_use_runtimelinking in
! 18515: # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
1.128 moko 18516: # soname into executable. Probably we can add versioning support to
18517: # collect2, so additional links can be useful in future.
1.237 ! moko 18518: aix,yes) # traditional libtool
! 18519: dynamic_linker='AIX unversionable lib.so'
1.128 moko 18520: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18521: # instead of lib<name>.a to let people know that these are not
18522: # typical AIX shared libraries.
1.237 ! moko 18523: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 18524: ;;
! 18525: aix,no) # traditional AIX only
! 18526: dynamic_linker='AIX lib.a(lib.so.V)'
1.128 moko 18527: # We preserve .a as extension for shared libraries through AIX4.2
18528: # and later when we are not doing run time linking.
1.237 ! moko 18529: library_names_spec='$libname$release.a $libname.a'
! 18530: soname_spec='$libname$release$shared_ext$major'
! 18531: ;;
! 18532: svr4,*) # full svr4 only
! 18533: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
! 18534: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
! 18535: # We do not specify a path in Import Files, so LIBPATH fires.
! 18536: shlibpath_overrides_runpath=yes
! 18537: ;;
! 18538: *,yes) # both, prefer svr4
! 18539: dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
! 18540: library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
! 18541: # unpreferred sharedlib libNAME.a needs extra handling
! 18542: 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"'
! 18543: 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"'
! 18544: # We do not specify a path in Import Files, so LIBPATH fires.
! 18545: shlibpath_overrides_runpath=yes
! 18546: ;;
! 18547: *,no) # both, prefer aix
! 18548: dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
! 18549: library_names_spec='$libname$release.a $libname.a'
! 18550: soname_spec='$libname$release$shared_ext$major'
! 18551: # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
! 18552: 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)'
! 18553: 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"'
! 18554: ;;
! 18555: esac
1.128 moko 18556: shlibpath_var=LIBPATH
18557: fi
18558: ;;
18559:
18560: amigaos*)
18561: case $host_cpu in
18562: powerpc)
18563: # Since July 2007 AmigaOS4 officially supports .so libraries.
18564: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
1.237 ! moko 18565: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 18566: ;;
18567: m68k)
18568: library_names_spec='$libname.ixlibrary $libname.a'
18569: # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.237 ! moko 18570: 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 18571: ;;
18572: esac
18573: ;;
18574:
18575: beos*)
1.237 ! moko 18576: library_names_spec='$libname$shared_ext'
1.128 moko 18577: dynamic_linker="$host_os ld.so"
18578: shlibpath_var=LIBRARY_PATH
18579: ;;
18580:
18581: bsdi[45]*)
18582: version_type=linux # correct to gnu/linux during the next big refactor
18583: need_version=no
1.237 ! moko 18584: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 18585: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18586: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18587: shlibpath_var=LD_LIBRARY_PATH
18588: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18589: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18590: # the default ld.so.conf also contains /usr/contrib/lib and
18591: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18592: # libtool to hard-code these into programs
18593: ;;
18594:
1.237 ! moko 18595: cygwin* | mingw* | windows* | pw32* | cegcc*)
1.128 moko 18596: version_type=windows
1.237 ! moko 18597: shrext_cmds=.dll
1.128 moko 18598: need_version=no
18599: need_lib_prefix=no
18600:
18601: case $GCC,$cc_basename in
18602: yes,*)
18603: # gcc
18604: library_names_spec='$libname.dll.a'
18605: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 ! moko 18606: # If user builds GCC with multilib enabled,
! 18607: # it should just install on $(libdir)
! 18608: # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
! 18609: if test xyes = x"$multilib"; then
! 18610: postinstall_cmds='base_file=`basename \$file`~
! 18611: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
! 18612: dldir=$destdir/`dirname \$dlpath`~
! 18613: $install_prog $dir/$dlname $destdir/$dlname~
! 18614: chmod a+x $destdir/$dlname~
! 18615: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
! 18616: eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
! 18617: fi'
! 18618: else
! 18619: postinstall_cmds='base_file=`basename \$file`~
! 18620: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
! 18621: dldir=$destdir/`dirname \$dlpath`~
! 18622: test -d \$dldir || mkdir -p \$dldir~
! 18623: $install_prog $dir/$dlname \$dldir/$dlname~
! 18624: chmod a+x \$dldir/$dlname~
! 18625: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
! 18626: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
! 18627: fi'
! 18628: fi
1.128 moko 18629: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18630: dlpath=$dir/\$dldll~
18631: $RM \$dlpath'
18632: shlibpath_overrides_runpath=yes
18633:
18634: case $host_os in
18635: cygwin*)
18636: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.237 ! moko 18637: soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 18638:
18639: ;;
1.237 ! moko 18640: mingw* | windows* | cegcc*)
1.128 moko 18641: # MinGW DLLs use traditional 'lib' prefix
1.237 ! moko 18642: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 18643: ;;
18644: pw32*)
18645: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.237 ! moko 18646: library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1.128 moko 18647: ;;
18648: esac
18649: dynamic_linker='Win32 ld.exe'
18650: ;;
18651:
1.237 ! moko 18652: *,cl* | *,icl*)
! 18653: # Native MSVC or ICC
1.128 moko 18654: libname_spec='$name'
1.237 ! moko 18655: soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
! 18656: library_names_spec='$libname.dll.lib'
1.128 moko 18657:
18658: case $build_os in
1.237 ! moko 18659: mingw* | windows*)
1.128 moko 18660: sys_lib_search_path_spec=
18661: lt_save_ifs=$IFS
18662: IFS=';'
18663: for lt_path in $LIB
18664: do
18665: IFS=$lt_save_ifs
18666: # Let DOS variable expansion print the short 8.3 style file name.
18667: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18668: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18669: done
18670: IFS=$lt_save_ifs
18671: # Convert to MSYS style.
1.237 ! moko 18672: 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 18673: ;;
18674: cygwin*)
18675: # Convert to unix form, then to dos form, then back to unix form
18676: # but this time dos style (no spaces!) so that the unix form looks
18677: # like /cygdrive/c/PROGRA~1:/cygdr...
18678: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18679: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18680: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18681: ;;
18682: *)
1.237 ! moko 18683: sys_lib_search_path_spec=$LIB
1.128 moko 18684: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18685: # It is most probably a Windows format PATH.
18686: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18687: else
18688: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18689: fi
18690: # FIXME: find the short name or the path components, as spaces are
18691: # common. (e.g. "Program Files" -> "PROGRA~1")
18692: ;;
18693: esac
18694:
18695: # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.237 ! moko 18696: postinstall_cmds='base_file=`basename \$file`~
! 18697: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1.128 moko 18698: dldir=$destdir/`dirname \$dlpath`~
18699: test -d \$dldir || mkdir -p \$dldir~
18700: $install_prog $dir/$dlname \$dldir/$dlname'
18701: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18702: dlpath=$dir/\$dldll~
18703: $RM \$dlpath'
18704: shlibpath_overrides_runpath=yes
18705: dynamic_linker='Win32 link.exe'
18706: ;;
18707:
18708: *)
1.237 ! moko 18709: # Assume MSVC and ICC wrapper
! 18710: library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1.128 moko 18711: dynamic_linker='Win32 ld.exe'
18712: ;;
18713: esac
18714: # FIXME: first we should search . and the directory the executable is in
18715: shlibpath_var=PATH
18716: ;;
18717:
18718: darwin* | rhapsody*)
18719: dynamic_linker="$host_os dyld"
18720: version_type=darwin
18721: need_lib_prefix=no
18722: need_version=no
1.237 ! moko 18723: library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
! 18724: soname_spec='$libname$release$major$shared_ext'
1.128 moko 18725: shlibpath_overrides_runpath=yes
18726: shlibpath_var=DYLD_LIBRARY_PATH
18727: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18728:
18729: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18730: ;;
18731:
18732: dgux*)
18733: version_type=linux # correct to gnu/linux during the next big refactor
18734: need_lib_prefix=no
18735: need_version=no
1.237 ! moko 18736: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 18737: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18738: shlibpath_var=LD_LIBRARY_PATH
18739: ;;
18740:
1.237 ! moko 18741: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 18742: # DragonFly does not have aout. When/if they implement a new
18743: # versioning mechanism, adjust this.
18744: if test -x /usr/bin/objformat; then
18745: objformat=`/usr/bin/objformat`
18746: else
18747: case $host_os in
18748: freebsd[23].*) objformat=aout ;;
18749: *) objformat=elf ;;
18750: esac
18751: fi
18752: version_type=freebsd-$objformat
18753: case $version_type in
18754: freebsd-elf*)
1.237 ! moko 18755: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 18756: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18757: need_version=no
18758: need_lib_prefix=no
18759: ;;
18760: freebsd-*)
1.237 ! moko 18761: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 18762: need_version=yes
18763: ;;
18764: esac
1.237 ! moko 18765: case $host_cpu in
! 18766: powerpc64)
! 18767: # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
! 18768: # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
! 18769: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 18770: /* end confdefs.h. */
! 18771: int test_pointer_size[sizeof (void *) - 5];
! 18772:
! 18773: _ACEOF
! 18774: if ac_fn_cxx_try_compile "$LINENO"
! 18775: then :
1.128 moko 18776: shlibpath_var=LD_LIBRARY_PATH
1.237 ! moko 18777: else case e in #(
! 18778: e) shlibpath_var=LD_32_LIBRARY_PATH ;;
! 18779: esac
! 18780: fi
! 18781: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 18782: ;;
! 18783: *)
! 18784: shlibpath_var=LD_LIBRARY_PATH
! 18785: ;;
! 18786: esac
1.128 moko 18787: case $host_os in
18788: freebsd2.*)
18789: shlibpath_overrides_runpath=yes
18790: ;;
18791: freebsd3.[01]* | freebsdelf3.[01]*)
18792: shlibpath_overrides_runpath=yes
18793: hardcode_into_libs=yes
18794: ;;
18795: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18796: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18797: shlibpath_overrides_runpath=no
18798: hardcode_into_libs=yes
18799: ;;
18800: *) # from 4.6 on, and DragonFly
18801: shlibpath_overrides_runpath=yes
18802: hardcode_into_libs=yes
18803: ;;
18804: esac
18805: ;;
18806:
18807: haiku*)
18808: version_type=linux # correct to gnu/linux during the next big refactor
18809: need_lib_prefix=no
18810: need_version=no
18811: dynamic_linker="$host_os runtime_loader"
1.237 ! moko 18812: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 18813: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18814: shlibpath_var=LIBRARY_PATH
1.237 ! moko 18815: shlibpath_overrides_runpath=no
! 18816: sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
! 18817: sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
! 18818: hardcode_into_libs=no
1.128 moko 18819: ;;
18820:
18821: hpux9* | hpux10* | hpux11*)
18822: # Give a soname corresponding to the major version so that dld.sl refuses to
18823: # link against other versions.
18824: version_type=sunos
18825: need_lib_prefix=no
18826: need_version=no
18827: case $host_cpu in
18828: ia64*)
18829: shrext_cmds='.so'
18830: hardcode_into_libs=yes
18831: dynamic_linker="$host_os dld.so"
18832: shlibpath_var=LD_LIBRARY_PATH
18833: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 ! moko 18834: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 18835: soname_spec='$libname$release$shared_ext$major'
! 18836: if test 32 = "$HPUX_IA64_MODE"; then
1.128 moko 18837: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.237 ! moko 18838: sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1.128 moko 18839: else
18840: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.237 ! moko 18841: sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1.128 moko 18842: fi
18843: ;;
18844: hppa*64*)
18845: shrext_cmds='.sl'
18846: hardcode_into_libs=yes
18847: dynamic_linker="$host_os dld.sl"
18848: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18849: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.237 ! moko 18850: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 18851: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18852: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18853: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18854: ;;
18855: *)
18856: shrext_cmds='.sl'
18857: dynamic_linker="$host_os dld.sl"
18858: shlibpath_var=SHLIB_PATH
18859: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.237 ! moko 18860: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 18861: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18862: ;;
18863: esac
18864: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18865: postinstall_cmds='chmod 555 $lib'
18866: # or fails outright, so override atomically:
18867: install_override_mode=555
18868: ;;
18869:
18870: interix[3-9]*)
18871: version_type=linux # correct to gnu/linux during the next big refactor
18872: need_lib_prefix=no
18873: need_version=no
1.237 ! moko 18874: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 18875: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18876: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18877: shlibpath_var=LD_LIBRARY_PATH
18878: shlibpath_overrides_runpath=no
18879: hardcode_into_libs=yes
18880: ;;
18881:
18882: irix5* | irix6* | nonstopux*)
18883: case $host_os in
18884: nonstopux*) version_type=nonstopux ;;
18885: *)
1.237 ! moko 18886: if test yes = "$lt_cv_prog_gnu_ld"; then
1.128 moko 18887: version_type=linux # correct to gnu/linux during the next big refactor
18888: else
18889: version_type=irix
18890: fi ;;
18891: esac
18892: need_lib_prefix=no
18893: need_version=no
1.237 ! moko 18894: soname_spec='$libname$release$shared_ext$major'
! 18895: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1.128 moko 18896: case $host_os in
18897: irix5* | nonstopux*)
18898: libsuff= shlibsuff=
18899: ;;
18900: *)
18901: case $LD in # libtool.m4 will add one of these switches to LD
18902: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18903: libsuff= shlibsuff= libmagic=32-bit;;
18904: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18905: libsuff=32 shlibsuff=N32 libmagic=N32;;
18906: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18907: libsuff=64 shlibsuff=64 libmagic=64-bit;;
18908: *) libsuff= shlibsuff= libmagic=never-match;;
18909: esac
18910: ;;
18911: esac
18912: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18913: shlibpath_overrides_runpath=no
1.237 ! moko 18914: sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
! 18915: sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1.128 moko 18916: hardcode_into_libs=yes
18917: ;;
18918:
18919: # No shared lib support for Linux oldld, aout, or coff.
18920: linux*oldld* | linux*aout* | linux*coff*)
18921: dynamic_linker=no
18922: ;;
18923:
1.237 ! moko 18924: linux*android*)
! 18925: version_type=none # Android doesn't support versioned libraries.
! 18926: need_lib_prefix=no
! 18927: need_version=no
! 18928: library_names_spec='$libname$release$shared_ext $libname$shared_ext'
! 18929: soname_spec='$libname$release$shared_ext'
! 18930: finish_cmds=
! 18931: shlibpath_var=LD_LIBRARY_PATH
! 18932: shlibpath_overrides_runpath=yes
! 18933:
! 18934: # This implies no fast_install, which is unacceptable.
! 18935: # Some rework will be needed to allow for fast_install
! 18936: # before this can be enabled.
! 18937: hardcode_into_libs=yes
! 18938:
! 18939: dynamic_linker='Android linker'
! 18940: # -rpath works at least for libraries that are not overridden by
! 18941: # libraries installed in system locations.
! 18942: hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
! 18943: ;;
! 18944:
1.128 moko 18945: # This must be glibc/ELF.
1.237 ! moko 18946: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1.128 moko 18947: version_type=linux # correct to gnu/linux during the next big refactor
18948: need_lib_prefix=no
18949: need_version=no
1.237 ! moko 18950: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 18951: soname_spec='$libname$release$shared_ext$major'
1.128 moko 18952: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18953: shlibpath_var=LD_LIBRARY_PATH
18954: shlibpath_overrides_runpath=no
18955:
18956: # Some binutils ld are patched to set DT_RUNPATH
1.237 ! moko 18957: if test ${lt_cv_shlibpath_overrides_runpath+y}
! 18958: then :
! 18959: printf %s "(cached) " >&6
! 18960: else case e in #(
! 18961: e) lt_cv_shlibpath_overrides_runpath=no
1.128 moko 18962: save_LDFLAGS=$LDFLAGS
18963: save_libdir=$libdir
18964: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18965: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
1.150 moko 18966: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 18967: /* end confdefs.h. */
18968:
18969: int
1.237 ! moko 18970: main (void)
1.128 moko 18971: {
18972:
18973: ;
18974: return 0;
18975: }
18976: _ACEOF
1.237 ! moko 18977: if ac_fn_cxx_try_link "$LINENO"
! 18978: then :
! 18979: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
! 18980: then :
1.128 moko 18981: lt_cv_shlibpath_overrides_runpath=yes
18982: fi
18983: fi
1.237 ! moko 18984: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 18985: conftest$ac_exeext conftest.$ac_ext
1.128 moko 18986: LDFLAGS=$save_LDFLAGS
18987: libdir=$save_libdir
1.237 ! moko 18988: ;;
! 18989: esac
1.128 moko 18990: fi
18991:
18992: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18993:
18994: # This implies no fast_install, which is unacceptable.
18995: # Some rework will be needed to allow for fast_install
18996: # before this can be enabled.
18997: hardcode_into_libs=yes
18998:
1.237 ! moko 18999: # Ideally, we could use ldconfig to report *all* directories which are
! 19000: # searched for libraries, however this is still not possible. Aside from not
! 19001: # being certain /sbin/ldconfig is available, command
! 19002: # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
! 19003: # even though it is searched at run-time. Try to do the best guess by
! 19004: # appending ld.so.conf contents (and includes) to the search path.
1.128 moko 19005: if test -f /etc/ld.so.conf; then
19006: 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' ' '`
19007: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19008: fi
19009:
19010: # We used to test for /lib/ld.so.1 and disable shared libraries on
19011: # powerpc, because MkLinux only supported shared libraries with the
19012: # GNU dynamic linker. Since this was broken with cross compilers,
19013: # most powerpc-linux boxes support dynamic linking these days and
19014: # people can always --disable-shared, the test was removed, and we
19015: # assume the GNU/Linux dynamic linker is in use.
19016: dynamic_linker='GNU/Linux ld.so'
19017: ;;
19018:
1.237 ! moko 19019: netbsdelf*-gnu)
! 19020: version_type=linux
! 19021: need_lib_prefix=no
! 19022: need_version=no
! 19023: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 19024: soname_spec='$libname$release$shared_ext$major'
! 19025: shlibpath_var=LD_LIBRARY_PATH
! 19026: shlibpath_overrides_runpath=no
! 19027: hardcode_into_libs=yes
! 19028: dynamic_linker='NetBSD ld.elf_so'
! 19029: ;;
! 19030:
! 19031: netbsdelf*-gnu)
! 19032: version_type=linux
! 19033: need_lib_prefix=no
! 19034: need_version=no
! 19035: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 19036: soname_spec='${libname}${release}${shared_ext}$major'
! 19037: shlibpath_var=LD_LIBRARY_PATH
! 19038: shlibpath_overrides_runpath=no
! 19039: hardcode_into_libs=yes
! 19040: dynamic_linker='NetBSD ld.elf_so'
! 19041: ;;
! 19042:
1.128 moko 19043: netbsd*)
19044: version_type=sunos
19045: need_lib_prefix=no
19046: need_version=no
19047: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.237 ! moko 19048: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19049: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19050: dynamic_linker='NetBSD (a.out) ld.so'
19051: else
1.237 ! moko 19052: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 19053: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19054: dynamic_linker='NetBSD ld.elf_so'
19055: fi
19056: shlibpath_var=LD_LIBRARY_PATH
19057: shlibpath_overrides_runpath=yes
19058: hardcode_into_libs=yes
19059: ;;
19060:
1.237 ! moko 19061: *-mlibc)
! 19062: version_type=linux # correct to gnu/linux during the next big refactor
! 19063: need_lib_prefix=no
! 19064: need_version=no
! 19065: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 19066: soname_spec='$libname$release$shared_ext$major'
! 19067: dynamic_linker='mlibc ld.so'
! 19068: shlibpath_var=LD_LIBRARY_PATH
! 19069: shlibpath_overrides_runpath=no
! 19070: hardcode_into_libs=yes
! 19071: ;;
! 19072:
1.128 moko 19073: newsos6)
19074: version_type=linux # correct to gnu/linux during the next big refactor
1.237 ! moko 19075: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 19076: shlibpath_var=LD_LIBRARY_PATH
19077: shlibpath_overrides_runpath=yes
19078: ;;
19079:
19080: *nto* | *qnx*)
19081: version_type=qnx
19082: need_lib_prefix=no
19083: need_version=no
1.237 ! moko 19084: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 19085: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19086: shlibpath_var=LD_LIBRARY_PATH
19087: shlibpath_overrides_runpath=no
19088: hardcode_into_libs=yes
19089: dynamic_linker='ldqnx.so'
19090: ;;
19091:
19092: openbsd*)
19093: version_type=sunos
1.237 ! moko 19094: sys_lib_dlsearch_path_spec=/usr/lib
1.128 moko 19095: need_lib_prefix=no
1.237 ! moko 19096: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
! 19097: need_version=no
! 19098: else
! 19099: need_version=yes
! 19100: fi
! 19101: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19102: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19103: shlibpath_var=LD_LIBRARY_PATH
1.237 ! moko 19104: shlibpath_overrides_runpath=yes
1.128 moko 19105: ;;
19106:
19107: os2*)
19108: libname_spec='$name'
1.237 ! moko 19109: version_type=windows
! 19110: shrext_cmds=.dll
! 19111: need_version=no
1.128 moko 19112: need_lib_prefix=no
1.237 ! moko 19113: # OS/2 can only load a DLL with a base name of 8 characters or less.
! 19114: soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
! 19115: v=$($ECHO $release$versuffix | tr -d .-);
! 19116: n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
! 19117: $ECHO $n$v`$shared_ext'
! 19118: library_names_spec='${libname}_dll.$libext'
1.128 moko 19119: dynamic_linker='OS/2 ld.exe'
1.237 ! moko 19120: shlibpath_var=BEGINLIBPATH
! 19121: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 19122: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 19123: postinstall_cmds='base_file=`basename \$file`~
! 19124: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
! 19125: dldir=$destdir/`dirname \$dlpath`~
! 19126: test -d \$dldir || mkdir -p \$dldir~
! 19127: $install_prog $dir/$dlname \$dldir/$dlname~
! 19128: chmod a+x \$dldir/$dlname~
! 19129: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
! 19130: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
! 19131: fi'
! 19132: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
! 19133: dlpath=$dir/\$dldll~
! 19134: $RM \$dlpath'
1.128 moko 19135: ;;
19136:
19137: osf3* | osf4* | osf5*)
19138: version_type=osf
19139: need_lib_prefix=no
19140: need_version=no
1.237 ! moko 19141: soname_spec='$libname$release$shared_ext$major'
! 19142: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1.128 moko 19143: shlibpath_var=LD_LIBRARY_PATH
19144: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.237 ! moko 19145: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.128 moko 19146: ;;
19147:
19148: rdos*)
19149: dynamic_linker=no
19150: ;;
19151:
1.237 ! moko 19152: serenity*)
! 19153: version_type=linux # correct to gnu/linux during the next big refactor
! 19154: need_lib_prefix=no
! 19155: need_version=no
! 19156: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 19157: soname_spec='$libname$release$shared_ext$major'
! 19158: shlibpath_var=LD_LIBRARY_PATH
! 19159: shlibpath_overrides_runpath=no
! 19160: dynamic_linker='SerenityOS LibELF'
! 19161: ;;
! 19162:
1.128 moko 19163: solaris*)
19164: version_type=linux # correct to gnu/linux during the next big refactor
19165: need_lib_prefix=no
19166: need_version=no
1.237 ! moko 19167: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 19168: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19169: shlibpath_var=LD_LIBRARY_PATH
19170: shlibpath_overrides_runpath=yes
19171: hardcode_into_libs=yes
19172: # ldd complains unless libraries are executable
19173: postinstall_cmds='chmod +x $lib'
19174: ;;
19175:
19176: sunos4*)
19177: version_type=sunos
1.237 ! moko 19178: library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1.128 moko 19179: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19180: shlibpath_var=LD_LIBRARY_PATH
19181: shlibpath_overrides_runpath=yes
1.237 ! moko 19182: if test yes = "$with_gnu_ld"; then
1.128 moko 19183: need_lib_prefix=no
19184: fi
19185: need_version=yes
19186: ;;
19187:
19188: sysv4 | sysv4.3*)
19189: version_type=linux # correct to gnu/linux during the next big refactor
1.237 ! moko 19190: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 19191: soname_spec='$libname$release$shared_ext$major'
1.128 moko 19192: shlibpath_var=LD_LIBRARY_PATH
19193: case $host_vendor in
19194: sni)
19195: shlibpath_overrides_runpath=no
19196: need_lib_prefix=no
19197: runpath_var=LD_RUN_PATH
1.237 ! moko 19198: ;;
! 19199: siemens)
! 19200: need_lib_prefix=no
! 19201: ;;
! 19202: motorola)
! 19203: need_lib_prefix=no
! 19204: need_version=no
! 19205: shlibpath_overrides_runpath=no
! 19206: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 19207: ;;
! 19208: esac
! 19209: ;;
! 19210:
! 19211: sysv4*MP*)
! 19212: if test -d /usr/nec; then
! 19213: version_type=linux # correct to gnu/linux during the next big refactor
! 19214: library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
! 19215: soname_spec='$libname$shared_ext.$major'
! 19216: shlibpath_var=LD_LIBRARY_PATH
! 19217: fi
! 19218: ;;
! 19219:
! 19220: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
! 19221: version_type=sco
! 19222: need_lib_prefix=no
! 19223: need_version=no
! 19224: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
! 19225: soname_spec='$libname$release$shared_ext$major'
! 19226: shlibpath_var=LD_LIBRARY_PATH
! 19227: shlibpath_overrides_runpath=yes
! 19228: hardcode_into_libs=yes
! 19229: if test yes = "$with_gnu_ld"; then
! 19230: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
! 19231: else
! 19232: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
! 19233: case $host_os in
! 19234: sco3.2v5*)
! 19235: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
! 19236: ;;
! 19237: esac
! 19238: fi
! 19239: sys_lib_dlsearch_path_spec='/usr/lib'
! 19240: ;;
! 19241:
! 19242: tpf*)
! 19243: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
! 19244: version_type=linux # correct to gnu/linux during the next big refactor
! 19245: need_lib_prefix=no
! 19246: need_version=no
! 19247: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 19248: shlibpath_var=LD_LIBRARY_PATH
! 19249: shlibpath_overrides_runpath=no
! 19250: hardcode_into_libs=yes
! 19251: ;;
! 19252:
! 19253: uts4*)
! 19254: version_type=linux # correct to gnu/linux during the next big refactor
! 19255: library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
! 19256: soname_spec='$libname$release$shared_ext$major'
! 19257: shlibpath_var=LD_LIBRARY_PATH
! 19258: ;;
! 19259:
! 19260: emscripten*)
! 19261: version_type=none
! 19262: need_lib_prefix=no
! 19263: need_version=no
! 19264: library_names_spec='$libname$release$shared_ext'
! 19265: soname_spec='$libname$release$shared_ext'
! 19266: finish_cmds=
! 19267: dynamic_linker="Emscripten linker"
! 19268: lt_prog_compiler_wl_CXX=
! 19269: lt_prog_compiler_pic_CXX=
! 19270: lt_prog_compiler_static_CXX=
! 19271:
! 19272:
! 19273: # C++ specific cases for pic, static, wl, etc.
! 19274: if test yes = "$GXX"; then
! 19275: lt_prog_compiler_wl_CXX='-Wl,'
! 19276: lt_prog_compiler_static_CXX='-static'
! 19277:
! 19278: case $host_os in
! 19279: aix*)
! 19280: # All AIX code is PIC.
! 19281: if test ia64 = "$host_cpu"; then
! 19282: # AIX 5 now supports IA64 processor
! 19283: lt_prog_compiler_static_CXX='-Bstatic'
! 19284: fi
! 19285: lt_prog_compiler_pic_CXX='-fPIC'
! 19286: ;;
! 19287:
! 19288: amigaos*)
! 19289: case $host_cpu in
! 19290: powerpc)
! 19291: # see comment about AmigaOS4 .so support
! 19292: lt_prog_compiler_pic_CXX='-fPIC'
! 19293: ;;
! 19294: m68k)
! 19295: # FIXME: we need at least 68020 code to build shared libraries, but
! 19296: # adding the '-m68020' flag to GCC prevents building anything better,
! 19297: # like '-m68040'.
! 19298: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
! 19299: ;;
! 19300: esac
! 19301: ;;
! 19302:
! 19303: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 19304: # PIC is the default for these OSes.
! 19305: ;;
! 19306: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
! 19307: # This hack is so that the source file can tell whether it is being
! 19308: # built for inclusion in a dll (and should export symbols for example).
! 19309: # Although the cygwin gcc ignores -fPIC, still need this for old-style
! 19310: # (--disable-auto-import) libraries
! 19311: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
! 19312: case $host_os in
! 19313: os2*)
! 19314: lt_prog_compiler_static_CXX='$wl-static'
! 19315: ;;
! 19316: esac
! 19317: ;;
! 19318: darwin* | rhapsody*)
! 19319: # PIC is the default on this platform
! 19320: # Common symbols not allowed in MH_DYLIB files
! 19321: lt_prog_compiler_pic_CXX='-fno-common'
! 19322: ;;
! 19323: *djgpp*)
! 19324: # DJGPP does not support shared libraries at all
! 19325: lt_prog_compiler_pic_CXX=
! 19326: ;;
! 19327: haiku*)
! 19328: # PIC is the default for Haiku.
! 19329: # The "-static" flag exists, but is broken.
! 19330: lt_prog_compiler_static_CXX=
! 19331: ;;
! 19332: interix[3-9]*)
! 19333: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
! 19334: # Instead, we relocate shared libraries at runtime.
! 19335: ;;
! 19336: sysv4*MP*)
! 19337: if test -d /usr/nec; then
! 19338: lt_prog_compiler_pic_CXX=-Kconform_pic
! 19339: fi
! 19340: ;;
! 19341: hpux*)
! 19342: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
! 19343: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
! 19344: # sets the default TLS model and affects inlining.
! 19345: case $host_cpu in
! 19346: hppa*64*)
! 19347: ;;
! 19348: *)
! 19349: lt_prog_compiler_pic_CXX='-fPIC'
! 19350: ;;
! 19351: esac
! 19352: ;;
! 19353: *qnx* | *nto*)
! 19354: # QNX uses GNU C++, but need to define -shared option too, otherwise
! 19355: # it will coredump.
! 19356: lt_prog_compiler_pic_CXX='-fPIC -shared'
! 19357: ;;
! 19358: *)
! 19359: lt_prog_compiler_pic_CXX='-fPIC'
! 19360: ;;
! 19361: esac
! 19362: else
! 19363: case $host_os in
! 19364: aix[4-9]*)
! 19365: # All AIX code is PIC.
! 19366: if test ia64 = "$host_cpu"; then
! 19367: # AIX 5 now supports IA64 processor
! 19368: lt_prog_compiler_static_CXX='-Bstatic'
! 19369: else
! 19370: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
! 19371: fi
! 19372: ;;
! 19373: chorus*)
! 19374: case $cc_basename in
! 19375: cxch68*)
! 19376: # Green Hills C++ Compiler
! 19377: # _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"
! 19378: ;;
! 19379: esac
! 19380: ;;
! 19381: mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
! 19382: # This hack is so that the source file can tell whether it is being
! 19383: # built for inclusion in a dll (and should export symbols for example).
! 19384: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
! 19385: ;;
! 19386: dgux*)
! 19387: case $cc_basename in
! 19388: ec++*)
! 19389: lt_prog_compiler_pic_CXX='-KPIC'
! 19390: ;;
! 19391: ghcx*)
! 19392: # Green Hills C++ Compiler
! 19393: lt_prog_compiler_pic_CXX='-pic'
! 19394: ;;
! 19395: *)
! 19396: ;;
! 19397: esac
! 19398: ;;
! 19399: freebsd* | dragonfly* | midnightbsd*)
! 19400: # FreeBSD uses GNU C++
! 19401: ;;
! 19402: hpux9* | hpux10* | hpux11*)
! 19403: case $cc_basename in
! 19404: CC*)
! 19405: lt_prog_compiler_wl_CXX='-Wl,'
! 19406: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
! 19407: if test ia64 != "$host_cpu"; then
! 19408: lt_prog_compiler_pic_CXX='+Z'
! 19409: fi
! 19410: ;;
! 19411: aCC*)
! 19412: lt_prog_compiler_wl_CXX='-Wl,'
! 19413: lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
! 19414: case $host_cpu in
! 19415: hppa*64*|ia64*)
! 19416: # +Z the default
! 19417: ;;
! 19418: *)
! 19419: lt_prog_compiler_pic_CXX='+Z'
! 19420: ;;
! 19421: esac
! 19422: ;;
! 19423: *)
! 19424: ;;
! 19425: esac
! 19426: ;;
! 19427: interix*)
! 19428: # This is c89, which is MS Visual C++ (no shared libs)
! 19429: # Anyone wants to do a port?
! 19430: ;;
! 19431: irix5* | irix6* | nonstopux*)
! 19432: case $cc_basename in
! 19433: CC*)
! 19434: lt_prog_compiler_wl_CXX='-Wl,'
! 19435: lt_prog_compiler_static_CXX='-non_shared'
! 19436: # CC pic flag -KPIC is the default.
! 19437: ;;
! 19438: *)
! 19439: ;;
! 19440: esac
! 19441: ;;
! 19442: linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
! 19443: case $cc_basename in
! 19444: KCC*)
! 19445: # KAI C++ Compiler
! 19446: lt_prog_compiler_wl_CXX='--backend -Wl,'
! 19447: lt_prog_compiler_pic_CXX='-fPIC'
! 19448: ;;
! 19449: ecpc* )
! 19450: # old Intel C++ for x86_64, which still supported -KPIC.
! 19451: lt_prog_compiler_wl_CXX='-Wl,'
! 19452: lt_prog_compiler_pic_CXX='-KPIC'
! 19453: lt_prog_compiler_static_CXX='-static'
! 19454: ;;
! 19455: icpc* )
! 19456: # Intel C++, used to be incompatible with GCC.
! 19457: # ICC 10 doesn't accept -KPIC any more.
! 19458: lt_prog_compiler_wl_CXX='-Wl,'
! 19459: lt_prog_compiler_pic_CXX='-fPIC'
! 19460: lt_prog_compiler_static_CXX='-static'
! 19461: ;;
! 19462: pgCC* | pgcpp*)
! 19463: # Portland Group C++ compiler
! 19464: lt_prog_compiler_wl_CXX='-Wl,'
! 19465: lt_prog_compiler_pic_CXX='-fpic'
! 19466: lt_prog_compiler_static_CXX='-Bstatic'
! 19467: ;;
! 19468: cxx*)
! 19469: # Compaq C++
! 19470: # Make sure the PIC flag is empty. It appears that all Alpha
! 19471: # Linux and Compaq Tru64 Unix objects are PIC.
! 19472: lt_prog_compiler_pic_CXX=
! 19473: lt_prog_compiler_static_CXX='-non_shared'
! 19474: ;;
! 19475: xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
! 19476: # IBM XL 8.0, 9.0 on PPC and BlueGene
! 19477: lt_prog_compiler_wl_CXX='-Wl,'
! 19478: lt_prog_compiler_pic_CXX='-qpic'
! 19479: lt_prog_compiler_static_CXX='-qstaticlink'
! 19480: ;;
! 19481: *)
! 19482: case `$CC -V 2>&1 | $SED 5q` in
! 19483: *Sun\ C*)
! 19484: # Sun C++ 5.9
! 19485: lt_prog_compiler_pic_CXX='-KPIC'
! 19486: lt_prog_compiler_static_CXX='-Bstatic'
! 19487: lt_prog_compiler_wl_CXX='-Qoption ld '
! 19488: ;;
! 19489: esac
! 19490: ;;
! 19491: esac
! 19492: ;;
! 19493: lynxos*)
! 19494: ;;
! 19495: m88k*)
! 19496: ;;
! 19497: mvs*)
! 19498: case $cc_basename in
! 19499: cxx*)
! 19500: lt_prog_compiler_pic_CXX='-W c,exportall'
! 19501: ;;
! 19502: *)
! 19503: ;;
! 19504: esac
! 19505: ;;
! 19506: netbsd* | netbsdelf*-gnu)
! 19507: ;;
! 19508: *-mlibc)
! 19509: ;;
! 19510: *qnx* | *nto*)
! 19511: # QNX uses GNU C++, but need to define -shared option too, otherwise
! 19512: # it will coredump.
! 19513: lt_prog_compiler_pic_CXX='-fPIC -shared'
! 19514: ;;
! 19515: osf3* | osf4* | osf5*)
! 19516: case $cc_basename in
! 19517: KCC*)
! 19518: lt_prog_compiler_wl_CXX='--backend -Wl,'
! 19519: ;;
! 19520: RCC*)
! 19521: # Rational C++ 2.4.1
! 19522: lt_prog_compiler_pic_CXX='-pic'
! 19523: ;;
! 19524: cxx*)
! 19525: # Digital/Compaq C++
! 19526: lt_prog_compiler_wl_CXX='-Wl,'
! 19527: # Make sure the PIC flag is empty. It appears that all Alpha
! 19528: # Linux and Compaq Tru64 Unix objects are PIC.
! 19529: lt_prog_compiler_pic_CXX=
! 19530: lt_prog_compiler_static_CXX='-non_shared'
! 19531: ;;
! 19532: *)
! 19533: ;;
! 19534: esac
! 19535: ;;
! 19536: psos*)
! 19537: ;;
! 19538: serenity*)
! 19539: ;;
! 19540: solaris*)
! 19541: case $cc_basename in
! 19542: CC* | sunCC*)
! 19543: # Sun C++ 4.2, 5.x and Centerline C++
! 19544: lt_prog_compiler_pic_CXX='-KPIC'
! 19545: lt_prog_compiler_static_CXX='-Bstatic'
! 19546: lt_prog_compiler_wl_CXX='-Qoption ld '
! 19547: ;;
! 19548: gcx*)
! 19549: # Green Hills C++ Compiler
! 19550: lt_prog_compiler_pic_CXX='-PIC'
! 19551: ;;
! 19552: *)
! 19553: ;;
! 19554: esac
! 19555: ;;
! 19556: sunos4*)
! 19557: case $cc_basename in
! 19558: CC*)
! 19559: # Sun C++ 4.x
! 19560: lt_prog_compiler_pic_CXX='-pic'
! 19561: lt_prog_compiler_static_CXX='-Bstatic'
! 19562: ;;
! 19563: lcc*)
! 19564: # Lucid
! 19565: lt_prog_compiler_pic_CXX='-pic'
! 19566: ;;
! 19567: *)
! 19568: ;;
! 19569: esac
! 19570: ;;
! 19571: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
! 19572: case $cc_basename in
! 19573: CC*)
! 19574: lt_prog_compiler_wl_CXX='-Wl,'
! 19575: lt_prog_compiler_pic_CXX='-KPIC'
! 19576: lt_prog_compiler_static_CXX='-Bstatic'
! 19577: ;;
! 19578: esac
! 19579: ;;
! 19580: tandem*)
! 19581: case $cc_basename in
! 19582: NCC*)
! 19583: # NonStop-UX NCC 3.20
! 19584: lt_prog_compiler_pic_CXX='-KPIC'
! 19585: ;;
! 19586: *)
! 19587: ;;
! 19588: esac
! 19589: ;;
! 19590: vxworks*)
! 19591: ;;
! 19592: *)
! 19593: lt_prog_compiler_can_build_shared_CXX=no
! 19594: ;;
! 19595: esac
! 19596: fi
! 19597:
! 19598: case $host_os in
! 19599: # For platforms that do not support PIC, -DPIC is meaningless:
! 19600: *djgpp*)
! 19601: lt_prog_compiler_pic_CXX=
! 19602: ;;
! 19603: *)
! 19604: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
! 19605: ;;
! 19606: esac
! 19607:
! 19608: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
! 19609: printf %s "checking for $compiler option to produce PIC... " >&6; }
! 19610: if test ${lt_cv_prog_compiler_pic_CXX+y}
! 19611: then :
! 19612: printf %s "(cached) " >&6
! 19613: else case e in #(
! 19614: e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
! 19615: esac
! 19616: fi
! 19617: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
! 19618: printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
! 19619: lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
! 19620:
! 19621: #
! 19622: # Check to make sure the PIC flag actually works.
! 19623: #
! 19624: if test -n "$lt_prog_compiler_pic_CXX"; then
! 19625: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
! 19626: printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
! 19627: if test ${lt_cv_prog_compiler_pic_works_CXX+y}
! 19628: then :
! 19629: printf %s "(cached) " >&6
! 19630: else case e in #(
! 19631: e) lt_cv_prog_compiler_pic_works_CXX=no
! 19632: ac_outfile=conftest.$ac_objext
! 19633: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
! 19634: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
! 19635: # Insert the option either (1) after the last *FLAGS variable, or
! 19636: # (2) before a word containing "conftest.", or (3) at the end.
! 19637: # Note that $ac_compile itself does not contain backslashes and begins
! 19638: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 19639: # The option is referenced via a variable to avoid confusing sed.
! 19640: lt_compile=`echo "$ac_compile" | $SED \
! 19641: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
! 19642: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 19643: -e 's:$: $lt_compiler_flag:'`
! 19644: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
! 19645: (eval "$lt_compile" 2>conftest.err)
! 19646: ac_status=$?
! 19647: cat conftest.err >&5
! 19648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19649: if (exit $ac_status) && test -s "$ac_outfile"; then
! 19650: # The compiler can only warn and ignore the option if not recognized
! 19651: # So say no if there are warnings other than the usual output.
! 19652: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
! 19653: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 19654: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
! 19655: lt_cv_prog_compiler_pic_works_CXX=yes
! 19656: fi
! 19657: fi
! 19658: $RM conftest*
! 19659: ;;
! 19660: esac
! 19661: fi
! 19662: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
! 19663: printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
! 19664:
! 19665: if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
! 19666: case $lt_prog_compiler_pic_CXX in
! 19667: "" | " "*) ;;
! 19668: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
! 19669: esac
! 19670: else
! 19671: lt_prog_compiler_pic_CXX=
! 19672: lt_prog_compiler_can_build_shared_CXX=no
! 19673: fi
! 19674:
! 19675: fi
! 19676:
! 19677:
! 19678:
! 19679:
! 19680:
! 19681: #
! 19682: # Check to make sure the static flag actually works.
! 19683: #
! 19684: wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
! 19685: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
! 19686: printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
! 19687: if test ${lt_cv_prog_compiler_static_works_CXX+y}
! 19688: then :
! 19689: printf %s "(cached) " >&6
! 19690: else case e in #(
! 19691: e) lt_cv_prog_compiler_static_works_CXX=no
! 19692: save_LDFLAGS=$LDFLAGS
! 19693: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
! 19694: echo "$lt_simple_link_test_code" > conftest.$ac_ext
! 19695: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 19696: # The linker can only warn and ignore the option if not recognized
! 19697: # So say no if there are warnings
! 19698: if test -s conftest.err; then
! 19699: # Append any errors to the config.log.
! 19700: cat conftest.err 1>&5
! 19701: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
! 19702: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
! 19703: if diff conftest.exp conftest.er2 >/dev/null; then
! 19704: lt_cv_prog_compiler_static_works_CXX=yes
! 19705: fi
! 19706: else
! 19707: lt_cv_prog_compiler_static_works_CXX=yes
! 19708: fi
! 19709: fi
! 19710: $RM -r conftest*
! 19711: LDFLAGS=$save_LDFLAGS
! 19712: ;;
! 19713: esac
! 19714: fi
! 19715: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
! 19716: printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
1.128 moko 19717:
1.237 ! moko 19718: if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
! 19719: :
! 19720: else
! 19721: lt_prog_compiler_static_CXX=
! 19722: fi
1.128 moko 19723:
19724:
19725:
1.237 ! moko 19726: ='-fPIC'
! 19727: archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
! 19728: 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'
! 19729: archive_cmds_need_lc_CXX=no
! 19730: no_undefined_flag_CXX=
1.128 moko 19731: ;;
19732:
19733: *)
19734: dynamic_linker=no
19735: ;;
19736: esac
1.237 ! moko 19737: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
! 19738: printf "%s\n" "$dynamic_linker" >&6; }
! 19739: test no = "$dynamic_linker" && can_build_shared=no
1.128 moko 19740:
19741: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.237 ! moko 19742: if test yes = "$GCC"; then
1.128 moko 19743: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19744: fi
19745:
1.237 ! moko 19746: if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
! 19747: sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
1.128 moko 19748: fi
1.237 ! moko 19749:
! 19750: if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
! 19751: sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
1.128 moko 19752: fi
19753:
1.237 ! moko 19754: # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
! 19755: configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
! 19756:
! 19757: # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
! 19758: func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
! 19759:
! 19760: # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
! 19761: configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
1.128 moko 19762:
19763:
19764:
19765:
19766:
19767:
19768:
19769:
19770:
19771:
19772:
19773:
19774:
19775:
19776:
19777:
19778:
19779:
19780:
19781:
19782:
19783:
19784:
19785:
19786:
19787:
19788:
19789:
19790:
19791:
19792:
19793:
19794:
19795:
19796:
19797:
19798:
1.237 ! moko 19799:
! 19800:
! 19801:
! 19802: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
! 19803: printf %s "checking how to hardcode library paths into programs... " >&6; }
1.128 moko 19804: hardcode_action_CXX=
19805: if test -n "$hardcode_libdir_flag_spec_CXX" ||
19806: test -n "$runpath_var_CXX" ||
1.237 ! moko 19807: test yes = "$hardcode_automatic_CXX"; then
1.128 moko 19808:
19809: # We can hardcode non-existent directories.
1.237 ! moko 19810: if test no != "$hardcode_direct_CXX" &&
1.128 moko 19811: # If the only mechanism to avoid hardcoding is shlibpath_var, we
19812: # have to relink, otherwise we might link with an installed library
19813: # when we should be linking with a yet-to-be-installed one
1.237 ! moko 19814: ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
! 19815: test no != "$hardcode_minus_L_CXX"; then
1.128 moko 19816: # Linking always hardcodes the temporary library directory.
19817: hardcode_action_CXX=relink
19818: else
19819: # We can link without hardcoding, and we can hardcode nonexisting dirs.
19820: hardcode_action_CXX=immediate
19821: fi
19822: else
19823: # We cannot hardcode anything, or else we can only hardcode existing
19824: # directories.
19825: hardcode_action_CXX=unsupported
19826: fi
1.237 ! moko 19827: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
! 19828: printf "%s\n" "$hardcode_action_CXX" >&6; }
1.128 moko 19829:
1.237 ! moko 19830: if test relink = "$hardcode_action_CXX" ||
! 19831: test yes = "$inherit_rpath_CXX"; then
1.128 moko 19832: # Fast installation is not supported
19833: enable_fast_install=no
1.237 ! moko 19834: elif test yes = "$shlibpath_overrides_runpath" ||
! 19835: test no = "$enable_shared"; then
1.128 moko 19836: # Fast installation is not necessary
19837: enable_fast_install=needless
19838: fi
19839:
19840:
19841:
19842:
19843:
19844:
19845:
19846: fi # test -n "$compiler"
19847:
19848: CC=$lt_save_CC
19849: CFLAGS=$lt_save_CFLAGS
19850: LDCXX=$LD
19851: LD=$lt_save_LD
19852: GCC=$lt_save_GCC
19853: with_gnu_ld=$lt_save_with_gnu_ld
19854: lt_cv_path_LDCXX=$lt_cv_path_LD
19855: lt_cv_path_LD=$lt_save_path_LD
19856: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19857: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
1.237 ! moko 19858: fi # test yes != "$_lt_caught_CXX_error"
1.128 moko 19859:
19860: ac_ext=c
19861: ac_cpp='$CPP $CPPFLAGS'
19862: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19863: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19864: ac_compiler_gnu=$ac_cv_c_compiler_gnu
19865:
19866:
19867:
19868:
19869:
19870:
19871:
19872:
19873:
19874:
19875:
19876:
19877:
19878:
19879:
1.150 moko 19880: ac_config_commands="$ac_config_commands libtool"
1.128 moko 19881:
19882:
19883:
19884:
19885: # Only expand once:
19886:
19887:
1.237 ! moko 19888: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
! 19889: printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
! 19890: if test ${ac_cv_c_undeclared_builtin_options+y}
! 19891: then :
! 19892: printf %s "(cached) " >&6
! 19893: else case e in #(
! 19894: e) ac_save_CFLAGS=$CFLAGS
! 19895: ac_cv_c_undeclared_builtin_options='cannot detect'
! 19896: for ac_arg in '' -fno-builtin; do
! 19897: CFLAGS="$ac_save_CFLAGS $ac_arg"
! 19898: # This test program should *not* compile successfully.
! 19899: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 19900: /* end confdefs.h. */
! 19901:
! 19902: int
! 19903: main (void)
! 19904: {
! 19905: (void) strchr;
! 19906: ;
! 19907: return 0;
! 19908: }
! 19909: _ACEOF
! 19910: if ac_fn_c_try_compile "$LINENO"
! 19911: then :
! 19912:
! 19913: else case e in #(
! 19914: e) # This test program should compile successfully.
! 19915: # No library function is consistently available on
! 19916: # freestanding implementations, so test against a dummy
! 19917: # declaration. Include always-available headers on the
! 19918: # off chance that they somehow elicit warnings.
! 19919: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 19920: /* end confdefs.h. */
! 19921: #include <float.h>
! 19922: #include <limits.h>
! 19923: #include <stdarg.h>
! 19924: #include <stddef.h>
! 19925: extern void ac_decl (int, char *);
! 19926:
! 19927: int
! 19928: main (void)
! 19929: {
! 19930: (void) ac_decl (0, (char *) 0);
! 19931: (void) ac_decl;
! 19932:
! 19933: ;
! 19934: return 0;
! 19935: }
! 19936: _ACEOF
! 19937: if ac_fn_c_try_compile "$LINENO"
! 19938: then :
! 19939: if test x"$ac_arg" = x
! 19940: then :
! 19941: ac_cv_c_undeclared_builtin_options='none needed'
! 19942: else case e in #(
! 19943: e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
! 19944: esac
! 19945: fi
! 19946: break
! 19947: fi
! 19948: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
! 19949: esac
! 19950: fi
! 19951: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 19952: done
! 19953: CFLAGS=$ac_save_CFLAGS
! 19954: ;;
! 19955: esac
! 19956: fi
! 19957: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
! 19958: printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
! 19959: case $ac_cv_c_undeclared_builtin_options in #(
! 19960: 'cannot detect') :
! 19961: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
! 19962: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
! 19963: as_fn_error $? "cannot make $CC report undeclared builtins
! 19964: See 'config.log' for more details" "$LINENO" 5; } ;; #(
! 19965: 'none needed') :
! 19966: ac_c_undeclared_builtin_options='' ;; #(
! 19967: *) :
! 19968: ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
! 19969: esac
1.128 moko 19970:
1.237 ! moko 19971: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what extension is used for runtime loadable modules" >&5
! 19972: printf %s "checking what extension is used for runtime loadable modules... " >&6; }
! 19973: if test ${libltdl_cv_shlibext+y}
! 19974: then :
! 19975: printf %s "(cached) " >&6
! 19976: else case e in #(
! 19977: e)
1.128 moko 19978: module=yes
19979: eval libltdl_cv_shlibext=$shrext_cmds
19980: module=no
19981: eval libltdl_cv_shrext=$shrext_cmds
1.237 ! moko 19982: ;;
! 19983: esac
1.128 moko 19984: fi
1.237 ! moko 19985: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
! 19986: printf "%s\n" "$libltdl_cv_shlibext" >&6; }
1.128 moko 19987: if test -n "$libltdl_cv_shlibext"; then
19988:
1.237 ! moko 19989: printf "%s\n" "#define LT_MODULE_EXT \"$libltdl_cv_shlibext\"" >>confdefs.h
1.128 moko 19990:
19991: fi
19992: if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
19993:
1.237 ! moko 19994: printf "%s\n" "#define LT_SHARED_EXT \"$libltdl_cv_shrext\"" >>confdefs.h
! 19995:
! 19996: fi
! 19997: if test -n "$shared_archive_member_spec"; then
! 19998:
! 19999: printf "%s\n" "#define LT_SHARED_LIB_MEMBER \"($shared_archive_member_spec.o)\"" >>confdefs.h
1.128 moko 20000:
20001: fi
20002:
1.237 ! moko 20003: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking what variable specifies run-time module search path" >&5
! 20004: printf %s "checking what variable specifies run-time module search path... " >&6; }
! 20005: if test ${lt_cv_module_path_var+y}
! 20006: then :
! 20007: printf %s "(cached) " >&6
! 20008: else case e in #(
! 20009: e) lt_cv_module_path_var=$shlibpath_var ;;
! 20010: esac
1.128 moko 20011: fi
1.237 ! moko 20012: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
! 20013: printf "%s\n" "$lt_cv_module_path_var" >&6; }
1.128 moko 20014: if test -n "$lt_cv_module_path_var"; then
20015:
1.237 ! moko 20016: printf "%s\n" "#define LT_MODULE_PATH_VAR \"$lt_cv_module_path_var\"" >>confdefs.h
1.128 moko 20017:
20018: fi
20019:
1.237 ! moko 20020: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
! 20021: printf %s "checking for the default library search path... " >&6; }
! 20022: if test ${lt_cv_sys_dlsearch_path+y}
! 20023: then :
! 20024: printf %s "(cached) " >&6
! 20025: else case e in #(
! 20026: e) lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec ;;
! 20027: esac
1.128 moko 20028: fi
1.237 ! moko 20029: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
! 20030: printf "%s\n" "$lt_cv_sys_dlsearch_path" >&6; }
1.128 moko 20031: if test -n "$lt_cv_sys_dlsearch_path"; then
20032: sys_dlsearch_path=
20033: for dir in $lt_cv_sys_dlsearch_path; do
20034: if test -z "$sys_dlsearch_path"; then
1.237 ! moko 20035: sys_dlsearch_path=$dir
1.128 moko 20036: else
1.237 ! moko 20037: sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
1.128 moko 20038: fi
20039: done
20040:
1.237 ! moko 20041: printf "%s\n" "#define LT_DLSEARCH_PATH \"$sys_dlsearch_path\"" >>confdefs.h
1.128 moko 20042:
20043: fi
20044:
20045:
20046: LT_DLLOADERS=
20047:
20048:
20049: ac_ext=c
20050: ac_cpp='$CPP $CPPFLAGS'
20051: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20052: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20053: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20054:
1.237 ! moko 20055: lt_dlload_save_LIBS=$LIBS
1.128 moko 20056:
20057: LIBADD_DLOPEN=
1.237 ! moko 20058: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
! 20059: printf %s "checking for library containing dlopen... " >&6; }
! 20060: if test ${ac_cv_search_dlopen+y}
! 20061: then :
! 20062: printf %s "(cached) " >&6
! 20063: else case e in #(
! 20064: e) ac_func_search_save_LIBS=$LIBS
1.150 moko 20065: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 20066: /* end confdefs.h. */
20067:
1.150 moko 20068: /* Override any GCC internal prototype to avoid an error.
20069: Use char because int might match the return type of a GCC
1.237 ! moko 20070: builtin and then its argument prototype would still apply.
! 20071: The 'extern "C"' is for builds by C++ compilers;
! 20072: although this is not generally supported in C code supporting it here
! 20073: has little cost and some practical benefit (sr 110532). */
1.128 moko 20074: #ifdef __cplusplus
20075: extern "C"
20076: #endif
1.237 ! moko 20077: char dlopen (void);
1.128 moko 20078: int
1.237 ! moko 20079: main (void)
1.128 moko 20080: {
1.150 moko 20081: return dlopen ();
1.128 moko 20082: ;
20083: return 0;
20084: }
20085: _ACEOF
1.237 ! moko 20086: for ac_lib in '' dl
! 20087: do
1.150 moko 20088: if test -z "$ac_lib"; then
20089: ac_res="none required"
20090: else
20091: ac_res=-l$ac_lib
20092: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20093: fi
1.237 ! moko 20094: if ac_fn_c_try_link "$LINENO"
! 20095: then :
1.150 moko 20096: ac_cv_search_dlopen=$ac_res
20097: fi
1.237 ! moko 20098: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20099: conftest$ac_exeext
1.237 ! moko 20100: if test ${ac_cv_search_dlopen+y}
! 20101: then :
1.150 moko 20102: break
1.128 moko 20103: fi
1.150 moko 20104: done
1.237 ! moko 20105: if test ${ac_cv_search_dlopen+y}
! 20106: then :
1.128 moko 20107:
1.237 ! moko 20108: else case e in #(
! 20109: e) ac_cv_search_dlopen=no ;;
! 20110: esac
1.128 moko 20111: fi
1.150 moko 20112: rm conftest.$ac_ext
1.237 ! moko 20113: LIBS=$ac_func_search_save_LIBS ;;
! 20114: esac
1.128 moko 20115: fi
1.237 ! moko 20116: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
! 20117: printf "%s\n" "$ac_cv_search_dlopen" >&6; }
1.150 moko 20118: ac_res=$ac_cv_search_dlopen
1.237 ! moko 20119: if test "$ac_res" != no
! 20120: then :
1.150 moko 20121: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.128 moko 20122:
1.237 ! moko 20123: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 20124:
1.237 ! moko 20125: if test "$ac_cv_search_dlopen" != "none required"; then
! 20126: LIBADD_DLOPEN=-ldl
1.128 moko 20127: fi
1.237 ! moko 20128: libltdl_cv_lib_dl_dlopen=yes
1.128 moko 20129: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
1.237 ! moko 20130: else case e in #(
! 20131: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 20132: /* end confdefs.h. */
20133: #if HAVE_DLFCN_H
20134: # include <dlfcn.h>
20135: #endif
20136:
20137: int
1.237 ! moko 20138: main (void)
1.128 moko 20139: {
20140: dlopen(0, 0);
20141: ;
20142: return 0;
20143: }
20144: _ACEOF
1.237 ! moko 20145: if ac_fn_c_try_link "$LINENO"
! 20146: then :
1.128 moko 20147:
1.237 ! moko 20148: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 20149:
1.237 ! moko 20150: libltdl_cv_func_dlopen=yes
1.128 moko 20151: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
1.237 ! moko 20152: else case e in #(
! 20153: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
! 20154: printf %s "checking for dlopen in -lsvld... " >&6; }
! 20155: if test ${ac_cv_lib_svld_dlopen+y}
! 20156: then :
! 20157: printf %s "(cached) " >&6
! 20158: else case e in #(
! 20159: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 20160: LIBS="-lsvld $LIBS"
1.150 moko 20161: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 20162: /* end confdefs.h. */
20163:
1.150 moko 20164: /* Override any GCC internal prototype to avoid an error.
20165: Use char because int might match the return type of a GCC
1.237 ! moko 20166: builtin and then its argument prototype would still apply.
! 20167: The 'extern "C"' is for builds by C++ compilers;
! 20168: although this is not generally supported in C code supporting it here
! 20169: has little cost and some practical benefit (sr 110532). */
1.128 moko 20170: #ifdef __cplusplus
20171: extern "C"
20172: #endif
1.237 ! moko 20173: char dlopen (void);
1.128 moko 20174: int
1.237 ! moko 20175: main (void)
1.128 moko 20176: {
1.150 moko 20177: return dlopen ();
1.128 moko 20178: ;
20179: return 0;
20180: }
20181: _ACEOF
1.237 ! moko 20182: if ac_fn_c_try_link "$LINENO"
! 20183: then :
1.128 moko 20184: ac_cv_lib_svld_dlopen=yes
1.237 ! moko 20185: else case e in #(
! 20186: e) ac_cv_lib_svld_dlopen=no ;;
! 20187: esac
1.128 moko 20188: fi
1.237 ! moko 20189: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20190: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 20191: LIBS=$ac_check_lib_save_LIBS ;;
! 20192: esac
1.128 moko 20193: fi
1.237 ! moko 20194: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
! 20195: printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
! 20196: if test "x$ac_cv_lib_svld_dlopen" = xyes
! 20197: then :
1.128 moko 20198:
1.237 ! moko 20199: printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
1.128 moko 20200:
1.237 ! moko 20201: LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
1.128 moko 20202: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20203: fi
1.237 ! moko 20204: ;;
! 20205: esac
1.128 moko 20206: fi
1.237 ! moko 20207: rm -f core conftest.err conftest.$ac_objext conftest.beam \
! 20208: conftest$ac_exeext conftest.$ac_ext ;;
! 20209: esac
1.128 moko 20210: fi
20211:
1.237 ! moko 20212: if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
1.128 moko 20213: then
1.237 ! moko 20214: lt_save_LIBS=$LIBS
1.128 moko 20215: LIBS="$LIBS $LIBADD_DLOPEN"
1.150 moko 20216: ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
1.237 ! moko 20217: if test "x$ac_cv_func_dlerror" = xyes
! 20218: then :
! 20219: printf "%s\n" "#define HAVE_DLERROR 1" >>confdefs.h
1.128 moko 20220:
20221: fi
20222:
1.237 ! moko 20223: LIBS=$lt_save_LIBS
1.128 moko 20224: fi
20225:
20226:
20227: LIBADD_SHL_LOAD=
1.150 moko 20228: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1.237 ! moko 20229: if test "x$ac_cv_func_shl_load" = xyes
! 20230: then :
1.128 moko 20231:
1.237 ! moko 20232: printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.128 moko 20233:
20234: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.237 ! moko 20235: else case e in #(
! 20236: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
! 20237: printf %s "checking for shl_load in -ldld... " >&6; }
! 20238: if test ${ac_cv_lib_dld_shl_load+y}
! 20239: then :
! 20240: printf %s "(cached) " >&6
! 20241: else case e in #(
! 20242: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 20243: LIBS="-ldld $LIBS"
1.150 moko 20244: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 20245: /* end confdefs.h. */
1.10 paf 20246:
1.150 moko 20247: /* Override any GCC internal prototype to avoid an error.
20248: Use char because int might match the return type of a GCC
1.237 ! moko 20249: builtin and then its argument prototype would still apply.
! 20250: The 'extern "C"' is for builds by C++ compilers;
! 20251: although this is not generally supported in C code supporting it here
! 20252: has little cost and some practical benefit (sr 110532). */
1.66 paf 20253: #ifdef __cplusplus
20254: extern "C"
20255: #endif
1.237 ! moko 20256: char shl_load (void);
1.66 paf 20257: int
1.237 ! moko 20258: main (void)
1.66 paf 20259: {
1.150 moko 20260: return shl_load ();
1.66 paf 20261: ;
20262: return 0;
20263: }
20264: _ACEOF
1.237 ! moko 20265: if ac_fn_c_try_link "$LINENO"
! 20266: then :
1.66 paf 20267: ac_cv_lib_dld_shl_load=yes
1.237 ! moko 20268: else case e in #(
! 20269: e) ac_cv_lib_dld_shl_load=no ;;
! 20270: esac
1.66 paf 20271: fi
1.237 ! moko 20272: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20273: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 20274: LIBS=$ac_check_lib_save_LIBS ;;
! 20275: esac
1.66 paf 20276: fi
1.237 ! moko 20277: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
! 20278: printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
! 20279: if test "x$ac_cv_lib_dld_shl_load" = xyes
! 20280: then :
1.1 paf 20281:
1.237 ! moko 20282: printf "%s\n" "#define HAVE_SHL_LOAD 1" >>confdefs.h
1.1 paf 20283:
1.128 moko 20284: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
1.237 ! moko 20285: LIBADD_SHL_LOAD=-ldld
1.128 moko 20286: fi
1.237 ! moko 20287: ;;
! 20288: esac
1.128 moko 20289: fi
20290:
20291:
20292:
20293: case $host_os in
20294: darwin[1567].*)
20295: # We only want this for pre-Mac OS X 10.4.
1.150 moko 20296: ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
1.237 ! moko 20297: if test "x$ac_cv_func__dyld_func_lookup" = xyes
! 20298: then :
1.150 moko 20299:
1.237 ! moko 20300: printf "%s\n" "#define HAVE_DYLD 1" >>confdefs.h
1.128 moko 20301:
1.150 moko 20302: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20303: fi
1.128 moko 20304:
1.150 moko 20305: ;;
20306: beos*)
1.128 moko 20307: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20308: ;;
1.237 ! moko 20309: cygwin* | mingw* | windows* | pw32*)
! 20310: ac_fn_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
! 20311: " "$ac_c_undeclared_builtin_options" "CFLAGS"
! 20312: if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes
! 20313: then :
1.150 moko 20314: ac_have_decl=1
1.237 ! moko 20315: else case e in #(
! 20316: e) ac_have_decl=0 ;;
! 20317: esac
1.128 moko 20318: fi
1.237 ! moko 20319: printf "%s\n" "#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl" >>confdefs.h
1.128 moko 20320:
20321: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20322: ;;
20323: esac
20324:
1.237 ! moko 20325: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
! 20326: printf %s "checking for dld_link in -ldld... " >&6; }
! 20327: if test ${ac_cv_lib_dld_dld_link+y}
! 20328: then :
! 20329: printf %s "(cached) " >&6
! 20330: else case e in #(
! 20331: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 20332: LIBS="-ldld $LIBS"
1.150 moko 20333: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 20334: /* end confdefs.h. */
1.62 paf 20335:
1.150 moko 20336: /* Override any GCC internal prototype to avoid an error.
20337: Use char because int might match the return type of a GCC
1.237 ! moko 20338: builtin and then its argument prototype would still apply.
! 20339: The 'extern "C"' is for builds by C++ compilers;
! 20340: although this is not generally supported in C code supporting it here
! 20341: has little cost and some practical benefit (sr 110532). */
1.66 paf 20342: #ifdef __cplusplus
20343: extern "C"
20344: #endif
1.237 ! moko 20345: char dld_link (void);
1.66 paf 20346: int
1.237 ! moko 20347: main (void)
1.66 paf 20348: {
1.150 moko 20349: return dld_link ();
1.66 paf 20350: ;
20351: return 0;
20352: }
20353: _ACEOF
1.237 ! moko 20354: if ac_fn_c_try_link "$LINENO"
! 20355: then :
1.128 moko 20356: ac_cv_lib_dld_dld_link=yes
1.237 ! moko 20357: else case e in #(
! 20358: e) ac_cv_lib_dld_dld_link=no ;;
! 20359: esac
1.128 moko 20360: fi
1.237 ! moko 20361: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20362: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 20363: LIBS=$ac_check_lib_save_LIBS ;;
! 20364: esac
1.128 moko 20365: fi
1.237 ! moko 20366: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
! 20367: printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
! 20368: if test "x$ac_cv_lib_dld_dld_link" = xyes
! 20369: then :
1.128 moko 20370:
1.237 ! moko 20371: printf "%s\n" "#define HAVE_DLD 1" >>confdefs.h
1.128 moko 20372:
20373: LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20374: fi
20375:
20376:
20377:
20378:
20379: LT_DLPREOPEN=
20380: if test -n "$LT_DLLOADERS"
20381: then
20382: for lt_loader in $LT_DLLOADERS; do
20383: LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20384: done
20385:
1.237 ! moko 20386: printf "%s\n" "#define HAVE_LIBDLLOADER 1" >>confdefs.h
1.128 moko 20387:
20388: fi
20389:
20390:
20391: LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20392:
20393:
1.237 ! moko 20394: LIBS=$lt_dlload_save_LIBS
1.128 moko 20395: ac_ext=c
20396: ac_cpp='$CPP $CPPFLAGS'
20397: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20398: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20399: ac_compiler_gnu=$ac_cv_c_compiler_gnu
20400:
20401:
1.237 ! moko 20402: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
! 20403: printf %s "checking for _ prefix in compiled symbols... " >&6; }
! 20404: if test ${lt_cv_sys_symbol_underscore+y}
! 20405: then :
! 20406: printf %s "(cached) " >&6
! 20407: else case e in #(
! 20408: e) lt_cv_sys_symbol_underscore=no
1.128 moko 20409: cat > conftest.$ac_ext <<_LT_EOF
20410: void nm_test_func(){}
1.237 ! moko 20411: int main(void){nm_test_func;return 0;}
1.128 moko 20412: _LT_EOF
1.150 moko 20413: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1.128 moko 20414: (eval $ac_compile) 2>&5
20415: ac_status=$?
1.237 ! moko 20416: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 20417: test $ac_status = 0; }; then
1.128 moko 20418: # Now try to grab the symbols.
20419: ac_nlist=conftest.nm
1.150 moko 20420: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
1.128 moko 20421: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20422: ac_status=$?
1.237 ! moko 20423: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.150 moko 20424: test $ac_status = 0; } && test -s "$ac_nlist"; then
1.128 moko 20425: # See whether the symbols have a leading underscore.
20426: if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20427: lt_cv_sys_symbol_underscore=yes
20428: else
20429: if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20430: :
20431: else
20432: echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20433: fi
20434: fi
20435: else
20436: echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20437: fi
20438: else
20439: echo "configure: failed program was:" >&5
20440: cat conftest.c >&5
20441: fi
20442: rm -rf conftest*
1.237 ! moko 20443: ;;
! 20444: esac
1.66 paf 20445: fi
1.237 ! moko 20446: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
! 20447: printf "%s\n" "$lt_cv_sys_symbol_underscore" >&6; }
1.128 moko 20448: sys_symbol_underscore=$lt_cv_sys_symbol_underscore
1.29 paf 20449:
1.62 paf 20450:
1.237 ! moko 20451: if test yes = "$lt_cv_sys_symbol_underscore"; then
! 20452: if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
! 20453: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
! 20454: printf %s "checking whether we have to add an underscore for dlsym... " >&6; }
! 20455: if test ${libltdl_cv_need_uscore+y}
! 20456: then :
! 20457: printf %s "(cached) " >&6
! 20458: else case e in #(
! 20459: e) libltdl_cv_need_uscore=unknown
! 20460: dlsym_uscore_save_LIBS=$LIBS
! 20461: LIBS="$LIBS $LIBADD_DLOPEN"
! 20462: libname=conftmod # stay within 8.3 filename limits!
! 20463: cat >$libname.$ac_ext <<_LT_EOF
1.128 moko 20464: #line $LINENO "configure"
20465: #include "confdefs.h"
1.237 ! moko 20466: /* When -fvisibility=hidden is used, assume the code has been annotated
! 20467: correspondingly for the symbols needed. */
! 20468: #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
! 20469: int fnord () __attribute__((visibility("default")));
! 20470: #endif
! 20471: int fnord () { return 42; }
! 20472: _LT_EOF
1.128 moko 20473:
1.237 ! moko 20474: # ltfn_module_cmds module_cmds
! 20475: # Execute tilde-delimited MODULE_CMDS with environment primed for
! 20476: # $module_cmds or $archive_cmds type content.
! 20477: ltfn_module_cmds ()
! 20478: {( # subshell avoids polluting parent global environment
! 20479: module_cmds_save_ifs=$IFS; IFS='~'
! 20480: for cmd in $1; do
! 20481: IFS=$module_cmds_save_ifs
! 20482: libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
! 20483: rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
! 20484: major=; versuffix=; verstring=; deplibs=
! 20485: ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
! 20486: eval $cmd
! 20487: done
! 20488: IFS=$module_cmds_save_ifs
! 20489: )}
! 20490:
! 20491: # Compile a loadable module using libtool macro expansion results.
! 20492: $CC $pic_flag -c $libname.$ac_ext
! 20493: ltfn_module_cmds "${module_cmds:-$archive_cmds}"
! 20494:
! 20495: # Try to fetch fnord with dlsym().
! 20496: libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
! 20497: cat >conftest.$ac_ext <<_LT_EOF
! 20498: #line $LINENO "configure"
! 20499: #include "confdefs.h"
1.66 paf 20500: #if HAVE_DLFCN_H
1.128 moko 20501: #include <dlfcn.h>
20502: #endif
20503: #include <stdio.h>
1.237 ! moko 20504: #ifndef RTLD_GLOBAL
1.128 moko 20505: # ifdef DL_GLOBAL
1.237 ! moko 20506: # define RTLD_GLOBAL DL_GLOBAL
1.128 moko 20507: # else
1.237 ! moko 20508: # define RTLD_GLOBAL 0
1.128 moko 20509: # endif
20510: #endif
1.237 ! moko 20511: #ifndef RTLD_NOW
! 20512: # ifdef DL_NOW
! 20513: # define RTLD_NOW DL_NOW
1.128 moko 20514: # else
1.237 ! moko 20515: # define RTLD_NOW 0
1.128 moko 20516: # endif
20517: #endif
1.237 ! moko 20518: int main (void) {
! 20519: void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
! 20520: int status = $libltdl_dlunknown;
! 20521: if (handle) {
! 20522: if (dlsym (handle, "fnord"))
! 20523: status = $libltdl_dlnouscore;
! 20524: else {
! 20525: if (dlsym (handle, "_fnord"))
! 20526: status = $libltdl_dluscore;
1.128 moko 20527: else
1.237 ! moko 20528: puts (dlerror ());
1.128 moko 20529: }
1.237 ! moko 20530: dlclose (handle);
! 20531: } else
1.128 moko 20532: puts (dlerror ());
20533: return status;
1.66 paf 20534: }
1.128 moko 20535: _LT_EOF
1.237 ! moko 20536: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
1.128 moko 20537: (eval $ac_link) 2>&5
1.66 paf 20538: ac_status=$?
1.237 ! moko 20539: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
! 20540: test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
! 20541: (./conftest; exit; ) >&5 2>/dev/null
! 20542: libltdl_status=$?
! 20543: case x$libltdl_status in
! 20544: x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
! 20545: x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
! 20546: x*) libltdl_cv_need_uscore=unknown ;;
! 20547: esac
! 20548: fi
! 20549: rm -rf conftest* $libname*
! 20550: LIBS=$dlsym_uscore_save_LIBS
! 20551: ;;
! 20552: esac
1.128 moko 20553: fi
1.237 ! moko 20554: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
! 20555: printf "%s\n" "$libltdl_cv_need_uscore" >&6; }
1.128 moko 20556: fi
20557: fi
20558:
1.237 ! moko 20559: if test yes = "$libltdl_cv_need_uscore"; then
1.29 paf 20560:
1.237 ! moko 20561: printf "%s\n" "#define NEED_USCORE 1" >>confdefs.h
1.29 paf 20562:
1.128 moko 20563: fi
20564:
1.237 ! moko 20565: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
! 20566: printf %s "checking whether deplibs are loaded by dlopen... " >&6; }
! 20567: if test ${lt_cv_sys_dlopen_deplibs+y}
! 20568: then :
! 20569: printf %s "(cached) " >&6
! 20570: else case e in #(
! 20571: e) # PORTME does your system automatically load deplibs for dlopen?
1.128 moko 20572: # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20573: # For now, we just catch OSes we know something about -- in the
20574: # future, we'll try test this programmatically.
20575: lt_cv_sys_dlopen_deplibs=unknown
20576: case $host_os in
20577: aix3*|aix4.1.*|aix4.2.*)
20578: # Unknown whether this is true for these versions of AIX, but
1.237 ! moko 20579: # we want this 'case' here to explicitly catch those versions.
1.128 moko 20580: lt_cv_sys_dlopen_deplibs=unknown
20581: ;;
20582: aix[4-9]*)
20583: lt_cv_sys_dlopen_deplibs=yes
20584: ;;
20585: amigaos*)
20586: case $host_cpu in
20587: powerpc)
20588: lt_cv_sys_dlopen_deplibs=no
20589: ;;
20590: esac
20591: ;;
20592: darwin*)
20593: # Assuming the user has installed a libdl from somewhere, this is true
20594: # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20595: lt_cv_sys_dlopen_deplibs=yes
20596: ;;
1.237 ! moko 20597: freebsd* | dragonfly* | midnightbsd*)
1.128 moko 20598: lt_cv_sys_dlopen_deplibs=yes
20599: ;;
20600: gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
20601: # GNU and its variants, using gnu ld.so (Glibc)
20602: lt_cv_sys_dlopen_deplibs=yes
20603: ;;
20604: hpux10*|hpux11*)
20605: lt_cv_sys_dlopen_deplibs=yes
20606: ;;
20607: interix*)
20608: lt_cv_sys_dlopen_deplibs=yes
20609: ;;
20610: irix[12345]*|irix6.[01]*)
20611: # Catch all versions of IRIX before 6.2, and indicate that we don't
20612: # know how it worked for any of those versions.
20613: lt_cv_sys_dlopen_deplibs=unknown
20614: ;;
20615: irix*)
20616: # The case above catches anything before 6.2, and it's known that
20617: # at 6.2 and later dlopen does load deplibs.
20618: lt_cv_sys_dlopen_deplibs=yes
20619: ;;
1.237 ! moko 20620: *-mlibc)
! 20621: lt_cv_sys_dlopen_deplibs=yes
! 20622: ;;
! 20623: netbsd* | netbsdelf*-gnu)
1.128 moko 20624: lt_cv_sys_dlopen_deplibs=yes
20625: ;;
20626: openbsd*)
20627: lt_cv_sys_dlopen_deplibs=yes
20628: ;;
20629: osf[1234]*)
20630: # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20631: # it did *not* use an RPATH in a shared library to find objects the
1.237 ! moko 20632: # library depends on, so we explicitly say 'no'.
1.128 moko 20633: lt_cv_sys_dlopen_deplibs=no
20634: ;;
20635: osf5.0|osf5.0a|osf5.1)
20636: # dlopen *does* load deplibs and with the right loader patch applied
20637: # it even uses RPATH in a shared library to search for shared objects
20638: # that the library depends on, but there's no easy way to know if that
20639: # patch is installed. Since this is the case, all we can really
20640: # say is unknown -- it depends on the patch being installed. If
1.237 ! moko 20641: # it is, this changes to 'yes'. Without it, it would be 'no'.
1.128 moko 20642: lt_cv_sys_dlopen_deplibs=unknown
20643: ;;
20644: osf*)
20645: # the two cases above should catch all versions of osf <= 5.1. Read
20646: # the comments above for what we know about them.
20647: # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
1.237 ! moko 20648: # is used to find them so we can finally say 'yes'.
1.128 moko 20649: lt_cv_sys_dlopen_deplibs=yes
20650: ;;
20651: qnx*)
20652: lt_cv_sys_dlopen_deplibs=yes
20653: ;;
20654: solaris*)
20655: lt_cv_sys_dlopen_deplibs=yes
20656: ;;
20657: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20658: libltdl_cv_sys_dlopen_deplibs=yes
20659: ;;
20660: esac
1.237 ! moko 20661: ;;
! 20662: esac
1.128 moko 20663: fi
1.237 ! moko 20664: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
! 20665: printf "%s\n" "$lt_cv_sys_dlopen_deplibs" >&6; }
! 20666: if test yes != "$lt_cv_sys_dlopen_deplibs"; then
1.128 moko 20667:
1.237 ! moko 20668: printf "%s\n" "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
1.128 moko 20669:
20670: fi
20671:
20672:
1.237 ! moko 20673: ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
1.150 moko 20674: "
1.237 ! moko 20675: if test "x$ac_cv_header_argz_h" = xyes
! 20676: then :
! 20677: printf "%s\n" "#define HAVE_ARGZ_H 1" >>confdefs.h
1.128 moko 20678:
1.66 paf 20679: fi
1.62 paf 20680:
1.29 paf 20681:
1.150 moko 20682: ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
1.128 moko 20683: # include <argz.h>
20684: #endif
1.150 moko 20685: "
1.237 ! moko 20686: if test "x$ac_cv_type_error_t" = xyes
! 20687: then :
1.29 paf 20688:
1.237 ! moko 20689: printf "%s\n" "#define HAVE_ERROR_T 1" >>confdefs.h
1.16 paf 20690:
20691:
1.237 ! moko 20692: else case e in #(
! 20693: e)
! 20694: printf "%s\n" "#define error_t int" >>confdefs.h
1.16 paf 20695:
20696:
1.237 ! moko 20697: printf "%s\n" "#define __error_t_defined 1" >>confdefs.h
! 20698: ;;
! 20699: esac
! 20700: fi
1.12 paf 20701:
20702:
1.237 ! moko 20703: LT_ARGZ_H=
1.128 moko 20704:
1.237 ! moko 20705: for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert argz_next argz_stringify
1.150 moko 20706: do :
1.237 ! moko 20707: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
1.150 moko 20708: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.237 ! moko 20709: if eval test \"x\$"$as_ac_var"\" = x"yes"
! 20710: then :
1.128 moko 20711: cat >>confdefs.h <<_ACEOF
1.237 ! moko 20712: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
1.128 moko 20713: _ACEOF
20714:
1.237 ! moko 20715: else case e in #(
! 20716: e) LT_ARGZ_H=lt__argz.h;
1.128 moko 20717:
1.237 ! moko 20718: _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
! 20719: ;;
! 20720: esac
1.128 moko 20721: fi
1.237 ! moko 20722:
1.128 moko 20723: done
20724:
1.237 ! moko 20725: if test -z "$LT_ARGZ_H"
! 20726: then :
! 20727: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
! 20728: printf %s "checking if argz actually works... " >&6; }
! 20729: if test ${lt_cv_sys_argz_works+y}
! 20730: then :
! 20731: printf %s "(cached) " >&6
! 20732: else case e in #(
! 20733: e) case $host_os in #(
1.128 moko 20734: *cygwin*)
20735: lt_cv_sys_argz_works=no
1.237 ! moko 20736: if test no != "$cross_compiling"; then
1.128 moko 20737: lt_cv_sys_argz_works="guessing no"
20738: else
20739: lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20740: save_IFS=$IFS
20741: IFS=-.
1.237 ! moko 20742: set x `uname -r | $SED -e "$lt_sed_extract_leading_digits"`
1.128 moko 20743: IFS=$save_IFS
20744: lt_os_major=${2-0}
20745: lt_os_minor=${3-0}
20746: lt_os_micro=${4-0}
1.237 ! moko 20747: if test 1 -lt "$lt_os_major" \
! 20748: || { test 1 -eq "$lt_os_major" \
! 20749: && { test 5 -lt "$lt_os_minor" \
! 20750: || { test 5 -eq "$lt_os_minor" \
! 20751: && test 24 -lt "$lt_os_micro"; }; }; }; then
1.128 moko 20752: lt_cv_sys_argz_works=yes
20753: fi
20754: fi
20755: ;; #(
20756: *) lt_cv_sys_argz_works=yes ;;
1.237 ! moko 20757: esac ;;
! 20758: esac
1.128 moko 20759: fi
1.237 ! moko 20760: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
! 20761: printf "%s\n" "$lt_cv_sys_argz_works" >&6; }
! 20762: if test yes = "$lt_cv_sys_argz_works"
! 20763: then :
1.128 moko 20764:
1.237 ! moko 20765: printf "%s\n" "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
1.128 moko 20766:
1.237 ! moko 20767: else case e in #(
! 20768: e) LT_ARGZ_H=lt__argz.h
1.128 moko 20769:
20770:
1.237 ! moko 20771: _LT_LIBOBJS="$_LT_LIBOBJS lt__argz.$ac_objext"
! 20772: ;;
! 20773: esac
1.128 moko 20774: fi
1.62 paf 20775: fi
1.128 moko 20776:
20777:
20778:
1.237 ! moko 20779: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
! 20780: printf %s "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
! 20781: if test ${libltdl_cv_preloaded_symbols+y}
! 20782: then :
! 20783: printf %s "(cached) " >&6
! 20784: else case e in #(
! 20785: e) if test -n "$lt_cv_sys_global_symbol_pipe"; then
1.128 moko 20786: libltdl_cv_preloaded_symbols=yes
20787: else
20788: libltdl_cv_preloaded_symbols=no
20789: fi
1.237 ! moko 20790: ;;
! 20791: esac
1.62 paf 20792: fi
1.237 ! moko 20793: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
! 20794: printf "%s\n" "$libltdl_cv_preloaded_symbols" >&6; }
! 20795: if test yes = "$libltdl_cv_preloaded_symbols"; then
1.128 moko 20796:
1.237 ! moko 20797: printf "%s\n" "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
1.66 paf 20798:
20799: fi
20800:
1.150 moko 20801:
20802:
1.128 moko 20803: # Set options
20804:
20805:
20806:
20807:
20808:
20809:
20810:
20811:
20812:
20813:
1.66 paf 20814:
20815:
1.150 moko 20816: # Check whether --with-included_ltdl was given.
1.237 ! moko 20817: if test ${with_included_ltdl+y}
! 20818: then :
1.150 moko 20819: withval=$with_included_ltdl;
20820: fi
1.64 paf 20821:
20822:
1.237 ! moko 20823: if test yes != "$with_included_ltdl"; then
1.128 moko 20824: # We are not being forced to use the included libltdl sources, so
20825: # decide whether there is a useful installed version we can use.
1.150 moko 20826: ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
1.128 moko 20827:
1.150 moko 20828: "
1.237 ! moko 20829: if test "x$ac_cv_header_ltdl_h" = xyes
! 20830: then :
! 20831: ac_fn_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
1.128 moko 20832: #include <ltdl.h>
1.237 ! moko 20833: " "$ac_c_undeclared_builtin_options" "CFLAGS"
! 20834: if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes
! 20835: then :
! 20836: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
! 20837: printf %s "checking for lt_dladvise_preload in -lltdl... " >&6; }
! 20838: if test ${ac_cv_lib_ltdl_lt_dladvise_preload+y}
! 20839: then :
! 20840: printf %s "(cached) " >&6
! 20841: else case e in #(
! 20842: e) ac_check_lib_save_LIBS=$LIBS
1.128 moko 20843: LIBS="-lltdl $LIBS"
1.150 moko 20844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.79 paf 20845: /* end confdefs.h. */
1.128 moko 20846:
1.150 moko 20847: /* Override any GCC internal prototype to avoid an error.
20848: Use char because int might match the return type of a GCC
1.237 ! moko 20849: builtin and then its argument prototype would still apply.
! 20850: The 'extern "C"' is for builds by C++ compilers;
! 20851: although this is not generally supported in C code supporting it here
! 20852: has little cost and some practical benefit (sr 110532). */
1.128 moko 20853: #ifdef __cplusplus
20854: extern "C"
20855: #endif
1.237 ! moko 20856: char lt_dladvise_preload (void);
1.79 paf 20857: int
1.237 ! moko 20858: main (void)
1.79 paf 20859: {
1.150 moko 20860: return lt_dladvise_preload ();
1.79 paf 20861: ;
20862: return 0;
20863: }
20864: _ACEOF
1.237 ! moko 20865: if ac_fn_c_try_link "$LINENO"
! 20866: then :
1.128 moko 20867: ac_cv_lib_ltdl_lt_dladvise_preload=yes
1.237 ! moko 20868: else case e in #(
! 20869: e) ac_cv_lib_ltdl_lt_dladvise_preload=no ;;
! 20870: esac
1.128 moko 20871: fi
1.237 ! moko 20872: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 20873: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 20874: LIBS=$ac_check_lib_save_LIBS ;;
! 20875: esac
1.79 paf 20876: fi
1.237 ! moko 20877: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
! 20878: printf "%s\n" "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
! 20879: if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes
! 20880: then :
1.128 moko 20881: with_included_ltdl=no
1.237 ! moko 20882: else case e in #(
! 20883: e) with_included_ltdl=yes ;;
! 20884: esac
1.128 moko 20885: fi
20886:
1.237 ! moko 20887: else case e in #(
! 20888: e) with_included_ltdl=yes ;;
! 20889: esac
1.128 moko 20890: fi
1.237 ! moko 20891: else case e in #(
! 20892: e) with_included_ltdl=yes ;;
! 20893: esac
1.79 paf 20894: fi
1.128 moko 20895:
1.79 paf 20896: fi
1.128 moko 20897:
20898:
20899:
20900:
1.150 moko 20901: # Check whether --with-ltdl_include was given.
1.237 ! moko 20902: if test ${with_ltdl_include+y}
! 20903: then :
1.150 moko 20904: withval=$with_ltdl_include;
20905: fi
1.128 moko 20906:
20907:
20908: if test -n "$with_ltdl_include"; then
20909: if test -f "$with_ltdl_include/ltdl.h"; then :
20910: else
1.237 ! moko 20911: as_fn_error $? "invalid ltdl include directory: '$with_ltdl_include'" "$LINENO" 5
1.128 moko 20912: fi
20913: else
20914: with_ltdl_include=no
1.79 paf 20915: fi
1.128 moko 20916:
20917:
1.150 moko 20918: # Check whether --with-ltdl_lib was given.
1.237 ! moko 20919: if test ${with_ltdl_lib+y}
! 20920: then :
1.150 moko 20921: withval=$with_ltdl_lib;
20922: fi
1.128 moko 20923:
20924:
20925: if test -n "$with_ltdl_lib"; then
20926: if test -f "$with_ltdl_lib/libltdl.la"; then :
20927: else
1.237 ! moko 20928: as_fn_error $? "invalid ltdl library directory: '$with_ltdl_lib'" "$LINENO" 5
1.128 moko 20929: fi
20930: else
20931: with_ltdl_lib=no
1.79 paf 20932: fi
20933:
1.128 moko 20934: case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20935: ,yes,no,no,)
20936: case $enable_ltdl_convenience in
1.150 moko 20937: no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
1.128 moko 20938: "") enable_ltdl_convenience=yes
20939: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20940: esac
1.237 ! moko 20941: LIBLTDL='$(top_build_prefix)'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
1.128 moko 20942: LTDLDEPS=$LIBLTDL
1.237 ! moko 20943: LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
1.128 moko 20944:
20945:
20946:
20947:
20948:
20949: # For backwards non-gettext consistent compatibility...
1.237 ! moko 20950: INCLTDL=$LTDLINCL
1.128 moko 20951:
1.79 paf 20952:
1.128 moko 20953: ;;
20954: ,no,no,no,)
20955: # If the included ltdl is not to be used, then use the
20956: # preinstalled libltdl we found.
1.79 paf 20957:
1.237 ! moko 20958: printf "%s\n" "#define HAVE_LTDL 1" >>confdefs.h
1.79 paf 20959:
1.128 moko 20960: LIBLTDL=-lltdl
20961: LTDLDEPS=
20962: LTDLINCL=
20963: ;;
20964: ,no*,no,*)
1.237 ! moko 20965: as_fn_error $? "'--with-ltdl-include' and '--with-ltdl-lib' options must be used together" "$LINENO" 5
1.128 moko 20966: ;;
20967: *) with_included_ltdl=no
20968: LIBLTDL="-L$with_ltdl_lib -lltdl"
20969: LTDLDEPS=
1.237 ! moko 20970: LTDLINCL=-I$with_ltdl_include
1.128 moko 20971: ;;
20972: esac
1.237 ! moko 20973: INCLTDL=$LTDLINCL
1.128 moko 20974:
20975: # Report our decision...
1.237 ! moko 20976: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
! 20977: printf %s "checking where to find libltdl headers... " >&6; }
! 20978: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
! 20979: printf "%s\n" "$LTDLINCL" >&6; }
! 20980: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
! 20981: printf %s "checking where to find libltdl library... " >&6; }
! 20982: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
! 20983: printf "%s\n" "$LIBLTDL" >&6; }
1.128 moko 20984:
20985:
20986:
1.150 moko 20987: # Check whether --enable-ltdl-install was given.
1.237 ! moko 20988: if test ${enable_ltdl_install+y}
! 20989: then :
1.150 moko 20990: enableval=$enable_ltdl_install;
20991: fi
1.128 moko 20992:
20993:
1.237 ! moko 20994: case ,$enable_ltdl_install,$enable_ltdl_convenience in
1.128 moko 20995: *yes*) ;;
20996: *) enable_ltdl_convenience=yes ;;
20997: esac
20998:
1.237 ! moko 20999: if test no != "${enable_ltdl_install-no}"; then
1.128 moko 21000: INSTALL_LTDL_TRUE=
21001: INSTALL_LTDL_FALSE='#'
21002: else
21003: INSTALL_LTDL_TRUE='#'
21004: INSTALL_LTDL_FALSE=
21005: fi
21006:
1.237 ! moko 21007: if test no != "${enable_ltdl_convenience-no}"; then
1.128 moko 21008: CONVENIENCE_LTDL_TRUE=
21009: CONVENIENCE_LTDL_FALSE='#'
21010: else
21011: CONVENIENCE_LTDL_TRUE='#'
21012: CONVENIENCE_LTDL_FALSE=
21013: fi
21014:
1.237 ! moko 21015: if test -n "$LT_ARGZ_H"; then
! 21016: LTARGZH_EXISTS_TRUE=
! 21017: LTARGZH_EXISTS_FALSE='#'
! 21018: else
! 21019: LTARGZH_EXISTS_TRUE='#'
! 21020: LTARGZH_EXISTS_FALSE=
! 21021: fi
! 21022:
1.128 moko 21023:
21024:
1.150 moko 21025: subdirs="$subdirs src/lib/ltdl"
1.128 moko 21026:
21027:
21028:
21029:
21030: # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21031: # the user used. This is so that ltdl.h can pick up the parent projects
21032: # config.h file, The first file in AC_CONFIG_HEADERS must contain the
21033: # definitions required by ltdl.c.
21034: # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21035:
21036:
21037:
1.237 ! moko 21038: ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default
! 21039: "
! 21040: if test "x$ac_cv_header_unistd_h" = xyes
! 21041: then :
! 21042: printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
! 21043:
! 21044: fi
! 21045: ac_fn_c_check_header_compile "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default
! 21046: "
! 21047: if test "x$ac_cv_header_dl_h" = xyes
! 21048: then :
! 21049: printf "%s\n" "#define HAVE_DL_H 1" >>confdefs.h
! 21050:
! 21051: fi
! 21052: ac_fn_c_check_header_compile "$LINENO" "sys/dl.h" "ac_cv_header_sys_dl_h" "$ac_includes_default
! 21053: "
! 21054: if test "x$ac_cv_header_sys_dl_h" = xyes
! 21055: then :
! 21056: printf "%s\n" "#define HAVE_SYS_DL_H 1" >>confdefs.h
! 21057:
! 21058: fi
! 21059: ac_fn_c_check_header_compile "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default
! 21060: "
! 21061: if test "x$ac_cv_header_dld_h" = xyes
! 21062: then :
! 21063: printf "%s\n" "#define HAVE_DLD_H 1" >>confdefs.h
! 21064:
! 21065: fi
! 21066: ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default
! 21067: "
! 21068: if test "x$ac_cv_header_mach_o_dyld_h" = xyes
! 21069: then :
! 21070: printf "%s\n" "#define HAVE_MACH_O_DYLD_H 1" >>confdefs.h
! 21071:
! 21072: fi
! 21073: ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default
1.150 moko 21074: "
1.237 ! moko 21075: if test "x$ac_cv_header_dirent_h" = xyes
! 21076: then :
! 21077: printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
1.128 moko 21078:
1.150 moko 21079: fi
1.128 moko 21080:
21081:
21082:
1.237 ! moko 21083: for ac_func in closedir opendir readdir
1.150 moko 21084: do :
1.237 ! moko 21085: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
1.150 moko 21086: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.237 ! moko 21087: if eval test \"x\$"$as_ac_var"\" = x"yes"
! 21088: then :
1.150 moko 21089: cat >>confdefs.h <<_ACEOF
1.237 ! moko 21090: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
1.150 moko 21091: _ACEOF
1.66 paf 21092:
1.237 ! moko 21093: else case e in #(
! 21094: e)
1.66 paf 21095:
1.128 moko 21096: _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
1.237 ! moko 21097: ;;
! 21098: esac
! 21099: fi
1.1 paf 21100:
1.128 moko 21101: done
21102:
1.237 ! moko 21103: for ac_func in strlcat strlcpy
1.150 moko 21104: do :
1.237 ! moko 21105: as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
1.150 moko 21106: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.237 ! moko 21107: if eval test \"x\$"$as_ac_var"\" = x"yes"
! 21108: then :
1.128 moko 21109: cat >>confdefs.h <<_ACEOF
1.237 ! moko 21110: #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
1.128 moko 21111: _ACEOF
21112:
1.237 ! moko 21113: else case e in #(
! 21114: e)
1.128 moko 21115:
21116: _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
1.237 ! moko 21117: ;;
! 21118: esac
! 21119: fi
1.128 moko 21120:
21121: done
21122:
21123:
1.237 ! moko 21124: printf "%s\n" "#define LT_LIBEXT \"$libext\"" >>confdefs.h
1.64 paf 21125:
1.128 moko 21126:
21127: name=
21128: eval "lt_libprefix=\"$libname_spec\""
21129:
1.237 ! moko 21130: printf "%s\n" "#define LT_LIBPREFIX \"$lt_libprefix\"" >>confdefs.h
1.128 moko 21131:
21132:
21133: name=ltdl
21134: eval "LTDLOPEN=\"$libname_spec\""
21135:
21136:
21137:
21138:
21139:
21140:
21141:
21142:
21143: # Only expand once:
21144:
21145:
21146:
21147:
1.237 ! moko 21148: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
! 21149: printf %s "checking whether byte ordering is bigendian... " >&6; }
! 21150: if test ${ac_cv_c_bigendian+y}
! 21151: then :
! 21152: printf %s "(cached) " >&6
! 21153: else case e in #(
! 21154: e) ac_cv_c_bigendian=unknown
1.150 moko 21155: # See if we're dealing with a universal compiler.
21156: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21157: /* end confdefs.h. */
21158: #ifndef __APPLE_CC__
21159: not a universal capable compiler
21160: #endif
21161: typedef int dummy;
21162:
21163: _ACEOF
1.237 ! moko 21164: if ac_fn_c_try_compile "$LINENO"
! 21165: then :
1.150 moko 21166:
21167: # Check for potential -arch flags. It is not universal unless
21168: # there are at least two -arch flags with different values.
21169: ac_arch=
21170: ac_prev=
21171: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21172: if test -n "$ac_prev"; then
21173: case $ac_word in
21174: i?86 | x86_64 | ppc | ppc64)
21175: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21176: ac_arch=$ac_word
21177: else
21178: ac_cv_c_bigendian=universal
21179: break
21180: fi
21181: ;;
21182: esac
21183: ac_prev=
21184: elif test "x$ac_word" = "x-arch"; then
21185: ac_prev=arch
21186: fi
21187: done
21188: fi
1.237 ! moko 21189: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 21190: if test $ac_cv_c_bigendian = unknown; then
21191: # See if sys/param.h defines the BYTE_ORDER macro.
21192: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.66 paf 21193: /* end confdefs.h. */
1.128 moko 21194: #include <sys/types.h>
1.150 moko 21195: #include <sys/param.h>
1.128 moko 21196:
21197: int
1.237 ! moko 21198: main (void)
1.128 moko 21199: {
1.237 ! moko 21200: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
! 21201: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
1.150 moko 21202: && LITTLE_ENDIAN)
21203: bogus endian macros
21204: #endif
1.64 paf 21205:
1.128 moko 21206: ;
21207: return 0;
21208: }
1.66 paf 21209: _ACEOF
1.237 ! moko 21210: if ac_fn_c_try_compile "$LINENO"
! 21211: then :
1.128 moko 21212: # It does; now see whether it defined to BIG_ENDIAN or not.
1.150 moko 21213: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.64 paf 21214: /* end confdefs.h. */
1.128 moko 21215: #include <sys/types.h>
1.150 moko 21216: #include <sys/param.h>
1.64 paf 21217:
21218: int
1.237 ! moko 21219: main (void)
1.128 moko 21220: {
21221: #if BYTE_ORDER != BIG_ENDIAN
1.150 moko 21222: not big endian
21223: #endif
1.128 moko 21224:
21225: ;
21226: return 0;
1.64 paf 21227: }
21228: _ACEOF
1.237 ! moko 21229: if ac_fn_c_try_compile "$LINENO"
! 21230: then :
1.128 moko 21231: ac_cv_c_bigendian=yes
1.237 ! moko 21232: else case e in #(
! 21233: e) ac_cv_c_bigendian=no ;;
! 21234: esac
1.150 moko 21235: fi
1.237 ! moko 21236: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 21237: fi
1.237 ! moko 21238: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 21239: fi
21240: if test $ac_cv_c_bigendian = unknown; then
21241: # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21242: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21243: /* end confdefs.h. */
21244: #include <limits.h>
1.64 paf 21245:
1.150 moko 21246: int
1.237 ! moko 21247: main (void)
1.150 moko 21248: {
21249: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21250: bogus endian macros
21251: #endif
1.66 paf 21252:
1.150 moko 21253: ;
21254: return 0;
21255: }
1.62 paf 21256: _ACEOF
1.237 ! moko 21257: if ac_fn_c_try_compile "$LINENO"
! 21258: then :
1.150 moko 21259: # It does; now see whether it defined to _BIG_ENDIAN or not.
21260: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 21261: /* end confdefs.h. */
1.150 moko 21262: #include <limits.h>
21263:
1.128 moko 21264: int
1.237 ! moko 21265: main (void)
1.128 moko 21266: {
1.150 moko 21267: #ifndef _BIG_ENDIAN
21268: not big endian
21269: #endif
21270:
1.128 moko 21271: ;
21272: return 0;
21273: }
1.62 paf 21274: _ACEOF
1.237 ! moko 21275: if ac_fn_c_try_compile "$LINENO"
! 21276: then :
1.128 moko 21277: ac_cv_c_bigendian=yes
1.237 ! moko 21278: else case e in #(
! 21279: e) ac_cv_c_bigendian=no ;;
! 21280: esac
1.128 moko 21281: fi
1.237 ! moko 21282: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.128 moko 21283: fi
1.237 ! moko 21284: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 21285: fi
21286: if test $ac_cv_c_bigendian = unknown; then
21287: # Compile a test program.
1.237 ! moko 21288: if test "$cross_compiling" = yes
! 21289: then :
1.150 moko 21290: # Try to guess by grepping values from an object file.
21291: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21292: /* end confdefs.h. */
1.237 ! moko 21293: unsigned short int ascii_mm[] =
1.150 moko 21294: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
1.237 ! moko 21295: unsigned short int ascii_ii[] =
1.150 moko 21296: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21297: int use_ascii (int i) {
21298: return ascii_mm[i] + ascii_ii[i];
21299: }
1.237 ! moko 21300: unsigned short int ebcdic_ii[] =
1.150 moko 21301: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
1.237 ! moko 21302: unsigned short int ebcdic_mm[] =
1.150 moko 21303: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21304: int use_ebcdic (int i) {
21305: return ebcdic_mm[i] + ebcdic_ii[i];
21306: }
1.237 ! moko 21307: int
! 21308: main (int argc, char **argv)
! 21309: {
! 21310: /* Intimidate the compiler so that it does not
! 21311: optimize the arrays away. */
! 21312: char *p = argv[0];
! 21313: ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
! 21314: ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
! 21315: return use_ascii (argc) == use_ebcdic (*p);
! 21316: }
1.150 moko 21317: _ACEOF
1.237 ! moko 21318: if ac_fn_c_try_link "$LINENO"
! 21319: then :
! 21320: if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
1.150 moko 21321: ac_cv_c_bigendian=yes
21322: fi
1.237 ! moko 21323: if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
1.150 moko 21324: if test "$ac_cv_c_bigendian" = unknown; then
21325: ac_cv_c_bigendian=no
21326: else
21327: # finding both strings is unlikely to happen, but who knows?
21328: ac_cv_c_bigendian=unknown
21329: fi
21330: fi
1.128 moko 21331: fi
1.237 ! moko 21332: rm -f core conftest.err conftest.$ac_objext conftest.beam \
! 21333: conftest$ac_exeext conftest.$ac_ext
! 21334: else case e in #(
! 21335: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.128 moko 21336: /* end confdefs.h. */
1.150 moko 21337: $ac_includes_default
1.128 moko 21338: int
1.237 ! moko 21339: main (void)
1.128 moko 21340: {
1.150 moko 21341:
21342: /* Are we little or big endian? From Harbison&Steele. */
21343: union
21344: {
21345: long int l;
21346: char c[sizeof (long int)];
21347: } u;
21348: u.l = 1;
21349: return u.c[sizeof (long int) - 1] == 1;
21350:
21351: ;
21352: return 0;
1.128 moko 21353: }
21354: _ACEOF
1.237 ! moko 21355: if ac_fn_c_try_run "$LINENO"
! 21356: then :
1.128 moko 21357: ac_cv_c_bigendian=no
1.237 ! moko 21358: else case e in #(
! 21359: e) ac_cv_c_bigendian=yes ;;
! 21360: esac
1.128 moko 21361: fi
1.150 moko 21362: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1.237 ! moko 21363: conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
! 21364: esac
1.128 moko 21365: fi
1.150 moko 21366:
1.237 ! moko 21367: fi ;;
! 21368: esac
1.66 paf 21369: fi
1.237 ! moko 21370: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
! 21371: printf "%s\n" "$ac_cv_c_bigendian" >&6; }
1.150 moko 21372: case $ac_cv_c_bigendian in #(
21373: yes)
21374:
1.237 ! moko 21375: printf "%s\n" "#define PA_BIG_ENDIAN /**/" >>confdefs.h
1.150 moko 21376:
21377: ;; #(
21378: no)
1.128 moko 21379:
1.237 ! moko 21380: printf "%s\n" "#define PA_LITTLE_ENDIAN /**/" >>confdefs.h
1.66 paf 21381:
1.150 moko 21382: ;; #(
21383: universal)
1.128 moko 21384:
1.237 ! moko 21385: printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
1.1 paf 21386:
1.150 moko 21387: ;; #(
21388: *)
21389: as_fn_error $? "word endianness not determined for some obscure reason" "$LINENO" 5
1.128 moko 21390: ;;
1.150 moko 21391: esac
1.66 paf 21392:
21393:
1.150 moko 21394: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.237 ! moko 21395: if test "x$ac_cv_type_size_t" = xyes
! 21396: then :
1.62 paf 21397:
1.237 ! moko 21398: else case e in #(
! 21399: e)
! 21400: printf "%s\n" "#define size_t unsigned int" >>confdefs.h
! 21401: ;;
! 21402: esac
1.62 paf 21403: fi
1.66 paf 21404:
1.156 moko 21405: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
1.237 ! moko 21406: if test "x$ac_cv_type_ssize_t" = xyes
! 21407: then :
1.156 moko 21408:
1.237 ! moko 21409: else case e in #(
! 21410: e)
! 21411: printf "%s\n" "#define ssize_t int" >>confdefs.h
! 21412: ;;
! 21413: esac
1.156 moko 21414: fi
21415:
1.159 moko 21416: ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
21417: case $ac_cv_c_uint8_t in #(
21418: no|yes) ;; #(
21419: *)
21420:
1.237 ! moko 21421: printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
1.159 moko 21422:
21423:
1.237 ! moko 21424: printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
1.159 moko 21425: ;;
21426: esac
21427:
1.165 moko 21428: ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
21429: case $ac_cv_c_uint16_t in #(
21430: no|yes) ;; #(
21431: *)
21432:
21433:
1.237 ! moko 21434: printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
1.165 moko 21435: ;;
21436: esac
21437:
1.156 moko 21438: ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
21439: case $ac_cv_c_uint32_t in #(
21440: no|yes) ;; #(
21441: *)
21442:
1.237 ! moko 21443: printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
1.156 moko 21444:
21445:
1.237 ! moko 21446: printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
1.156 moko 21447: ;;
21448: esac
1.128 moko 21449:
1.159 moko 21450: ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
21451: case $ac_cv_c_uint64_t in #(
21452: no|yes) ;; #(
21453: *)
21454:
1.237 ! moko 21455: printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
1.159 moko 21456:
21457:
1.237 ! moko 21458: printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
1.159 moko 21459: ;;
21460: esac
21461:
1.234 moko 21462: ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
21463: case $ac_cv_c_int64_t in #(
21464: no|yes) ;; #(
21465: *)
21466:
1.237 ! moko 21467: printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
1.234 moko 21468: ;;
21469: esac
21470:
1.159 moko 21471:
1.161 moko 21472: ac_header_dirent=no
21473: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
1.237 ! moko 21474: as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
! 21475: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
! 21476: printf %s "checking for $ac_hdr that defines DIR... " >&6; }
! 21477: if eval test \${$as_ac_Header+y}
! 21478: then :
! 21479: printf %s "(cached) " >&6
! 21480: else case e in #(
! 21481: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.161 moko 21482: /* end confdefs.h. */
21483: #include <sys/types.h>
21484: #include <$ac_hdr>
21485:
21486: int
1.237 ! moko 21487: main (void)
1.161 moko 21488: {
21489: if ((DIR *) 0)
21490: return 0;
21491: ;
21492: return 0;
21493: }
21494: _ACEOF
1.237 ! moko 21495: if ac_fn_c_try_compile "$LINENO"
! 21496: then :
1.161 moko 21497: eval "$as_ac_Header=yes"
1.237 ! moko 21498: else case e in #(
! 21499: e) eval "$as_ac_Header=no" ;;
! 21500: esac
1.161 moko 21501: fi
1.237 ! moko 21502: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
! 21503: esac
1.161 moko 21504: fi
21505: eval ac_res=\$$as_ac_Header
1.237 ! moko 21506: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 21507: printf "%s\n" "$ac_res" >&6; }
! 21508: if eval test \"x\$"$as_ac_Header"\" = x"yes"
! 21509: then :
1.161 moko 21510: cat >>confdefs.h <<_ACEOF
1.237 ! moko 21511: #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
1.161 moko 21512: _ACEOF
21513:
21514: ac_header_dirent=$ac_hdr; break
21515: fi
21516:
21517: done
21518: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21519: if test $ac_header_dirent = dirent.h; then
1.237 ! moko 21520: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
! 21521: printf %s "checking for library containing opendir... " >&6; }
! 21522: if test ${ac_cv_search_opendir+y}
! 21523: then :
! 21524: printf %s "(cached) " >&6
! 21525: else case e in #(
! 21526: e) ac_func_search_save_LIBS=$LIBS
1.161 moko 21527: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21528: /* end confdefs.h. */
21529:
21530: /* Override any GCC internal prototype to avoid an error.
21531: Use char because int might match the return type of a GCC
1.237 ! moko 21532: builtin and then its argument prototype would still apply.
! 21533: The 'extern "C"' is for builds by C++ compilers;
! 21534: although this is not generally supported in C code supporting it here
! 21535: has little cost and some practical benefit (sr 110532). */
1.161 moko 21536: #ifdef __cplusplus
21537: extern "C"
21538: #endif
1.237 ! moko 21539: char opendir (void);
1.161 moko 21540: int
1.237 ! moko 21541: main (void)
1.161 moko 21542: {
21543: return opendir ();
21544: ;
21545: return 0;
21546: }
21547: _ACEOF
1.237 ! moko 21548: for ac_lib in '' dir
! 21549: do
1.161 moko 21550: if test -z "$ac_lib"; then
21551: ac_res="none required"
21552: else
21553: ac_res=-l$ac_lib
21554: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21555: fi
1.237 ! moko 21556: if ac_fn_c_try_link "$LINENO"
! 21557: then :
1.161 moko 21558: ac_cv_search_opendir=$ac_res
21559: fi
1.237 ! moko 21560: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.161 moko 21561: conftest$ac_exeext
1.237 ! moko 21562: if test ${ac_cv_search_opendir+y}
! 21563: then :
1.161 moko 21564: break
21565: fi
21566: done
1.237 ! moko 21567: if test ${ac_cv_search_opendir+y}
! 21568: then :
1.161 moko 21569:
1.237 ! moko 21570: else case e in #(
! 21571: e) ac_cv_search_opendir=no ;;
! 21572: esac
1.161 moko 21573: fi
21574: rm conftest.$ac_ext
1.237 ! moko 21575: LIBS=$ac_func_search_save_LIBS ;;
! 21576: esac
1.161 moko 21577: fi
1.237 ! moko 21578: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
! 21579: printf "%s\n" "$ac_cv_search_opendir" >&6; }
1.161 moko 21580: ac_res=$ac_cv_search_opendir
1.237 ! moko 21581: if test "$ac_res" != no
! 21582: then :
1.161 moko 21583: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21584:
21585: fi
21586:
21587: else
1.237 ! moko 21588: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
! 21589: printf %s "checking for library containing opendir... " >&6; }
! 21590: if test ${ac_cv_search_opendir+y}
! 21591: then :
! 21592: printf %s "(cached) " >&6
! 21593: else case e in #(
! 21594: e) ac_func_search_save_LIBS=$LIBS
1.161 moko 21595: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21596: /* end confdefs.h. */
21597:
21598: /* Override any GCC internal prototype to avoid an error.
21599: Use char because int might match the return type of a GCC
1.237 ! moko 21600: builtin and then its argument prototype would still apply.
! 21601: The 'extern "C"' is for builds by C++ compilers;
! 21602: although this is not generally supported in C code supporting it here
! 21603: has little cost and some practical benefit (sr 110532). */
1.161 moko 21604: #ifdef __cplusplus
21605: extern "C"
21606: #endif
1.237 ! moko 21607: char opendir (void);
1.161 moko 21608: int
1.237 ! moko 21609: main (void)
1.161 moko 21610: {
21611: return opendir ();
21612: ;
21613: return 0;
21614: }
21615: _ACEOF
1.237 ! moko 21616: for ac_lib in '' x
! 21617: do
1.161 moko 21618: if test -z "$ac_lib"; then
21619: ac_res="none required"
21620: else
21621: ac_res=-l$ac_lib
21622: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21623: fi
1.237 ! moko 21624: if ac_fn_c_try_link "$LINENO"
! 21625: then :
1.161 moko 21626: ac_cv_search_opendir=$ac_res
21627: fi
1.237 ! moko 21628: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.161 moko 21629: conftest$ac_exeext
1.237 ! moko 21630: if test ${ac_cv_search_opendir+y}
! 21631: then :
1.161 moko 21632: break
21633: fi
21634: done
1.237 ! moko 21635: if test ${ac_cv_search_opendir+y}
! 21636: then :
1.161 moko 21637:
1.237 ! moko 21638: else case e in #(
! 21639: e) ac_cv_search_opendir=no ;;
! 21640: esac
1.161 moko 21641: fi
21642: rm conftest.$ac_ext
1.237 ! moko 21643: LIBS=$ac_func_search_save_LIBS ;;
! 21644: esac
1.161 moko 21645: fi
1.237 ! moko 21646: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
! 21647: printf "%s\n" "$ac_cv_search_opendir" >&6; }
1.161 moko 21648: ac_res=$ac_cv_search_opendir
1.237 ! moko 21649: if test "$ac_res" != no
! 21650: then :
1.161 moko 21651: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21652:
21653: fi
21654:
21655: fi
21656:
21657:
21658:
21659: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
21660: #include <sys/types.h>
21661: #ifdef HAVE_DIRENT_H
21662: # include <dirent.h>
21663: #else
21664: # define dirent direct
21665: # ifdef HAVE_SYS_NDIR_H
21666: # include <sys/ndir.h>
21667: # endif
21668: # ifdef HAVE_SYS_DIR_H
21669: # include <sys/dir.h>
21670: # endif
21671: # ifdef HAVE_NDIR_H
21672: # include <ndir.h>
21673: # endif
21674: #endif
21675:
21676: "
1.237 ! moko 21677: if test "x$ac_cv_member_struct_dirent_d_type" = xyes
! 21678: then :
1.161 moko 21679:
1.237 ! moko 21680: printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
1.161 moko 21681:
21682:
21683: fi
21684:
21685:
1.159 moko 21686:
1.171 moko 21687: # Check whether --enable-largefile was given.
1.237 ! moko 21688: if test ${enable_largefile+y}
! 21689: then :
1.171 moko 21690: enableval=$enable_largefile;
21691: fi
1.237 ! moko 21692: if test "$enable_largefile,$enable_year2038" != no,no
! 21693: then :
! 21694: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5
! 21695: printf %s "checking for $CPPFLAGS option for large files... " >&6; }
! 21696: if test ${ac_cv_sys_largefile_opts+y}
! 21697: then :
! 21698: printf %s "(cached) " >&6
! 21699: else case e in #(
! 21700: e) ac_save_CPPFLAGS=$CPPFLAGS
! 21701: ac_opt_found=no
! 21702: for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
! 21703: if test x"$ac_opt" != x"none needed"
! 21704: then :
! 21705: CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
! 21706: fi
! 21707: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.171 moko 21708: /* end confdefs.h. */
21709: #include <sys/types.h>
1.237 ! moko 21710: #ifndef FTYPE
! 21711: # define FTYPE off_t
! 21712: #endif
! 21713: /* Check that FTYPE can represent 2**63 - 1 correctly.
! 21714: We can't simply define LARGE_FTYPE to be 9223372036854775807,
1.171 moko 21715: since some C++ compilers masquerading as C compilers
21716: incorrectly reject 9223372036854775807. */
1.237 ! moko 21717: #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
! 21718: int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
! 21719: && LARGE_FTYPE % 2147483647 == 1)
1.171 moko 21720: ? 1 : -1];
21721: int
1.237 ! moko 21722: main (void)
1.171 moko 21723: {
21724:
21725: ;
21726: return 0;
21727: }
21728: _ACEOF
1.237 ! moko 21729: if ac_fn_c_try_compile "$LINENO"
! 21730: then :
! 21731: if test x"$ac_opt" = x"none needed"
! 21732: then :
! 21733: # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
! 21734: CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
! 21735: if ac_fn_c_try_compile "$LINENO"
! 21736: then :
! 21737:
! 21738: else case e in #(
! 21739: e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
! 21740: if ac_fn_c_try_compile "$LINENO"
! 21741: then :
! 21742: ac_opt='-D_FILE_OFFSET_BITS=64'
! 21743: fi
! 21744: rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
! 21745: esac
! 21746: fi
! 21747: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.171 moko 21748: fi
1.237 ! moko 21749: ac_cv_sys_largefile_opts=$ac_opt
! 21750: ac_opt_found=yes
1.171 moko 21751: fi
1.237 ! moko 21752: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 21753: test $ac_opt_found = no || break
! 21754: done
! 21755: CPPFLAGS=$ac_save_CPPFLAGS
! 21756:
! 21757: test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
! 21758: esac
1.171 moko 21759: fi
1.237 ! moko 21760: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
! 21761: printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
! 21762:
! 21763: ac_have_largefile=yes
! 21764: case $ac_cv_sys_largefile_opts in #(
! 21765: "none needed") :
! 21766: ;; #(
! 21767: "supported through gnulib") :
! 21768: ;; #(
! 21769: "support not detected") :
! 21770: ac_have_largefile=no ;; #(
! 21771: "-D_FILE_OFFSET_BITS=64") :
! 21772:
! 21773: printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
! 21774: ;; #(
! 21775: "-D_LARGE_FILES=1") :
1.171 moko 21776:
1.237 ! moko 21777: printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
! 21778: ;; #(
! 21779: *) :
! 21780: as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
! 21781: esac
1.171 moko 21782:
1.237 ! moko 21783: if test "$enable_year2038" != no
! 21784: then :
! 21785: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5
! 21786: printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; }
! 21787: if test ${ac_cv_sys_year2038_opts+y}
! 21788: then :
! 21789: printf %s "(cached) " >&6
! 21790: else case e in #(
! 21791: e) ac_save_CPPFLAGS="$CPPFLAGS"
! 21792: ac_opt_found=no
! 21793: 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
! 21794: if test x"$ac_opt" != x"none needed"
! 21795: then :
! 21796: CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
1.171 moko 21797: fi
1.237 ! moko 21798: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.171 moko 21799: /* end confdefs.h. */
1.237 ! moko 21800:
! 21801: #include <time.h>
! 21802: /* Check that time_t can represent 2**32 - 1 correctly. */
! 21803: #define LARGE_TIME_T \\
! 21804: ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
! 21805: int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
! 21806: && LARGE_TIME_T % 65537 == 0)
! 21807: ? 1 : -1];
! 21808:
1.171 moko 21809: int
1.237 ! moko 21810: main (void)
1.171 moko 21811: {
21812:
21813: ;
21814: return 0;
21815: }
21816: _ACEOF
1.237 ! moko 21817: if ac_fn_c_try_compile "$LINENO"
! 21818: then :
! 21819: ac_cv_sys_year2038_opts="$ac_opt"
! 21820: ac_opt_found=yes
1.171 moko 21821: fi
1.237 ! moko 21822: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 21823: test $ac_opt_found = no || break
! 21824: done
! 21825: CPPFLAGS="$ac_save_CPPFLAGS"
! 21826: test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
! 21827: esac
1.171 moko 21828: fi
1.237 ! moko 21829: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
! 21830: printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
! 21831:
! 21832: ac_have_year2038=yes
! 21833: case $ac_cv_sys_year2038_opts in #(
! 21834: "none needed") :
! 21835: ;; #(
! 21836: "support not detected") :
! 21837: ac_have_year2038=no ;; #(
! 21838: "-D_TIME_BITS=64") :
! 21839:
! 21840: printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
! 21841: ;; #(
! 21842: "-D__MINGW_USE_VC2005_COMPAT") :
! 21843:
! 21844: printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
! 21845: ;; #(
! 21846: "-U_USE_32_BIT_TIME_T"*) :
! 21847: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
! 21848: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
! 21849: as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
! 21850: will stop working after mid-January 2038. Remove
! 21851: _USE_32BIT_TIME_T from the compiler flags.
! 21852: See 'config.log' for more details" "$LINENO" 5; } ;; #(
! 21853: *) :
! 21854: as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
1.171 moko 21855: esac
21856:
21857: fi
21858:
21859: fi
1.237 ! moko 21860:
! 21861: ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
! 21862: if test "x$ac_cv_header_stdio_h" = xyes
! 21863: then :
! 21864: printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
! 21865:
! 21866: fi
! 21867: ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
! 21868: if test "x$ac_cv_header_sys_types_h" = xyes
! 21869: then :
! 21870: printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
! 21871:
! 21872: fi
! 21873: ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
! 21874: if test "x$ac_cv_header_sys_stat_h" = xyes
! 21875: then :
! 21876: printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
! 21877:
! 21878: fi
! 21879: ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
! 21880: if test "x$ac_cv_header_stdlib_h" = xyes
! 21881: then :
! 21882: printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
! 21883:
! 21884: fi
! 21885: ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
! 21886: if test "x$ac_cv_header_stddef_h" = xyes
! 21887: then :
! 21888: printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
! 21889:
! 21890: fi
! 21891: ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
! 21892: if test "x$ac_cv_header_memory_h" = xyes
! 21893: then :
! 21894: printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
! 21895:
! 21896: fi
! 21897: ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
! 21898: if test "x$ac_cv_header_string_h" = xyes
! 21899: then :
! 21900: printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
! 21901:
! 21902: fi
! 21903: ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
! 21904: if test "x$ac_cv_header_strings_h" = xyes
! 21905: then :
! 21906: printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
! 21907:
! 21908: fi
! 21909: ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
! 21910: if test "x$ac_cv_header_inttypes_h" = xyes
! 21911: then :
! 21912: printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
! 21913:
! 21914: fi
! 21915: ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
! 21916: if test "x$ac_cv_header_stdint_h" = xyes
! 21917: then :
! 21918: printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
! 21919:
! 21920: fi
! 21921: ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
! 21922: if test "x$ac_cv_header_unistd_h" = xyes
! 21923: then :
! 21924: printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
! 21925:
! 21926: fi
! 21927:
! 21928: ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
! 21929: if test "x$ac_cv_header_time_h" = xyes
! 21930: then :
! 21931: printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
! 21932:
! 21933: fi
! 21934: ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
! 21935: if test "x$ac_cv_header_sys_time_h" = xyes
! 21936: then :
! 21937: printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
! 21938:
! 21939: fi
! 21940: ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default"
! 21941: if test "x$ac_cv_header_assert_h" = xyes
! 21942: then :
! 21943: printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
! 21944:
! 21945: fi
! 21946: ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
! 21947: if test "x$ac_cv_header_limits_h" = xyes
! 21948: then :
! 21949: printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
! 21950:
! 21951: fi
! 21952: ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
! 21953: if test "x$ac_cv_header_ctype_h" = xyes
! 21954: then :
! 21955: printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
! 21956:
! 21957: fi
! 21958: ac_fn_c_check_header_compile "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
! 21959: if test "x$ac_cv_header_math_h" = xyes
! 21960: then :
! 21961: printf "%s\n" "#define HAVE_MATH_H 1" >>confdefs.h
! 21962:
! 21963: fi
! 21964: ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
! 21965: if test "x$ac_cv_header_process_h" = xyes
! 21966: then :
! 21967: printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
! 21968:
! 21969: fi
! 21970: ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
! 21971: if test "x$ac_cv_header_stdarg_h" = xyes
! 21972: then :
! 21973: printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
! 21974:
! 21975: fi
! 21976: ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
! 21977: if test "x$ac_cv_header_setjmp_h" = xyes
! 21978: then :
! 21979: printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
! 21980:
1.171 moko 21981: fi
1.237 ! moko 21982: ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
! 21983: if test "x$ac_cv_header_signal_h" = xyes
! 21984: then :
! 21985: printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
1.171 moko 21986:
1.237 ! moko 21987: fi
! 21988: ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
! 21989: if test "x$ac_cv_header_pthread_h" = xyes
! 21990: then :
! 21991: printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
1.171 moko 21992:
21993: fi
21994:
1.237 ! moko 21995: ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
! 21996: if test "x$ac_cv_header_errno_h" = xyes
! 21997: then :
! 21998: printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
! 21999:
! 22000: fi
! 22001: ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
! 22002: if test "x$ac_cv_header_dirent_h" = xyes
! 22003: then :
! 22004: printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
1.171 moko 22005:
1.237 ! moko 22006: fi
! 22007: ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
! 22008: if test "x$ac_cv_header_fcntl_h" = xyes
! 22009: then :
! 22010: printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
1.159 moko 22011:
22012: fi
1.237 ! moko 22013: ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
! 22014: if test "x$ac_cv_header_io_h" = xyes
! 22015: then :
! 22016: printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
1.150 moko 22017:
1.237 ! moko 22018: fi
! 22019: ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
! 22020: if test "x$ac_cv_header_sys_file_h" = xyes
! 22021: then :
! 22022: printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
1.159 moko 22023:
1.237 ! moko 22024: fi
! 22025: ac_fn_c_check_header_compile "$LINENO" "sys/locking.h" "ac_cv_header_sys_locking_h" "$ac_includes_default"
! 22026: if test "x$ac_cv_header_sys_locking_h" = xyes
! 22027: then :
! 22028: printf "%s\n" "#define HAVE_SYS_LOCKING_H 1" >>confdefs.h
1.159 moko 22029:
22030: fi
1.237 ! moko 22031: ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
! 22032: if test "x$ac_cv_header_sys_select_h" = xyes
! 22033: then :
! 22034: printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
1.159 moko 22035:
1.237 ! moko 22036: fi
! 22037: ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
! 22038: if test "x$ac_cv_header_sys_resource_h" = xyes
! 22039: then :
! 22040: printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
1.159 moko 22041:
1.237 ! moko 22042: fi
! 22043: ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
! 22044: if test "x$ac_cv_header_sys_wait_h" = xyes
! 22045: then :
! 22046: printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.159 moko 22047:
22048: fi
22049:
1.237 ! moko 22050: ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
! 22051: if test "x$ac_cv_header_sys_socket_h" = xyes
! 22052: then :
! 22053: printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
! 22054:
! 22055: fi
! 22056: ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
! 22057: if test "x$ac_cv_header_netinet_in_h" = xyes
! 22058: then :
! 22059: printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
1.159 moko 22060:
1.237 ! moko 22061: fi
! 22062: ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
! 22063: if test "x$ac_cv_header_arpa_inet_h" = xyes
! 22064: then :
! 22065: printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
1.62 paf 22066:
22067: fi
1.237 ! moko 22068: ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
! 22069: if test "x$ac_cv_header_netdb_h" = xyes
! 22070: then :
! 22071: printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
1.62 paf 22072:
1.237 ! moko 22073: fi
1.62 paf 22074:
22075:
22076:
1.66 paf 22077: case "$host" in
1.107 misha 22078: *-freebsd4*)
22079:
1.237 ! moko 22080: printf "%s\n" "#define FREEBSD4 /**/" >>confdefs.h
1.107 misha 22081:
22082: ;;
1.195 moko 22083: *-freebsd1*)
22084:
1.237 ! moko 22085: printf "%s\n" "#define FREEBSD1X /**/" >>confdefs.h
1.195 moko 22086:
22087: ;;
1.66 paf 22088: *-sunos5.6* | *-solaris2.6*)
1.237 ! moko 22089: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lxnet" >&5
! 22090: printf %s "checking for main in -lxnet... " >&6; }
! 22091: if test ${ac_cv_lib_xnet_main+y}
! 22092: then :
! 22093: printf %s "(cached) " >&6
! 22094: else case e in #(
! 22095: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22096: LIBS="-lxnet $LIBS"
1.150 moko 22097: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22098: /* end confdefs.h. */
22099:
1.66 paf 22100:
22101: int
1.237 ! moko 22102: main (void)
1.66 paf 22103: {
1.150 moko 22104: return main ();
1.66 paf 22105: ;
22106: return 0;
22107: }
1.62 paf 22108: _ACEOF
1.237 ! moko 22109: if ac_fn_c_try_link "$LINENO"
! 22110: then :
1.66 paf 22111: ac_cv_lib_xnet_main=yes
1.237 ! moko 22112: else case e in #(
! 22113: e) ac_cv_lib_xnet_main=no ;;
! 22114: esac
1.62 paf 22115: fi
1.237 ! moko 22116: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22117: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 22118: LIBS=$ac_check_lib_save_LIBS ;;
! 22119: esac
1.62 paf 22120: fi
1.237 ! moko 22121: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_main" >&5
! 22122: printf "%s\n" "$ac_cv_lib_xnet_main" >&6; }
! 22123: if test "x$ac_cv_lib_xnet_main" = xyes
! 22124: then :
! 22125: printf "%s\n" "#define HAVE_LIBXNET 1" >>confdefs.h
1.1 paf 22126:
1.66 paf 22127: LIBS="-lxnet $LIBS"
22128:
1.1 paf 22129: fi
22130:
1.66 paf 22131: ;;
22132: *-sunos5* | *-solaris2*)
1.237 ! moko 22133: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
! 22134: printf %s "checking for main in -lsocket... " >&6; }
! 22135: if test ${ac_cv_lib_socket_main+y}
! 22136: then :
! 22137: printf %s "(cached) " >&6
! 22138: else case e in #(
! 22139: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22140: LIBS="-lsocket $LIBS"
1.150 moko 22141: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22142: /* end confdefs.h. */
1.66 paf 22143:
22144:
1.62 paf 22145: int
1.237 ! moko 22146: main (void)
1.62 paf 22147: {
1.150 moko 22148: return main ();
1.62 paf 22149: ;
22150: return 0;
22151: }
22152: _ACEOF
1.237 ! moko 22153: if ac_fn_c_try_link "$LINENO"
! 22154: then :
1.66 paf 22155: ac_cv_lib_socket_main=yes
1.237 ! moko 22156: else case e in #(
! 22157: e) ac_cv_lib_socket_main=no ;;
! 22158: esac
1.1 paf 22159: fi
1.237 ! moko 22160: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22161: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 22162: LIBS=$ac_check_lib_save_LIBS ;;
! 22163: esac
1.62 paf 22164: fi
1.237 ! moko 22165: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
! 22166: printf "%s\n" "$ac_cv_lib_socket_main" >&6; }
! 22167: if test "x$ac_cv_lib_socket_main" = xyes
! 22168: then :
! 22169: printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
1.1 paf 22170:
1.66 paf 22171: LIBS="-lsocket $LIBS"
1.1 paf 22172:
22173: fi
22174:
1.237 ! moko 22175: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
! 22176: printf %s "checking for main in -lnsl... " >&6; }
! 22177: if test ${ac_cv_lib_nsl_main+y}
! 22178: then :
! 22179: printf %s "(cached) " >&6
! 22180: else case e in #(
! 22181: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22182: LIBS="-lnsl $LIBS"
1.150 moko 22183: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22184: /* end confdefs.h. */
1.66 paf 22185:
22186:
1.62 paf 22187: int
1.237 ! moko 22188: main (void)
1.62 paf 22189: {
1.150 moko 22190: return main ();
1.62 paf 22191: ;
22192: return 0;
22193: }
22194: _ACEOF
1.237 ! moko 22195: if ac_fn_c_try_link "$LINENO"
! 22196: then :
1.66 paf 22197: ac_cv_lib_nsl_main=yes
1.237 ! moko 22198: else case e in #(
! 22199: e) ac_cv_lib_nsl_main=no ;;
! 22200: esac
1.30 paf 22201: fi
1.237 ! moko 22202: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22203: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 22204: LIBS=$ac_check_lib_save_LIBS ;;
! 22205: esac
1.62 paf 22206: fi
1.237 ! moko 22207: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
! 22208: printf "%s\n" "$ac_cv_lib_nsl_main" >&6; }
! 22209: if test "x$ac_cv_lib_nsl_main" = xyes
! 22210: then :
! 22211: printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
1.30 paf 22212:
1.66 paf 22213: LIBS="-lnsl $LIBS"
1.30 paf 22214:
22215: fi
22216:
1.66 paf 22217: ;;
22218: *-nec-sysv4*)
1.237 ! moko 22219: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
! 22220: printf %s "checking for gethostbyname in -lnsl... " >&6; }
! 22221: if test ${ac_cv_lib_nsl_gethostbyname+y}
! 22222: then :
! 22223: printf %s "(cached) " >&6
! 22224: else case e in #(
! 22225: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22226: LIBS="-lnsl $LIBS"
1.150 moko 22227: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22228: /* end confdefs.h. */
1.66 paf 22229:
1.150 moko 22230: /* Override any GCC internal prototype to avoid an error.
22231: Use char because int might match the return type of a GCC
1.237 ! moko 22232: builtin and then its argument prototype would still apply.
! 22233: The 'extern "C"' is for builds by C++ compilers;
! 22234: although this is not generally supported in C code supporting it here
! 22235: has little cost and some practical benefit (sr 110532). */
1.66 paf 22236: #ifdef __cplusplus
22237: extern "C"
22238: #endif
1.237 ! moko 22239: char gethostbyname (void);
1.62 paf 22240: int
1.237 ! moko 22241: main (void)
1.62 paf 22242: {
1.150 moko 22243: return gethostbyname ();
1.62 paf 22244: ;
22245: return 0;
22246: }
22247: _ACEOF
1.237 ! moko 22248: if ac_fn_c_try_link "$LINENO"
! 22249: then :
1.66 paf 22250: ac_cv_lib_nsl_gethostbyname=yes
1.237 ! moko 22251: else case e in #(
! 22252: e) ac_cv_lib_nsl_gethostbyname=no ;;
! 22253: esac
1.30 paf 22254: fi
1.237 ! moko 22255: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22256: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 22257: LIBS=$ac_check_lib_save_LIBS ;;
! 22258: esac
1.62 paf 22259: fi
1.237 ! moko 22260: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
! 22261: printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
! 22262: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
! 22263: then :
! 22264: printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
1.30 paf 22265:
1.66 paf 22266: LIBS="-lnsl $LIBS"
1.30 paf 22267:
22268: fi
22269:
1.237 ! moko 22270: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
! 22271: printf %s "checking for socket in -lsocket... " >&6; }
! 22272: if test ${ac_cv_lib_socket_socket+y}
! 22273: then :
! 22274: printf %s "(cached) " >&6
! 22275: else case e in #(
! 22276: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22277: LIBS="-lsocket $LIBS"
1.150 moko 22278: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22279: /* end confdefs.h. */
22280:
1.150 moko 22281: /* Override any GCC internal prototype to avoid an error.
22282: Use char because int might match the return type of a GCC
1.237 ! moko 22283: builtin and then its argument prototype would still apply.
! 22284: The 'extern "C"' is for builds by C++ compilers;
! 22285: although this is not generally supported in C code supporting it here
! 22286: has little cost and some practical benefit (sr 110532). */
1.66 paf 22287: #ifdef __cplusplus
22288: extern "C"
22289: #endif
1.237 ! moko 22290: char socket (void);
1.62 paf 22291: int
1.237 ! moko 22292: main (void)
1.62 paf 22293: {
1.150 moko 22294: return socket ();
1.62 paf 22295: ;
22296: return 0;
22297: }
22298: _ACEOF
1.237 ! moko 22299: if ac_fn_c_try_link "$LINENO"
! 22300: then :
1.66 paf 22301: ac_cv_lib_socket_socket=yes
1.237 ! moko 22302: else case e in #(
! 22303: e) ac_cv_lib_socket_socket=no ;;
! 22304: esac
1.8 paf 22305: fi
1.237 ! moko 22306: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22307: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 22308: LIBS=$ac_check_lib_save_LIBS ;;
! 22309: esac
1.8 paf 22310: fi
1.237 ! moko 22311: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
! 22312: printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
! 22313: if test "x$ac_cv_lib_socket_socket" = xyes
! 22314: then :
! 22315: printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
1.66 paf 22316:
1.128 moko 22317: LIBS="-lsocket $LIBS"
1.66 paf 22318:
1.62 paf 22319: fi
22320:
1.66 paf 22321: ;;
1.128 moko 22322: *-cygwin*)
22323:
1.237 ! moko 22324: printf "%s\n" "#define WIN32 /**/" >>confdefs.h
1.128 moko 22325:
1.66 paf 22326: ;;
22327: esac
1.1 paf 22328:
1.237 ! moko 22329: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
! 22330: printf %s "checking for sin in -lm... " >&6; }
! 22331: if test ${ac_cv_lib_m_sin+y}
! 22332: then :
! 22333: printf %s "(cached) " >&6
! 22334: else case e in #(
! 22335: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22336: LIBS="-lm $LIBS"
1.150 moko 22337: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22338: /* end confdefs.h. */
22339:
1.150 moko 22340: /* Override any GCC internal prototype to avoid an error.
22341: Use char because int might match the return type of a GCC
1.237 ! moko 22342: builtin and then its argument prototype would still apply.
! 22343: The 'extern "C"' is for builds by C++ compilers;
! 22344: although this is not generally supported in C code supporting it here
! 22345: has little cost and some practical benefit (sr 110532). */
1.66 paf 22346: #ifdef __cplusplus
22347: extern "C"
22348: #endif
1.237 ! moko 22349: char sin (void);
1.62 paf 22350: int
1.237 ! moko 22351: main (void)
1.62 paf 22352: {
1.150 moko 22353: return sin ();
1.62 paf 22354: ;
22355: return 0;
22356: }
22357: _ACEOF
1.237 ! moko 22358: if ac_fn_c_try_link "$LINENO"
! 22359: then :
1.66 paf 22360: ac_cv_lib_m_sin=yes
1.237 ! moko 22361: else case e in #(
! 22362: e) ac_cv_lib_m_sin=no ;;
! 22363: esac
1.62 paf 22364: fi
1.237 ! moko 22365: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22366: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 22367: LIBS=$ac_check_lib_save_LIBS ;;
! 22368: esac
1.62 paf 22369: fi
1.237 ! moko 22370: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
! 22371: printf "%s\n" "$ac_cv_lib_m_sin" >&6; }
! 22372: if test "x$ac_cv_lib_m_sin" = xyes
! 22373: then :
! 22374: printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
1.1 paf 22375:
1.66 paf 22376: LIBS="-lm $LIBS"
1.1 paf 22377:
22378: fi
22379:
1.237 ! moko 22380: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
! 22381: printf %s "checking for crypt in -lcrypt... " >&6; }
! 22382: if test ${ac_cv_lib_crypt_crypt+y}
! 22383: then :
! 22384: printf %s "(cached) " >&6
! 22385: else case e in #(
! 22386: e) ac_check_lib_save_LIBS=$LIBS
1.66 paf 22387: LIBS="-lcrypt $LIBS"
1.150 moko 22388: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22389: /* end confdefs.h. */
22390:
1.150 moko 22391: /* Override any GCC internal prototype to avoid an error.
22392: Use char because int might match the return type of a GCC
1.237 ! moko 22393: builtin and then its argument prototype would still apply.
! 22394: The 'extern "C"' is for builds by C++ compilers;
! 22395: although this is not generally supported in C code supporting it here
! 22396: has little cost and some practical benefit (sr 110532). */
1.66 paf 22397: #ifdef __cplusplus
22398: extern "C"
22399: #endif
1.237 ! moko 22400: char crypt (void);
1.62 paf 22401: int
1.237 ! moko 22402: main (void)
1.62 paf 22403: {
1.150 moko 22404: return crypt ();
1.62 paf 22405: ;
22406: return 0;
22407: }
22408: _ACEOF
1.237 ! moko 22409: if ac_fn_c_try_link "$LINENO"
! 22410: then :
1.66 paf 22411: ac_cv_lib_crypt_crypt=yes
1.237 ! moko 22412: else case e in #(
! 22413: e) ac_cv_lib_crypt_crypt=no ;;
! 22414: esac
1.62 paf 22415: fi
1.237 ! moko 22416: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.150 moko 22417: conftest$ac_exeext conftest.$ac_ext
1.237 ! moko 22418: LIBS=$ac_check_lib_save_LIBS ;;
! 22419: esac
1.62 paf 22420: fi
1.237 ! moko 22421: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
! 22422: printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
! 22423: if test "x$ac_cv_lib_crypt_crypt" = xyes
! 22424: then :
! 22425: printf "%s\n" "#define HAVE_LIBCRYPT 1" >>confdefs.h
1.1 paf 22426:
1.66 paf 22427: LIBS="-lcrypt $LIBS"
22428:
22429: fi
22430:
22431:
22432:
1.237 ! moko 22433: ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock"
! 22434: if test "x$ac_cv_func_flock" = xyes
! 22435: then :
! 22436: printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
! 22437:
! 22438: fi
! 22439: ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
! 22440: if test "x$ac_cv_func_fcntl" = xyes
! 22441: then :
! 22442: printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
! 22443:
! 22444: fi
! 22445: ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf"
! 22446: if test "x$ac_cv_func_lockf" = xyes
! 22447: then :
! 22448: printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h
! 22449:
! 22450: fi
! 22451: ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
! 22452: if test "x$ac_cv_func_ftruncate" = xyes
! 22453: then :
! 22454: printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
! 22455:
! 22456: fi
! 22457: ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
! 22458: if test "x$ac_cv_func_fchmod" = xyes
! 22459: then :
! 22460: printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
! 22461:
! 22462: fi
! 22463:
! 22464: ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
! 22465: if test "x$ac_cv_func_getrusage" = xyes
! 22466: then :
! 22467: printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
! 22468:
! 22469: fi
! 22470: ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
! 22471: if test "x$ac_cv_func_gettimeofday" = xyes
! 22472: then :
! 22473: printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
! 22474:
! 22475: fi
! 22476: ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
! 22477: if test "x$ac_cv_func_crypt" = xyes
! 22478: then :
! 22479: printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h
! 22480:
! 22481: fi
! 22482: ac_fn_c_check_func "$LINENO" "sigsetjmp" "ac_cv_func_sigsetjmp"
! 22483: if test "x$ac_cv_func_sigsetjmp" = xyes
! 22484: then :
! 22485: printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
! 22486:
! 22487: fi
! 22488: ac_fn_c_check_func "$LINENO" "siglongjmp" "ac_cv_func_siglongjmp"
! 22489: if test "x$ac_cv_func_siglongjmp" = xyes
! 22490: then :
! 22491: printf "%s\n" "#define HAVE_SIGLONGJMP 1" >>confdefs.h
1.159 moko 22492:
22493: fi
1.237 ! moko 22494: ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
! 22495: if test "x$ac_cv_func_unsetenv" = xyes
! 22496: then :
! 22497: printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
1.66 paf 22498:
1.237 ! moko 22499: fi
! 22500: ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
! 22501: if test "x$ac_cv_func_syslog" = xyes
! 22502: then :
! 22503: printf "%s\n" "#define HAVE_SYSLOG 1" >>confdefs.h
1.1 paf 22504:
1.66 paf 22505: fi
22506:
1.1 paf 22507:
22508:
1.159 moko 22509:
1.67 paf 22510: pa_func=sigsetjmp
1.237 ! moko 22511: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) function $pa_func" >&5
! 22512: printf %s "checking for (maybe built-in) function $pa_func... " >&6; }
1.229 moko 22513:
22514: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 22515: /* end confdefs.h. */
22516:
22517: #ifdef HAVE_SETJMP_H
22518: # include <setjmp.h>
22519: #endif
22520:
22521: int
1.237 ! moko 22522: main (void)
1.67 paf 22523: {
22524:
22525: $pa_func(0,0);
22526:
22527: ;
22528: return 0;
22529: }
22530: _ACEOF
1.237 ! moko 22531: if ac_fn_c_try_compile "$LINENO"
! 22532: then :
! 22533: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 22534: printf "%s\n" "yes" >&6; }
1.67 paf 22535: cat >>confdefs.h <<_ACEOF
1.237 ! moko 22536: #define `printf "%s\n" "HAVE_$pa_func" | sed "$as_sed_cpp"` 1
1.67 paf 22537: _ACEOF
22538:
22539:
1.237 ! moko 22540: else case e in #(
! 22541: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 22542: printf "%s\n" "no" >&6; }
1.229 moko 22543:
1.237 ! moko 22544: ;;
! 22545: esac
1.67 paf 22546: fi
1.237 ! moko 22547: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.67 paf 22548:
22549:
22550:
1.159 moko 22551:
1.229 moko 22552:
1.150 moko 22553: ac_ext=cpp
1.67 paf 22554: ac_cpp='$CXXCPP $CPPFLAGS'
22555: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22556: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22557: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22558:
22559:
22560:
1.188 moko 22561: for pa_func in trunc round sign isfinite
1.67 paf 22562: do
22563:
1.237 ! moko 22564: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for (maybe built-in) math function $pa_func" >&5
! 22565: printf %s "checking for (maybe built-in) math function $pa_func... " >&6; }
1.229 moko 22566:
22567: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.67 paf 22568: /* end confdefs.h. */
22569:
22570: #ifdef HAVE_MATH_H
22571: # include <math.h>
22572: #endif
22573:
22574: int
1.237 ! moko 22575: main (void)
1.67 paf 22576: {
22577:
22578: double result=$pa_func(1.6);
22579:
22580: ;
22581: return 0;
22582: }
22583: _ACEOF
1.237 ! moko 22584: if ac_fn_cxx_try_compile "$LINENO"
! 22585: then :
! 22586: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 22587: printf "%s\n" "yes" >&6; }
1.67 paf 22588: cat >>confdefs.h <<_ACEOF
1.237 ! moko 22589: #define `printf "%s\n" "HAVE_$pa_func" | sed "$as_sed_cpp"` 1
1.62 paf 22590: _ACEOF
1.66 paf 22591:
1.237 ! moko 22592: else case e in #(
! 22593: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 22594: printf "%s\n" "no" >&6; }
1.229 moko 22595:
1.237 ! moko 22596: ;;
! 22597: esac
1.62 paf 22598: fi
1.237 ! moko 22599: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.150 moko 22600:
1.229 moko 22601:
1.150 moko 22602: done
22603:
22604: ac_ext=c
22605: ac_cpp='$CPP $CPPFLAGS'
22606: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22607: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22608: ac_compiler_gnu=$ac_cv_c_compiler_gnu
22609:
22610:
22611:
1.237 ! moko 22612:
! 22613: for ac_func in qsort
1.150 moko 22614: do :
22615: ac_fn_c_check_func "$LINENO" "qsort" "ac_cv_func_qsort"
1.237 ! moko 22616: if test "x$ac_cv_func_qsort" = xyes
! 22617: then :
! 22618: printf "%s\n" "#define HAVE_QSORT 1" >>confdefs.h
1.1 paf 22619:
1.237 ! moko 22620: else case e in #(
! 22621: e) as_fn_error $? "No qsort library function." "$LINENO" 5 ;;
! 22622: esac
1.1 paf 22623: fi
1.237 ! moko 22624:
1.66 paf 22625: done
1.1 paf 22626:
22627:
1.62 paf 22628:
1.177 moko 22629: ac_ext=cpp
22630: ac_cpp='$CXXCPP $CPPFLAGS'
22631: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22632: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22633: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22634:
1.237 ! moko 22635: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
! 22636: printf %s "checking for timezone variable... " >&6; }
1.229 moko 22637:
22638: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22639: /* end confdefs.h. */
1.66 paf 22640: #include <time.h>
1.62 paf 22641: int
1.237 ! moko 22642: main (void)
1.62 paf 22643: {
1.177 moko 22644: int test=timezone;
1.62 paf 22645: ;
22646: return 0;
22647: }
22648: _ACEOF
1.237 ! moko 22649: if ac_fn_cxx_try_compile "$LINENO"
! 22650: then :
! 22651: printf "%s\n" "#define HAVE_TIMEZONE 1" >>confdefs.h
! 22652: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 22653: printf "%s\n" "yes" >&6; }
! 22654: else case e in #(
! 22655: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 22656: printf "%s\n" "no" >&6; }
! 22657: ;;
! 22658: esac
1.62 paf 22659: fi
1.237 ! moko 22660: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.229 moko 22661:
1.177 moko 22662: ac_ext=c
22663: ac_cpp='$CPP $CPPFLAGS'
22664: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22665: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22666: ac_compiler_gnu=$ac_cv_c_compiler_gnu
22667:
1.1 paf 22668:
1.237 ! moko 22669: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
! 22670: printf %s "checking for tm_gmtoff in struct tm... " >&6; }
1.229 moko 22671:
22672: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22673: /* end confdefs.h. */
1.66 paf 22674: #include <time.h>
1.62 paf 22675: int
1.237 ! moko 22676: main (void)
1.62 paf 22677: {
1.176 moko 22678: struct tm tm; tm.tm_gmtoff=0;
1.62 paf 22679: ;
22680: return 0;
22681: }
22682: _ACEOF
1.237 ! moko 22683: if ac_fn_c_try_compile "$LINENO"
! 22684: then :
! 22685: printf "%s\n" "#define HAVE_TM_GMTOFF 1" >>confdefs.h
! 22686: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 22687: printf "%s\n" "yes" >&6; }
! 22688: else case e in #(
! 22689: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 22690: printf "%s\n" "no" >&6; }
! 22691: ;;
! 22692: esac
1.62 paf 22693: fi
1.237 ! moko 22694: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.62 paf 22695:
1.229 moko 22696:
1.237 ! moko 22697: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_tzadj in struct tm" >&5
! 22698: printf %s "checking for tm_tzadj in struct tm... " >&6; }
1.229 moko 22699:
22700: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22701: /* end confdefs.h. */
1.66 paf 22702: #include <time.h>
1.62 paf 22703: int
1.237 ! moko 22704: main (void)
1.62 paf 22705: {
1.176 moko 22706: struct tm tm; tm.tm_tzadj=0;
1.62 paf 22707: ;
22708: return 0;
22709: }
22710: _ACEOF
1.237 ! moko 22711: if ac_fn_c_try_compile "$LINENO"
! 22712: then :
! 22713: printf "%s\n" "#define HAVE_TM_TZADJ 1" >>confdefs.h
! 22714: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 22715: printf "%s\n" "yes" >&6; }
! 22716: else case e in #(
! 22717: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 22718: printf "%s\n" "no" >&6; }
! 22719: ;;
! 22720: esac
1.62 paf 22721: fi
1.237 ! moko 22722: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 paf 22723:
1.229 moko 22724:
1.237 ! moko 22725: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettid" >&5
! 22726: printf %s "checking for gettid... " >&6; }
1.229 moko 22727:
22728: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.206 moko 22729: /* end confdefs.h. */
22730:
22731: #include <sys/types.h>
22732: #include <sys/syscall.h>
22733:
22734: int
1.237 ! moko 22735: main (void)
1.206 moko 22736: {
22737: uint tid=syscall(__NR_gettid);
22738: ;
22739: return 0;
22740: }
22741: _ACEOF
1.237 ! moko 22742: if ac_fn_c_try_compile "$LINENO"
! 22743: then :
! 22744: printf "%s\n" "#define HAVE_GETTID 1" >>confdefs.h
! 22745: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 22746: printf "%s\n" "yes" >&6; }
! 22747: else case e in #(
! 22748: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 22749: printf "%s\n" "no" >&6; }
! 22750: ;;
! 22751: esac
1.206 moko 22752: fi
1.237 ! moko 22753: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.206 moko 22754:
1.229 moko 22755:
1.237 ! moko 22756: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
! 22757: printf %s "checking for TLS... " >&6; }
1.229 moko 22758:
22759: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.208 moko 22760: /* end confdefs.h. */
1.209 moko 22761: __thread int i=0;
1.208 moko 22762: int
1.237 ! moko 22763: main (void)
1.208 moko 22764: {
1.209 moko 22765:
1.208 moko 22766: ;
22767: return 0;
22768: }
22769: _ACEOF
1.237 ! moko 22770: if ac_fn_c_try_compile "$LINENO"
! 22771: then :
! 22772: printf "%s\n" "#define HAVE_TLS 1" >>confdefs.h
! 22773: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 22774: printf "%s\n" "yes" >&6; }
! 22775: else case e in #(
! 22776: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 22777: printf "%s\n" "no" >&6; }
! 22778: ;;
! 22779: esac
1.208 moko 22780: fi
1.237 ! moko 22781: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.208 moko 22782:
1.229 moko 22783:
1.237 ! moko 22784: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 0..9999 year date range support" >&5
! 22785: printf %s "checking for 0..9999 year date range support... " >&6; }
! 22786: if test "$cross_compiling" = yes
! 22787: then :
! 22788: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 22789: printf "%s\n" "no" >&6; }
! 22790: else case e in #(
! 22791: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.62 paf 22792: /* end confdefs.h. */
1.176 moko 22793:
22794: #include <string.h>
1.66 paf 22795: #include <time.h>
1.176 moko 22796:
22797: int main() {
22798: struct tm tmL,tmH;
22799: memset(&tmL, 0, sizeof(tmL));
22800: memset(&tmH, 0, sizeof(tmH));
22801: tmL.tm_year=-1900;
22802: tmL.tm_mon=-1;
22803: tmH.tm_year=9999-1900;
22804: tmH.tm_mon=12-1;
22805: tmH.tm_mday=31;
22806: return mktime(&tmL)==-1 || mktime(&tmH)==-1;
1.62 paf 22807: }
1.176 moko 22808:
1.62 paf 22809: _ACEOF
1.237 ! moko 22810: if ac_fn_c_try_run "$LINENO"
! 22811: then :
! 22812: printf "%s\n" "#define PA_DATE64 1" >>confdefs.h
! 22813: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 22814: printf "%s\n" "yes" >&6; }
! 22815: else case e in #(
! 22816: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 22817: printf "%s\n" "no" >&6; } ;;
! 22818: esac
1.62 paf 22819: fi
1.176 moko 22820: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1.237 ! moko 22821: conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
! 22822: esac
1.176 moko 22823: fi
1.31 paf 22824:
1.1 paf 22825:
22826:
22827:
1.62 paf 22828:
22829:
22830:
1.206 moko 22831:
1.208 moko 22832:
1.150 moko 22833: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
1.62 paf 22834:
22835:
1.200 moko 22836: 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 22837:
22838: cat >confcache <<\_ACEOF
1.1 paf 22839: # This file is a shell script that caches the results of configure
22840: # tests run on this system so they can be shared between configure
1.62 paf 22841: # scripts and configure runs, see configure's option --config-cache.
22842: # It is not useful on other systems. If it contains results you don't
22843: # want to keep, you may remove or edit it.
1.1 paf 22844: #
1.62 paf 22845: # config.status only pays attention to the cache file if you give it
22846: # the --recheck option to rerun configure.
1.1 paf 22847: #
1.237 ! moko 22848: # 'ac_cv_env_foo' variables (set or unset) will be overridden when
! 22849: # loading this file, other *unset* 'ac_cv_foo' will be assigned the
1.62 paf 22850: # following values.
22851:
22852: _ACEOF
22853:
1.1 paf 22854: # The following way of writing the cache mishandles newlines in values,
22855: # but we know of no workaround that is simple, portable, and efficient.
1.150 moko 22856: # So, we kill variables containing newlines.
1.1 paf 22857: # Ultrix sh set writes to stderr and can't be redirected directly,
22858: # and sets the high bit in the cache file unless we assign to the vars.
1.150 moko 22859: (
22860: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22861: eval ac_val=\$$ac_var
22862: case $ac_val in #(
22863: *${as_nl}*)
22864: case $ac_var in #(
1.237 ! moko 22865: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
! 22866: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.150 moko 22867: esac
22868: case $ac_var in #(
22869: _ | IFS | as_nl) ;; #(
22870: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22871: *) { eval $ac_var=; unset $ac_var;} ;;
22872: esac ;;
22873: esac
22874: done
22875:
1.62 paf 22876: (set) 2>&1 |
1.150 moko 22877: case $as_nl`(ac_space=' '; set) 2>&1` in #(
22878: *${as_nl}ac_space=\ *)
1.237 ! moko 22879: # 'set' does not quote correctly, so add quotes: double-quote
1.150 moko 22880: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.62 paf 22881: sed -n \
1.86 paf 22882: "s/'/'\\\\''/g;
22883: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.150 moko 22884: ;; #(
1.62 paf 22885: *)
1.237 ! moko 22886: # 'set' quotes correctly as required by POSIX, so do not add quotes.
1.150 moko 22887: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.62 paf 22888: ;;
1.150 moko 22889: esac |
22890: sort
22891: ) |
1.62 paf 22892: sed '
1.150 moko 22893: /^ac_cv_env_/b end
1.62 paf 22894: t clear
1.150 moko 22895: :clear
1.237 ! moko 22896: s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1.62 paf 22897: t end
1.150 moko 22898: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22899: :end' >>confcache
22900: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22901: if test -w "$cache_file"; then
22902: if test "x$cache_file" != "x/dev/null"; then
1.237 ! moko 22903: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
! 22904: printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1.150 moko 22905: if test ! -f "$cache_file" || test -h "$cache_file"; then
22906: cat confcache >"$cache_file"
22907: else
22908: case $cache_file in #(
22909: */* | ?:*)
22910: mv -f confcache "$cache_file"$$ &&
22911: mv -f "$cache_file"$$ "$cache_file" ;; #(
22912: *)
22913: mv -f confcache "$cache_file" ;;
22914: esac
22915: fi
22916: fi
1.1 paf 22917: else
1.237 ! moko 22918: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
! 22919: printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 paf 22920: fi
22921: fi
22922: rm -f confcache
22923:
22924: test "x$prefix" = xNONE && prefix=$ac_default_prefix
22925: # Let make expand exec_prefix.
22926: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22927:
1.62 paf 22928: DEFS=-DHAVE_CONFIG_H
22929:
22930: ac_libobjs=
22931: ac_ltlibobjs=
1.229 moko 22932: U=
1.62 paf 22933: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22934: # 1. Remove the extension, and $U if already installed.
1.150 moko 22935: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.237 ! moko 22936: ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1.150 moko 22937: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22938: # will be set to the directory where LIBOBJS objects are built.
22939: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22940: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.62 paf 22941: done
22942: LIBOBJS=$ac_libobjs
22943:
22944: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 22945:
22946:
1.237 ! moko 22947: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
! 22948: printf %s "checking that generated files are newer than configure... " >&6; }
1.187 moko 22949: if test -n "$am_sleep_pid"; then
22950: # Hide warnings about reused PIDs.
22951: wait $am_sleep_pid 2>/dev/null
22952: fi
1.237 ! moko 22953: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
! 22954: printf "%s\n" "done" >&6; }
! 22955: case $enable_silent_rules in # (((
! 22956: yes) AM_DEFAULT_VERBOSITY=0;;
! 22957: no) AM_DEFAULT_VERBOSITY=1;;
! 22958: esac
! 22959: if test $am_cv_make_support_nested_variables = yes; then
! 22960: AM_V='$(V)'
! 22961: AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
! 22962: else
! 22963: AM_V=$AM_DEFAULT_VERBOSITY
! 22964: AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
! 22965: fi
! 22966:
1.150 moko 22967: if test -n "$EXEEXT"; then
22968: am__EXEEXT_TRUE=
22969: am__EXEEXT_FALSE='#'
22970: else
22971: am__EXEEXT_TRUE='#'
22972: am__EXEEXT_FALSE=
22973: fi
22974:
1.62 paf 22975: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.150 moko 22976: as_fn_error $? "conditional \"AMDEP\" was never defined.
22977: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 22978: fi
1.66 paf 22979: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.150 moko 22980: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22981: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 22982: fi
1.66 paf 22983: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.150 moko 22984: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22985: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 22986: fi
1.122 moko 22987: if test -z "${COMPILE_APACHE_MODULE_TRUE}" && test -z "${COMPILE_APACHE_MODULE_FALSE}"; then
1.150 moko 22988: as_fn_error $? "conditional \"COMPILE_APACHE_MODULE\" was never defined.
22989: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.62 paf 22990: fi
1.128 moko 22991: if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
1.150 moko 22992: as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
22993: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 22994: fi
22995: if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
1.150 moko 22996: as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
22997: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.128 moko 22998: fi
1.237 ! moko 22999: if test -z "${LTARGZH_EXISTS_TRUE}" && test -z "${LTARGZH_EXISTS_FALSE}"; then
! 23000: as_fn_error $? "conditional \"LTARGZH_EXISTS\" was never defined.
! 23001: Usually this means the macro was only invoked conditionally." "$LINENO" 5
! 23002: fi
1.150 moko 23003: LT_CONFIG_H=src/include/pa_config_auto.h
1.128 moko 23004:
23005: _ltdl_libobjs=
23006: _ltdl_ltlibobjs=
23007: if test -n "$_LT_LIBOBJS"; then
23008: # Remove the extension.
23009: _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
1.237 ! moko 23010: for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | $SED "$_lt_sed_drop_objext" | sort -u`; do
1.128 moko 23011: _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
23012: _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
23013: done
23014: fi
23015: ltdl_LIBOBJS=$_ltdl_libobjs
23016:
23017: ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
23018:
23019:
1.62 paf 23020:
1.237 ! moko 23021: # Check whether --enable-year2038 was given.
! 23022: if test ${enable_year2038+y}
! 23023: then :
! 23024: enableval=$enable_year2038;
! 23025: fi
! 23026:
1.150 moko 23027:
23028: : "${CONFIG_STATUS=./config.status}"
23029: ac_write_fail=0
1.62 paf 23030: ac_clean_files_save=$ac_clean_files
23031: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.237 ! moko 23032: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
! 23033: printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1.150 moko 23034: as_write_fail=0
23035: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.62 paf 23036: #! $SHELL
23037: # Generated by $as_me.
23038: # Run this file to recreate the current configuration.
23039: # Compiler output produced by configure, useful for debugging
23040: # configure, is in config.log if it exists.
23041:
23042: debug=false
23043: ac_cs_recheck=false
23044: ac_cs_silent=false
1.150 moko 23045:
1.62 paf 23046: SHELL=\${CONFIG_SHELL-$SHELL}
1.150 moko 23047: export SHELL
23048: _ASEOF
23049: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23050: ## -------------------- ##
23051: ## M4sh Initialization. ##
23052: ## -------------------- ##
1.62 paf 23053:
1.150 moko 23054: # Be more Bourne compatible
23055: DUALCASE=1; export DUALCASE # for MKS sh
1.237 ! moko 23056: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
! 23057: then :
1.62 paf 23058: emulate sh
23059: NULLCMD=:
1.150 moko 23060: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.62 paf 23061: # is contrary to our usage. Disable this feature.
23062: alias -g '${1+"$@"}'='"$@"'
1.150 moko 23063: setopt NO_GLOB_SUBST
1.237 ! moko 23064: else case e in #(
! 23065: e) case `(set -o) 2>/dev/null` in #(
1.150 moko 23066: *posix*) :
23067: set -o posix ;; #(
23068: *) :
23069: ;;
1.237 ! moko 23070: esac ;;
1.150 moko 23071: esac
23072: fi
23073:
23074:
1.237 ! moko 23075:
! 23076: # Reset variables that may have inherited troublesome values from
! 23077: # the environment.
! 23078:
! 23079: # IFS needs to be set, to space, tab, and newline, in precisely that order.
! 23080: # (If _AS_PATH_WALK were called with IFS unset, it would have the
! 23081: # side effect of setting IFS to empty, thus disabling word splitting.)
! 23082: # Quoting is to prevent editors from complaining about space-tab.
1.150 moko 23083: as_nl='
23084: '
23085: export as_nl
1.237 ! moko 23086: IFS=" "" $as_nl"
! 23087:
! 23088: PS1='$ '
! 23089: PS2='> '
! 23090: PS4='+ '
! 23091:
! 23092: # Ensure predictable behavior from utilities with locale-dependent output.
! 23093: LC_ALL=C
! 23094: export LC_ALL
! 23095: LANGUAGE=C
! 23096: export LANGUAGE
! 23097:
! 23098: # We cannot yet rely on "unset" to work, but we need these variables
! 23099: # to be unset--not just set to an empty or harmless value--now, to
! 23100: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
! 23101: # also avoids known problems related to "unset" and subshell syntax
! 23102: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
! 23103: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
! 23104: do eval test \${$as_var+y} \
! 23105: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
! 23106: done
! 23107:
! 23108: # Ensure that fds 0, 1, and 2 are open.
! 23109: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
! 23110: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
! 23111: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.62 paf 23112:
1.150 moko 23113: # The user is always right.
1.237 ! moko 23114: if ${PATH_SEPARATOR+false} :; then
1.150 moko 23115: PATH_SEPARATOR=:
23116: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23117: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23118: PATH_SEPARATOR=';'
23119: }
1.62 paf 23120: fi
23121:
23122:
1.150 moko 23123: # Find who we are. Look in the path if we contain no directory separator.
23124: as_myself=
23125: case $0 in #((
23126: *[\\/]* ) as_myself=$0 ;;
23127: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23128: for as_dir in $PATH
23129: do
23130: IFS=$as_save_IFS
1.237 ! moko 23131: case $as_dir in #(((
! 23132: '') as_dir=./ ;;
! 23133: */) ;;
! 23134: *) as_dir=$as_dir/ ;;
! 23135: esac
! 23136: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.150 moko 23137: done
23138: IFS=$as_save_IFS
23139:
23140: ;;
23141: esac
1.237 ! moko 23142: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.150 moko 23143: # in which case we are not to be found in the path.
23144: if test "x$as_myself" = x; then
23145: as_myself=$0
23146: fi
23147: if test ! -f "$as_myself"; then
1.237 ! moko 23148: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.150 moko 23149: exit 1
23150: fi
23151:
23152:
23153:
23154: # as_fn_error STATUS ERROR [LINENO LOG_FD]
23155: # ----------------------------------------
23156: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23157: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23158: # script with STATUS, using 1 if that was 0.
23159: as_fn_error ()
23160: {
23161: as_status=$1; test $as_status -eq 0 && as_status=1
23162: if test "$4"; then
23163: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.237 ! moko 23164: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.150 moko 23165: fi
1.237 ! moko 23166: printf "%s\n" "$as_me: error: $2" >&2
1.150 moko 23167: as_fn_exit $as_status
23168: } # as_fn_error
23169:
23170:
23171: # as_fn_set_status STATUS
23172: # -----------------------
23173: # Set $? to STATUS, without forking.
23174: as_fn_set_status ()
23175: {
23176: return $1
23177: } # as_fn_set_status
23178:
23179: # as_fn_exit STATUS
23180: # -----------------
23181: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23182: as_fn_exit ()
23183: {
23184: set +e
23185: as_fn_set_status $1
23186: exit $1
23187: } # as_fn_exit
23188:
23189: # as_fn_unset VAR
23190: # ---------------
23191: # Portably unset VAR.
23192: as_fn_unset ()
23193: {
23194: { eval $1=; unset $1;}
23195: }
23196: as_unset=as_fn_unset
1.237 ! moko 23197:
1.150 moko 23198: # as_fn_append VAR VALUE
23199: # ----------------------
23200: # Append the text in VALUE to the end of the definition contained in VAR. Take
23201: # advantage of any shell optimizations that allow amortized linear growth over
23202: # repeated appends, instead of the typical quadratic growth present in naive
23203: # implementations.
1.237 ! moko 23204: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
! 23205: then :
1.150 moko 23206: eval 'as_fn_append ()
23207: {
23208: eval $1+=\$2
23209: }'
1.237 ! moko 23210: else case e in #(
! 23211: e) as_fn_append ()
1.150 moko 23212: {
23213: eval $1=\$$1\$2
1.237 ! moko 23214: } ;;
! 23215: esac
1.150 moko 23216: fi # as_fn_append
23217:
23218: # as_fn_arith ARG...
23219: # ------------------
23220: # Perform arithmetic evaluation on the ARGs, and store the result in the
23221: # global $as_val. Take advantage of shells that can avoid forks. The arguments
23222: # must be portable across $(()) and expr.
1.237 ! moko 23223: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
! 23224: then :
1.150 moko 23225: eval 'as_fn_arith ()
23226: {
23227: as_val=$(( $* ))
23228: }'
1.237 ! moko 23229: else case e in #(
! 23230: e) as_fn_arith ()
1.150 moko 23231: {
23232: as_val=`expr "$@" || test $? -eq 1`
1.237 ! moko 23233: } ;;
! 23234: esac
1.150 moko 23235: fi # as_fn_arith
23236:
1.1 paf 23237:
1.150 moko 23238: if expr a : '\(a\)' >/dev/null 2>&1 &&
23239: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.62 paf 23240: as_expr=expr
23241: else
23242: as_expr=false
23243: fi
23244:
1.150 moko 23245: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.62 paf 23246: as_basename=basename
23247: else
23248: as_basename=false
23249: fi
23250:
1.150 moko 23251: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23252: as_dirname=dirname
23253: else
23254: as_dirname=false
23255: fi
1.62 paf 23256:
1.150 moko 23257: as_me=`$as_basename -- "$0" ||
1.62 paf 23258: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23259: X"$0" : 'X\(//\)$' \| \
1.150 moko 23260: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.237 ! moko 23261: printf "%s\n" X/"$0" |
1.150 moko 23262: sed '/^.*\/\([^/][^/]*\)\/*$/{
23263: s//\1/
23264: q
23265: }
23266: /^X\/\(\/\/\)$/{
23267: s//\1/
23268: q
23269: }
23270: /^X\/\(\/\).*/{
23271: s//\1/
23272: q
23273: }
23274: s/.*/./; q'`
1.62 paf 23275:
23276: # Avoid depending upon Character Ranges.
23277: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23278: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23279: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23280: as_cr_digits='0123456789'
23281: as_cr_alnum=$as_cr_Letters$as_cr_digits
23282:
1.237 ! moko 23283:
! 23284: # Determine whether it's possible to make 'echo' print without a newline.
! 23285: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
! 23286: # for compatibility with existing Makefiles.
1.150 moko 23287: ECHO_C= ECHO_N= ECHO_T=
23288: case `echo -n x` in #(((((
23289: -n*)
23290: case `echo 'xy\c'` in
23291: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23292: xy) ECHO_C='\c';;
23293: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23294: ECHO_T=' ';;
23295: esac;;
23296: *)
23297: ECHO_N='-n';;
1.62 paf 23298: esac
23299:
1.237 ! moko 23300: # For backward compatibility with old third-party macros, we provide
! 23301: # the shell variables $as_echo and $as_echo_n. New code should use
! 23302: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
! 23303: as_echo='printf %s\n'
! 23304: as_echo_n='printf %s'
! 23305:
1.150 moko 23306: rm -f conf$$ conf$$.exe conf$$.file
23307: if test -d conf$$.dir; then
23308: rm -f conf$$.dir/conf$$.file
1.62 paf 23309: else
1.150 moko 23310: rm -f conf$$.dir
23311: mkdir conf$$.dir 2>/dev/null
1.62 paf 23312: fi
1.150 moko 23313: if (echo >conf$$.file) 2>/dev/null; then
23314: if ln -s conf$$.file conf$$ 2>/dev/null; then
23315: as_ln_s='ln -s'
23316: # ... but there are two gotchas:
1.237 ! moko 23317: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
! 23318: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
! 23319: # In both cases, we have to default to 'cp -pR'.
1.150 moko 23320: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.166 moko 23321: as_ln_s='cp -pR'
1.150 moko 23322: elif ln conf$$.file conf$$ 2>/dev/null; then
23323: as_ln_s=ln
23324: else
1.166 moko 23325: as_ln_s='cp -pR'
1.62 paf 23326: fi
23327: else
1.166 moko 23328: as_ln_s='cp -pR'
1.62 paf 23329: fi
1.150 moko 23330: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23331: rmdir conf$$.dir 2>/dev/null
23332:
23333:
23334: # as_fn_mkdir_p
23335: # -------------
23336: # Create "$as_dir" as a directory, including parents if necessary.
23337: as_fn_mkdir_p ()
23338: {
23339:
23340: case $as_dir in #(
23341: -*) as_dir=./$as_dir;;
23342: esac
23343: test -d "$as_dir" || eval $as_mkdir_p || {
23344: as_dirs=
23345: while :; do
23346: case $as_dir in #(
1.237 ! moko 23347: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.150 moko 23348: *) as_qdir=$as_dir;;
23349: esac
23350: as_dirs="'$as_qdir' $as_dirs"
23351: as_dir=`$as_dirname -- "$as_dir" ||
23352: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23353: X"$as_dir" : 'X\(//\)[^/]' \| \
23354: X"$as_dir" : 'X\(//\)$' \| \
23355: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.237 ! moko 23356: printf "%s\n" X"$as_dir" |
1.150 moko 23357: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23358: s//\1/
23359: q
23360: }
23361: /^X\(\/\/\)[^/].*/{
23362: s//\1/
23363: q
23364: }
23365: /^X\(\/\/\)$/{
23366: s//\1/
23367: q
23368: }
23369: /^X\(\/\).*/{
23370: s//\1/
23371: q
23372: }
23373: s/.*/./; q'`
23374: test -d "$as_dir" && break
23375: done
23376: test -z "$as_dirs" || eval "mkdir $as_dirs"
23377: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23378:
1.62 paf 23379:
1.150 moko 23380: } # as_fn_mkdir_p
1.62 paf 23381: if mkdir -p . 2>/dev/null; then
1.150 moko 23382: as_mkdir_p='mkdir -p "$as_dir"'
1.62 paf 23383: else
1.86 paf 23384: test -d ./-p && rmdir ./-p
1.62 paf 23385: as_mkdir_p=false
23386: fi
23387:
1.166 moko 23388:
23389: # as_fn_executable_p FILE
23390: # -----------------------
23391: # Test if FILE is an executable regular file.
23392: as_fn_executable_p ()
23393: {
23394: test -f "$1" && test -x "$1"
23395: } # as_fn_executable_p
23396: as_test_x='test -x'
23397: as_executable_p=as_fn_executable_p
1.62 paf 23398:
23399: # Sed expression to map a string onto a valid CPP name.
1.237 ! moko 23400: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
! 23401: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.62 paf 23402:
23403: # Sed expression to map a string onto a valid variable name.
1.237 ! moko 23404: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
! 23405: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.62 paf 23406:
23407:
23408: exec 6>&1
1.150 moko 23409: ## ----------------------------------- ##
23410: ## Main body of $CONFIG_STATUS script. ##
23411: ## ----------------------------------- ##
23412: _ASEOF
23413: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.62 paf 23414:
1.150 moko 23415: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23416: # Save the log message, to keep $0 and so on meaningful, and to
1.62 paf 23417: # report actual input values of CONFIG_FILES etc. instead of their
1.150 moko 23418: # values after options handling.
23419: ac_log="
1.230 moko 23420: This file was extended by parser $as_me 3.5.2b, which was
1.237 ! moko 23421: generated by GNU Autoconf 2.72. Invocation command line was
1.62 paf 23422:
23423: CONFIG_FILES = $CONFIG_FILES
23424: CONFIG_HEADERS = $CONFIG_HEADERS
23425: CONFIG_LINKS = $CONFIG_LINKS
23426: CONFIG_COMMANDS = $CONFIG_COMMANDS
23427: $ $0 $@
23428:
1.150 moko 23429: on `(hostname || uname -n) 2>/dev/null | sed 1q`
23430: "
23431:
1.62 paf 23432: _ACEOF
23433:
1.150 moko 23434: case $ac_config_files in *"
23435: "*) set x $ac_config_files; shift; ac_config_files=$*;;
23436: esac
1.62 paf 23437:
1.150 moko 23438: case $ac_config_headers in *"
23439: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23440: esac
1.62 paf 23441:
23442:
1.150 moko 23443: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23444: # Files that config.status was made for.
23445: config_files="$ac_config_files"
23446: config_headers="$ac_config_headers"
23447: config_commands="$ac_config_commands"
1.62 paf 23448:
1.150 moko 23449: _ACEOF
1.62 paf 23450:
1.150 moko 23451: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 23452: ac_cs_usage="\
1.237 ! moko 23453: '$as_me' instantiates files and other configuration actions
1.150 moko 23454: from templates according to the current configuration. Unless the files
23455: and actions are specified as TAGs, all are instantiated by default.
1.62 paf 23456:
1.150 moko 23457: Usage: $0 [OPTION]... [TAG]...
1.62 paf 23458:
23459: -h, --help print this help, then exit
1.150 moko 23460: -V, --version print version number and configuration settings, then exit
23461: --config print configuration, then exit
23462: -q, --quiet, --silent
23463: do not print progress messages
1.62 paf 23464: -d, --debug don't remove temporary files
23465: --recheck update $as_me by reconfiguring in the same conditions
1.150 moko 23466: --file=FILE[:TEMPLATE]
23467: instantiate the configuration file FILE
23468: --header=FILE[:TEMPLATE]
23469: instantiate the configuration header FILE
1.62 paf 23470:
23471: Configuration files:
23472: $config_files
23473:
23474: Configuration headers:
23475: $config_headers
23476:
23477: Configuration commands:
23478: $config_commands
23479:
1.150 moko 23480: Report bugs to the package provider."
23481:
1.62 paf 23482: _ACEOF
1.237 ! moko 23483: ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
! 23484: ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1.150 moko 23485: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.237 ! moko 23486: ac_cs_config='$ac_cs_config_escaped'
1.62 paf 23487: ac_cs_version="\\
1.230 moko 23488: parser config.status 3.5.2b
1.237 ! moko 23489: configured by $0, generated by GNU Autoconf 2.72,
1.150 moko 23490: with options \\"\$ac_cs_config\\"
1.62 paf 23491:
1.237 ! moko 23492: Copyright (C) 2023 Free Software Foundation, Inc.
1.62 paf 23493: This config.status script is free software; the Free Software Foundation
23494: gives unlimited permission to copy, distribute and modify it."
1.150 moko 23495:
23496: ac_pwd='$ac_pwd'
23497: srcdir='$srcdir'
23498: INSTALL='$INSTALL'
23499: MKDIR_P='$MKDIR_P'
23500: AWK='$AWK'
23501: test -n "\$AWK" || AWK=awk
1.62 paf 23502: _ACEOF
23503:
1.150 moko 23504: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23505: # The default lists apply if the user does not specify any file.
1.62 paf 23506: ac_need_defaults=:
23507: while test $# != 0
23508: do
23509: case $1 in
1.150 moko 23510: --*=?*)
23511: ac_option=`expr "X$1" : 'X\([^=]*\)='`
23512: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1.62 paf 23513: ac_shift=:
23514: ;;
1.150 moko 23515: --*=)
23516: ac_option=`expr "X$1" : 'X\([^=]*\)='`
23517: ac_optarg=
23518: ac_shift=:
23519: ;;
23520: *)
1.62 paf 23521: ac_option=$1
23522: ac_optarg=$2
23523: ac_shift=shift
23524: ;;
23525: esac
23526:
23527: case $ac_option in
23528: # Handling of the options.
23529: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23530: ac_cs_recheck=: ;;
1.150 moko 23531: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.237 ! moko 23532: printf "%s\n" "$ac_cs_version"; exit ;;
1.150 moko 23533: --config | --confi | --conf | --con | --co | --c )
1.237 ! moko 23534: printf "%s\n" "$ac_cs_config"; exit ;;
1.150 moko 23535: --debug | --debu | --deb | --de | --d | -d )
1.62 paf 23536: debug=: ;;
23537: --file | --fil | --fi | --f )
23538: $ac_shift
1.150 moko 23539: case $ac_optarg in
1.237 ! moko 23540: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 23541: '') as_fn_error $? "missing file argument" ;;
23542: esac
23543: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.62 paf 23544: ac_need_defaults=false;;
23545: --header | --heade | --head | --hea )
23546: $ac_shift
1.150 moko 23547: case $ac_optarg in
1.237 ! moko 23548: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 23549: esac
23550: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.62 paf 23551: ac_need_defaults=false;;
1.150 moko 23552: --he | --h)
23553: # Conflict between --help and --header
1.237 ! moko 23554: as_fn_error $? "ambiguous option: '$1'
! 23555: Try '$0 --help' for more information.";;
1.150 moko 23556: --help | --hel | -h )
1.237 ! moko 23557: printf "%s\n" "$ac_cs_usage"; exit ;;
1.62 paf 23558: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23559: | -silent | --silent | --silen | --sile | --sil | --si | --s)
23560: ac_cs_silent=: ;;
23561:
23562: # This is an error.
1.237 ! moko 23563: -*) as_fn_error $? "unrecognized option: '$1'
! 23564: Try '$0 --help' for more information." ;;
1.62 paf 23565:
1.150 moko 23566: *) as_fn_append ac_config_targets " $1"
23567: ac_need_defaults=false ;;
1.62 paf 23568:
23569: esac
23570: shift
23571: done
23572:
23573: ac_configure_extra_args=
23574:
23575: if $ac_cs_silent; then
23576: exec 6>/dev/null
1.150 moko 23577: ac_configure_extra_args="$ac_configure_extra_args --silent"
23578: fi
23579:
23580: _ACEOF
23581: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23582: if \$ac_cs_recheck; then
1.166 moko 23583: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.150 moko 23584: shift
1.237 ! moko 23585: \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1.150 moko 23586: CONFIG_SHELL='$SHELL'
23587: export CONFIG_SHELL
23588: exec "\$@"
23589: fi
23590:
23591: _ACEOF
23592: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23593: exec 5>>config.log
23594: {
23595: echo
23596: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23597: ## Running $as_me. ##
23598: _ASBOX
1.237 ! moko 23599: printf "%s\n" "$ac_log"
1.150 moko 23600: } >&5
1.62 paf 23601:
23602: _ACEOF
1.150 moko 23603: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 paf 23604: #
1.150 moko 23605: # INIT-COMMANDS
1.1 paf 23606: #
1.199 moko 23607: AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
1.62 paf 23608:
1.128 moko 23609:
23610: # The HP-UX ksh and POSIX shell print the target directory to stdout
23611: # if CDPATH is set.
23612: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23613:
23614: sed_quote_subst='$sed_quote_subst'
23615: double_quote_subst='$double_quote_subst'
23616: delay_variable_subst='$delay_variable_subst'
23617: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23618: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23619: AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23620: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23621: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1.145 moko 23622: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1.128 moko 23623: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
1.138 moko 23624: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1.128 moko 23625: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
1.237 ! moko 23626: shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1.128 moko 23627: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23628: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23629: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23630: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23631: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23632: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23633: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23634: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23635: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23636: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23637: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23638: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23639: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23640: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23641: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23642: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23643: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23644: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23645: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23646: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23647: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23648: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23649: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23650: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23651: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23652: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23653: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1.237 ! moko 23654: FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
1.128 moko 23655: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23656: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23657: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23658: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23659: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23660: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1.237 ! moko 23661: lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
1.128 moko 23662: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23663: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23664: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23665: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23666: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23667: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23668: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23669: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23670: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23671: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23672: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23673: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23674: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23675: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1.237 ! moko 23676: lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1.128 moko 23677: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23678: 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 23679: lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1.128 moko 23680: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23681: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
1.237 ! moko 23682: lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1.128 moko 23683: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23684: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23685: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23686: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23687: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23688: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23689: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23690: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23691: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23692: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23693: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23694: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23695: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23696: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23697: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23698: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23699: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23700: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23701: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23702: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23703: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23704: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23705: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23706: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23707: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23708: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23709: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23710: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23711: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23712: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23713: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23714: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23715: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23716: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23717: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23718: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23719: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23720: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23721: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23722: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23723: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23724: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23725: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23726: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23727: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23728: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23729: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23730: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23731: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23732: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23733: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23734: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23735: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23736: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23737: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23738: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23739: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23740: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23741: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23742: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23743: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23744: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23745: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23746: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
1.237 ! moko 23747: configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
! 23748: configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1.128 moko 23749: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23750: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23751: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23752: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23753: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23754: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23755: compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23756: predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23757: postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23758: predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23759: postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23760: compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23761: LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23762: reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23763: reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23764: old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23765: compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23766: GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23767: lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23768: lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23769: lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23770: lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23771: lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23772: archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23773: enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23774: export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23775: whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23776: compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23777: old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23778: old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23779: archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23780: archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23781: module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23782: module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23783: with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23784: allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23785: no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23786: hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23787: hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23788: hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23789: hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23790: hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23791: hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23792: hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23793: inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23794: link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23795: always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23796: export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23797: exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23798: include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23799: prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23800: postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23801: file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23802: hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23803: compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23804: predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23805: postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23806: predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23807: postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23808: compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23809:
23810: LTCC='$LTCC'
23811: LTCFLAGS='$LTCFLAGS'
23812: compiler='$compiler_DEFAULT'
23813:
23814: # A function that is used when there is no print builtin or printf.
23815: func_fallback_echo ()
23816: {
23817: eval 'cat <<_LTECHO_EOF
23818: \$1
23819: _LTECHO_EOF'
23820: }
23821:
23822: # Quote evaled strings.
23823: for var in AS \
23824: DLLTOOL \
23825: OBJDUMP \
23826: SHELL \
23827: ECHO \
23828: PATH_SEPARATOR \
23829: SED \
23830: GREP \
23831: EGREP \
23832: FGREP \
23833: LD \
23834: NM \
23835: LN_S \
23836: lt_SP2NL \
23837: lt_NL2SP \
23838: reload_flag \
1.237 ! moko 23839: FILECMD \
1.128 moko 23840: deplibs_check_method \
23841: file_magic_cmd \
23842: file_magic_glob \
23843: want_nocaseglob \
23844: sharedlib_from_linklib_cmd \
23845: AR \
23846: archiver_list_spec \
23847: STRIP \
23848: RANLIB \
23849: CC \
23850: CFLAGS \
23851: compiler \
23852: lt_cv_sys_global_symbol_pipe \
23853: lt_cv_sys_global_symbol_to_cdecl \
1.237 ! moko 23854: lt_cv_sys_global_symbol_to_import \
1.128 moko 23855: lt_cv_sys_global_symbol_to_c_name_address \
23856: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
1.237 ! moko 23857: lt_cv_nm_interface \
1.128 moko 23858: nm_file_list_spec \
1.237 ! moko 23859: lt_cv_truncate_bin \
1.128 moko 23860: lt_prog_compiler_no_builtin_flag \
23861: lt_prog_compiler_pic \
23862: lt_prog_compiler_wl \
23863: lt_prog_compiler_static \
23864: lt_cv_prog_compiler_c_o \
23865: need_locks \
23866: MANIFEST_TOOL \
23867: DSYMUTIL \
23868: NMEDIT \
23869: LIPO \
23870: OTOOL \
23871: OTOOL64 \
23872: shrext_cmds \
23873: export_dynamic_flag_spec \
23874: whole_archive_flag_spec \
23875: compiler_needs_object \
23876: with_gnu_ld \
23877: allow_undefined_flag \
23878: no_undefined_flag \
23879: hardcode_libdir_flag_spec \
23880: hardcode_libdir_separator \
23881: exclude_expsyms \
23882: include_expsyms \
23883: file_list_spec \
23884: variables_saved_for_relink \
23885: libname_spec \
23886: library_names_spec \
23887: soname_spec \
23888: install_override_mode \
23889: finish_eval \
23890: old_striplib \
23891: striplib \
23892: compiler_lib_search_dirs \
23893: predep_objects \
23894: postdep_objects \
23895: predeps \
23896: postdeps \
23897: compiler_lib_search_path \
23898: LD_CXX \
23899: reload_flag_CXX \
23900: compiler_CXX \
23901: lt_prog_compiler_no_builtin_flag_CXX \
23902: lt_prog_compiler_pic_CXX \
23903: lt_prog_compiler_wl_CXX \
23904: lt_prog_compiler_static_CXX \
23905: lt_cv_prog_compiler_c_o_CXX \
23906: export_dynamic_flag_spec_CXX \
23907: whole_archive_flag_spec_CXX \
23908: compiler_needs_object_CXX \
23909: with_gnu_ld_CXX \
23910: allow_undefined_flag_CXX \
23911: no_undefined_flag_CXX \
23912: hardcode_libdir_flag_spec_CXX \
23913: hardcode_libdir_separator_CXX \
23914: exclude_expsyms_CXX \
23915: include_expsyms_CXX \
23916: file_list_spec_CXX \
23917: compiler_lib_search_dirs_CXX \
23918: predep_objects_CXX \
23919: postdep_objects_CXX \
23920: predeps_CXX \
23921: postdeps_CXX \
23922: compiler_lib_search_path_CXX; do
23923: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23924: *[\\\\\\\`\\"\\\$]*)
1.237 ! moko 23925: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1.128 moko 23926: ;;
23927: *)
23928: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23929: ;;
23930: esac
23931: done
23932:
23933: # Double-quote double-evaled strings.
23934: for var in reload_cmds \
23935: old_postinstall_cmds \
23936: old_postuninstall_cmds \
23937: old_archive_cmds \
23938: extract_expsyms_cmds \
23939: old_archive_from_new_cmds \
23940: old_archive_from_expsyms_cmds \
23941: archive_cmds \
23942: archive_expsym_cmds \
23943: module_cmds \
23944: module_expsym_cmds \
23945: export_symbols_cmds \
23946: prelink_cmds \
23947: postlink_cmds \
23948: postinstall_cmds \
23949: postuninstall_cmds \
23950: finish_cmds \
23951: sys_lib_search_path_spec \
1.237 ! moko 23952: configure_time_dlsearch_path \
! 23953: configure_time_lt_sys_library_path \
1.128 moko 23954: reload_cmds_CXX \
23955: old_archive_cmds_CXX \
23956: old_archive_from_new_cmds_CXX \
23957: old_archive_from_expsyms_cmds_CXX \
23958: archive_cmds_CXX \
23959: archive_expsym_cmds_CXX \
23960: module_cmds_CXX \
23961: module_expsym_cmds_CXX \
23962: export_symbols_cmds_CXX \
23963: prelink_cmds_CXX \
23964: postlink_cmds_CXX; do
23965: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23966: *[\\\\\\\`\\"\\\$]*)
1.237 ! moko 23967: 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 23968: ;;
23969: *)
23970: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23971: ;;
23972: esac
23973: done
23974:
23975: ac_aux_dir='$ac_aux_dir'
23976:
1.237 ! moko 23977: # See if we are running on zsh, and set the options that allow our
1.128 moko 23978: # commands through without removal of \ escapes INIT.
1.237 ! moko 23979: if test -n "\${ZSH_VERSION+set}"; then
1.128 moko 23980: setopt NO_GLOB_SUBST
23981: fi
23982:
23983:
23984: PACKAGE='$PACKAGE'
23985: VERSION='$VERSION'
23986: RM='$RM'
23987: ofile='$ofile'
23988:
23989:
23990:
23991:
23992:
23993:
1.62 paf 23994: _ACEOF
23995:
1.150 moko 23996: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 23997:
1.150 moko 23998: # Handling of arguments.
1.62 paf 23999: for ac_config_target in $ac_config_targets
1.1 paf 24000: do
1.150 moko 24001: case $ac_config_target in
24002: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24003: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24004: "src/include/pa_config_auto.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
24005: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24006: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24007: "src/types/Makefile") CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
24008: "src/classes/Makefile") CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
24009: "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
24010: "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
24011: "src/sql/Makefile") CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
24012: "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24013: "src/lib/gd/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gd/Makefile" ;;
24014: "src/lib/smtp/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/smtp/Makefile" ;;
24015: "src/lib/gc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/Makefile" ;;
24016: "src/lib/gc/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/gc/include/Makefile" ;;
24017: "src/lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
24018: "src/lib/cord/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/Makefile" ;;
24019: "src/lib/cord/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/Makefile" ;;
24020: "src/lib/cord/include/private/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/cord/include/private/Makefile" ;;
24021: "src/lib/md5/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
24022: "src/lib/sdbm/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/Makefile" ;;
24023: "src/lib/sdbm/pa-include/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/sdbm/pa-include/Makefile" ;;
24024: "src/lib/json/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/json/Makefile" ;;
1.173 moko 24025: "src/lib/curl/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/curl/Makefile" ;;
24026: "src/lib/punycode/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/punycode/Makefile" ;;
1.150 moko 24027: "src/lib/memcached/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/memcached/Makefile" ;;
24028: "src/targets/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
24029: "src/targets/cgi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
24030: "src/targets/apache/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/apache/Makefile" ;;
24031: "src/targets/isapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
24032: "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
24033: "etc/parser3.charsets/Makefile") CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
1.200 moko 24034: "etc/auto.p") CONFIG_FILES="$CONFIG_FILES etc/auto.p" ;;
1.150 moko 24035:
1.237 ! moko 24036: *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
1.1 paf 24037: esac
24038: done
24039:
1.150 moko 24040:
1.62 paf 24041: # If the user did not use the arguments to specify the items to instantiate,
24042: # then the envvar interface is used. Set only those that are not.
24043: # We use the long form for the default assignment because of an extremely
24044: # bizarre bug on SunOS 4.1.3.
24045: if $ac_need_defaults; then
1.237 ! moko 24046: test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
! 24047: test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
! 24048: test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
1.62 paf 24049: fi
24050:
24051: # Have a temporary directory for convenience. Make it in the build tree
1.150 moko 24052: # simply because there is no reason against having it here, and in addition,
1.62 paf 24053: # creating and moving files from /tmp can sometimes cause problems.
1.150 moko 24054: # Hook for its removal unless debugging.
24055: # Note that there is a small window in which the directory will not be cleaned:
1.237 ! moko 24056: # after its creation but before its name has been assigned to '$tmp'.
1.62 paf 24057: $debug ||
24058: {
1.150 moko 24059: tmp= ac_tmp=
24060: trap 'exit_status=$?
24061: : "${ac_tmp:=$tmp}"
24062: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24063: ' 0
24064: trap 'as_fn_exit 1' 1 2 13 15
1.62 paf 24065: }
24066: # Create a (secure) tmp directory for tmp files.
24067:
24068: {
1.150 moko 24069: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24070: test -d "$tmp"
1.62 paf 24071: } ||
24072: {
1.150 moko 24073: tmp=./conf$$-$RANDOM
24074: (umask 077 && mkdir "$tmp")
24075: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24076: ac_tmp=$tmp
24077:
24078: # Set up the scripts for CONFIG_FILES section.
24079: # No need to generate them if there are no CONFIG_FILES.
1.237 ! moko 24080: # This happens for instance with './config.status config.h'.
1.150 moko 24081: if test -n "$CONFIG_FILES"; then
24082:
24083:
24084: ac_cr=`echo X | tr X '\015'`
24085: # On cygwin, bash can eat \r inside `` if the user requested igncr.
24086: # But we know of no other shell where ac_cr would be empty at this
24087: # point, so we can use a bashism as a fallback.
24088: if test "x$ac_cr" = x; then
24089: eval ac_cr=\$\'\\r\'
24090: fi
24091: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24092: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24093: ac_cs_awk_cr='\\r'
24094: else
24095: ac_cs_awk_cr=$ac_cr
24096: fi
24097:
24098: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24099: _ACEOF
24100:
24101:
1.62 paf 24102: {
1.150 moko 24103: echo "cat >conf$$subs.awk <<_ACEOF" &&
24104: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24105: echo "_ACEOF"
24106: } >conf$$subs.sh ||
24107: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24108: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24109: ac_delim='%!_!# '
24110: for ac_last_try in false false false false false :; do
24111: . ./conf$$subs.sh ||
24112: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24113:
24114: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24115: if test $ac_delim_n = $ac_delim_num; then
24116: break
24117: elif $ac_last_try; then
24118: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24119: else
24120: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24121: fi
24122: done
24123: rm -f conf$$subs.sh
24124:
24125: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24126: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24127: _ACEOF
24128: sed -n '
24129: h
24130: s/^/S["/; s/!.*/"]=/
24131: p
24132: g
24133: s/^[^!]*!//
24134: :repl
24135: t repl
24136: s/'"$ac_delim"'$//
24137: t delim
24138: :nl
24139: h
24140: s/\(.\{148\}\)..*/\1/
24141: t more1
24142: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24143: p
24144: n
24145: b repl
24146: :more1
24147: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24148: p
24149: g
24150: s/.\{148\}//
24151: t nl
24152: :delim
24153: h
24154: s/\(.\{148\}\)..*/\1/
24155: t more2
24156: s/["\\]/\\&/g; s/^/"/; s/$/"/
24157: p
24158: b
24159: :more2
24160: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24161: p
24162: g
24163: s/.\{148\}//
24164: t delim
24165: ' <conf$$subs.awk | sed '
24166: /^[^""]/{
24167: N
24168: s/\n//
24169: }
24170: ' >>$CONFIG_STATUS || ac_write_fail=1
24171: rm -f conf$$subs.awk
24172: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24173: _ACAWK
24174: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24175: for (key in S) S_is_set[key] = 1
24176: FS = ""
24177:
24178: }
24179: {
24180: line = $ 0
24181: nfields = split(line, field, "@")
24182: substed = 0
24183: len = length(field[1])
24184: for (i = 2; i < nfields; i++) {
24185: key = field[i]
24186: keylen = length(key)
24187: if (S_is_set[key]) {
24188: value = S[key]
24189: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24190: len += length(value) + length(field[++i])
24191: substed = 1
24192: } else
24193: len += 1 + keylen
24194: }
24195:
24196: print line
1.62 paf 24197: }
24198:
1.150 moko 24199: _ACAWK
24200: _ACEOF
24201: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24202: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24203: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24204: else
24205: cat
24206: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24207: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.62 paf 24208: _ACEOF
1.1 paf 24209:
1.150 moko 24210: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24211: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24212: # trailing colons and then remove the whole line if VPATH becomes empty
24213: # (actually we leave an empty line to preserve line numbers).
24214: if test "x$srcdir" = x.; then
24215: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24216: h
24217: s///
24218: s/^/:/
24219: s/[ ]*$/:/
24220: s/:\$(srcdir):/:/g
24221: s/:\${srcdir}:/:/g
24222: s/:@srcdir@:/:/g
24223: s/^:*//
24224: s/:*$//
24225: x
24226: s/\(=[ ]*\).*/\1/
24227: G
24228: s/\n//
24229: s/^[^=]*=[ ]*$//
24230: }'
24231: fi
1.62 paf 24232:
1.150 moko 24233: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24234: fi # test -n "$CONFIG_FILES"
1.1 paf 24235:
1.150 moko 24236: # Set up the scripts for CONFIG_HEADERS section.
24237: # No need to generate them if there are no CONFIG_HEADERS.
1.237 ! moko 24238: # This happens for instance with './config.status Makefile'.
1.150 moko 24239: if test -n "$CONFIG_HEADERS"; then
24240: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24241: BEGIN {
24242: _ACEOF
24243:
1.237 ! moko 24244: # Transform confdefs.h into an awk script 'defines.awk', embedded as
1.150 moko 24245: # here-document in config.status, that substitutes the proper values into
24246: # config.h.in to produce config.h.
24247:
24248: # Create a delimiter string that does not exist in confdefs.h, to ease
24249: # handling of long lines.
24250: ac_delim='%!_!# '
24251: for ac_last_try in false false :; do
24252: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24253: if test -z "$ac_tt"; then
24254: break
24255: elif $ac_last_try; then
24256: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24257: else
24258: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
1.1 paf 24259: fi
1.150 moko 24260: done
1.1 paf 24261:
1.150 moko 24262: # For the awk script, D is an array of macro values keyed by name,
24263: # likewise P contains macro parameters if any. Preserve backslash
24264: # newline sequences.
24265:
24266: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24267: sed -n '
24268: s/.\{148\}/&'"$ac_delim"'/g
24269: t rset
24270: :rset
24271: s/^[ ]*#[ ]*define[ ][ ]*/ /
24272: t def
24273: d
24274: :def
24275: s/\\$//
24276: t bsnl
24277: s/["\\]/\\&/g
24278: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24279: D["\1"]=" \3"/p
24280: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24281: d
24282: :bsnl
24283: s/["\\]/\\&/g
24284: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24285: D["\1"]=" \3\\\\\\n"\\/p
24286: t cont
24287: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24288: t cont
24289: d
24290: :cont
24291: n
24292: s/.\{148\}/&'"$ac_delim"'/g
24293: t clear
24294: :clear
24295: s/\\$//
24296: t bsnlc
24297: s/["\\]/\\&/g; s/^/"/; s/$/"/p
24298: d
24299: :bsnlc
24300: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24301: b cont
24302: ' <confdefs.h | sed '
24303: s/'"$ac_delim"'/"\\\
24304: "/g' >>$CONFIG_STATUS || ac_write_fail=1
24305:
24306: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24307: for (key in D) D_is_set[key] = 1
24308: FS = ""
24309: }
24310: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24311: line = \$ 0
24312: split(line, arg, " ")
24313: if (arg[1] == "#") {
24314: defundef = arg[2]
24315: mac1 = arg[3]
24316: } else {
24317: defundef = substr(arg[1], 2)
24318: mac1 = arg[2]
24319: }
24320: split(mac1, mac2, "(") #)
24321: macro = mac2[1]
24322: prefix = substr(line, 1, index(line, defundef) - 1)
24323: if (D_is_set[macro]) {
24324: # Preserve the white space surrounding the "#".
24325: print prefix "define", macro P[macro] D[macro]
24326: next
24327: } else {
24328: # Replace #undef with comments. This is necessary, for example,
24329: # in the case of _POSIX_SOURCE, which is predefined and required
24330: # on some systems where configure will not decide to define it.
24331: if (defundef == "undef") {
24332: print "/*", prefix defundef, macro, "*/"
24333: next
24334: }
24335: }
24336: }
24337: { print }
24338: _ACAWK
1.62 paf 24339: _ACEOF
1.150 moko 24340: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24341: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24342: fi # test -n "$CONFIG_HEADERS"
24343:
24344:
24345: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24346: shift
24347: for ac_tag
24348: do
24349: case $ac_tag in
24350: :[FHLC]) ac_mode=$ac_tag; continue;;
24351: esac
24352: case $ac_mode$ac_tag in
24353: :[FHL]*:*);;
1.237 ! moko 24354: :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
1.150 moko 24355: :[FH]-) ac_tag=-:-;;
24356: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24357: esac
24358: ac_save_IFS=$IFS
24359: IFS=:
24360: set x $ac_tag
24361: IFS=$ac_save_IFS
24362: shift
24363: ac_file=$1
24364: shift
24365:
24366: case $ac_mode in
24367: :L) ac_source=$1;;
24368: :[FH])
24369: ac_file_inputs=
24370: for ac_f
24371: do
24372: case $ac_f in
24373: -) ac_f="$ac_tmp/stdin";;
24374: *) # Look for the file first in the build tree, then in the source tree
24375: # (if the path is not absolute). The absolute path cannot be DOS-style,
1.237 ! moko 24376: # because $ac_f cannot contain ':'.
1.150 moko 24377: test -f "$ac_f" ||
24378: case $ac_f in
24379: [\\/$]*) false;;
24380: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24381: esac ||
1.237 ! moko 24382: as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
1.150 moko 24383: esac
1.237 ! moko 24384: case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.150 moko 24385: as_fn_append ac_file_inputs " '$ac_f'"
24386: done
24387:
1.237 ! moko 24388: # Let's still pretend it is 'configure' which instantiates (i.e., don't
1.150 moko 24389: # use $as_me), people would be surprised to read:
24390: # /* config.h. Generated by config.status. */
24391: configure_input='Generated from '`
1.237 ! moko 24392: printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1.150 moko 24393: `' by configure.'
24394: if test x"$ac_file" != x-; then
24395: configure_input="$ac_file. $configure_input"
1.237 ! moko 24396: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
! 24397: printf "%s\n" "$as_me: creating $ac_file" >&6;}
1.150 moko 24398: fi
24399: # Neutralize special characters interpreted by sed in replacement strings.
24400: case $configure_input in #(
24401: *\&* | *\|* | *\\* )
1.237 ! moko 24402: ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1.150 moko 24403: sed 's/[\\\\&|]/\\\\&/g'`;; #(
24404: *) ac_sed_conf_input=$configure_input;;
24405: esac
24406:
24407: case $ac_tag in
24408: *:-:* | *:-) cat >"$ac_tmp/stdin" \
24409: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24410: esac
24411: ;;
1.1 paf 24412: esac
24413:
1.150 moko 24414: ac_dir=`$as_dirname -- "$ac_file" ||
1.62 paf 24415: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.86 paf 24416: X"$ac_file" : 'X\(//\)[^/]' \| \
24417: X"$ac_file" : 'X\(//\)$' \| \
1.150 moko 24418: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.237 ! moko 24419: printf "%s\n" X"$ac_file" |
1.150 moko 24420: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24421: s//\1/
24422: q
24423: }
24424: /^X\(\/\/\)[^/].*/{
24425: s//\1/
24426: q
24427: }
24428: /^X\(\/\/\)$/{
24429: s//\1/
24430: q
24431: }
24432: /^X\(\/\).*/{
24433: s//\1/
24434: q
24435: }
24436: s/.*/./; q'`
24437: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 24438: ac_builddir=.
24439:
1.150 moko 24440: case "$ac_dir" in
24441: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24442: *)
1.237 ! moko 24443: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.150 moko 24444: # A ".." for each directory in $ac_dir_suffix.
1.237 ! moko 24445: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.150 moko 24446: case $ac_top_builddir_sub in
24447: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24448: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24449: esac ;;
24450: esac
24451: ac_abs_top_builddir=$ac_pwd
24452: ac_abs_builddir=$ac_pwd$ac_dir_suffix
24453: # for backward compatibility:
24454: ac_top_builddir=$ac_top_build_prefix
1.62 paf 24455:
24456: case $srcdir in
1.150 moko 24457: .) # We are building in place.
1.62 paf 24458: ac_srcdir=.
1.150 moko 24459: ac_top_srcdir=$ac_top_builddir_sub
24460: ac_abs_top_srcdir=$ac_pwd ;;
24461: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 24462: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 24463: ac_top_srcdir=$srcdir
24464: ac_abs_top_srcdir=$srcdir ;;
24465: *) # Relative name.
24466: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24467: ac_top_srcdir=$ac_top_build_prefix$srcdir
24468: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.62 paf 24469: esac
1.150 moko 24470: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.86 paf 24471:
1.62 paf 24472:
1.150 moko 24473: case $ac_mode in
24474: :F)
24475: #
24476: # CONFIG_FILE
24477: #
1.1 paf 24478:
1.62 paf 24479: case $INSTALL in
24480: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.150 moko 24481: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
1.1 paf 24482: esac
1.150 moko 24483: ac_MKDIR_P=$MKDIR_P
24484: case $MKDIR_P in
24485: [\\/$]* | ?:[\\/]* ) ;;
24486: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24487: esac
24488: _ACEOF
1.1 paf 24489:
1.150 moko 24490: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24491: # If the template does not know about datarootdir, expand it.
24492: # FIXME: This hack should be removed a few years after 2.60.
24493: ac_datarootdir_hack=; ac_datarootdir_seen=
24494: ac_sed_dataroot='
24495: /datarootdir/ {
24496: p
24497: q
24498: }
24499: /@datadir@/p
24500: /@docdir@/p
24501: /@infodir@/p
24502: /@localedir@/p
24503: /@mandir@/p'
24504: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24505: *datarootdir*) ac_datarootdir_seen=yes;;
24506: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.237 ! moko 24507: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
! 24508: printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.150 moko 24509: _ACEOF
24510: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24511: ac_datarootdir_hack='
24512: s&@datadir@&$datadir&g
24513: s&@docdir@&$docdir&g
24514: s&@infodir@&$infodir&g
24515: s&@localedir@&$localedir&g
24516: s&@mandir@&$mandir&g
24517: s&\\\${datarootdir}&$datarootdir&g' ;;
24518: esac
24519: _ACEOF
1.62 paf 24520:
1.237 ! moko 24521: # Neutralize VPATH when '$srcdir' = '.'.
1.150 moko 24522: # Shell code in configure.ac might set extrasub.
24523: # FIXME: do we really want to maintain this feature?
24524: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24525: ac_sed_extra="$ac_vpsub
1.62 paf 24526: $extrasub
24527: _ACEOF
1.150 moko 24528: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.62 paf 24529: :t
24530: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.150 moko 24531: s|@configure_input@|$ac_sed_conf_input|;t t
24532: s&@top_builddir@&$ac_top_builddir_sub&;t t
24533: s&@top_build_prefix@&$ac_top_build_prefix&;t t
24534: s&@srcdir@&$ac_srcdir&;t t
24535: s&@abs_srcdir@&$ac_abs_srcdir&;t t
24536: s&@top_srcdir@&$ac_top_srcdir&;t t
24537: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24538: s&@builddir@&$ac_builddir&;t t
24539: s&@abs_builddir@&$ac_abs_builddir&;t t
24540: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24541: s&@INSTALL@&$ac_INSTALL&;t t
24542: s&@MKDIR_P@&$ac_MKDIR_P&;t t
24543: $ac_datarootdir_hack
24544: "
24545: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24546: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24547:
24548: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24549: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24550: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24551: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.237 ! moko 24552: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.150 moko 24553: which seems to be undefined. Please make sure it is defined" >&5
1.237 ! moko 24554: printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.150 moko 24555: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 paf 24556:
1.150 moko 24557: rm -f "$ac_tmp/stdin"
1.62 paf 24558: case $ac_file in
1.150 moko 24559: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24560: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24561: esac \
24562: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24563: ;;
24564: :H)
24565: #
24566: # CONFIG_HEADER
24567: #
1.62 paf 24568: if test x"$ac_file" != x-; then
1.150 moko 24569: {
1.237 ! moko 24570: printf "%s\n" "/* $configure_input */" >&1 \
1.150 moko 24571: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24572: } >"$ac_tmp/config.h" \
24573: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24574: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.237 ! moko 24575: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
! 24576: printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1.62 paf 24577: else
1.150 moko 24578: rm -f "$ac_file"
24579: mv "$ac_tmp/config.h" "$ac_file" \
24580: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.62 paf 24581: fi
24582: else
1.237 ! moko 24583: printf "%s\n" "/* $configure_input */" >&1 \
1.150 moko 24584: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24585: || as_fn_error $? "could not create -" "$LINENO" 5
1.62 paf 24586: fi
1.150 moko 24587: # Compute "$ac_file"'s index in $config_headers.
24588: _am_arg="$ac_file"
1.86 paf 24589: _am_stamp_count=1
24590: for _am_header in $config_headers :; do
24591: case $_am_header in
1.150 moko 24592: $_am_arg | $_am_arg:* )
1.86 paf 24593: break ;;
24594: * )
24595: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24596: esac
24597: done
1.150 moko 24598: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24599: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24600: X"$_am_arg" : 'X\(//\)[^/]' \| \
24601: X"$_am_arg" : 'X\(//\)$' \| \
24602: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.237 ! moko 24603: printf "%s\n" X"$_am_arg" |
1.150 moko 24604: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24605: s//\1/
24606: q
24607: }
24608: /^X\(\/\/\)[^/].*/{
24609: s//\1/
24610: q
24611: }
24612: /^X\(\/\/\)$/{
24613: s//\1/
24614: q
24615: }
24616: /^X\(\/\).*/{
24617: s//\1/
24618: q
24619: }
24620: s/.*/./; q'`/stamp-h$_am_stamp_count
24621: ;;
1.62 paf 24622:
1.237 ! moko 24623: :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
! 24624: printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
1.150 moko 24625: ;;
24626: esac
1.86 paf 24627:
1.62 paf 24628:
1.150 moko 24629: case $ac_file$ac_mode in
24630: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
1.187 moko 24631: # Older Autoconf quotes --file arguments for eval, but not when files
1.150 moko 24632: # are listed without --file. Let's play safe and only enable the eval
24633: # if we detect the quoting.
1.199 moko 24634: # TODO: see whether this extra hack can be removed once we start
24635: # requiring Autoconf 2.70 or later.
24636: case $CONFIG_FILES in #(
24637: *\'*) :
24638: eval set x "$CONFIG_FILES" ;; #(
24639: *) :
24640: set x $CONFIG_FILES ;; #(
24641: *) :
24642: ;;
24643: esac
1.150 moko 24644: shift
1.199 moko 24645: # Used to flag and report bootstrapping failures.
24646: am_rc=0
24647: for am_mf
1.150 moko 24648: do
24649: # Strip MF so we end up with the name of the file.
1.237 ! moko 24650: am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
1.199 moko 24651: # Check whether this is an Automake generated Makefile which includes
24652: # dependency-tracking related rules and includes.
24653: # Grep'ing the whole file directly is not great: AIX grep has a line
1.150 moko 24654: # limit of 2048, but all sed's we know have understand at least 4000.
1.199 moko 24655: sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24656: || continue
24657: am_dirpart=`$as_dirname -- "$am_mf" ||
24658: $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24659: X"$am_mf" : 'X\(//\)[^/]' \| \
24660: X"$am_mf" : 'X\(//\)$' \| \
24661: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.237 ! moko 24662: printf "%s\n" X"$am_mf" |
1.150 moko 24663: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24664: s//\1/
24665: q
24666: }
24667: /^X\(\/\/\)[^/].*/{
24668: s//\1/
24669: q
24670: }
24671: /^X\(\/\/\)$/{
24672: s//\1/
24673: q
24674: }
24675: /^X\(\/\).*/{
24676: s//\1/
24677: q
24678: }
24679: s/.*/./; q'`
1.199 moko 24680: am_filepart=`$as_basename -- "$am_mf" ||
24681: $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24682: X"$am_mf" : 'X\(//\)$' \| \
24683: X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
1.237 ! moko 24684: printf "%s\n" X/"$am_mf" |
1.199 moko 24685: sed '/^.*\/\([^/][^/]*\)\/*$/{
1.150 moko 24686: s//\1/
24687: q
24688: }
1.199 moko 24689: /^X\/\(\/\/\)$/{
1.150 moko 24690: s//\1/
24691: q
24692: }
1.199 moko 24693: /^X\/\(\/\).*/{
1.150 moko 24694: s//\1/
24695: q
24696: }
24697: s/.*/./; q'`
1.199 moko 24698: { echo "$as_me:$LINENO: cd "$am_dirpart" \
24699: && sed -e '/# am--include-marker/d' "$am_filepart" \
24700: | $MAKE -f - am--depfiles" >&5
24701: (cd "$am_dirpart" \
24702: && sed -e '/# am--include-marker/d' "$am_filepart" \
24703: | $MAKE -f - am--depfiles) >&5 2>&5
24704: ac_status=$?
24705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706: (exit $ac_status); } || am_rc=$?
1.62 paf 24707: done
1.199 moko 24708: if test $am_rc -ne 0; then
1.237 ! moko 24709: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
! 24710: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.199 moko 24711: as_fn_error $? "Something went wrong bootstrapping makefile fragments
1.216 moko 24712: for automatic dependency tracking. If GNU make was not used, consider
24713: re-running the configure script with MAKE=\"gmake\" (or whatever is
24714: necessary). You can also try re-running configure with the
1.199 moko 24715: '--disable-dependency-tracking' option to at least be able to build
24716: the package (albeit without support for automatic dependency tracking).
1.237 ! moko 24717: See 'config.log' for more details" "$LINENO" 5; }
1.199 moko 24718: fi
24719: { am_dirpart=; unset am_dirpart;}
24720: { am_filepart=; unset am_filepart;}
24721: { am_mf=; unset am_mf;}
24722: { am_rc=; unset am_rc;}
24723: rm -f conftest-deps.mk
1.150 moko 24724: }
1.62 paf 24725: ;;
1.150 moko 24726: "libtool":C)
1.128 moko 24727:
1.237 ! moko 24728: # See if we are running on zsh, and set the options that allow our
1.128 moko 24729: # commands through without removal of \ escapes.
1.237 ! moko 24730: if test -n "${ZSH_VERSION+set}"; then
1.128 moko 24731: setopt NO_GLOB_SUBST
24732: fi
24733:
1.237 ! moko 24734: cfgfile=${ofile}T
1.128 moko 24735: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24736: $RM "$cfgfile"
24737:
24738: cat <<_LT_EOF >> "$cfgfile"
24739: #! $SHELL
1.237 ! moko 24740: # Generated automatically by $as_me ($PACKAGE) $VERSION
! 24741: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
! 24742:
! 24743: # Provide generalized library-building support services.
! 24744: # Written by Gordon Matzigkeit, 1996
1.128 moko 24745:
1.237 ! moko 24746: # Copyright (C) 2024 Free Software Foundation, Inc.
! 24747: # This is free software; see the source for copying conditions. There is NO
! 24748: # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
! 24749:
! 24750: # GNU Libtool is free software; you can redistribute it and/or modify
! 24751: # it under the terms of the GNU General Public License as published by
! 24752: # the Free Software Foundation; either version 2 of the License, or
! 24753: # (at your option) any later version.
1.128 moko 24754: #
1.237 ! moko 24755: # As a special exception to the GNU General Public License, if you
! 24756: # distribute this file as part of a program or library that is built
! 24757: # using GNU Libtool, you may include this file under the same
! 24758: # distribution terms that you use for the rest of that program.
1.128 moko 24759: #
1.237 ! moko 24760: # GNU Libtool is distributed in the hope that it will be useful, but
! 24761: # WITHOUT ANY WARRANTY; without even the implied warranty of
1.128 moko 24762: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24763: # GNU General Public License for more details.
24764: #
24765: # You should have received a copy of the GNU General Public License
1.237 ! moko 24766: # along with this program. If not, see <http://www.gnu.org/licenses/>.
1.128 moko 24767:
24768:
24769: # The names of the tagged configurations supported by this script.
1.237 ! moko 24770: available_tags='CXX '
! 24771:
! 24772: # Configured defaults for sys_lib_dlsearch_path munging.
! 24773: : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1.128 moko 24774:
24775: # ### BEGIN LIBTOOL CONFIG
24776:
24777: # Which release of libtool.m4 was used?
24778: macro_version=$macro_version
24779: macro_revision=$macro_revision
24780:
24781: # Assembler program.
24782: AS=$lt_AS
24783:
24784: # DLL creation program.
24785: DLLTOOL=$lt_DLLTOOL
24786:
24787: # Object dumper program.
24788: OBJDUMP=$lt_OBJDUMP
24789:
1.145 moko 24790: # What type of objects to build.
24791: pic_mode=$pic_mode
24792:
1.128 moko 24793: # Whether or not to build shared libraries.
24794: build_libtool_libs=$enable_shared
24795:
1.138 moko 24796: # Whether or not to build static libraries.
24797: build_old_libs=$enable_static
24798:
1.128 moko 24799: # Whether or not to optimize for fast installation.
24800: fast_install=$enable_fast_install
24801:
1.237 ! moko 24802: # Shared archive member basename,for filename based shared library versioning on AIX.
! 24803: shared_archive_member_spec=$shared_archive_member_spec
! 24804:
1.128 moko 24805: # Shell to use when invoking shell scripts.
24806: SHELL=$lt_SHELL
24807:
24808: # An echo program that protects backslashes.
24809: ECHO=$lt_ECHO
24810:
24811: # The PATH separator for the build system.
24812: PATH_SEPARATOR=$lt_PATH_SEPARATOR
24813:
24814: # The host system.
24815: host_alias=$host_alias
24816: host=$host
24817: host_os=$host_os
24818:
24819: # The build system.
24820: build_alias=$build_alias
24821: build=$build
24822: build_os=$build_os
24823:
24824: # A sed program that does not truncate output.
24825: SED=$lt_SED
24826:
24827: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24828: Xsed="\$SED -e 1s/^X//"
24829:
24830: # A grep program that handles long lines.
24831: GREP=$lt_GREP
24832:
24833: # An ERE matcher.
24834: EGREP=$lt_EGREP
24835:
24836: # A literal string matcher.
24837: FGREP=$lt_FGREP
24838:
24839: # A BSD- or MS-compatible name lister.
24840: NM=$lt_NM
24841:
24842: # Whether we need soft or hard links.
24843: LN_S=$lt_LN_S
24844:
24845: # What is the maximum length of a command?
24846: max_cmd_len=$max_cmd_len
24847:
24848: # Object file suffix (normally "o").
24849: objext=$ac_objext
24850:
24851: # Executable file suffix (normally "").
24852: exeext=$exeext
24853:
24854: # whether the shell understands "unset".
24855: lt_unset=$lt_unset
24856:
24857: # turn spaces into newlines.
24858: SP2NL=$lt_lt_SP2NL
24859:
24860: # turn newlines into spaces.
24861: NL2SP=$lt_lt_NL2SP
24862:
24863: # convert \$build file names to \$host format.
24864: to_host_file_cmd=$lt_cv_to_host_file_cmd
24865:
24866: # convert \$build files to toolchain format.
24867: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24868:
1.237 ! moko 24869: # A file(cmd) program that detects file types.
! 24870: FILECMD=$lt_FILECMD
! 24871:
1.128 moko 24872: # Method to check whether dependent libraries are shared objects.
24873: deplibs_check_method=$lt_deplibs_check_method
24874:
24875: # Command to use when deplibs_check_method = "file_magic".
24876: file_magic_cmd=$lt_file_magic_cmd
24877:
24878: # How to find potential files when deplibs_check_method = "file_magic".
24879: file_magic_glob=$lt_file_magic_glob
24880:
24881: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24882: want_nocaseglob=$lt_want_nocaseglob
24883:
24884: # Command to associate shared and link libraries.
24885: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24886:
24887: # The archiver.
24888: AR=$lt_AR
24889:
1.237 ! moko 24890: # Flags to create an archive (by configure).
! 24891: lt_ar_flags=$lt_ar_flags
! 24892:
1.128 moko 24893: # Flags to create an archive.
1.237 ! moko 24894: AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
1.128 moko 24895:
24896: # How to feed a file listing to the archiver.
24897: archiver_list_spec=$lt_archiver_list_spec
24898:
24899: # A symbol stripping program.
24900: STRIP=$lt_STRIP
24901:
24902: # Commands used to install an old-style archive.
24903: RANLIB=$lt_RANLIB
24904: old_postinstall_cmds=$lt_old_postinstall_cmds
24905: old_postuninstall_cmds=$lt_old_postuninstall_cmds
24906:
24907: # Whether to use a lock for old archive extraction.
24908: lock_old_archive_extraction=$lock_old_archive_extraction
24909:
24910: # A C compiler.
24911: LTCC=$lt_CC
24912:
24913: # LTCC compiler flags.
24914: LTCFLAGS=$lt_CFLAGS
24915:
24916: # Take the output of nm and produce a listing of raw symbols and C names.
24917: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24918:
24919: # Transform the output of nm in a proper C declaration.
24920: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24921:
1.237 ! moko 24922: # Transform the output of nm into a list of symbols to manually relocate.
! 24923: global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
! 24924:
1.128 moko 24925: # Transform the output of nm in a C name address pair.
24926: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24927:
24928: # Transform the output of nm in a C name address pair when lib prefix is needed.
24929: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24930:
1.237 ! moko 24931: # The name lister interface.
! 24932: nm_interface=$lt_lt_cv_nm_interface
! 24933:
1.128 moko 24934: # Specify filename containing input files for \$NM.
24935: nm_file_list_spec=$lt_nm_file_list_spec
24936:
1.237 ! moko 24937: # The root where to search for dependent libraries,and where our libraries should be installed.
1.128 moko 24938: lt_sysroot=$lt_sysroot
24939:
1.237 ! moko 24940: # Command to truncate a binary pipe.
! 24941: lt_truncate_bin=$lt_lt_cv_truncate_bin
! 24942:
1.128 moko 24943: # The name of the directory that contains temporary libtool files.
24944: objdir=$objdir
24945:
24946: # Used to examine libraries when file_magic_cmd begins with "file".
24947: MAGIC_CMD=$MAGIC_CMD
24948:
24949: # Must we lock files when doing compilation?
24950: need_locks=$lt_need_locks
24951:
24952: # Manifest tool.
24953: MANIFEST_TOOL=$lt_MANIFEST_TOOL
24954:
24955: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24956: DSYMUTIL=$lt_DSYMUTIL
24957:
24958: # Tool to change global to local symbols on Mac OS X.
24959: NMEDIT=$lt_NMEDIT
24960:
24961: # Tool to manipulate fat objects and archives on Mac OS X.
24962: LIPO=$lt_LIPO
24963:
24964: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24965: OTOOL=$lt_OTOOL
24966:
24967: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24968: OTOOL64=$lt_OTOOL64
24969:
24970: # Old archive suffix (normally "a").
24971: libext=$libext
24972:
24973: # Shared library suffix (normally ".so").
24974: shrext_cmds=$lt_shrext_cmds
24975:
24976: # The commands to extract the exported symbol list from a shared archive.
24977: extract_expsyms_cmds=$lt_extract_expsyms_cmds
24978:
24979: # Variables whose values should be saved in libtool wrapper scripts and
24980: # restored at link time.
24981: variables_saved_for_relink=$lt_variables_saved_for_relink
24982:
24983: # Do we need the "lib" prefix for modules?
24984: need_lib_prefix=$need_lib_prefix
24985:
24986: # Do we need a version for libraries?
24987: need_version=$need_version
24988:
24989: # Library versioning type.
24990: version_type=$version_type
24991:
24992: # Shared library runtime path variable.
24993: runpath_var=$runpath_var
24994:
24995: # Shared library path variable.
24996: shlibpath_var=$shlibpath_var
24997:
24998: # Is shlibpath searched before the hard-coded library search path?
24999: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25000:
25001: # Format of library name prefix.
25002: libname_spec=$lt_libname_spec
25003:
25004: # List of archive names. First name is the real one, the rest are links.
25005: # The last name is the one that the linker finds with -lNAME
25006: library_names_spec=$lt_library_names_spec
25007:
25008: # The coded name of the library, if different from the real name.
25009: soname_spec=$lt_soname_spec
25010:
25011: # Permission mode override for installation of shared libraries.
25012: install_override_mode=$lt_install_override_mode
25013:
25014: # Command to use after installation of a shared archive.
25015: postinstall_cmds=$lt_postinstall_cmds
25016:
25017: # Command to use after uninstallation of a shared archive.
25018: postuninstall_cmds=$lt_postuninstall_cmds
25019:
25020: # Commands used to finish a libtool library installation in a directory.
25021: finish_cmds=$lt_finish_cmds
25022:
25023: # As "finish_cmds", except a single script fragment to be evaled but
25024: # not shown.
25025: finish_eval=$lt_finish_eval
25026:
25027: # Whether we should hardcode library paths into libraries.
25028: hardcode_into_libs=$hardcode_into_libs
25029:
25030: # Compile-time system search path for libraries.
25031: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25032:
1.237 ! moko 25033: # Detected run-time system search path for libraries.
! 25034: sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
! 25035:
! 25036: # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
! 25037: configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1.128 moko 25038:
25039: # Whether dlopen is supported.
25040: dlopen_support=$enable_dlopen
25041:
25042: # Whether dlopen of programs is supported.
25043: dlopen_self=$enable_dlopen_self
25044:
25045: # Whether dlopen of statically linked programs is supported.
25046: dlopen_self_static=$enable_dlopen_self_static
25047:
25048: # Commands to strip libraries.
25049: old_striplib=$lt_old_striplib
25050: striplib=$lt_striplib
25051:
25052:
25053: # The linker used to build libraries.
25054: LD=$lt_LD
25055:
25056: # How to create reloadable object files.
25057: reload_flag=$lt_reload_flag
25058: reload_cmds=$lt_reload_cmds
25059:
25060: # Commands used to build an old-style archive.
25061: old_archive_cmds=$lt_old_archive_cmds
25062:
25063: # A language specific compiler.
25064: CC=$lt_compiler
25065:
25066: # Is the compiler the GNU compiler?
25067: with_gcc=$GCC
25068:
25069: # Compiler flag to turn off builtin functions.
25070: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25071:
25072: # Additional compiler flags for building library objects.
25073: pic_flag=$lt_lt_prog_compiler_pic
25074:
25075: # How to pass a linker flag through the compiler.
25076: wl=$lt_lt_prog_compiler_wl
25077:
25078: # Compiler flag to prevent dynamic linking.
25079: link_static_flag=$lt_lt_prog_compiler_static
25080:
25081: # Does compiler simultaneously support -c and -o options?
25082: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25083:
25084: # Whether or not to add -lc for building shared libraries.
25085: build_libtool_need_lc=$archive_cmds_need_lc
25086:
25087: # Whether or not to disallow shared libs when runtime libs are static.
25088: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25089:
25090: # Compiler flag to allow reflexive dlopens.
25091: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25092:
25093: # Compiler flag to generate shared objects directly from archives.
25094: whole_archive_flag_spec=$lt_whole_archive_flag_spec
25095:
25096: # Whether the compiler copes with passing no objects directly.
25097: compiler_needs_object=$lt_compiler_needs_object
25098:
25099: # Create an old-style archive from a shared archive.
25100: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25101:
25102: # Create a temporary old-style archive to link instead of a shared archive.
25103: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25104:
25105: # Commands used to build a shared archive.
25106: archive_cmds=$lt_archive_cmds
25107: archive_expsym_cmds=$lt_archive_expsym_cmds
25108:
25109: # Commands used to build a loadable module if different from building
25110: # a shared archive.
25111: module_cmds=$lt_module_cmds
25112: module_expsym_cmds=$lt_module_expsym_cmds
25113:
25114: # Whether we are building with GNU ld or not.
25115: with_gnu_ld=$lt_with_gnu_ld
25116:
25117: # Flag that allows shared libraries with undefined symbols to be built.
25118: allow_undefined_flag=$lt_allow_undefined_flag
25119:
25120: # Flag that enforces no undefined symbols.
25121: no_undefined_flag=$lt_no_undefined_flag
25122:
25123: # Flag to hardcode \$libdir into a binary during linking.
25124: # This must work even if \$libdir does not exist
25125: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25126:
25127: # Whether we need a single "-rpath" flag with a separated argument.
25128: hardcode_libdir_separator=$lt_hardcode_libdir_separator
25129:
1.237 ! moko 25130: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25131: # DIR into the resulting binary.
25132: hardcode_direct=$hardcode_direct
25133:
1.237 ! moko 25134: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25135: # DIR into the resulting binary and the resulting library dependency is
1.237 ! moko 25136: # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
1.128 moko 25137: # library is relocated.
25138: hardcode_direct_absolute=$hardcode_direct_absolute
25139:
25140: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25141: # into the resulting binary.
25142: hardcode_minus_L=$hardcode_minus_L
25143:
25144: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25145: # into the resulting binary.
25146: hardcode_shlibpath_var=$hardcode_shlibpath_var
25147:
25148: # Set to "yes" if building a shared library automatically hardcodes DIR
25149: # into the library and all subsequent libraries and executables linked
25150: # against it.
25151: hardcode_automatic=$hardcode_automatic
25152:
25153: # Set to yes if linker adds runtime paths of dependent libraries
25154: # to runtime path list.
25155: inherit_rpath=$inherit_rpath
25156:
25157: # Whether libtool must link a program against all its dependency libraries.
25158: link_all_deplibs=$link_all_deplibs
25159:
25160: # Set to "yes" if exported symbols are required.
25161: always_export_symbols=$always_export_symbols
25162:
25163: # The commands to list exported symbols.
25164: export_symbols_cmds=$lt_export_symbols_cmds
25165:
25166: # Symbols that should not be listed in the preloaded symbols.
25167: exclude_expsyms=$lt_exclude_expsyms
25168:
25169: # Symbols that must always be exported.
25170: include_expsyms=$lt_include_expsyms
25171:
25172: # Commands necessary for linking programs (against libraries) with templates.
25173: prelink_cmds=$lt_prelink_cmds
25174:
25175: # Commands necessary for finishing linking programs.
25176: postlink_cmds=$lt_postlink_cmds
25177:
25178: # Specify filename containing input files.
25179: file_list_spec=$lt_file_list_spec
25180:
25181: # How to hardcode a shared library path into an executable.
25182: hardcode_action=$hardcode_action
25183:
25184: # The directories searched by this compiler when creating a shared library.
25185: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25186:
25187: # Dependencies to place before and after the objects being linked to
25188: # create a shared library.
25189: predep_objects=$lt_predep_objects
25190: postdep_objects=$lt_postdep_objects
25191: predeps=$lt_predeps
25192: postdeps=$lt_postdeps
25193:
25194: # The library search path used internally by the compiler when linking
25195: # a shared library.
25196: compiler_lib_search_path=$lt_compiler_lib_search_path
25197:
25198: # ### END LIBTOOL CONFIG
25199:
25200: _LT_EOF
25201:
1.237 ! moko 25202: cat <<'_LT_EOF' >> "$cfgfile"
! 25203:
! 25204: # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
! 25205:
! 25206: # func_munge_path_list VARIABLE PATH
! 25207: # -----------------------------------
! 25208: # VARIABLE is name of variable containing _space_ separated list of
! 25209: # directories to be munged by the contents of PATH, which is string
! 25210: # having a format:
! 25211: # "DIR[:DIR]:"
! 25212: # string "DIR[ DIR]" will be prepended to VARIABLE
! 25213: # ":DIR[:DIR]"
! 25214: # string "DIR[ DIR]" will be appended to VARIABLE
! 25215: # "DIRP[:DIRP]::[DIRA:]DIRA"
! 25216: # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
! 25217: # "DIRA[ DIRA]" will be appended to VARIABLE
! 25218: # "DIR[:DIR]"
! 25219: # VARIABLE will be replaced by "DIR[ DIR]"
! 25220: func_munge_path_list ()
! 25221: {
! 25222: case x$2 in
! 25223: x)
! 25224: ;;
! 25225: *:)
! 25226: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
! 25227: ;;
! 25228: x:*)
! 25229: eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
! 25230: ;;
! 25231: *::*)
! 25232: eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
! 25233: eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
! 25234: ;;
! 25235: *)
! 25236: eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
! 25237: ;;
! 25238: esac
! 25239: }
! 25240:
! 25241:
! 25242: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
! 25243: func_cc_basename ()
! 25244: {
! 25245: for cc_temp in $*""; do
! 25246: case $cc_temp in
! 25247: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
! 25248: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
! 25249: \-*) ;;
! 25250: *) break;;
! 25251: esac
! 25252: done
! 25253: func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
! 25254: }
! 25255:
! 25256:
! 25257: # ### END FUNCTIONS SHARED WITH CONFIGURE
! 25258:
! 25259: _LT_EOF
! 25260:
1.128 moko 25261: case $host_os in
25262: aix3*)
25263: cat <<\_LT_EOF >> "$cfgfile"
25264: # AIX sometimes has problems with the GCC collect2 program. For some
25265: # reason, if we set the COLLECT_NAMES environment variable, the problems
25266: # vanish in a puff of smoke.
1.237 ! moko 25267: if test set != "${COLLECT_NAMES+set}"; then
1.128 moko 25268: COLLECT_NAMES=
25269: export COLLECT_NAMES
25270: fi
25271: _LT_EOF
25272: ;;
25273: esac
25274:
25275:
1.237 ! moko 25276:
! 25277: ltmain=$ac_aux_dir/ltmain.sh
1.128 moko 25278:
25279:
25280: # We use sed instead of cat because bash on DJGPP gets confused if
25281: # if finds mixed CR/LF and LF-only lines. Since sed operates in
25282: # text mode, it properly converts lines to CR/LF. This bash problem
25283: # is reportedly fixed, but why not run on old versions too?
1.237 ! moko 25284: $SED '$q' "$ltmain" >> "$cfgfile" \
1.128 moko 25285: || (rm -f "$cfgfile"; exit 1)
25286:
25287: mv -f "$cfgfile" "$ofile" ||
25288: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25289: chmod +x "$ofile"
25290:
25291:
25292: cat <<_LT_EOF >> "$ofile"
25293:
25294: # ### BEGIN LIBTOOL TAG CONFIG: CXX
25295:
25296: # The linker used to build libraries.
25297: LD=$lt_LD_CXX
25298:
25299: # How to create reloadable object files.
25300: reload_flag=$lt_reload_flag_CXX
25301: reload_cmds=$lt_reload_cmds_CXX
25302:
25303: # Commands used to build an old-style archive.
25304: old_archive_cmds=$lt_old_archive_cmds_CXX
25305:
25306: # A language specific compiler.
25307: CC=$lt_compiler_CXX
25308:
25309: # Is the compiler the GNU compiler?
25310: with_gcc=$GCC_CXX
25311:
25312: # Compiler flag to turn off builtin functions.
25313: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25314:
25315: # Additional compiler flags for building library objects.
25316: pic_flag=$lt_lt_prog_compiler_pic_CXX
25317:
25318: # How to pass a linker flag through the compiler.
25319: wl=$lt_lt_prog_compiler_wl_CXX
25320:
25321: # Compiler flag to prevent dynamic linking.
25322: link_static_flag=$lt_lt_prog_compiler_static_CXX
25323:
25324: # Does compiler simultaneously support -c and -o options?
25325: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25326:
25327: # Whether or not to add -lc for building shared libraries.
25328: build_libtool_need_lc=$archive_cmds_need_lc_CXX
25329:
25330: # Whether or not to disallow shared libs when runtime libs are static.
25331: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25332:
25333: # Compiler flag to allow reflexive dlopens.
25334: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25335:
25336: # Compiler flag to generate shared objects directly from archives.
25337: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25338:
25339: # Whether the compiler copes with passing no objects directly.
25340: compiler_needs_object=$lt_compiler_needs_object_CXX
25341:
25342: # Create an old-style archive from a shared archive.
25343: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25344:
25345: # Create a temporary old-style archive to link instead of a shared archive.
25346: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25347:
25348: # Commands used to build a shared archive.
25349: archive_cmds=$lt_archive_cmds_CXX
25350: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25351:
25352: # Commands used to build a loadable module if different from building
25353: # a shared archive.
25354: module_cmds=$lt_module_cmds_CXX
25355: module_expsym_cmds=$lt_module_expsym_cmds_CXX
25356:
25357: # Whether we are building with GNU ld or not.
25358: with_gnu_ld=$lt_with_gnu_ld_CXX
25359:
25360: # Flag that allows shared libraries with undefined symbols to be built.
25361: allow_undefined_flag=$lt_allow_undefined_flag_CXX
25362:
25363: # Flag that enforces no undefined symbols.
25364: no_undefined_flag=$lt_no_undefined_flag_CXX
25365:
25366: # Flag to hardcode \$libdir into a binary during linking.
25367: # This must work even if \$libdir does not exist
25368: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25369:
25370: # Whether we need a single "-rpath" flag with a separated argument.
25371: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25372:
1.237 ! moko 25373: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25374: # DIR into the resulting binary.
25375: hardcode_direct=$hardcode_direct_CXX
25376:
1.237 ! moko 25377: # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1.128 moko 25378: # DIR into the resulting binary and the resulting library dependency is
1.237 ! moko 25379: # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
1.128 moko 25380: # library is relocated.
25381: hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25382:
25383: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25384: # into the resulting binary.
25385: hardcode_minus_L=$hardcode_minus_L_CXX
25386:
25387: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25388: # into the resulting binary.
25389: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25390:
25391: # Set to "yes" if building a shared library automatically hardcodes DIR
25392: # into the library and all subsequent libraries and executables linked
25393: # against it.
25394: hardcode_automatic=$hardcode_automatic_CXX
25395:
25396: # Set to yes if linker adds runtime paths of dependent libraries
25397: # to runtime path list.
25398: inherit_rpath=$inherit_rpath_CXX
25399:
25400: # Whether libtool must link a program against all its dependency libraries.
25401: link_all_deplibs=$link_all_deplibs_CXX
25402:
25403: # Set to "yes" if exported symbols are required.
25404: always_export_symbols=$always_export_symbols_CXX
25405:
25406: # The commands to list exported symbols.
25407: export_symbols_cmds=$lt_export_symbols_cmds_CXX
25408:
25409: # Symbols that should not be listed in the preloaded symbols.
25410: exclude_expsyms=$lt_exclude_expsyms_CXX
25411:
25412: # Symbols that must always be exported.
25413: include_expsyms=$lt_include_expsyms_CXX
25414:
25415: # Commands necessary for linking programs (against libraries) with templates.
25416: prelink_cmds=$lt_prelink_cmds_CXX
25417:
25418: # Commands necessary for finishing linking programs.
25419: postlink_cmds=$lt_postlink_cmds_CXX
25420:
25421: # Specify filename containing input files.
25422: file_list_spec=$lt_file_list_spec_CXX
25423:
25424: # How to hardcode a shared library path into an executable.
25425: hardcode_action=$hardcode_action_CXX
25426:
25427: # The directories searched by this compiler when creating a shared library.
25428: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25429:
25430: # Dependencies to place before and after the objects being linked to
25431: # create a shared library.
25432: predep_objects=$lt_predep_objects_CXX
25433: postdep_objects=$lt_postdep_objects_CXX
25434: predeps=$lt_predeps_CXX
25435: postdeps=$lt_postdeps_CXX
25436:
25437: # The library search path used internally by the compiler when linking
25438: # a shared library.
25439: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25440:
25441: # ### END LIBTOOL TAG CONFIG: CXX
25442: _LT_EOF
25443:
25444: ;;
1.150 moko 25445:
1.62 paf 25446: esac
1.150 moko 25447: done # for ac_tag
1.62 paf 25448:
25449:
1.150 moko 25450: as_fn_exit 0
1.62 paf 25451: _ACEOF
25452: ac_clean_files=$ac_clean_files_save
25453:
1.150 moko 25454: test $ac_write_fail = 0 ||
25455: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25456:
1.1 paf 25457:
1.62 paf 25458: # configure is writing to config.log, and then calls config.status.
25459: # config.status does its own redirection, appending to config.log.
25460: # Unfortunately, on DOS this fails, as config.log is still kept open
25461: # by configure, so config.status won't be able to write to it; its
25462: # output is simply discarded. So we exec the FD to /dev/null,
25463: # effectively closing config.log, so it can be properly (re)opened and
25464: # appended to by config.status. When coming back to configure, we
25465: # need to make the FD available again.
25466: if test "$no_create" != yes; then
25467: ac_cs_success=:
25468: ac_config_status_args=
25469: test "$silent" = yes &&
25470: ac_config_status_args="$ac_config_status_args --quiet"
25471: exec 5>/dev/null
25472: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25473: exec 5>>config.log
25474: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25475: # would make configure fail if this is the last instruction.
1.150 moko 25476: $ac_cs_success || as_fn_exit 1
1.62 paf 25477: fi
25478:
25479: #
25480: # CONFIG_SUBDIRS section.
25481: #
1.1 paf 25482: if test "$no_recursion" != yes; then
25483:
1.150 moko 25484: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
25485: # so they do not pile up.
1.1 paf 25486: ac_sub_configure_args=
25487: ac_prev=
1.150 moko 25488: eval "set x $ac_configure_args"
25489: shift
25490: for ac_arg
25491: do
1.1 paf 25492: if test -n "$ac_prev"; then
25493: ac_prev=
25494: continue
25495: fi
1.62 paf 25496: case $ac_arg in
1.1 paf 25497: -cache-file | --cache-file | --cache-fil | --cache-fi \
25498: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25499: ac_prev=cache_file ;;
25500: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 25501: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25502: | --c=*)
25503: ;;
25504: --config-cache | -C)
1.1 paf 25505: ;;
25506: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25507: ac_prev=srcdir ;;
25508: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25509: ;;
1.62 paf 25510: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25511: ac_prev=prefix ;;
25512: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25513: ;;
1.150 moko 25514: --disable-option-checking)
25515: ;;
25516: *)
25517: case $ac_arg in
1.237 ! moko 25518: *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 25519: esac
25520: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 paf 25521: esac
25522: done
25523:
1.62 paf 25524: # Always prepend --prefix to ensure using the same prefix
25525: # in subdir configurations.
1.150 moko 25526: ac_arg="--prefix=$prefix"
25527: case $ac_arg in
1.237 ! moko 25528: *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.150 moko 25529: esac
25530: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25531:
25532: # Pass --silent
25533: if test "$silent" = yes; then
25534: ac_sub_configure_args="--silent $ac_sub_configure_args"
25535: fi
25536:
25537: # Always prepend --disable-option-checking to silence warnings, since
25538: # different subdirs can have different --enable and --with options.
25539: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
1.62 paf 25540:
25541: ac_popdir=`pwd`
25542: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 25543:
25544: # Do not complain, so a configure script can configure whichever
25545: # parts of a large source tree are present.
1.150 moko 25546: test -d "$srcdir/$ac_dir" || continue
1.62 paf 25547:
1.150 moko 25548: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.237 ! moko 25549: printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
! 25550: printf "%s\n" "$ac_msg" >&6
1.150 moko 25551: as_dir="$ac_dir"; as_fn_mkdir_p
1.62 paf 25552: ac_builddir=.
25553:
1.150 moko 25554: case "$ac_dir" in
25555: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25556: *)
1.237 ! moko 25557: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.150 moko 25558: # A ".." for each directory in $ac_dir_suffix.
1.237 ! moko 25559: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.150 moko 25560: case $ac_top_builddir_sub in
25561: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25562: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25563: esac ;;
25564: esac
25565: ac_abs_top_builddir=$ac_pwd
25566: ac_abs_builddir=$ac_pwd$ac_dir_suffix
25567: # for backward compatibility:
25568: ac_top_builddir=$ac_top_build_prefix
1.62 paf 25569:
25570: case $srcdir in
1.150 moko 25571: .) # We are building in place.
1.62 paf 25572: ac_srcdir=.
1.150 moko 25573: ac_top_srcdir=$ac_top_builddir_sub
25574: ac_abs_top_srcdir=$ac_pwd ;;
25575: [\\/]* | ?:[\\/]* ) # Absolute name.
1.62 paf 25576: ac_srcdir=$srcdir$ac_dir_suffix;
1.150 moko 25577: ac_top_srcdir=$srcdir
25578: ac_abs_top_srcdir=$srcdir ;;
25579: *) # Relative name.
25580: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25581: ac_top_srcdir=$ac_top_build_prefix$srcdir
25582: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1.86 paf 25583: esac
1.150 moko 25584: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 paf 25585:
25586:
1.150 moko 25587: cd "$ac_dir"
1.1 paf 25588:
1.237 ! moko 25589: # Check for configure.gnu first; this name is used for a wrapper for
! 25590: # Metaconfig's "Configure" on case-insensitive file systems.
1.150 moko 25591: if test -f "$ac_srcdir/configure.gnu"; then
25592: ac_sub_configure=$ac_srcdir/configure.gnu
25593: elif test -f "$ac_srcdir/configure"; then
25594: ac_sub_configure=$ac_srcdir/configure
1.1 paf 25595: else
1.237 ! moko 25596: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
! 25597: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 25598: ac_sub_configure=
25599: fi
25600:
25601: # The recursion is here.
25602: if test -n "$ac_sub_configure"; then
25603: # Make the cache file name correct relative to the subdirectory.
1.62 paf 25604: case $cache_file in
25605: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.150 moko 25606: *) # Relative name.
25607: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
1.1 paf 25608: esac
25609:
1.237 ! moko 25610: { 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
! 25611: 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 25612: # The eval makes quoting arguments work.
1.150 moko 25613: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25614: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25615: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 paf 25616: fi
25617:
1.150 moko 25618: cd "$ac_popdir"
1.1 paf 25619: done
25620: fi
1.150 moko 25621: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.237 ! moko 25622: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
! 25623: printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.150 moko 25624: fi
1.1 paf 25625:
1.237 ! moko 25626:
E-mail: